{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-signed-workflow-end-request-schema.json",
  "title": "SignedWorkflowEndRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-external-agents-api-openapi.yml#/components/schemas/SignedWorkflowEndRequest",
  "properties": {
    "wallet_address": {
      "type": "string",
      "title": "Wallet Address",
      "description": "Wallet address owning the credits"
    },
    "session_nonce": {
      "type": "string",
      "title": "Session Nonce",
      "description": "Session nonce issued by server"
    },
    "request_id": {
      "type": "string",
      "title": "Request Id",
      "description": "Client-generated unique id for this call"
    },
    "signature": {
      "type": "string",
      "title": "Signature",
      "description": "Signature over standardized message"
    },
    "workflow_session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Session Id",
      "description": "Optional workflow session id to end (defaults to active session)"
    },
    "outcome": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "completed",
            "failed"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Outcome",
      "description": "Agent-declared outcome; omitted by legacy clients means completed"
    }
  },
  "type": "object",
  "required": [
    "wallet_address",
    "session_nonce",
    "request_id",
    "signature"
  ]
}