﻿{
  "$schema": "https://json-schema.org",
  "$id": "https://ai-project-mark.org",
  "title": "Voluntary Multi-Holder Creator Catalog & Copyright Registration",
  "description": "Content-agnostic C2PA registration supporting solo creators or unanimous multi-owner 10,000 bps split sheets.",
  "type": "object",
  "required": [
    "catalog_id",
    "title",
    "content_sha256",
    "distribution_scope",
    "rights_holders",
    "licensing_posture"
  ],
  "properties": {
    "catalog_id": { "type": "string", "minLength": 1 },
    "title": { "type": "string", "minLength": 1 },
    "copyright_or_patent_ref": { "type": ["string", "null"] },
    "content_sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
    "perceptual_hash_hex": { "type": ["string", "null"], "pattern": "^[0-9a-f]{16,64}$" },
    "dct_claim_prefix_hex": { "type": ["string", "null"], "pattern": "^[0-9a-f]{16}$" },
    "distribution_scope": { "type": "string", "enum": ["UsNonEuOnly", "GlobalIncludingEu"] },
    "rights_holders": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["holder_did", "share_bps"],
        "properties": {
          "holder_did": { "type": "string", "pattern": "^did:[a-z0-9]+:.+" },
          "share_bps": { "type": "integer", "minimum": 1, "maximum": 10000 },
          "signature": { "type": ["object", "null"] },
          "offer_signature_base64": { "type": ["string", "null"] }
        },
        "additionalProperties": false
      }
    },
    "licensing_posture": { "type": "object" }
  },
  "additionalProperties": false
}
