{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/averray-com/json-schema/averray-com-verify-run-schema.json",
  "title": "VerifyRun",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/averray-com-openapi.json#/components/schemas/VerifyRun",
  "type": "object",
  "required": [
    "runId",
    "profile",
    "profileVersion",
    "status",
    "billing",
    "billingRule"
  ],
  "properties": {
    "runId": {
      "type": "string"
    },
    "profile": {
      "type": "string"
    },
    "profileVersion": {
      "type": "integer"
    },
    "profileRef": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "executed",
        "complete"
      ]
    },
    "submittedAt": {
      "type": "string",
      "format": "date-time"
    },
    "billingRule": {
      "type": "string",
      "description": "Live Verify billing rule, also advertised at resources[0].billingRule in x402 discovery."
    },
    "billing": {
      "type": "object",
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "authorized",
            "capturing",
            "captured",
            "not_captured"
          ]
        },
        "amountRaw": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "asset": {
          "type": "string"
        },
        "network": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "verdict": {
      "type": "object",
      "description": "Recovering captures expose no decisive verdict. Terminal unbilled recovery reasons: payment_cancelled_by_payer, payment_authorization_used_elsewhere, payment_authorization_expired; each has outcome inconclusive.",
      "additionalProperties": true
    },
    "receipt": {
      "type": "object",
      "additionalProperties": true
    },
    "receiptId": {
      "type": "string"
    },
    "asyncStatus": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}