{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://developer.reits.tech/schemas/auth-s08-r02-c02-owner-authority-contribution.v1.schema.json",
  "title": "Auth S08 R02 C02 单席公开权威贡献包",
  "description": "Owner 在自有控制域生成并离线预检的公开贡献包；不是 Authority Binding、Owner Ballot、签名或生产执行许可。",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "dossierDigest",
    "authority"
  ],
  "properties": {
    "schemaVersion": {
      "const": "developer.reits.tech/auth-s08-r02-c02-owner-authority-contribution/v1"
    },
    "dossierDigest": {
      "const": "684783317dc35c1c7a1303e57b7143278d1f5fb2e3ba743671c6555f4a883f6b"
    },
    "authority": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ownerId",
        "identityRef",
        "keyRef",
        "publicKey",
        "delegationAllowed"
      ],
      "properties": {
        "ownerId": {
          "enum": [
            "AUTH",
            "SECURITY",
            "SRE_DBA",
            "QA_WITNESS"
          ]
        },
        "identityRef": {
          "type": "string",
          "format": "uri",
          "minLength": 8,
          "maxLength": 512
        },
        "keyRef": {
          "type": "string",
          "format": "uri",
          "minLength": 8,
          "maxLength": 512
        },
        "publicKey": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{43}$",
          "description": "32 字节 Ed25519 公钥的无填充 base64url 编码。"
        },
        "delegationAllowed": {
          "const": false
        }
      }
    }
  }
}
