{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentrevenuenetwork-com/json-schema/agentrevenuenetwork-com-arn-request-plan-response-schema.json",
  "title": "ArnRequestPlanResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentrevenuenetwork-com-openapi.json#/components/schemas/ArnRequestPlanResponse",
  "type": "object",
  "required": [
    "requestId",
    "state"
  ],
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid"
    },
    "state": {
      "type": "string"
    },
    "plan": {
      "type": "object",
      "description": "Present when ARN immediately resolves a plan.",
      "properties": {
        "status": {
          "type": "string"
        },
        "paymentModel": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "paymentGuide": {
          "type": "string",
          "format": "uri"
        },
        "requestBinding": {
          "type": "object",
          "properties": {
            "header": {
              "const": "ARN-REQUEST-ID"
            },
            "value": {
              "type": "string",
              "format": "uuid"
            },
            "required": {
              "type": "boolean"
            }
          }
        },
        "retryPolicy": {
          "type": "object",
          "properties": {
            "pendingStatuses": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "reusePaymentSignature": {
              "type": "boolean"
            },
            "createNewPayment": {
              "type": "boolean"
            },
            "preserveExactRequest": {
              "type": "boolean"
            }
          }
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              },
              "tool": {
                "type": "string"
              },
              "method": {
                "type": "string"
              },
              "endpoint": {
                "type": "string",
                "format": "uri"
              },
              "amount": {
                "type": "string"
              },
              "network": {
                "type": "string"
              },
              "assetAddress": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "receipt": {
      "type": "object"
    },
    "planPending": {
      "type": "boolean"
    }
  }
}