{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-principal-schema.json",
  "title": "Principal",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-accounts-api-openapi.yml#/components/schemas/Principal",
  "type": "object",
  "required": [
    "id",
    "role",
    "allowedOwners"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "visitor",
        "reader",
        "publisher",
        "admin"
      ]
    },
    "allowedOwners": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": true
}