{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightis-org/json-schema/rightis-org-public-registration-schema.json",
  "title": "PublicRegistration",
  "description": "A listed registration. Only what the holder chose to publish: no photos, no recordings, no contact details.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightis-org-openapi.json#/components/schemas/PublicRegistration",
  "type": "object",
  "required": [
    "registered",
    "rights_id",
    "display_name",
    "country_code",
    "registered_at",
    "allowed",
    "requires_approval",
    "denied",
    "do_not_train",
    "accepts_requests",
    "identity_verified",
    "assets",
    "profile_url"
  ],
  "properties": {
    "registered": {
      "const": true
    },
    "rights_id": {
      "type": "string",
      "pattern": "^BR-[0-9A-HJKMN-TV-Z]{4}-[0-9A-HJKMN-TV-Z]{4}-[0-9A-HJKMN-TV-Z]{4}$"
    },
    "display_name": {
      "type": "string"
    },
    "display_name_en": {
      "type": [
        "string",
        "null"
      ]
    },
    "managed_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "Agency or IP company that registered the holder and vouches for them."
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_code": {
      "type": "string"
    },
    "registered_at": {
      "type": "string",
      "format": "date-time"
    },
    "allowed": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPermissionScope"
      },
      "description": "Pre-authorised uses. A request inside these proceeds without a manual check."
    },
    "requires_approval": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPermissionScope"
      },
      "description": "Uses that reach the holder for a decision."
    },
    "denied": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPermissionScope"
      },
      "description": "Uses the holder refuses."
    },
    "do_not_train": {
      "type": "boolean",
      "description": "true means this identity must not be used as training data."
    },
    "accepts_requests": {
      "type": "boolean"
    },
    "identity_verified": {
      "type": "boolean",
      "description": "The person passed identity verification, or an agency vouches for them. Registration alone is false."
    },
    "assets": {
      "type": "object",
      "description": "Which kinds of registered material exist. The material itself is never returned.",
      "properties": {
        "face": {
          "type": "boolean"
        },
        "voice": {
          "type": "boolean"
        },
        "artwork": {
          "type": "boolean"
        },
        "persona": {
          "type": "boolean"
        }
      }
    },
    "profile_url": {
      "type": "string",
      "format": "uri"
    },
    "license_request_url": {
      "type": "string",
      "format": "uri"
    },
    "lookup_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "$defs": {
    "PublicPermissionScope": {
      "type": "string",
      "enum": [
        "ai_image_generation",
        "ai_voice_generation",
        "ai_persona_chatbot",
        "ai_training_data",
        "social_media_ad",
        "brand_campaign",
        "product_detail_page",
        "shortform_ad",
        "video_ad",
        "game_avatar",
        "international_use",
        "derivative_work"
      ]
    }
  }
}