{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspark/main/json-schema/lightspark-agent-device-code-schema.json",
  "title": "AgentDeviceCode",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspark-agent-management-api-openapi.yml#/components/schemas/AgentDeviceCode",
  "type": "object",
  "required": [
    "code",
    "agentId",
    "expiresAt",
    "redeemed"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Human-readable device code used to install and connect the agent software."
    },
    "agentId": {
      "type": "string",
      "description": "The agent this device code belongs to."
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when this device code expires."
    },
    "redeemed": {
      "type": "boolean",
      "description": "Whether this device code has already been redeemed by the agent."
    }
  }
}