{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assinafy-com-br/json-schema/assinafy-com-br-signer-identity-review-schema.json",
  "title": "SignerIdentityReview",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assinafy-com-br-openapi.json#/components/schemas/SignerIdentityReview",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "Pending",
        "InReview",
        "Approved",
        "Declined",
        "Expired",
        "Abandoned"
      ]
    },
    "provider": {
      "type": "string",
      "enum": [
        "AssinafyVerify"
      ]
    },
    "verification_method": {
      "type": "string",
      "enum": [
        "IdDocumentFaceMatchBasic"
      ]
    },
    "reason_codes": {
      "description": "Why the provider sent it to review, in its order. Unknown codes have the code as description.",
      "type": "array",
      "items": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "evidence_available": {
      "type": "boolean"
    },
    "expected": {
      "description": "What the signer was registered with.",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "cpf": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "document": {
      "description": "What was read from the document.",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "cpf": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "matches": {
      "properties": {
        "cpf": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "name": {
          "description": "Name similarity, 0-1.",
          "type": [
            "number",
            "null"
          ]
        },
        "birth_date": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "checks": {
      "type": "array",
      "items": {
        "properties": {
          "name": {
            "type": "string"
          },
          "result": {
            "description": "pass, review, skipped, or a failure result.",
            "type": "string"
          },
          "score": {
            "type": [
              "number",
              "null"
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object"
      }
    },
    "images": {
      "description": "The evidence images the reviewer can open with **Signer identity review image**, in display order: `document_front`, `document_back`, `document_pdf`, `face`. Only while `status` is `InReview`; empty once decided.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "document_front",
          "document_back",
          "document_pdf",
          "face"
        ]
      }
    },
    "ruleset_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "evidence_sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewed_by": {
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "reviewed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "review_note": {
      "type": [
        "string",
        "null"
      ]
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "type": "object"
}