{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-upload-analyze-in-schema.json",
  "title": "UploadAnalyzeIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-upload-api-openapi.yml#/components/schemas/UploadAnalyzeIn",
  "type": "object",
  "properties": {
    "file": {
      "description": "The document to analyze (PDF, JPG, or PNG)."
    },
    "type": {
      "type": "string",
      "enum": [
        "proof_of_address",
        "identity_document",
        "incorporation_document",
        "proof_of_ownership",
        "source_of_funds",
        "selfie",
        "bank_statement",
        "tax_return",
        "proof_of_income",
        "financial_statement",
        "invoice",
        "transaction_document",
        "passport",
        "pay_stub",
        "employment_letter",
        "investment",
        "crypto_exchange",
        "blockchain_wallet",
        "contract",
        "accounts_receivable",
        "merchant_processor",
        "shareholder_loan"
      ],
      "description": "The kind of document being analyzed. Selects the rule set used for the analysis."
    },
    "metadata": {
      "type": "string",
      "description": "Optional JSON object of expected values to verify against the document (e.g. {\"full_name\":\"Jane Doe\",\"date_of_birth\":\"1990-01-01\"}). When provided, a clear mismatch caps the rating at low."
    }
  },
  "required": [
    "file",
    "type"
  ]
}