{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-node-ref-schema.json",
  "title": "NodeRef",
  "description": "Minimal node/teepod reference for embedding in responses.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-attestations-api-openapi.yml#/components/schemas/NodeRef",
  "properties": {
    "object_type": {
      "type": "string",
      "const": "node",
      "title": "Object Type",
      "description": "Fixed value 'node'",
      "default": "node"
    },
    "id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id",
      "description": "Teepod numeric ID"
    },
    "node_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Node Id",
      "description": "Physical node numeric ID"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Node display name"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region",
      "description": "Region identifier"
    },
    "device_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Id",
      "description": "Device ID"
    },
    "ppid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ppid",
      "description": "PPID"
    },
    "status": {
      "anyOf": [
        {
          "$ref": "#/$defs/TeepodStatus"
        },
        {
          "type": "null"
        }
      ],
      "description": "Node status"
    },
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version",
      "description": "Teepod version"
    }
  },
  "type": "object",
  "$defs": {
    "TeepodStatus": {
      "type": "string",
      "enum": [
        "ONLINE",
        "OFFLINE",
        "MAINTENANCE"
      ],
      "title": "TeepodStatus"
    }
  }
}