---
updatedAt: 2026-05-28T07:49:47.000Z
agentTools:
  projectIndex: https://finp2p-docs.ownera.io/llms.txt
---

# callback operation

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Operational API",
    "description": "This is the operational API reference for adapter development.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "operation",
      "description": "sync long running operation results with the finp2p node"
    }
  ],
  "paths": {
    "/operations/callback/{cid}": {
      "post": {
        "tags": [
          "operation"
        ],
        "summary": "callback operation",
        "operationId": "callback operation",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "name": "cid",
            "in": "path",
            "description": "correlation id of operation",
            "required": true,
            "schema": {
              "type": "string",
              "x-allowEmpty": true
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operationStatusCallback"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful operation"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1002,
                      "message": "Invalid request format"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 3000,
                      "message": "Authentication error"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 3400,
                      "message": "Access denied"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1100,
                      "message": "Resource not found"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2000,
                      "message": "General server error"
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 6101,
                      "message": "Failed to connect to external service"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2002,
                      "message": "Service unavailable"
                    }
                  ]
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2003,
                      "message": "Gateway timeout"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "transactionDetails": {
        "description": "additional ledger specific",
        "type": "object",
        "required": [
          "transactionId"
        ],
        "properties": {
          "transactionId": {
            "type": "string",
            "description": "The Transaction id on the underlying ledger",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "operationId": {
            "type": "string",
            "description": "The Operation id",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "proofPolicy": {
        "description": "additional proof information attached to a receipt",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "signatureProofPolicy": "#/components/schemas/signatureProofPolicy",
            "noProofPolicy": "#/components/schemas/noProofPolicy"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/signatureProofPolicy"
          },
          {
            "$ref": "#/components/schemas/noProofPolicy"
          }
        ]
      },
      "noProofPolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "noProofPolicy"
            ]
          }
        },
        "description": "no proof validation required for this policy"
      },
      "signatureProofPolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "signatureProofPolicy"
            ]
          },
          "signature": {
            "$ref": "#/components/schemas/signature"
          }
        }
      },
      "operationStatusCallback": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/operationStatus"
          },
          {
            "$ref": "#/components/schemas/schemas_operationStatus"
          }
        ]
      },
      "nonce": {
        "type": "string",
        "description": "32 bytes buffer (24 randomly generated bytes by the client + 8 bytes epoch timestamp seconds) encoded to hex:\n\n  const nonce = Buffer.alloc(32);\n  nonce.fill(crypto.randomBytes(24), 0, 24);\n\n  const nowEpochSeconds = Math.floor(new Date().getTime() / 1000);\n  const t = BigInt(nowEpochSeconds);\n  nonce.writeBigInt64BE(t, 24);\n",
        "x-allowEmpty": true
      },
      "APIError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code indicating the specific failure - for more information see [API Errors](./api-error-codes-reference).\n"
          },
          "message": {
            "type": "string",
            "description": "A descriptive message providing context about the error.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "APIErrors": {
        "type": "object",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/APIError"
            }
          }
        }
      },
      "randomPollingInterval": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "random"
            ]
          }
        }
      },
      "absolutePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "time"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "absolute"
            ]
          },
          "time": {
            "type": "integer",
            "description": "absolute time as epoch time seconds"
          }
        }
      },
      "relativePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "duration"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relative"
            ]
          },
          "duration": {
            "type": "string",
            "description": "ISO-8601 duration format",
            "example": "PT5M (5Min duration), P1DT30M (1 Day and 30 Minutes )",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "pollingResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "polling"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "poll"
            ]
          },
          "polling": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/randomPollingInterval"
              },
              {
                "$ref": "#/components/schemas/absolutePollingInterval"
              },
              {
                "$ref": "#/components/schemas/relativePollingInterval"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "random": "#/components/schemas/randomPollingInterval",
                "absolute": "#/components/schemas/absolutePollingInterval",
                "relative": "#/components/schemas/relativePollingInterval"
              }
            }
          }
        }
      },
      "callbackEndpoint": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "endpoint"
            ]
          }
        }
      },
      "callbackResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "callback"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "callback"
            ]
          },
          "callback": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/callbackEndpoint"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "endpoint": "#/components/schemas/callbackEndpoint"
              }
            }
          }
        }
      },
      "OperationMetadata": {
        "type": "object",
        "description": "additional metadata regarding the operation",
        "properties": {
          "operationResponseStrategy": {
            "description": "denote the expected response strategy of the operation, i.e. how would completion and results of the operation should be handled \noptional, if not provided [polling strategy](#/components/schema/pollingResultsStrategy) will be use with [random interval](#/components/schema/randomPollingInterval)\n",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/pollingResultsStrategy"
              },
              {
                "$ref": "#/components/schemas/callbackResultsStrategy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "poll": "#/components/schemas/pollingResultsStrategy",
                "callback": "#/components/schemas/callbackResultsStrategy"
              }
            }
          }
        }
      },
      "OperationBase": {
        "type": "object",
        "required": [
          "cid",
          "isCompleted"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id which identify the operation",
            "x-allowEmpty": true
          },
          "isCompleted": {
            "type": "boolean",
            "description": "flag indicating if the operation completed, if true then error or response must be present (but not both)",
            "default": false
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/OperationMetadata"
          }
        }
      },
      "createAssetOperationErrorInformation": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "Business error code for the failed create. Well-known values: 7311 (LedgerBindingNotSupportedErr) — the ledger does not support creating an asset on the requested network/standard.\n"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "ledgerAssetIdentifierTypeCAIP-19": {
        "type": "object",
        "required": [
          "assetIdentifierType",
          "tokenId"
        ],
        "properties": {
          "assetIdentifierType": {
            "type": "string",
            "enum": [
              "CAIP-19"
            ],
            "description": "Classification type standards"
          },
          "network": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "tokenId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "standard": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "ledgerAssetIdentifier": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ledgerAssetIdentifierTypeCAIP-19"
          }
        ],
        "discriminator": {
          "propertyName": "assetIdentifierType",
          "mapping": {
            "CAIP-19": "#/components/schemas/ledgerAssetIdentifierTypeCAIP-19"
          }
        }
      },
      "finP2PEVMOperatorDetails": {
        "type": "object",
        "properties": {
          "FinP2POperatorContractAddress": {
            "type": "string",
            "description": "The FinP2P Operator Contract Address",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "allowanceRequired": {
            "type": "boolean",
            "description": "Indicates if allowance is required"
          }
        }
      },
      "contractDetails": {
        "type": "object",
        "required": [
          "address",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "the type of the identifier",
            "enum": [
              "contractDetails"
            ],
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "address": {
            "type": "string",
            "description": "the address",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "TokenStandard": {
            "type": "string",
            "description": "The standard of the token (e.g., ERC20, ERC721)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "additionalContractDetails": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/finP2PEVMOperatorDetails"
              }
            ]
          }
        }
      },
      "ledgerAssetInfo": {
        "type": "object",
        "required": [
          "ledgerIdentifier"
        ],
        "properties": {
          "ledgerIdentifier": {
            "$ref": "#/components/schemas/ledgerAssetIdentifier"
          },
          "ledgerReference": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/contractDetails"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "contractDetails": "#/components/schemas/contractDetails"
              }
            }
          }
        }
      },
      "assetCreateResponse": {
        "type": "object",
        "required": [
          "ledgerAssetInfo"
        ],
        "properties": {
          "ledgerAssetInfo": {
            "$ref": "#/components/schemas/ledgerAssetInfo"
          }
        }
      },
      "createAssetOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "$ref": "#/components/schemas/createAssetOperationErrorInformation"
              },
              "response": {
                "$ref": "#/components/schemas/assetCreateResponse"
              }
            }
          }
        ]
      },
      "operationStatusCreateAsset": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "createAsset"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/createAssetOperation"
          }
        }
      },
      "RegulationError": {
        "type": "object",
        "required": [
          "regulationType",
          "details"
        ],
        "properties": {
          "regulationType": {
            "type": "string",
            "description": "the type of regulation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "details": {
            "type": "string",
            "description": "actionable details of the error",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "depositOperationErrorInformation": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "1 for failure in regApps validation, 4 failure in signature verification"
          },
          "message": {
            "type": "string",
            "x-allowEmpty": true
          },
          "regulationErrorDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegulationError"
            }
          }
        }
      },
      "finId": {
        "type": "string",
        "format": "finid",
        "description": "Existing owner hex representation of a secp256k1 public key 33 bytes compressed",
        "pattern": "^[0-9a-f]*$",
        "minLength": 64,
        "maxLength": 66,
        "x-autoMinLength": true
      },
      "finIdAccountBase": {
        "type": "object",
        "required": [
          "finId",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finId"
            ]
          },
          "finId": {
            "$ref": "#/components/schemas/finId"
          }
        }
      },
      "depositPayoutAccount": {
        "type": "object",
        "required": [
          "finId",
          "account"
        ],
        "properties": {
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/finIdAccountBase"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "finId": "#/components/schemas/finIdAccountBase"
              }
            }
          }
        }
      },
      "finp2pAssetWithType": {
        "type": "object",
        "required": [
          "type",
          "resourceId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finp2p"
            ]
          },
          "resourceId": {
            "type": "string",
            "pattern": "^[^:](?:.+):102:(?:.+)",
            "description": "unique resource ID of the FinP2P asset"
          }
        }
      },
      "customAsset": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom"
            ]
          }
        }
      },
      "depositAsset": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "finp2p": "#/components/schemas/finp2pAssetWithType",
            "custom": "#/components/schemas/customAsset"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/finp2pAssetWithType"
          },
          {
            "$ref": "#/components/schemas/customAsset"
          }
        ]
      },
      "ibanAccountDetails": {
        "type": "object",
        "required": [
          "type",
          "iban"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "iban"
            ]
          },
          "iban": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "bicAccountDetails": {
        "type": "object",
        "required": [
          "type",
          "bic",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "bic"
            ]
          },
          "bic": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "swiftAccountDetails": {
        "type": "object",
        "deprecated": true,
        "description": "Deprecated, use bicAccountDetails. Kept for backward compatibility.",
        "required": [
          "type",
          "swiftCode",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "swift"
            ]
          },
          "swiftCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "bic": {
            "type": "string",
            "description": "Mirrors swiftCode during the migration to bicAccountDetails.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "sortCodeDetails": {
        "type": "object",
        "required": [
          "type",
          "code",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sortCode"
            ]
          },
          "code": {
            "type": "string",
            "description": "sort code has XX-XX-XX format",
            "pattern": "^\\d{2}-\\d{2}-\\d{2}$"
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "wireDetails": {
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "iban": "#/components/schemas/ibanAccountDetails",
            "bic": "#/components/schemas/bicAccountDetails",
            "swift": "#/components/schemas/swiftAccountDetails",
            "sortCode": "#/components/schemas/sortCodeDetails"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ibanAccountDetails"
          },
          {
            "$ref": "#/components/schemas/bicAccountDetails"
          },
          {
            "$ref": "#/components/schemas/swiftAccountDetails"
          },
          {
            "$ref": "#/components/schemas/sortCodeDetails"
          }
        ]
      },
      "wireTransfer": {
        "type": "object",
        "required": [
          "type",
          "accountHolderName",
          "bankName",
          "wireDetails"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "wireTransfer"
            ]
          },
          "accountHolderName": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "bankName": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "wireDetails": {
            "$ref": "#/components/schemas/wireDetails"
          },
          "line1": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "city": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "postalCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "country": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "wireTransferUSA": {
        "type": "object",
        "required": [
          "type",
          "accountNumber",
          "routingNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "wireTransferUSA"
            ]
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "routingNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "line1": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "city": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "postalCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "country": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "state": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "cryptoTransfer": {
        "type": "object",
        "required": [
          "type",
          "network",
          "contractAddress",
          "walletAddress"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "cryptoTransfer"
            ]
          },
          "network": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "contractAddress": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "walletAddress": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "paymentInstructions": {
        "type": "object",
        "required": [
          "type",
          "instruction"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "paymentInstructions"
            ]
          },
          "instruction": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "paymentMethod": {
        "type": "object",
        "required": [
          "description",
          "currency",
          "methodInstruction"
        ],
        "properties": {
          "description": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "currency": {
            "type": "string",
            "description": "accepted currency for payment",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "methodInstruction": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/wireTransfer"
              },
              {
                "$ref": "#/components/schemas/wireTransferUSA"
              },
              {
                "$ref": "#/components/schemas/cryptoTransfer"
              },
              {
                "$ref": "#/components/schemas/paymentInstructions"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "wireTransfer": "#/components/schemas/wireTransfer",
                "wireTransferUSA": "#/components/schemas/wireTransferUSA",
                "cryptoTransfer": "#/components/schemas/cryptoTransfer",
                "paymentInstructions": "#/components/schemas/paymentInstructions"
              }
            }
          }
        }
      },
      "paymentMethods": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/paymentMethod"
        }
      },
      "depositInstruction": {
        "required": [
          "account"
        ],
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/depositPayoutAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/depositAsset"
          },
          "description": {
            "type": "string",
            "description": "Instructions for the deposit operation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "paymentOptions": {
            "$ref": "#/components/schemas/paymentMethods"
          },
          "details": {
            "deprecated": true,
            "type": "object",
            "description": "Any addition deposit specific information, deprecated use \"payment method options\" instead fields"
          },
          "operationId": {
            "type": "string",
            "description": "operation id reference while will correlate with any receipt associated with the deposit operation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "depositOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "$ref": "#/components/schemas/depositOperationErrorInformation"
              },
              "response": {
                "$ref": "#/components/schemas/depositInstruction"
              }
            }
          }
        ]
      },
      "operationStatusDeposit": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "deposit"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/depositOperation"
          }
        }
      },
      "receiptOperationErrorInformation": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "1 for failure in regApps validation, 4 failure in signature verification"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "regulationErrorDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegulationError"
            }
          }
        }
      },
      "finp2pAssetBase": {
        "type": "object",
        "required": [
          "resourceId"
        ],
        "properties": {
          "resourceId": {
            "type": "string",
            "pattern": "^[^:](?:.+):102:(?:.+)",
            "description": "unique resource ID of the FinP2P asset"
          }
        }
      },
      "asset": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "ledgerIdentifier"
            ],
            "properties": {
              "ledgerIdentifier": {
                "$ref": "#/components/schemas/ledgerAssetIdentifier"
              }
            }
          },
          {
            "$ref": "#/components/schemas/finp2pAssetBase"
          }
        ]
      },
      "walletLedgerAccount": {
        "type": "object",
        "required": [
          "type",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "walletAccount"
            ]
          },
          "address": {
            "type": "string",
            "description": "address of the wallet",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "caip10LedgerAccount": {
        "type": "object",
        "required": [
          "type",
          "network",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "caip10Account"
            ]
          },
          "network": {
            "type": "string",
            "description": "CAIP-2 chain_id, e.g. \"eip155:1\", \"solana:5eykt4...\", \"hedera:mainnet\" (the same token used by the CAIP-19 asset identifier network)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "address": {
            "type": "string",
            "description": "CAIP-10 account_address (chain-native address)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true,
            "maxLength": 128
          }
        }
      },
      "custodialLedgerAccount": {
        "type": "object",
        "required": [
          "type",
          "provider",
          "vaultAccountId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custodialAccount"
            ]
          },
          "provider": {
            "type": "string",
            "description": "Custody provider discriminator, e.g. \"fireblocks\"",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "vaultAccountId": {
            "type": "string",
            "description": "Provider-internal account identifier (e.g. a Fireblocks vault account id)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "assetId": {
            "type": "string",
            "description": "Optional. Narrows the custodial account to a specific asset/chain.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "account": {
        "type": "object",
        "required": [
          "asset",
          "finId"
        ],
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/asset"
          },
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "ledgerAccount": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/walletLedgerAccount"
              },
              {
                "$ref": "#/components/schemas/caip10LedgerAccount"
              },
              {
                "$ref": "#/components/schemas/custodialLedgerAccount"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "walletAccount": "#/components/schemas/walletLedgerAccount",
                "caip10Account": "#/components/schemas/caip10LedgerAccount",
                "custodialAccount": "#/components/schemas/custodialLedgerAccount"
              }
            }
          }
        }
      },
      "operationType": {
        "type": "string",
        "enum": [
          "issue",
          "transfer",
          "hold",
          "release",
          "redeem",
          "move"
        ]
      },
      "receiptExecutionContext": {
        "type": "object",
        "required": [
          "executionPlanId",
          "instructionSequenceNumber"
        ],
        "properties": {
          "executionPlanId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "instructionSequenceNumber": {
            "type": "integer"
          }
        }
      },
      "receiptTradeDetails": {
        "type": "object",
        "properties": {
          "intentId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "intentVersion": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "executionContext": {
            "$ref": "#/components/schemas/receiptExecutionContext"
          }
        }
      },
      "field": {
        "type": "object",
        "description": "describing a field in the hash group",
        "required": [
          "name",
          "type",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "name of field",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "int",
              "bytes"
            ],
            "description": "type of field"
          },
          "value": {
            "type": "string",
            "description": "hex representation of the field value",
            "x-allowEmpty": true
          }
        }
      },
      "hashGroup": {
        "type": "object",
        "required": [
          "hash",
          "fields"
        ],
        "properties": {
          "hash": {
            "type": "string",
            "description": "hex representation of the hash group hash value",
            "x-allowEmpty": true
          },
          "fields": {
            "description": "list of fields by order they appear in the hash group",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/field"
            }
          }
        }
      },
      "EIP712Domain": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "version": {
            "type": "string",
            "x-allowEmpty": true
          },
          "chainId": {
            "type": "integer",
            "format": "uint64"
          },
          "verifyingContract": {
            "type": "string",
            "format": "address",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712TypeString": {
        "type": "string",
        "pattern": "^(?:$|0([^x].*)?|[^0].*)$",
        "x-allowEmpty": true
      },
      "EIP712TypeInteger": {
        "type": "integer"
      },
      "EIP712TypeBool": {
        "type": "boolean"
      },
      "EIP712TypeByte": {
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]+$",
        "minLength": 3,
        "maxLength": 320
      },
      "EIP712TypedValue": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EIP712TypeString"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeInteger"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeBool"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeByte"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeObject"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeArray"
          }
        ]
      },
      "EIP712TypeObject": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "EIP712TypeArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "EIP712TypeDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/schemas_EIP712FieldDefinition"
            }
          }
        }
      },
      "EIP712Types": {
        "type": "object",
        "properties": {
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712TypeDefinition"
            }
          }
        }
      },
      "signatureTemplate": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/schemas_hashListTemplate"
          },
          {
            "$ref": "#/components/schemas/schemas_EIP712Template"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hashList": "#/components/schemas/schemas_hashListTemplate",
            "EIP712": "#/components/schemas/schemas_EIP712Template"
          }
        }
      },
      "hashFunction": {
        "type": "string",
        "enum": [
          "unspecified",
          "sha3_256",
          "sha3-256",
          "blake2b",
          "keccak_256",
          "keccak-256"
        ],
        "description": "hash function types"
      },
      "signature": {
        "type": "object",
        "required": [
          "signature",
          "template",
          "hashFunc"
        ],
        "description": "represent a signature template information",
        "properties": {
          "signature": {
            "type": "string",
            "description": "hex representation of the signature",
            "x-allowEmpty": true
          },
          "template": {
            "$ref": "#/components/schemas/signatureTemplate"
          },
          "hashFunc": {
            "$ref": "#/components/schemas/hashFunction"
          }
        }
      },
      "receipt": {
        "type": "object",
        "required": [
          "id",
          "quantity",
          "timestamp",
          "tradeDetails"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "the receipt id",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "quantity": {
            "type": "string",
            "description": "How many units of the asset tokens",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "timestamp": {
            "type": "integer",
            "format": "int64",
            "description": "transaction timestamp"
          },
          "source": {
            "$ref": "#/components/schemas/account"
          },
          "destination": {
            "$ref": "#/components/schemas/account"
          },
          "transactionDetails": {
            "$ref": "#/components/schemas/transactionDetails"
          },
          "operationType": {
            "$ref": "#/components/schemas/operationType"
          },
          "tradeDetails": {
            "$ref": "#/components/schemas/receiptTradeDetails"
          },
          "proof": {
            "$ref": "#/components/schemas/proofPolicy"
          }
        }
      },
      "receiptOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "$ref": "#/components/schemas/receiptOperationErrorInformation"
              },
              "response": {
                "$ref": "#/components/schemas/receipt"
              }
            }
          }
        ]
      },
      "operationStatusReceipt": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "receipt"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/receiptOperation"
          }
        }
      },
      "PlanApproved": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "approved"
            ]
          }
        }
      },
      "ValidationFailure": {
        "type": "object",
        "required": [
          "failureType",
          "code",
          "message"
        ],
        "properties": {
          "failureType": {
            "type": "string",
            "enum": [
              "validationFailure"
            ]
          },
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "ledger error code for validation"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "RegulationFailure": {
        "type": "object",
        "required": [
          "failureType",
          "errors"
        ],
        "properties": {
          "failureType": {
            "type": "string",
            "enum": [
              "regulationFailure"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegulationError"
            }
          }
        }
      },
      "PlanRejected": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "rejected"
            ]
          },
          "failure": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ValidationFailure"
              },
              {
                "$ref": "#/components/schemas/RegulationFailure"
              }
            ],
            "discriminator": {
              "propertyName": "failureType",
              "mapping": {
                "validationFailure": "#/components/schemas/ValidationFailure",
                "regulationFailure": "#/components/schemas/RegulationFailure"
              }
            }
          }
        }
      },
      "PlanApprovalResponse": {
        "type": "object",
        "properties": {
          "approval": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PlanApproved"
              },
              {
                "$ref": "#/components/schemas/PlanRejected"
              }
            ],
            "discriminator": {
              "propertyName": "status",
              "mapping": {
                "approved": "#/components/schemas/PlanApproved",
                "rejected": "#/components/schemas/PlanRejected"
              }
            }
          }
        }
      },
      "ExecutionPlanApprovalOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "$ref": "#/components/schemas/PlanApprovalResponse"
          }
        ]
      },
      "operationStatusApproval": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "approval"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/ExecutionPlanApprovalOperation"
          }
        }
      },
      "AccountChallengeWalletConnect": {
        "type": "object",
        "required": [
          "type",
          "uri"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "walletConnect"
            ]
          },
          "uri": {
            "type": "string",
            "description": "WalletConnect URI or QR-encodable payload.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "AccountChallengeSignatureTemplate": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "signatureTemplate"
            ]
          },
          "payload": {
            "type": "string",
            "description": "Hex-encoded data the client must sign with the wallet's private key and submit via\n`POST /accounts/{cid}/proof`.\n",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "AccountChallengeDeposit": {
        "type": "object",
        "required": [
          "type",
          "fromAddress",
          "toAddress",
          "amount"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "deposit"
            ]
          },
          "fromAddress": {
            "type": "string",
            "description": "Address claimed by the user.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "toAddress": {
            "type": "string",
            "description": "Destination address the LA watches.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "amount": {
            "type": "string",
            "description": "Required deposit amount (string for precision).",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "AccountChallengeFireblocksApproval": {
        "type": "object",
        "required": [
          "type",
          "fireblocksRequestId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "fireblocksApproval"
            ]
          },
          "fireblocksRequestId": {
            "type": "string",
            "description": "Fireblocks-side request id; user approves in the Fireblocks app.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "AccountChallenge": {
        "description": "LA-issued challenge that the user must fulfill. Discriminated by `type`. New variants\ncan be added without breaking existing clients.\n",
        "type": "object",
        "required": [
          "type"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountChallengeWalletConnect"
          },
          {
            "$ref": "#/components/schemas/AccountChallengeSignatureTemplate"
          },
          {
            "$ref": "#/components/schemas/AccountChallengeDeposit"
          },
          {
            "$ref": "#/components/schemas/AccountChallengeFireblocksApproval"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "walletConnect": "#/components/schemas/AccountChallengeWalletConnect",
            "signatureTemplate": "#/components/schemas/AccountChallengeSignatureTemplate",
            "deposit": "#/components/schemas/AccountChallengeDeposit",
            "fireblocksApproval": "#/components/schemas/AccountChallengeFireblocksApproval"
          }
        }
      },
      "walletAccount": {
        "type": "object",
        "required": [
          "type",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "walletAccount"
            ]
          },
          "address": {
            "type": "string",
            "description": "address of the wallet",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "caip10Account": {
        "type": "object",
        "required": [
          "type",
          "network",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "caip10Account"
            ]
          },
          "network": {
            "type": "string",
            "description": "CAIP-2 chain_id, e.g. \"eip155:1\", \"solana:5eykt4...\", \"hedera:mainnet\" (the same token used by the CAIP-19 asset identifier network)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "address": {
            "type": "string",
            "description": "CAIP-10 account_address (chain-native address)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true,
            "maxLength": 128
          }
        }
      },
      "custodialAccount": {
        "type": "object",
        "required": [
          "type",
          "provider",
          "vaultAccountId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custodialAccount"
            ]
          },
          "provider": {
            "type": "string",
            "description": "Custody provider discriminator, e.g. \"fireblocks\"",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "vaultAccountId": {
            "type": "string",
            "description": "Provider-internal account identifier (e.g. a Fireblocks vault account id)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "assetId": {
            "type": "string",
            "description": "Optional. Narrows the custodial account to a specific asset/chain.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "noneAccount": {
        "type": "object",
        "additionalProperties": false
      },
      "networkAccount": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/walletAccount"
          },
          {
            "$ref": "#/components/schemas/caip10Account"
          },
          {
            "$ref": "#/components/schemas/custodialAccount"
          },
          {
            "$ref": "#/components/schemas/noneAccount"
          }
        ]
      },
      "networkAccountRecord": {
        "description": "Canonical account record returned on workflow completion via `GET /operations/status/{cid}`.\n",
        "type": "object",
        "required": [
          "id",
          "networkAccount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "LA-assigned account identifier.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "networkAccount": {
            "$ref": "#/components/schemas/networkAccount"
          }
        }
      },
      "networkAccountOperationErrorInformation": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "networkAccountOperation": {
        "description": "Status of an investor network-account create/bind/lookup/unbind operation, polled via\n`GET /operations/status/{cid}`. While a challenge is outstanding, `challenge` is\npresent; on completion `response` carries the canonical `{ id, wallet }` (create/bind)\nor `accounts` carries the adapter-held list (lookup); on failure `error` carries the\nLA-level code/message.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "challenge": {
                "$ref": "#/components/schemas/AccountChallenge"
              },
              "response": {
                "$ref": "#/components/schemas/networkAccountRecord"
              },
              "accounts": {
                "type": "array",
                "description": "Lookup result (`POST /accounts/lookup`): every production account the LA holds\nfor the investor on the asset — the router binds exactly this list. Present only\nfor lookup operations — create/bind keep the singular `response`. Empty on a\nsuccessful lookup that found nothing.\n",
                "items": {
                  "$ref": "#/components/schemas/networkAccountRecord"
                }
              },
              "error": {
                "$ref": "#/components/schemas/networkAccountOperationErrorInformation"
              },
              "expiresInSeconds": {
                "type": "integer",
                "format": "int64",
                "description": "Onboarding deadline the ledger adapter grants, in seconds from now, when it\nsupplies (or revises) one on this status — e.g. alongside a challenge delivered\nvia callback in proxy mode, where the adapter's own deadline could not ride the\nproxy's immediate acceptance. The asset node re-arms the workflow deadline from\na non-zero value. Omitted/zero => previously armed deadline stands.\n"
              }
            }
          }
        ]
      },
      "operationStatusAccount": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "account"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/networkAccountOperation"
          }
        }
      },
      "operationStatus": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/operationStatusCreateAsset"
          },
          {
            "$ref": "#/components/schemas/operationStatusDeposit"
          },
          {
            "$ref": "#/components/schemas/operationStatusReceipt"
          },
          {
            "$ref": "#/components/schemas/operationStatusApproval"
          },
          {
            "$ref": "#/components/schemas/operationStatusAccount"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "createAsset": "#/components/schemas/operationStatusCreateAsset",
            "deposit": "#/components/schemas/operationStatusDeposit",
            "receipt": "#/components/schemas/operationStatusReceipt",
            "approval": "#/components/schemas/operationStatusApproval",
            "account": "#/components/schemas/operationStatusAccount"
          }
        }
      },
      "CustomError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "generalErrorArray": {
        "type": "object",
        "required": [
          "type",
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomError"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "generalErrorArray"
            ]
          }
        }
      },
      "accountResponse": {
        "type": "object",
        "required": [
          "finId",
          "type"
        ],
        "properties": {
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "type": {
            "type": "string",
            "enum": [
              "accountResponse"
            ]
          }
        }
      },
      "createAccountOperationResponse": {
        "type": "object",
        "properties": {
          "account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/generalErrorArray"
              },
              {
                "$ref": "#/components/schemas/accountResponse"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "generalErrorArray": "#/components/schemas/generalErrorArray",
                "accountResponse": "#/components/schemas/accountResponse"
              }
            }
          }
        }
      },
      "createAccountOperationType": {
        "type": "string",
        "enum": [
          "createAccountOperation"
        ]
      },
      "createAccountOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "$ref": "#/components/schemas/createAccountOperationResponse"
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/createAccountOperationType"
              }
            }
          }
        ]
      },
      "signatureResponse": {
        "type": "object",
        "required": [
          "signature",
          "type"
        ],
        "properties": {
          "signature": {
            "type": "string",
            "description": "the hex representation of the signature",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "enum": [
              "signatureResponse"
            ]
          }
        }
      },
      "signatureRequestOperationResponse": {
        "type": "object",
        "properties": {
          "signature": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/generalErrorArray"
              },
              {
                "$ref": "#/components/schemas/signatureResponse"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "generalErrorArray": "#/components/schemas/generalErrorArray",
                "signatureResponse": "#/components/schemas/signatureResponse"
              }
            }
          }
        }
      },
      "signatureRequestOperationType": {
        "type": "string",
        "enum": [
          "signatureRequestOperation"
        ]
      },
      "signatureRequestOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "$ref": "#/components/schemas/signatureRequestOperationResponse"
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/signatureRequestOperationType"
              }
            }
          }
        ]
      },
      "ApproveExecutionPlanResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ExecutionPlanApprovalOperation"
          }
        ]
      },
      "planApprovalOperationType": {
        "type": "string",
        "enum": [
          "planApprovalOperation"
        ]
      },
      "planApprovalOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ApproveExecutionPlanResponse"
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/planApprovalOperationType"
              }
            }
          }
        ]
      },
      "schemas_operationStatus": {
        "type": "object",
        "required": [
          "type",
          "operation"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "createAccountOperation",
              "signatureRequestOperation",
              "planApprovalOperation"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/createAccountOperation"
              },
              {
                "$ref": "#/components/schemas/signatureRequestOperation"
              },
              {
                "$ref": "#/components/schemas/planApprovalOperation"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "createAccountOperation": "#/components/schemas/createAccountOperation",
                "signatureRequestOperation": "#/components/schemas/signatureRequestOperation",
                "planApprovalOperation": "#/components/schemas/planApprovalOperation"
              }
            }
          }
        }
      },
      "schemas_hashListTemplate": {
        "description": "ordered list of hash groups",
        "required": [
          "type",
          "hashGroups",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hashList"
            ]
          },
          "templateVersion": {
            "type": "integer",
            "minimum": 1,
            "description": "This version identifies the HashList template specification revision.\nWhen omitted, the verifier resolves the version from the\nrouter/ledger/asset-profile resolver chain.\n"
          },
          "hashGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/hashGroup"
            }
          },
          "hash": {
            "type": "string",
            "description": "hex representation of the combined hash groups hash value",
            "x-allowEmpty": true
          }
        }
      },
      "schemas_EIP712FieldDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "schemas_EIP712Template": {
        "required": [
          "type",
          "domain",
          "message",
          "primaryType",
          "types",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "EIP712"
            ]
          },
          "templateVersion": {
            "type": "integer",
            "minimum": 1,
            "description": "Template shape version. When omitted, the verifier resolves the\nversion from the router/ledger/asset-profile resolver chain.\nNot to be confused with EIP712Domain.version (the EIP-712\ncontract domain version). See pkg/signature/specs/eip712/ for\nversioned specs.\n"
          },
          "domain": {
            "$ref": "#/components/schemas/EIP712Domain"
          },
          "message": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/EIP712TypedValue"
            }
          },
          "types": {
            "$ref": "#/components/schemas/EIP712Types"
          },
          "primaryType": {
            "type": "string",
            "x-allowEmpty": true
          },
          "hash": {
            "type": "string",
            "description": "hex representation of template hash",
            "x-allowEmpty": true
          }
        }
      }
    }
  }
}
```