{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proofable-me/json-schema/proofable-me-verification-accepted-response-schema.json",
  "title": "VerificationAcceptedResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proofable-me-openapi.yml#/components/schemas/VerificationAcceptedResponse",
  "type": "object",
  "required": [
    "success",
    "status",
    "message",
    "data"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "status": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "qHash": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{64}$"
        },
        "proofUrl": {
          "type": "string",
          "description": "Standardized URL to fetch the proof record (GET /api/v1/proofs/{qHash})"
        },
        "receipt": {
          "$ref": "#/$defs/ReceiptDescriptor"
        },
        "portableProof": {
          "$ref": "#/$defs/PortableProofEnvelope"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true,
  "$defs": {
    "PortableProofEnvelope": {
      "type": "object",
      "description": "Complete signed Proofable envelope. The signer may be a user wallet or the Proofable service issuing its own statement; the proof owner may differ. Owner exact-qHash reads return it. Anonymous exact-qHash reads return it only when the proof is public and portable disclosure is enabled.",
      "required": [
        "qHash",
        "did",
        "walletAddress",
        "verifierIds",
        "data",
        "signedTimestamp",
        "signature",
        "signatureMethod"
      ],
      "properties": {
        "qHash": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{64}$"
        },
        "did": {
          "type": "string"
        },
        "walletAddress": {
          "type": "string"
        },
        "verifierIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "data": {
          "type": "object",
          "additionalProperties": true
        },
        "signedTimestamp": {
          "type": "number"
        },
        "chainId": {
          "type": "number"
        },
        "chain": {
          "type": "string"
        },
        "signature": {
          "type": "string"
        },
        "signatureMethod": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ReceiptDescriptor": {
      "type": "object",
      "description": "New signed issuance uses caip-380-envelope. The neus-receipt value remains only for historical and not-yet-migrated response compatibility.",
      "required": [
        "format",
        "portable"
      ],
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "caip-380-envelope",
            "neus-receipt"
          ]
        },
        "portable": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}