{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-device-authorization-response-schema.json",
  "title": "Device authorization response",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-auth-openapi.yml#/components/schemas/DeviceAuthorizationResponse",
  "type": "object",
  "required": [
    "device_code",
    "user_code",
    "verification_uri",
    "verification_uri_complete",
    "expires_in"
  ],
  "properties": {
    "device_code": {
      "type": "string"
    },
    "user_code": {
      "type": "string",
      "description": "Shown to the user; format `****-****`."
    },
    "verification_uri": {
      "type": "string",
      "format": "uri"
    },
    "verification_uri_complete": {
      "type": "string",
      "format": "uri",
      "description": "`verification_uri` with the `user_code` pre-filled."
    },
    "expires_in": {
      "type": "integer",
      "description": "Seconds until the device code expires."
    },
    "interval": {
      "type": "integer",
      "description": "Minimum seconds between `/token` polls."
    }
  }
}