{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africanmarketos-com/json-schema/africanmarketos-com-reviewer-attestation-response-schema.json",
  "title": "ReviewerAttestationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africanmarketos-com-reviewer-attestations-api-openapi.yml#/components/schemas/ReviewerAttestationResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "recorded",
        "ok",
        "revoked",
        "forbidden",
        "not_found",
        "invalid_input",
        "conflict",
        "system_unavailable"
      ]
    },
    "code": {
      "type": "string"
    },
    "attestation": {
      "type": "object",
      "properties": {
        "attestation_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "revoked",
            "expired"
          ]
        },
        "content_sha256": {
          "type": "string"
        },
        "context_sha256": {
          "type": "string"
        },
        "account_link_authenticated": {
          "type": "boolean"
        },
        "human_presence_verified": {
          "const": false
        },
        "professional_licence_verified": {
          "const": false
        },
        "source_authenticity_verified": {
          "const": false
        },
        "scoring_eligible": {
          "const": false
        },
        "execution_authorized": {
          "const": false
        }
      },
      "additionalProperties": true
    },
    "idempotent_replay": {
      "type": "boolean"
    },
    "reference_scope": {
      "type": "object",
      "properties": {
        "tenant_id": {
          "type": "string"
        },
        "workspace_id": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "reference_secret_returned": {
      "const": false
    },
    "execution_authorized": {
      "const": false
    }
  },
  "additionalProperties": true
}