{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/goyondo-run/json-schema/goyondo-run-device-auth-request-schema.json",
  "title": "DeviceAuthRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/goyondo-run-api-openapi.json#/components/schemas/DeviceAuthRequest",
  "type": "object",
  "required": [
    "agent_name",
    "requested_scopes"
  ],
  "properties": {
    "agent_name": {
      "type": "string"
    },
    "requested_scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "trips:read",
          "trips:write",
          "bookings:read",
          "bookings:write",
          "preferences:read",
          "group_trips:read",
          "group_trips:write"
        ]
      }
    }
  }
}