{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wever Labs Agent Rail Checkout Request",
  "type": "object",
  "required": [
    "schema_version",
    "requested_tool",
    "workflow_context"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "agent_id": {
      "type": "string"
    },
    "agent_name": {
      "type": "string"
    },
    "requested_tool": {
      "type": "string",
      "enum": [
        "tokenops",
        "financeops",
        "energyops",
        "packetops",
        "distributionops"
      ]
    },
    "checkout_intent": {
      "type": "string",
      "enum": [
        "purchase_rail_run",
        "inspect_before_purchase",
        "request_quote",
        "provider_prep"
      ]
    },
    "payment_reference": {
      "type": "string"
    },
    "requester": {
      "type": "object"
    },
    "workflow_context": {
      "type": "string"
    },
    "available_context": {
      "type": "string"
    },
    "requested_return_package": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "callback_preference": {
      "type": "string"
    }
  }
}