{
  "generated_from": "actual AiCE request validators; regenerate with bun scripts/generate-publisher-contract.ts",
  "article_sources_v2": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "oneOf": [
      {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "schema": {
                "type": "string",
                "const": "aice-rich-article-v2"
              },
              "request_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "canonical_article_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "canonical_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "publisher_tenant_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "processing": {
                "type": "string",
                "enum": [
                  "sync",
                  "async"
                ]
              },
              "action": {
                "type": "string",
                "const": "ingest"
              },
              "review_requested": {
                "type": "boolean",
                "const": true
              },
              "canonical_url": {
                "type": "string",
                "maxLength": 2000,
                "format": "uri"
              },
              "bank_version": {
                "type": "string",
                "const": "article-bank-2026.1"
              },
              "doi": {
                "type": "string",
                "maxLength": 255,
                "pattern": "^10\\.\\d{4,9}\\/\\S+$"
              },
              "licence": {
                "type": "string",
                "minLength": 2,
                "maxLength": 1000
              },
              "content_format": {
                "type": "string",
                "enum": [
                  "jats",
                  "json"
                ]
              },
              "package": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1500,
                    "maxLength": 120000
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "images": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "src": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "content_type": {
                          "type": "string",
                          "enum": [
                            "image/jpeg",
                            "image/png",
                            "image/webp"
                          ]
                        },
                        "content_base64": {
                          "type": "string",
                          "minLength": 16,
                          "maxLength": 700000
                        },
                        "sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "licensed": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "src",
                        "alt",
                        "caption",
                        "content_type",
                        "content_base64",
                        "sha256",
                        "licensed"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "tables": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "rows": {
                          "maxItems": 250,
                          "type": "array",
                          "items": {
                            "minItems": 1,
                            "maxItems": 40,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4000
                            }
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "maxLength": 80
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 2000
                          }
                        }
                      },
                      "required": [
                        "caption",
                        "rows"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "figures": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "metadata": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "maxLength": 80
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 2000
                          }
                        }
                      },
                      "required": [
                        "id",
                        "caption",
                        "alt",
                        "metadata"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "order": {
                    "minItems": 1,
                    "maxItems": 81,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "text",
                            "image",
                            "table"
                          ]
                        },
                        "index": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 40
                        }
                      },
                      "required": [
                        "type",
                        "index"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "title",
                  "text",
                  "text_sha256",
                  "images",
                  "tables",
                  "order"
                ],
                "additionalProperties": false
              },
              "authority": {
                "type": "object",
                "properties": {
                  "rights_confirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "complete": {
                    "type": "boolean",
                    "const": true
                  },
                  "publisher": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 1000
                  },
                  "captured_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "retain_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 90
                  },
                  "qualifying_activity": {
                    "type": "object",
                    "properties": {
                      "approved_minutes": {
                        "type": "number",
                        "const": 15
                      },
                      "authority_name": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 200
                      },
                      "evidence_reference": {
                        "type": "string",
                        "minLength": 20,
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "approved_minutes",
                      "authority_name",
                      "evidence_reference"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "rights_confirmed",
                  "complete",
                  "publisher",
                  "reference",
                  "captured_at",
                  "retain_days"
                ],
                "additionalProperties": false
              },
              "allocation_mode": {
                "type": "string",
                "const": "exact"
              },
              "proposal": {
                "type": "object",
                "properties": {
                  "points": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "qualifying_minutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 600
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rationale": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000
                  },
                  "source_quote": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 500
                  }
                },
                "required": [
                  "points",
                  "qualifying_minutes",
                  "rationale",
                  "source_quote"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "schema",
              "request_id",
              "canonical_article_id",
              "version",
              "canonical_sha256",
              "publisher_tenant_id",
              "action",
              "review_requested",
              "canonical_url",
              "bank_version",
              "licence",
              "content_format",
              "package",
              "authority",
              "proposal"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "schema": {
                "type": "string",
                "const": "aice-rich-article-v2"
              },
              "request_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "canonical_article_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "canonical_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "publisher_tenant_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              },
              "processing": {
                "type": "string",
                "enum": [
                  "sync",
                  "async"
                ]
              },
              "action": {
                "type": "string",
                "const": "ingest"
              },
              "review_requested": {
                "type": "boolean",
                "const": true
              },
              "canonical_url": {
                "type": "string",
                "maxLength": 2000,
                "format": "uri"
              },
              "bank_version": {
                "type": "string",
                "const": "article-bank-2026.1"
              },
              "doi": {
                "type": "string",
                "maxLength": 255,
                "pattern": "^10\\.\\d{4,9}\\/\\S+$"
              },
              "licence": {
                "type": "string",
                "minLength": 2,
                "maxLength": 1000
              },
              "content_format": {
                "type": "string",
                "enum": [
                  "jats",
                  "json"
                ]
              },
              "package": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1500,
                    "maxLength": 120000
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "images": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "src": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "content_type": {
                          "type": "string",
                          "enum": [
                            "image/jpeg",
                            "image/png",
                            "image/webp"
                          ]
                        },
                        "content_base64": {
                          "type": "string",
                          "minLength": 16,
                          "maxLength": 700000
                        },
                        "sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "licensed": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "src",
                        "alt",
                        "caption",
                        "content_type",
                        "content_base64",
                        "sha256",
                        "licensed"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "tables": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "rows": {
                          "maxItems": 250,
                          "type": "array",
                          "items": {
                            "minItems": 1,
                            "maxItems": 40,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4000
                            }
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "maxLength": 80
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 2000
                          }
                        }
                      },
                      "required": [
                        "caption",
                        "rows"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "figures": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "caption": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "metadata": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "maxLength": 80
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 2000
                          }
                        }
                      },
                      "required": [
                        "id",
                        "caption",
                        "alt",
                        "metadata"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "order": {
                    "minItems": 1,
                    "maxItems": 81,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "text",
                            "image",
                            "table"
                          ]
                        },
                        "index": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 40
                        }
                      },
                      "required": [
                        "type",
                        "index"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "title",
                  "text",
                  "text_sha256",
                  "images",
                  "tables",
                  "order"
                ],
                "additionalProperties": false
              },
              "authority": {
                "type": "object",
                "properties": {
                  "rights_confirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "complete": {
                    "type": "boolean",
                    "const": true
                  },
                  "publisher": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 1000
                  },
                  "captured_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "retain_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 90
                  },
                  "qualifying_activity": {
                    "type": "object",
                    "properties": {
                      "approved_minutes": {
                        "type": "number",
                        "const": 15
                      },
                      "authority_name": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 200
                      },
                      "evidence_reference": {
                        "type": "string",
                        "minLength": 20,
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "approved_minutes",
                      "authority_name",
                      "evidence_reference"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "rights_confirmed",
                  "complete",
                  "publisher",
                  "reference",
                  "captured_at",
                  "retain_days"
                ],
                "additionalProperties": false
              },
              "allocation_mode": {
                "type": "string",
                "const": "up_to"
              },
              "proposal": {
                "type": "object",
                "properties": {
                  "points": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0.5
                      },
                      {
                        "type": "number",
                        "const": 1
                      }
                    ]
                  },
                  "qualifying_minutes": {
                    "type": "null"
                  },
                  "rationale": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000
                  },
                  "source_quote": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 500
                  }
                },
                "required": [
                  "points",
                  "qualifying_minutes",
                  "rationale",
                  "source_quote"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "schema",
              "request_id",
              "canonical_article_id",
              "version",
              "canonical_sha256",
              "publisher_tenant_id",
              "action",
              "review_requested",
              "canonical_url",
              "bank_version",
              "licence",
              "content_format",
              "package",
              "authority",
              "allocation_mode",
              "proposal"
            ],
            "additionalProperties": false
          }
        ]
      },
      {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "result"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          }
        },
        "required": [
          "schema",
          "request_id",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id",
          "action",
          "bank_version"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "processing": {
            "type": "string",
            "enum": [
              "sync",
              "async"
            ]
          },
          "action": {
            "type": "string",
            "const": "resume"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          }
        },
        "required": [
          "schema",
          "request_id",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id",
          "action",
          "source_id",
          "bank_version"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "revoke"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          },
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500
          }
        },
        "required": [
          "schema",
          "request_id",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id",
          "action",
          "source_id",
          "bank_version",
          "reason"
        ],
        "additionalProperties": false
      }
    ]
  },
  "article_assessments_v2": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "prepare"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          },
          "learner": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "guest",
                  "linked"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              }
            },
            "required": [
              "kind",
              "id"
            ],
            "additionalProperties": false
          },
          "consent": {
            "type": "object",
            "properties": {
              "granted": {
                "type": "boolean",
                "const": true
              },
              "purpose": {
                "type": "string",
                "const": "full_article_assessment"
              },
              "captured_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "granted",
              "purpose",
              "captured_at"
            ],
            "additionalProperties": false
          },
          "award_context": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "string",
                "const": "aice-material-award-context-v1"
              },
              "policy_version": {
                "type": "string",
                "const": "aice-assessed-material-2026.1"
              },
              "owner": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "partner_account"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  }
                },
                "required": [
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "schema",
              "policy_version",
              "owner"
            ],
            "additionalProperties": false
          },
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          }
        },
        "required": [
          "request_id",
          "action",
          "source_id",
          "bank_version",
          "learner",
          "consent",
          "schema",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "submit"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          },
          "form_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "attempt_token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "learner": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "guest",
                  "linked"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              }
            },
            "required": [
              "kind",
              "id"
            ],
            "additionalProperties": false
          },
          "answers": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 3
            }
          },
          "completion": {
            "type": "object",
            "properties": {
              "reviewed": {
                "type": "boolean",
                "const": true
              },
              "reviewed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "evidence_reference": {
                "type": "string",
                "minLength": 10,
                "maxLength": 1000
              }
            },
            "required": [
              "reviewed",
              "reviewed_at",
              "evidence_reference"
            ],
            "additionalProperties": false
          },
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          }
        },
        "required": [
          "request_id",
          "action",
          "source_id",
          "bank_version",
          "form_id",
          "attempt_token",
          "learner",
          "answers",
          "completion",
          "schema",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "result"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          },
          "form_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "attempt_token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "learner": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "guest",
                  "linked"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              }
            },
            "required": [
              "kind",
              "id"
            ],
            "additionalProperties": false
          },
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          }
        },
        "required": [
          "request_id",
          "action",
          "source_id",
          "bank_version",
          "form_id",
          "attempt_token",
          "learner",
          "schema",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "action": {
            "type": "string",
            "const": "certificate-evidence"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "bank_version": {
            "type": "string",
            "const": "article-bank-2026.1"
          },
          "form_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "attempt_token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "learner": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "guest",
                  "linked"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              }
            },
            "required": [
              "kind",
              "id"
            ],
            "additionalProperties": false
          },
          "recipient": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 2,
                "maxLength": 200
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "name",
              "email"
            ],
            "additionalProperties": false
          },
          "identity_consent": {
            "type": "object",
            "properties": {
              "granted": {
                "type": "boolean",
                "const": true
              },
              "purpose": {
                "type": "string",
                "const": "share_identity_with_certificate_issuer"
              },
              "captured_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "granted",
              "purpose",
              "captured_at"
            ],
            "additionalProperties": false
          },
          "schema": {
            "type": "string",
            "const": "aice-rich-article-v2"
          },
          "canonical_article_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "publisher_tenant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          }
        },
        "required": [
          "request_id",
          "action",
          "source_id",
          "bank_version",
          "form_id",
          "attempt_token",
          "learner",
          "recipient",
          "identity_consent",
          "schema",
          "canonical_article_id",
          "version",
          "canonical_sha256",
          "publisher_tenant_id"
        ],
        "additionalProperties": false
      }
    ]
  },
  "linked_learning_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "schema": {
        "type": "string",
        "const": "aice-self-directed-v1"
      },
      "subject": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[a-zA-Z0-9._:-]+$"
      },
      "request_id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[a-zA-Z0-9._:-]+$"
      },
      "action": {
        "type": "string",
        "const": "resume"
      },
      "evaluation_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "original_request": {
        "type": "string",
        "minLength": 1,
        "maxLength": 65536
      }
    },
    "required": [
      "schema",
      "subject",
      "request_id",
      "action",
      "evaluation_id",
      "original_request"
    ],
    "additionalProperties": false
  },
  "guest_and_provider_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "schema": {
        "type": "string",
        "const": "aice-guest-assessment-v1"
      },
      "guest_id": {
        "type": "string",
        "minLength": 16,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9._:-]+$"
      },
      "request_id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9._:-]+$"
      },
      "action": {
        "type": "string",
        "const": "resume"
      },
      "evaluation_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "original_request": {
        "type": "string",
        "minLength": 1,
        "maxLength": 65536
      }
    },
    "required": [
      "schema",
      "guest_id",
      "request_id",
      "action",
      "evaluation_id",
      "original_request"
    ],
    "additionalProperties": false
  },
  "course_review_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "schema": {
        "type": "string",
        "const": "aice-course-review-v1"
      },
      "action": {
        "type": "string",
        "const": "resume"
      },
      "request_id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9._:-]+$"
      },
      "review_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "original_request": {
        "type": "string",
        "minLength": 1,
        "maxLength": 65536
      }
    },
    "required": [
      "schema",
      "action",
      "request_id",
      "review_id",
      "original_request"
    ],
    "additionalProperties": false
  }
}
