{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-domain-schema.json",
  "title": "Domain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orq-api-keys-api-openapi.yml#/components/schemas/Domain",
  "additionalProperties": false,
  "properties": {
    "allowed_scopes": {
      "description": "Project scopes this domain may be granted under.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "display_name": {
      "description": "Human-readable label.",
      "type": "string"
    },
    "extra_write_verbs": {
      "description": "Additional verbs granted only with write access.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "group": {
      "description": "Logical group the entry belongs to.",
      "enum": [
        "DOMAIN_GROUP_WORKSPACE_ADMIN",
        "DOMAIN_GROUP_PLATFORM",
        "DOMAIN_GROUP_GATEWAY"
      ],
      "type": "string"
    },
    "id": {
      "description": "Stable domain identifier, used as the key in access and as the verb prefix in resolved permissions.",
      "type": "string"
    },
    "readable": {
      "description": "Whether the domain can be granted read access.",
      "type": "boolean"
    },
    "writable": {
      "description": "Whether the domain can be granted write access.",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "display_name",
    "group",
    "allowed_scopes",
    "readable",
    "writable",
    "extra_write_verbs"
  ],
  "type": "object"
}