{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lium-io/json-schema/lium-io-machine-request-with-requester-dto-schema.json",
  "title": "MachineRequestWithRequesterDto",
  "description": "DTO for machine request with requester information",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/provider-api-lium-io-openapi.json#/components/schemas/MachineRequestWithRequesterDto",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "gpu_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Count"
    },
    "cpu": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cpu"
    },
    "ram": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ram"
    },
    "storage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Storage"
    },
    "location": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Location"
    },
    "extra_data": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Data"
    },
    "machine_name": {
      "type": "string",
      "title": "Machine Name"
    },
    "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deleted At"
    },
    "achieved": {
      "type": "boolean",
      "title": "Achieved"
    },
    "provider_hotkey": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Hotkey"
    },
    "tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tier"
    },
    "requester": {
      "anyOf": [
        {
          "$ref": "#/$defs/RequesterInfoDto"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "created_at",
    "updated_at",
    "gpu_count",
    "cpu",
    "ram",
    "storage",
    "location",
    "extra_data",
    "machine_name",
    "user_id",
    "deleted_at",
    "achieved",
    "requester"
  ],
  "$defs": {
    "RequesterInfoDto": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "total_spent": {
          "type": "number",
          "title": "Total Spent"
        },
        "current_credit_balance": {
          "type": "number",
          "title": "Current Credit Balance"
        },
        "last_month_spent": {
          "type": "number",
          "title": "Last Month Spent"
        },
        "total_machine_requests": {
          "type": "integer",
          "title": "Total Machine Requests"
        },
        "active_machine_requests": {
          "type": "integer",
          "title": "Active Machine Requests"
        },
        "last_calculated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Last Calculated At"
        }
      },
      "type": "object",
      "required": [
        "name",
        "total_spent",
        "current_credit_balance",
        "last_month_spent",
        "total_machine_requests",
        "active_machine_requests",
        "last_calculated_at"
      ],
      "title": "RequesterInfoDto",
      "description": "DTO for requester information from RequesterMetrics"
    }
  }
}