{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-family-instance-types-response-schema.json",
  "title": "FamilyInstanceTypesResponse",
  "description": "Instance types for one family.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-instance-types-api-openapi.yml#/components/schemas/FamilyInstanceTypesResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/InstanceTypePublic"
      },
      "type": "array",
      "title": "Items",
      "description": "Instance types"
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total count"
    },
    "family": {
      "type": "string",
      "title": "Family",
      "description": "Family name"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "family"
  ],
  "$defs": {
    "InstanceTypePublic": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Instance type identifier"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Display name"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "description": "Type description"
        },
        "vcpu": {
          "type": "integer",
          "title": "Vcpu",
          "description": "Virtual CPU count"
        },
        "memory_mb": {
          "type": "integer",
          "title": "Memory Mb",
          "description": "Memory in megabytes"
        },
        "hourly_rate": {
          "type": "string",
          "title": "Hourly Rate",
          "description": "USD per hour as decimal string"
        },
        "requires_gpu": {
          "type": "boolean",
          "title": "Requires Gpu",
          "description": "Whether GPU is required"
        },
        "default_disk_size_gb": {
          "type": "integer",
          "title": "Default Disk Size Gb",
          "description": "Default disk size in GB",
          "default": 20
        },
        "family": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Family",
          "description": "Family category (cpu, gpu)"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "vcpu",
        "memory_mb",
        "hourly_rate",
        "requires_gpu"
      ],
      "title": "InstanceTypePublic",
      "description": "Public instance type specification."
    }
  }
}