{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-device-auth-init-response-schema.json",
  "title": "DeviceAuthInitResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-device-auth-api-openapi.yml#/components/schemas/DeviceAuthInitResponse",
  "properties": {
    "device_code": {
      "type": "string",
      "title": "Device Code"
    },
    "user_code": {
      "type": "string",
      "title": "User Code"
    },
    "verification_path": {
      "type": "string",
      "title": "Verification Path",
      "description": "Relative web-UI path (/pair/device). The client joins it with the origin it was configured to reach; the server is origin-agnostic."
    },
    "verification_path_complete": {
      "type": "string",
      "title": "Verification Path Complete",
      "description": "Same path with ?user_code= appended, for QR display."
    },
    "expires_in": {
      "type": "integer",
      "title": "Expires In"
    },
    "interval": {
      "type": "integer",
      "title": "Interval"
    }
  },
  "type": "object",
  "required": [
    "device_code",
    "user_code",
    "verification_path",
    "verification_path_complete",
    "expires_in",
    "interval"
  ]
}