{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://developer.reits.tech/schemas/auth-s08-r02-c02-owner-authority-contribution-template.v1.schema.json",
  "title": "Auth S08 R02 C02 单席公开权威贡献模板",
  "description": "这是未填写交接模板，不是 Authority Binding、Owner Ballot 或生产执行许可。",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "kitSchemaVersion",
    "templateState",
    "ownerId",
    "role",
    "dossierDigest",
    "authorityContribution",
    "ownerInstructions",
    "submissionTarget",
    "validationState"
  ],
  "properties": {
    "kitSchemaVersion": {
      "const": "developer.reits.tech/auth-s08-r02-c02-owner-authority-contribution-template/v1"
    },
    "templateState": {
      "const": "UNFILLED_NOT_AN_AUTHORITY_BINDING"
    },
    "ownerId": {
      "enum": [
        "AUTH",
        "SECURITY",
        "SRE_DBA",
        "QA_WITNESS"
      ]
    },
    "role": {
      "type": "string",
      "minLength": 4
    },
    "dossierDigest": {
      "const": "684783317dc35c1c7a1303e57b7143278d1f5fb2e3ba743671c6555f4a883f6b"
    },
    "authorityContribution": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ownerId",
        "identityRef",
        "keyRef",
        "publicKey",
        "delegationAllowed"
      ],
      "properties": {
        "ownerId": {
          "enum": [
            "AUTH",
            "SECURITY",
            "SRE_DBA",
            "QA_WITNESS"
          ]
        },
        "identityRef": {
          "type": "null"
        },
        "keyRef": {
          "type": "null"
        },
        "publicKey": {
          "type": "null"
        },
        "delegationAllowed": {
          "const": false
        }
      }
    },
    "ownerInstructions": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "items": {
        "type": "string",
        "minLength": 12
      }
    },
    "submissionTarget": {
      "const": "OUT_OF_BAND_OWNER_CONTROLLED_CHANNEL"
    },
    "validationState": {
      "const": "NOT_RUN"
    }
  }
}
