{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-org-delegation-grant-out-schema.json",
  "title": "OrgDelegationGrantOut",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-organisations-api-openapi.yml#/components/schemas/OrgDelegationGrantOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "resource": {
      "type": "string",
      "title": "Resource"
    },
    "allowed_scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Allowed Scopes"
    },
    "min_role": {
      "type": "string",
      "title": "Min Role"
    },
    "max_ttl_seconds": {
      "type": "integer",
      "title": "Max Ttl Seconds"
    },
    "member_user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Member User Id"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "resource",
    "allowed_scopes",
    "min_role",
    "max_ttl_seconds",
    "is_active",
    "created_at"
  ]
}