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

# Receive operation response

Endpoint for clients to send command responses correlating with the command using the command cid

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Proxy Ledger Adapter API",
    "description": "This is the API specification for the Proxy Ledger Adapter with whom the FinP2P Router will interact in order to execute and query the underlying implementation, the Proxy will allow external clients to read pending commands and provides operation responses",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "command processing",
      "description": "endpoint to signal command processing"
    }
  ],
  "paths": {
    "/proxy/operationResponse": {
      "post": {
        "tags": [
          "command processing"
        ],
        "summary": "Receive operation response",
        "description": "Endpoint for clients to send command responses correlating with the command using the command cid",
        "operationId": "sendOperationResponse",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommandResponse"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Response received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Response received successfully"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1002,
                      "message": "Invalid request format"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1101,
                      "message": "Resource id not found: \"example-id-123\""
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2202,
                      "message": "Internal service failure"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ReceiptResult": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/receiptOperationErrorInformation"
          },
          "response": {
            "$ref": "#/components/schemas/receipt"
          }
        }
      },
      "DepositResult": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/depositOperationErrorInformation"
          },
          "response": {
            "$ref": "#/components/schemas/depositInstruction"
          }
        }
      },
      "CreateAssetResult": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/createAssetOperationErrorInformation"
          },
          "response": {
            "$ref": "#/components/schemas/assetCreateResponse"
          }
        }
      },
      "NetworkAccountResult": {
        "type": "object",
        "properties": {
          "challenge": {
            "$ref": "#/components/schemas/AccountChallenge"
          },
          "response": {
            "$ref": "#/components/schemas/networkAccountRecord"
          },
          "error": {
            "$ref": "#/components/schemas/networkAccountOperationErrorInformation"
          },
          "accounts": {
            "type": "array",
            "description": "Lookup result — every account the adapter holds for the investor on the asset.",
            "items": {
              "$ref": "#/components/schemas/networkAccountRecord"
            }
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int64",
            "description": "Onboarding deadline the ledger adapter grants, in seconds from now.\nOmitted/zero => previously armed deadline stands.\n"
          }
        }
      },
      "CommandResponse": {
        "type": "object",
        "required": [
          "cid",
          "data"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id for the command response"
          },
          "data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ApproveExecutionPlanResponseCommand"
              },
              {
                "$ref": "#/components/schemas/ExecutionPlanProposalResponseCommand"
              },
              {
                "$ref": "#/components/schemas/ExecutionPlanProposalStatusResponseCommand"
              },
              {
                "$ref": "#/components/schemas/DepositInstructionResponseCommand"
              },
              {
                "$ref": "#/components/schemas/PayoutResponseCommand"
              },
              {
                "$ref": "#/components/schemas/GetAssetBalanceResponseCommand"
              },
              {
                "$ref": "#/components/schemas/CreateAssetResponseCommand"
              },
              {
                "$ref": "#/components/schemas/IssueAssetsResponseCommand"
              },
              {
                "$ref": "#/components/schemas/RedeemAssetsResponseCommand"
              },
              {
                "$ref": "#/components/schemas/TransferAssetResponseCommand"
              },
              {
                "$ref": "#/components/schemas/MoveAssetsResponseCommand"
              },
              {
                "$ref": "#/components/schemas/GetReceiptResponseCommand"
              },
              {
                "$ref": "#/components/schemas/HoldOperationResponseCommand"
              },
              {
                "$ref": "#/components/schemas/ReleaseOperationResponseCommand"
              },
              {
                "$ref": "#/components/schemas/RollbackOperationResponseCommand"
              },
              {
                "$ref": "#/components/schemas/AssetBalanceResponseCommand"
              },
              {
                "$ref": "#/components/schemas/HealthCheckResponseCommand"
              },
              {
                "$ref": "#/components/schemas/CreateAccountResponseCommand"
              },
              {
                "$ref": "#/components/schemas/SubmitAccountProofResponseCommand"
              },
              {
                "$ref": "#/components/schemas/RemoveAccountResponseCommand"
              },
              {
                "$ref": "#/components/schemas/LookupAccountsResponseCommand"
              }
            ],
            "discriminator": {
              "propertyName": "commandType",
              "mapping": {
                "ApproveExecutionPlanResponseCommand": "#/components/schemas/ApproveExecutionPlanResponseCommand",
                "ExecutionPlanProposalResponseCommand": "#/components/schemas/ExecutionPlanProposalResponseCommand",
                "ExecutionPlanProposalStatusResponseCommand": "#/components/schemas/ExecutionPlanProposalStatusResponseCommand",
                "DepositInstructionResponseCommand": "#/components/schemas/DepositInstructionResponseCommand",
                "PayoutResponseCommand": "#/components/schemas/PayoutResponseCommand",
                "GetAssetBalanceResponseCommand": "#/components/schemas/GetAssetBalanceResponseCommand",
                "CreateAssetResponseCommand": "#/components/schemas/CreateAssetResponseCommand",
                "IssueAssetsResponseCommand": "#/components/schemas/IssueAssetsResponseCommand",
                "RedeemAssetsResponseCommand": "#/components/schemas/RedeemAssetsResponseCommand",
                "TransferAssetResponseCommand": "#/components/schemas/TransferAssetResponseCommand",
                "MoveAssetsResponseCommand": "#/components/schemas/MoveAssetsResponseCommand",
                "GetReceiptResponseCommand": "#/components/schemas/GetReceiptResponseCommand",
                "HoldOperationResponseCommand": "#/components/schemas/HoldOperationResponseCommand",
                "ReleaseOperationResponseCommand": "#/components/schemas/ReleaseOperationResponseCommand",
                "RollbackOperationResponseCommand": "#/components/schemas/RollbackOperationResponseCommand",
                "AssetBalanceResponseCommand": "#/components/schemas/AssetBalanceResponseCommand",
                "HealthCheckResponseCommand": "#/components/schemas/HealthCheckResponseCommand",
                "CreateAccountResponseCommand": "#/components/schemas/CreateAccountResponseCommand",
                "SubmitAccountProofResponseCommand": "#/components/schemas/SubmitAccountProofResponseCommand",
                "RemoveAccountResponseCommand": "#/components/schemas/RemoveAccountResponseCommand",
                "LookupAccountsResponseCommand": "#/components/schemas/LookupAccountsResponseCommand"
              }
            }
          }
        }
      },
      "ApproveExecutionPlanResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PlanApprovalResponse"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/ApproveExecutionPlanResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "ApproveExecutionPlanResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "ApproveExecutionPlanResponseCommand"
        ]
      },
      "ExecutionPlanProposalResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PlanApprovalResponse"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/ExecutionPlanProposalResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "ExecutionPlanProposalResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "ExecutionPlanProposalResponseCommand"
        ]
      },
      "ExecutionPlanProposalStatusResponseCommand": {
        "type": "object",
        "required": [
          "commandType"
        ],
        "properties": {
          "commandType": {
            "type": "string",
            "enum": [
              "ExecutionPlanProposalStatusResponseCommand"
            ]
          }
        }
      },
      "DepositInstructionResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/DepositResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/DepositInstructionResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "DepositInstructionResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "DepositInstructionResponseCommand"
        ]
      },
      "PayoutResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/PayoutResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "PayoutResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "PayoutResponseCommand"
        ]
      },
      "GetAssetBalanceResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/GetAssetBalanceResponse"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/GetAssetBalanceResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "GetAssetBalanceResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "GetAssetBalanceResponseCommand"
        ]
      },
      "AssetBalanceResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/AssetBalanceInfoResponse"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/AssetBalanceResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "AssetBalanceResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "AssetBalanceResponseCommand"
        ]
      },
      "CreateAssetResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/CreateAssetResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/CreateAssetResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "CreateAssetResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "CreateAssetResponseCommand"
        ]
      },
      "IssueAssetsResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/IssueAssetsResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "IssueAssetsResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "IssueAssetsResponseCommand"
        ]
      },
      "RedeemAssetsResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/RedeemAssetsResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "RedeemAssetsResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "RedeemAssetsResponseCommand"
        ]
      },
      "TransferAssetResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/TransferAssetResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "TransferAssetResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "TransferAssetResponseCommand"
        ]
      },
      "MoveAssetsResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/MoveAssetsResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "MoveAssetsResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "MoveAssetsResponseCommand"
        ]
      },
      "GetReceiptResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/GetReceiptResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "GetReceiptResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "GetReceiptResponseCommand"
        ]
      },
      "HoldOperationResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/HoldOperationResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "HoldOperationResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "HoldOperationResponseCommand"
        ]
      },
      "ReleaseOperationResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/ReleaseOperationResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "ReleaseOperationResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "ReleaseOperationResponseCommand"
        ]
      },
      "RollbackOperationResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReceiptResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/RollbackOperationResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "RollbackOperationResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "RollbackOperationResponseCommand"
        ]
      },
      "HealthCheckResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/HealthResponse"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/HealthCheckResponseCommandCommandType",
                "enum": [
                  "HealthCheckResponseCommand"
                ]
              }
            }
          }
        ]
      },
      "HealthCheckResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "HealthCheckResponseCommand"
        ]
      },
      "CreateAccountResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/NetworkAccountResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/CreateAccountResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "CreateAccountResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "CreateAccountResponseCommand"
        ]
      },
      "SubmitAccountProofResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/NetworkAccountResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/SubmitAccountProofResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "SubmitAccountProofResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "SubmitAccountProofResponseCommand"
        ]
      },
      "RemoveAccountResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/NetworkAccountResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/RemoveAccountResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "RemoveAccountResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "RemoveAccountResponseCommand"
        ]
      },
      "LookupAccountsResponseCommand": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/NetworkAccountResult"
          },
          {
            "type": "object",
            "required": [
              "commandType"
            ],
            "properties": {
              "commandType": {
                "$ref": "#/components/schemas/LookupAccountsResponseCommandCommandType"
              }
            }
          }
        ]
      },
      "LookupAccountsResponseCommandCommandType": {
        "type": "string",
        "enum": [
          "LookupAccountsResponseCommand"
        ]
      },
      "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"
          }
        ]
      },
      "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"
            }
          }
        }
      },
      "hashListTemplate": {
        "description": "ordered list of hash groups",
        "required": [
          "type",
          "hashGroups",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hashList"
            ]
          },
          "hashGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/hashGroup"
            }
          },
          "hash": {
            "type": "string",
            "description": "hex representation of the combined hash groups hash value",
            "x-allowEmpty": true
          },
          "templateVersion": {
            "type": "integer",
            "description": "Template shape version. When omitted, the verifier resolves the version from the signature proof context."
          }
        }
      },
      "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"
        }
      },
      "EIP712FieldDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712TypeDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712FieldDefinition"
            }
          }
        }
      },
      "EIP712Types": {
        "type": "object",
        "properties": {
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712TypeDefinition"
            }
          }
        }
      },
      "EIP712Template": {
        "required": [
          "type",
          "domain",
          "message",
          "primaryType",
          "types",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "EIP712"
            ]
          },
          "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
          },
          "templateVersion": {
            "type": "integer",
            "description": "Template shape version. When omitted, the verifier resolves the version from the signature proof context."
          }
        }
      },
      "signatureTemplate": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/hashListTemplate"
          },
          {
            "$ref": "#/components/schemas/EIP712Template"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hashList": "#/components/schemas/hashListTemplate",
            "EIP712": "#/components/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"
          }
        }
      },
      "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"
          }
        }
      },
      "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"
              }
            }
          }
        }
      },
      "assetBalanceAccount": {
        "type": "object",
        "required": [
          "finId",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finId"
            ]
          },
          "finId": {
            "$ref": "#/components/schemas/finId"
          }
        }
      },
      "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"
          }
        ]
      },
      "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"
            }
          }
        }
      },
      "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
          }
        }
      },
      "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
          }
        }
      },
      "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"
              }
            }
          }
        }
      },
      "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"
            }
          }
        }
      },
      "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
          }
        }
      },
      "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"
            }
          }
        }
      },
      "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
          }
        }
      },
      "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"
          }
        }
      },
      "signatureProofPolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "signatureProofPolicy"
            ]
          },
          "signature": {
            "$ref": "#/components/schemas/signature"
          }
        }
      },
      "noProofPolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "noProofPolicy"
            ]
          }
        },
        "description": "no proof validation required for this policy"
      },
      "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"
          }
        ]
      },
      "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"
          }
        }
      },
      "balance": {
        "type": "object",
        "required": [
          "asset",
          "balance"
        ],
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/asset"
          },
          "balance": {
            "type": "string",
            "description": "the number of asset tokens",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "GetAssetBalanceResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/balance"
          }
        ]
      },
      "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
          }
        }
      },
      "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"
          }
        }
      },
      "assetBalance": {
        "type": "object",
        "required": [
          "asset",
          "current",
          "available",
          "held"
        ],
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/asset"
          },
          "current": {
            "type": "string",
            "format": "^-?\\d+(\\.\\d+)?$",
            "description": "The total amount currently in or owed by the account",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "available": {
            "type": "string",
            "format": "^-?\\d+(\\.\\d+)?$",
            "description": "The amount immediately usable from the account",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "held": {
            "type": "string",
            "format": "^-?\\d+(\\.\\d+)?$",
            "description": "The amount pending or on hold within the account",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "receipts": {
            "description": "list of receipt associated with the balance info",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/receipt"
            }
          }
        }
      },
      "AssetBalanceInfoResponse": {
        "type": "object",
        "required": [
          "account",
          "asset"
        ],
        "properties": {
          "account": {
            "$ref": "#/components/schemas/assetBalanceAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/asset"
          },
          "balanceInfo": {
            "$ref": "#/components/schemas/assetBalance"
          }
        }
      },
      "HealthResponse": {
        "type": "object",
        "required": [
          "health"
        ],
        "properties": {
          "health": {
            "type": "object",
            "required": [
              "status"
            ],
            "properties": {
              "status": {
                "type": "string",
                "example": "ok/unavailable",
                "pattern": ".*\\S.*",
                "x-autoMinLength": true
              }
            }
          }
        }
      },
      "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"
          }
        }
      },
      "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
          }
        }
      }
    }
  }
}
```