{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/main/json-schema/acronis-device-authorization-approval-response-schema.json",
  "title": "deviceAuthorizationApprovalResponse",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acronis-idp-api-openapi.yml#/components/schemas/deviceAuthorizationApprovalResponse",
  "type": "object",
  "required": [
    "client_id",
    "display_name",
    "scope"
  ],
  "properties": {
    "client_id": {
      "$ref": "#/$defs/uuid"
    },
    "display_name": {
      "description": "Device display name (machine name, cluster ID, etc.).",
      "type": "string"
    },
    "scope": {
      "description": "Scopes requested or authorized by the end user for the client.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tenant_id": {
      "description": "ID of the scoped tenant.",
      "type": "string"
    },
    "tenant_name": {
      "description": "Name of the scoped tenant.",
      "type": "string"
    },
    "is_current_tenant": {
      "description": "True if the tenant ID provided by ApiGW is in the path of the scoped tenant ID; false otherwise.",
      "type": "boolean"
    }
  },
  "$defs": {
    "uuid": {
      "type": "string",
      "pattern": "[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}",
      "minLength": 36,
      "maxLength": 36
    }
  }
}