openapi: 3.1.0
info:
  title: revault-api
  description: A short description of what revault-api is
  version: 1.45.0
servers:
  - url: /v1/rest
paths:
  /auth/token:
    post:
      operationId: auth-authenticate
      summary: Authenticate
      description: Exchange API Key credentials for JWT tokens
      tags:
        - auth
      security:
        - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace:
                  description: Target workspace
                  type: string
                apiKeyId:
                  description: API Key id
                  type: string
                apiKeySecret:
                  description: API Key secret
                  type: string
              required:
                - workspace
                - apiKeyId
                - apiKeySecret
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessToken:
                    description: JSON Web Token used to authenticate requests
                    type: string
                  expiresInSeconds:
                    description: JWT validity period (in seconds)
                    type: number
                  refreshToken:
                    description: Refresh token used to obtain new JWT
                    type: string
                  refreshExpiresInSeconds:
                    description: Refresh token validity period (in seconds)
                    type: number
                required:
                  - accessToken
                  - expiresInSeconds
                  - refreshToken
                  - refreshExpiresInSeconds
                additionalProperties: false
        "400": &a1
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error.BAD_REQUEST"
        "401": &a2
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error.UNAUTHORIZED"
        "403": &a3
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error.FORBIDDEN"
        "500": &a4
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error.INTERNAL_SERVER_ERROR"
  /auth/token/refresh:
    post:
      operationId: auth-refreshToken
      summary: Refresh token
      description: Exchange refreshToken for JWT tokens
      tags:
        - auth
      security:
        - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace:
                  description: Target workspace
                  type: string
                refreshToken:
                  description: Refresh token
                  type: string
              required:
                - workspace
                - refreshToken
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessToken:
                    description: JSON Web Token used to authenticate requests
                    type: string
                  expiresInSeconds:
                    description: JWT validity period (in seconds)
                    type: number
                  refreshToken:
                    description: Refresh token used to obtain new JWT
                    type: string
                  refreshExpiresInSeconds:
                    description: Refresh token validity period (in seconds)
                    type: number
                required:
                  - accessToken
                  - expiresInSeconds
                  - refreshToken
                  - refreshExpiresInSeconds
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /users:
    get:
      operationId: users-list
      summary: List users
      description: List users in the same workspace. Administrators & operators with
        `legacyViewAll` set to `true` can see the full list, other users can
        only see themselves.
      tags:
        - user
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: role
          schema:
            description: User role
            type: string
            enum:
              - ADMIN
              - OPERATOR
              - READ_ONLY_API_KEY
        - in: query
          name: deviceType
          schema:
            description: User's device type
            type: string
            enum:
              - PSD
              - SOFT_PSD
              - API
        - in: query
          name: status
          schema:
            description: User status
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - role
              - status
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
        - in: query
          name: ids
          schema:
            description: List of user IDs to filter by
            type: array
            items:
              type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Internal unique identifier
                          type: string
                        legacyId:
                          description: Legacy internal unique identifier (for retro-compatibility)
                          type: number
                        legacyViewAll:
                          description: If true, user can read all resources on the workspace
                          type: boolean
                        workspaceName:
                          description: User's workspace name
                          type: string
                        name:
                          description: User name
                          type: string
                        deviceUserId:
                          description: User's device ID (for non-API users)
                          anyOf:
                            - type: string
                            - type: "null"
                        deviceType:
                          description: User's device type
                          type: string
                          enum:
                            - PSD
                            - SOFT_PSD
                            - API
                        role:
                          description: User role
                          type: string
                          enum:
                            - ADMIN
                            - OPERATOR
                            - READ_ONLY_API_KEY
                        pubKey:
                          description: User public key
                          type: string
                        status:
                          description: User status
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                        isSuspended:
                          description: Whether the user is suspended
                          type: boolean
                        createdAt:
                          description: Creation timestamp
                          type: string
                        updatedAt:
                          description: Last modification timestamp
                          type: string
                      required:
                        - id
                        - legacyId
                        - legacyViewAll
                        - workspaceName
                        - name
                        - deviceUserId
                        - deviceType
                        - role
                        - pubKey
                        - status
                        - isSuspended
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": &a5
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error.NOT_FOUND"
        "500": *a4
  /users/{id}:
    get:
      operationId: users-findById
      summary: Get a single user
      description: Find a user by its ID. Use `me` to fetch current user. Operators
        can only see themselves (unless they have `legacyViewAll` set to
        `true`), fetching other users will yield Not Found error.
      tags:
        - user
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target user
            type: string
          required: true
          description: Id of the target user
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: Internal unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  legacyViewAll:
                    description: If true, user can read all resources on the workspace
                    type: boolean
                  workspaceName:
                    description: User's workspace name
                    type: string
                  name:
                    description: User name
                    type: string
                  deviceUserId:
                    description: User's device ID (for non-API users)
                    anyOf:
                      - type: string
                      - type: "null"
                  deviceType:
                    description: User's device type
                    type: string
                    enum:
                      - PSD
                      - SOFT_PSD
                      - API
                  role:
                    description: User role
                    type: string
                    enum:
                      - ADMIN
                      - OPERATOR
                      - READ_ONLY_API_KEY
                  pubKey:
                    description: User public key
                    type: string
                  status:
                    description: User status
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                  isSuspended:
                    description: Whether the user is suspended
                    type: boolean
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                required:
                  - id
                  - legacyId
                  - legacyViewAll
                  - workspaceName
                  - name
                  - deviceUserId
                  - deviceType
                  - role
                  - pubKey
                  - status
                  - isSuspended
                  - createdAt
                  - updatedAt
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /users/{id}/reset-api-credentials:
    post:
      operationId: users-resetApiUserCredentials
      summary: Reset API user credentials
      description: Reset the API user credentials. This will invalidate all existing
        API keys and generate a new one.
      tags:
        - user
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target user
            type: string
          required: true
          description: Id of the target user
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  apiKeyId:
                    description: API key ID
                    type: string
                  apiKeySecret:
                    description: API key secret
                    type: string
                required:
                  - apiKeyId
                  - apiKeySecret
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /permissions/allowed-actions:
    get:
      operationId: permissions-getAllowedActions
      summary: Get allowed actions
      description: Return actions allowed to the user on one or more resources.
      tags:
        - user
      security:
        - Authorization: []
      parameters:
        - in: query
          name: userId
          schema:
            description: Id of the target user or `me` for the current user
            default: me
            type: string
        - in: query
          name: resourceType
          schema:
            type: string
            enum:
              - Account
              - Entity
              - Group
              - Policy
              - Whitelist
              - TradelinkCustodian
              - TradelinkEntity
              - TradelinkPledge
              - User
              - UserRegistration
              - Workspace
              - WorkspaceRule
        - in: query
          name: resourceId
          schema:
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  userId:
                    description: User ID
                    type: string
                  allowedActions:
                    description: Allowed actions on resource
                    type: array
                    items:
                      type: string
                      enum:
                        - READ
                        - EDIT
                        - SEND
                        - STAKE
                        - DEPLOY_CONTRACT
                        - EXECUTE_CONTRACT
                        - ACTIVATE_TOKEN
                        - RECEIVE
                        - SIGN_MESSAGE
                        - SIGN_DIGESTS
                        - TRADELINK_PLEDGE
                        - TRADELINK_REPLEDGE
                        - TRADELINK_FORCE_UNPLEDGE
                        - TRADELINK_SETTLE
                        - TRADELINK_WITHDRAW
                        - TRADELINK_ARBITRATE
                        - CREATE_ACCOUNT_WITH_POLICY
                required:
                  - userId
                  - allowedActions
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /permissions/resources:
    get:
      operationId: permissions-findAllowedResources
      summary: Find allowed resources
      description: Return resources on which the user is allowed to perform the
        requested action.
      tags:
        - user
      security:
        - Authorization: []
      parameters:
        - in: query
          name: userId
          schema:
            description: Id of the target user or `me` for the current user
            default: me
            type: string
        - in: query
          name: resourceType
          schema:
            type: string
            enum:
              - Account
              - Entity
              - Group
              - Policy
              - Whitelist
              - TradelinkCustodian
              - TradelinkEntity
              - TradelinkPledge
              - User
              - UserRegistration
              - Workspace
              - WorkspaceRule
        - in: query
          name: action
          schema:
            description: Allowed action on the resource
            type: string
            enum:
              - READ
              - EDIT
              - SEND
              - STAKE
              - DEPLOY_CONTRACT
              - EXECUTE_CONTRACT
              - ACTIVATE_TOKEN
              - RECEIVE
              - SIGN_MESSAGE
              - SIGN_DIGESTS
              - TRADELINK_PLEDGE
              - TRADELINK_REPLEDGE
              - TRADELINK_FORCE_UNPLEDGE
              - TRADELINK_SETTLE
              - TRADELINK_WITHDRAW
              - TRADELINK_ARBITRATE
              - CREATE_ACCOUNT_WITH_POLICY
          required: true
          description: Allowed action on the resource
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  userId:
                    description: User ID
                    type: string
                  action:
                    description: The requested action
                    type: string
                  resources:
                    type: array
                    items:
                      type: object
                      properties:
                        resourceType:
                          description: Type of the resource
                          type: string
                          enum:
                            - Account
                            - Entity
                            - Group
                            - Policy
                            - Whitelist
                            - TradelinkCustodian
                            - TradelinkEntity
                            - TradelinkPledge
                            - User
                            - UserRegistration
                            - Workspace
                            - WorkspaceRule
                        resourceId:
                          description: ID of resource on which the action is allowed
                          type: string
                      required:
                        - resourceType
                        - resourceId
                      additionalProperties: false
                required:
                  - userId
                  - action
                  - resources
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts:
    get:
      operationId: accounts-list
      summary: List accounts
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: status
          schema:
            description: Account status
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - in: query
          name: name
          schema:
            description: Search by matching name
            type: string
        - in: query
          name: governanceType
          schema:
            description: Account governance type
            type: string
            enum:
              - CLASSIC
              - TRADELINK
              - RAW_SIGNING
        - in: query
          name: allowedAction
          schema:
            description: Filter accounts by allowed action for current user
            type: string
            enum:
              - SEND
              - STAKE
              - DEPLOY_CONTRACT
              - EXECUTE_CONTRACT
              - ACTIVATE_TOKEN
              - RECEIVE
              - SIGN_MESSAGE
              - SIGN_DIGESTS
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - currency
              - index
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
        - in: query
          name: currency
          schema:
            description: Filter accounts by currency
            type: string
        - in: query
          name: index
          schema:
            description: Filter accounts by account index
            type: number
        - in: query
          name: contractAddress
          schema:
            anyOf:
              - type: string
              - type: "null"
        - in: query
          name: support
          schema:
            description: Filter accounts by support
            type: string
            enum:
              - standalone
              - legacy
        - in: query
          name: type
          schema:
            description: Filter accounts by type
            type: string
            enum:
              - BITCOIN_LIKE
              - CANTON_LIKE
              - CARDANO_LIKE
              - ETHEREUM_LIKE
              - GENERIC_LIKE
              - HEDERA_LIKE
              - POLKADOT_LIKE
              - RAW_SIGNING
              - RIPPLE_LIKE
              - SOLANA_LIKE
              - STELLAR_LIKE
              - SUI_LIKE
              - TEZOS_LIKE
              - TRON_LIKE
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Internal unique identifier
                          type: string
                        legacyId:
                          description: Legacy internal unique identifier (for retro-compatibility)
                          type: number
                        name:
                          description: Name
                          type: string
                        currency:
                          description: Will be deprecated soon, use network instead. Currency
                          type: string
                          minLength: 1
                          maxLength: 40
                          pattern: ^\w+$
                        network:
                          description: Network (Same as currency for now)
                          type: string
                          minLength: 1
                          maxLength: 40
                          pattern: ^\w+$
                        contractAddress:
                          description: Token contract address for Token account
                          anyOf:
                            - type: string
                            - type: "null"
                        tokenIdentifier:
                          description: Token identifier for Token account
                          anyOf:
                            - type: string
                            - type: "null"
                        index:
                          description: BIP44 account index
                          type: number
                          minimum: 0
                        derivationPath:
                          description: Derivation path
                          type: string
                        status:
                          description: Status
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                        createdAt:
                          description: Creation timestamp
                          type: string
                        updatedAt:
                          description: Last modification timestamp
                          type: string
                        asset:
                          description: Account asset fields
                          oneOf:
                            - description: Raw signing account
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: RAW_SIGNING
                              required:
                                - type
                              additionalProperties: false
                            - description: Bitcoin-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: BITCOIN_LIKE
                                xpub:
                                  description: xpub (extended public key)
                                  type: string
                              required:
                                - type
                                - xpub
                              additionalProperties: false
                            - description: Canton-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: CANTON_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Cardano-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: CARDANO_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Ethereum-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: ETHEREUM_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                contractAddress:
                                  description: Will be deprecated, Use contractAddress at root level instead;
                                    Token contract address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Generic-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: GENERIC_LIKE
                              required:
                                - type
                              additionalProperties: false
                            - description: Hedera-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: HEDERA_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                isActivated:
                                  description: Indicates if the account is activated
                                  type: boolean
                              required:
                                - type
                                - address
                                - isActivated
                              additionalProperties: false
                            - description: Polkadot-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: POLKADOT_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Ripple-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: RIPPLE_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Solana-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: SOLANA_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                contractAddress:
                                  anyOf:
                                    - description: Will be deprecated, Use contractAddress at root level instead;
                                        Token contract address
                                      type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Stellar-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: STELLAR_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Sui-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: SUI_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Tezos-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: TEZOS_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                            - description: Tron-like
                              type: object
                              properties:
                                type:
                                  description: Account type
                                  type: string
                                  const: TRON_LIKE
                                address:
                                  description: Account address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                contractAddress:
                                  description: Will be deprecated, Use contractAddress at root level instead;
                                    Token contract address
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - type
                                - address
                              additionalProperties: false
                          type: object
                        governance:
                          description: Governance fields
                          oneOf:
                            - description: Classic
                              type: object
                              properties:
                                type:
                                  description: Classic account governance
                                  type: string
                                  const: CLASSIC
                                policyId:
                                  description: Identifier of corresponding governance policy
                                  type: string
                              required:
                                - type
                                - policyId
                              additionalProperties: false
                            - description: Tradelink
                              type: object
                              properties:
                                type:
                                  description: Tradelink account governance
                                  type: string
                                  const: TRADELINK
                                assetManagerId:
                                  description: Identifier of corresponding asset manager
                                  type: string
                                exchangeConfigs:
                                  description: Tradelink exchange configurations
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      exchangeId:
                                        description: Tradelink exchange id
                                        type: string
                                      repledgeAuthorized:
                                        description: Determines whether this exchange is authorized to repledge on this
                                          account
                                        type: boolean
                                      needsAssetManagerApprovalForSettlements:
                                        description: Determines whether asset manager will "pre-approve" the settlement
                                          requests on this account
                                        type: boolean
                                    required:
                                      - exchangeId
                                      - repledgeAuthorized
                                      - needsAssetManagerApprovalForSettlements
                                    additionalProperties: false
                              required:
                                - type
                                - assetManagerId
                                - exchangeConfigs
                              additionalProperties: false
                          type: object
                      required:
                        - id
                        - legacyId
                        - name
                        - currency
                        - network
                        - contractAddress
                        - tokenIdentifier
                        - index
                        - derivationPath
                        - status
                        - createdAt
                        - updatedAt
                        - asset
                        - governance
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}:
    get:
      operationId: accounts-findById
      summary: Get a single account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: Internal unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  name:
                    description: Name
                    type: string
                  currency:
                    description: Will be deprecated soon, use network instead. Currency
                    type: string
                    minLength: 1
                    maxLength: 40
                    pattern: ^\w+$
                  network:
                    description: Network (Same as currency for now)
                    type: string
                    minLength: 1
                    maxLength: 40
                    pattern: ^\w+$
                  contractAddress:
                    description: Token contract address for Token account
                    anyOf:
                      - type: string
                      - type: "null"
                  tokenIdentifier:
                    description: Token identifier for Token account
                    anyOf:
                      - type: string
                      - type: "null"
                  index:
                    description: BIP44 account index
                    type: number
                    minimum: 0
                  derivationPath:
                    description: Derivation path
                    type: string
                  status:
                    description: Status
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                  asset:
                    description: Account asset fields
                    oneOf:
                      - description: Raw signing account
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: RAW_SIGNING
                        required:
                          - type
                        additionalProperties: false
                      - description: Bitcoin-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: BITCOIN_LIKE
                          xpub:
                            description: xpub (extended public key)
                            type: string
                        required:
                          - type
                          - xpub
                        additionalProperties: false
                      - description: Canton-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: CANTON_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Cardano-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: CARDANO_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Ethereum-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: ETHEREUM_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                          contractAddress:
                            description: Will be deprecated, Use contractAddress at root level instead;
                              Token contract address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Generic-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: GENERIC_LIKE
                        required:
                          - type
                        additionalProperties: false
                      - description: Hedera-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: HEDERA_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                          isActivated:
                            description: Indicates if the account is activated
                            type: boolean
                        required:
                          - type
                          - address
                          - isActivated
                        additionalProperties: false
                      - description: Polkadot-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: POLKADOT_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Ripple-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: RIPPLE_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Solana-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: SOLANA_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                          contractAddress:
                            anyOf:
                              - description: Will be deprecated, Use contractAddress at root level instead;
                                  Token contract address
                                type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Stellar-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: STELLAR_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Sui-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: SUI_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Tezos-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: TEZOS_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                      - description: Tron-like
                        type: object
                        properties:
                          type:
                            description: Account type
                            type: string
                            const: TRON_LIKE
                          address:
                            description: Account address
                            anyOf:
                              - type: string
                              - type: "null"
                          contractAddress:
                            description: Will be deprecated, Use contractAddress at root level instead;
                              Token contract address
                            anyOf:
                              - type: string
                              - type: "null"
                        required:
                          - type
                          - address
                        additionalProperties: false
                    type: object
                  governance:
                    description: Governance fields
                    oneOf:
                      - description: Classic
                        type: object
                        properties:
                          type:
                            description: Classic account governance
                            type: string
                            const: CLASSIC
                          policyId:
                            description: Identifier of corresponding governance policy
                            type: string
                        required:
                          - type
                          - policyId
                        additionalProperties: false
                      - description: Tradelink
                        type: object
                        properties:
                          type:
                            description: Tradelink account governance
                            type: string
                            const: TRADELINK
                          assetManagerId:
                            description: Identifier of corresponding asset manager
                            type: string
                          exchangeConfigs:
                            description: Tradelink exchange configurations
                            type: array
                            items:
                              type: object
                              properties:
                                exchangeId:
                                  description: Tradelink exchange id
                                  type: string
                                repledgeAuthorized:
                                  description: Determines whether this exchange is authorized to repledge on this
                                    account
                                  type: boolean
                                needsAssetManagerApprovalForSettlements:
                                  description: Determines whether asset manager will "pre-approve" the settlement
                                    requests on this account
                                  type: boolean
                              required:
                                - exchangeId
                                - repledgeAuthorized
                                - needsAssetManagerApprovalForSettlements
                              additionalProperties: false
                        required:
                          - type
                          - assetManagerId
                          - exchangeConfigs
                        additionalProperties: false
                    type: object
                required:
                  - id
                  - legacyId
                  - name
                  - currency
                  - network
                  - contractAddress
                  - tokenIdentifier
                  - index
                  - derivationPath
                  - status
                  - createdAt
                  - updatedAt
                  - asset
                  - governance
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/pledges:
    get:
      operationId: accounts-listAccountPledges
      summary: List account Tradelink pledges
      tags:
        - account
        - tradelink
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        tradelinkId:
                          description: Unique identifier in Tradelink service
                          type: string
                        asset:
                          type: object
                          properties:
                            name:
                              type: string
                            magnitude:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                          required:
                            - name
                            - magnitude
                          additionalProperties: false
                        state:
                          type: string
                          enum:
                            - PLEDGE_READY
                            - PLEDGE_INCREMENT_PENDING_APPROVAL
                            - PLEDGE_APPROVED
                            - PLEDGE_REJECTED
                            - UNPLEDGE_PENDING_APPROVAL
                            - UNPLEDGE_APPROVED
                            - UNPLEDGE_REJECTED
                            - REPLEDGE_PENDING_APPROVAL
                            - REPLEDGE_APPROVED
                            - REPLEDGE_REJECTED
                            - ASSIGNED_TO_SETTLEMENT
                            - OUTBOUND_TRANSACTION_CONFIRMED
                            - OUTBOUND_TRANSACTION_FAILED
                            - RECOVERING_FROM_FAILURE
                            - PLEDGE_CONSUMED
                        isLocked:
                          type: boolean
                        amount:
                          description: Currently pledged amount
                          type: string
                        pending:
                          description: Requested pledge increment, not yet approved
                          type: string
                        repledge:
                          description: "TODO: describe this field"
                          type: string
                        exchangeTradelinkId:
                          type: string
                        accountId:
                          type: string
                      required:
                        - tradelinkId
                        - asset
                        - state
                        - isLocked
                        - amount
                        - pending
                        - repledge
                        - exchangeTradelinkId
                        - accountId
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/transactions:
    get:
      operationId: accounts-listAccountTransactions
      summary: List account transactions
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
        - in: query
          name: cursor
          schema:
            description: Optional cursor to get next pages (based on the `next` key on query
              response)
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    description: Next page cursor
                    anyOf:
                      - type: string
                      - type: "null"
                  results:
                    description: Array of results
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Bitcoin-like transaction type
                              type: string
                              enum:
                                - BITCOIN_LIKE_SEND
                                - BITCOIN_LIKE_RECEIVE
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Canton-like transaction type
                              type: string
                              enum:
                                - CANTON_LIKE_SEND
                                - CANTON_LIKE_SEND_TOKEN
                                - CANTON_LIKE_WITHDRAW
                                - CANTON_LIKE_RECEIVE
                                - CANTON_LIKE_PRE_APPROVAL
                                - CANTON_LIKE_TAP
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Cardano-like transaction type
                              type: string
                              enum:
                                - CARDANO_LIKE_SEND
                                - CARDANO_LIKE_RECEIVE
                                - CARDANO_LIKE_STAKING_REGISTER
                                - CARDANO_LIKE_STAKING_DEREGISTER
                                - CARDANO_LIKE_STAKING_DELEGATE
                                - CARDANO_LIKE_STAKING_WITHDRAW
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Ethereum-like transaction type
                              type: string
                              enum:
                                - ETHEREUM_LIKE_SEND
                                - ETHEREUM_LIKE_RECEIVE
                            gasPrice:
                              type: string
                            gasLimit:
                              type: string
                            nonce:
                              type: string
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - gasPrice
                            - gasLimit
                            - nonce
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Ethereum-like transaction type
                              type: string
                              enum:
                                - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                - ETHEREUM_LIKE_DEPLOY_CONTRACT
                            gasPrice:
                              type: string
                            gasLimit:
                              type: string
                            nonce:
                              type: string
                            contractData:
                              description: Contract deployment or contract execution data
                              type: string
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - gasPrice
                            - gasLimit
                            - nonce
                            - contractData
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Generic transaction type
                              type: string
                              enum:
                                - GENERIC_TRANSACTION
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Hedera-like transaction type
                              type: string
                              enum:
                                - HEDERA_LIKE_SEND
                                - HEDERA_LIKE_RECEIVE
                                - HEDERA_LIKE_SEND_TOKEN
                                - HEDERA_LIKE_RECEIVE_TOKEN
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Polkadot-like transaction type
                              type: string
                              enum:
                                - POLKADOT_LIKE_SEND
                                - POLKADOT_LIKE_RECEIVE
                                - POLKADOT_LIKE_ADDPROXY
                                - POLKADOT_LIKE_REMOVEPROXY
                                - POLKADOT_LIKE_BOND
                                - POLKADOT_LIKE_REBOND
                                - POLKADOT_LIKE_BONDEXTRA
                                - POLKADOT_LIKE_UNBOND
                                - POLKADOT_LIKE_WITHDRAWUNBONDED
                                - POLKADOT_LIKE_SETCONTROLLER
                                - POLKADOT_LIKE_SETPAYEE
                                - POLKADOT_LIKE_PROXY
                                - POLKADOT_LIKE_ANONYMOUSPROXY
                                - POLKADOT_LIKE_KILLANONYMOUS
                                - POLKADOT_LIKE_PUREPROXY
                                - POLKADOT_LIKE_KILLPURE
                                - POLKADOT_LIKE_NOMINATE
                                - POLKADOT_LIKE_REWARD
                                - POLKADOT_LIKE_CHILL
                                - POLKADOT_LIKE_TRANSFERALL
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Ripple-like transaction type
                              type: string
                              enum:
                                - RIPPLE_LIKE_SEND
                                - RIPPLE_LIKE_RECEIVE
                            memos:
                              type: array
                              items:
                                type: string
                            destinationTag:
                              type: string
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - memos
                            - destinationTag
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Solana-like transaction type
                              type: string
                              enum:
                                - SOLANA_LIKE_SEND
                                - SOLANA_LIKE_RECEIVE
                                - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                - SOLANA_LIKE_DELEGATE_STAKE
                                - SOLANA_LIKE_WITHDRAW_STAKE
                                - SOLANA_LIKE_DEACTIVATE_STAKE
                                - SOLANA_LIKE_SPLIT_STAKE
                                - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                - SOLANA_LIKE_MERGE_STAKE
                                - SOLANA_LIKE_SEND_TOKEN
                                - SOLANA_LIKE_FUND_AND_SEND_TOKEN
                                - SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Stellar-like transaction type
                              type: string
                              enum:
                                - STELLAR_LIKE_SEND
                                - STELLAR_LIKE_RECEIVE
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Sui-like transaction type
                              type: string
                              enum:
                                - SUI_LIKE_SEND
                                - SUI_LIKE_RECEIVE
                                - SUI_LIKE_SEND_TOKEN
                                - SUI_LIKE_RECEIVE_TOKEN
                                - SUI_LIKE_STAKE
                                - SUI_LIKE_UNSTAKE
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Tezos-like transaction type
                              type: string
                              enum:
                                - TEZOS_LIKE_SEND
                                - TEZOS_LIKE_RECEIVE
                                - TEZOS_LIKE_REVEAL
                                - TEZOS_LIKE_DELEGATE
                                - TEZOS_LIKE_UNDELEGATE
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              description: Internal unique identifier
                              type: string
                            hash:
                              description: Transaction hash
                              type: string
                            block:
                              type: object
                              properties:
                                height:
                                  description: Transaction block height
                                  anyOf:
                                    - type: string
                                    - type: "null"
                                time:
                                  description: Transaction block time
                                  anyOf:
                                    - type: string
                                    - type: "null"
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              description: Transaction status
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                            confirmations:
                              description: Block confirmations
                              type: string
                            amount:
                              description: Transaction amount
                              type: string
                            fee:
                              description: Transaction fee
                              type: string
                            senders:
                              description: Senders (can be multiple for UTXOs-based accounts)
                              type: array
                              items:
                                type: string
                            recipients:
                              description: Recipients (can be multiple for multi-output transactions)
                              type: array
                              items:
                                type: string
                            type:
                              description: Tron-like transaction type
                              type: string
                              enum:
                                - TRON_LIKE_SEND
                                - TRON_LIKE_RECEIVE
                                - TRON_LIKE_SEND_TOKEN
                                - TRON_LIKE_RECEIVE_TOKEN
                            note:
                              description: Optional transaction note
                              anyOf:
                                - type: object
                                  properties:
                                    title:
                                      description: Note title
                                      type: string
                                    content:
                                      description: Note content
                                      type: string
                                  required:
                                    - title
                                    - content
                                  additionalProperties: false
                                - type: "null"
                            requestId:
                              description: Request ID associated with the transaction, if available
                              anyOf:
                                - type: string
                                - type: "null"
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                            - requestId
                          additionalProperties: false
                      type: object
                required:
                  - next
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/estimate-fees:
    post:
      operationId: accounts-estimateFees
      summary: Estimate transaction fees
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/BitcoinLikeSendData"
                    - $ref: "#/components/schemas/CantonLikeSendData"
                    - $ref: "#/components/schemas/CantonLikeSendTokenData"
                    - $ref: "#/components/schemas/CantonLikeWithdrawData"
                    - $ref: "#/components/schemas/CantonLikeReceiveData"
                    - $ref: "#/components/schemas/CantonLikePreApprovalData"
                    - $ref: "#/components/schemas/CantonLikeTapData"
                    - $ref: "#/components/schemas/CardanoSendData"
                    - $ref: "#/components/schemas/CardanoStakingDelegateData"
                    - $ref: "#/components/schemas/CardanoStakingDeregisterData"
                    - $ref: "#/components/schemas/CardanoStakingRegisterData"
                    - $ref: "#/components/schemas/CardanoStakingWithdrawData"
                    - $ref: "#/components/schemas/EthereumLikeDeployContractData"
                    - $ref: "#/components/schemas/EthereumLikeExecuteContractData"
                    - $ref: "#/components/schemas/EthereumLikeSendData"
                    - $ref: "#/components/schemas/GenericTransactionData"
                    - $ref: "#/components/schemas/HederaLikeSendData"
                    - $ref: "#/components/schemas/HederaLikeSendTokenData"
                    - $ref: "#/components/schemas/PolkadotLikeAddProxyData"
                    - $ref: "#/components/schemas/PolkadotLikeAnonymousProxyData"
                    - $ref: "#/components/schemas/PolkadotLikeBondData"
                    - $ref: "#/components/schemas/PolkadotLikeBondExtraData"
                    - $ref: "#/components/schemas/PolkadotLikeChillData"
                    - $ref: "#/components/schemas/PolkadotLikeKillAnonymousData"
                    - $ref: "#/components/schemas/PolkadotLikeRebondData"
                    - $ref: "#/components/schemas/PolkadotLikeRemoveProxyData"
                    - $ref: "#/components/schemas/PolkadotLikeSendData"
                    - $ref: "#/components/schemas/PolkadotLikeSetPayeeData"
                    - $ref: "#/components/schemas/PolkadotLikeUnbondData"
                    - $ref: "#/components/schemas/PolkadotLikeWithdrawUnbondedData"
                    - $ref: "#/components/schemas/RippleLikeSendData"
                    - $ref: "#/components/schemas/SolanaLikeCreateDelegateStakeData"
                    - $ref: "#/components/schemas/SolanaLikeDeactivateStakeData"
                    - $ref: "#/components/schemas/SolanaLikeDelegateStakeData"
                    - $ref: "#/components/schemas/SolanaLikeMergeStakeData"
                    - $ref: "#/components/schemas/SolanaLikeSendData"
                    - $ref: "#/components/schemas/SolanaLikeSplitDeactivateStakeData"
                    - $ref: "#/components/schemas/SolanaLikeSplitStakeData"
                    - $ref: "#/components/schemas/SolanaLikeWithdrawStakeData"
                    - $ref: "#/components/schemas/SolanaLikeSendTokenData"
                    - $ref: "#/components/schemas/SolanaLikeFundAndSendTokenData"
                    - $ref: "#/components/schemas/SolanaLikeCreateTokenAccountData"
                    - $ref: "#/components/schemas/StellarLikeSendData"
                    - $ref: "#/components/schemas/SuiLikeSendData"
                    - $ref: "#/components/schemas/SuiLikeTransferTokenData"
                    - $ref: "#/components/schemas/SuiLikeStakeData"
                    - $ref: "#/components/schemas/SuiLikeUnstakeData"
                    - $ref: "#/components/schemas/TezosLikeSendData"
                    - $ref: "#/components/schemas/TezosLikeDelegateData"
                    - $ref: "#/components/schemas/TezosLikeUndelegateData"
                    - $ref: "#/components/schemas/TronLikeSendData"
                    - $ref: "#/components/schemas/TronLikeSendTokenData"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      BITCOIN_LIKE_SEND: "#/components/schemas/BitcoinLikeSendData"
                      CANTON_LIKE_SEND: "#/components/schemas/CantonLikeSendData"
                      CANTON_LIKE_SEND_TOKEN: "#/components/schemas/CantonLikeSendTokenData"
                      CANTON_LIKE_WITHDRAW: "#/components/schemas/CantonLikeWithdrawData"
                      CANTON_LIKE_RECEIVE: "#/components/schemas/CantonLikeReceiveData"
                      CANTON_LIKE_PRE_APPROVAL: "#/components/schemas/CantonLikePreApprovalData"
                      CANTON_LIKE_TAP: "#/components/schemas/CantonLikeTapData"
                      CARDANO_LIKE_SEND: "#/components/schemas/CardanoSendData"
                      CARDANO_LIKE_STAKING_DELEGATE: "#/components/schemas/CardanoStakingDelegateData"
                      CARDANO_LIKE_STAKING_DEREGISTER: "#/components/schemas/CardanoStakingDeregisterData"
                      CARDANO_LIKE_STAKING_REGISTER: "#/components/schemas/CardanoStakingRegisterData"
                      CARDANO_LIKE_STAKING_WITHDRAW: "#/components/schemas/CardanoStakingWithdrawData"
                      ETHEREUM_LIKE_DEPLOY_CONTRACT: "#/components/schemas/EthereumLikeDeployContractData"
                      ETHEREUM_LIKE_EXECUTE_CONTRACT: "#/components/schemas/EthereumLikeExecuteContractData"
                      ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendData"
                      GENERIC_TRANSACTION: "#/components/schemas/GenericTransactionData"
                      HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendData"
                      HEDERA_LIKE_SEND_TOKEN: "#/components/schemas/HederaLikeSendTokenData"
                      POLKADOT_LIKE_ADDPROXY: "#/components/schemas/PolkadotLikeAddProxyData"
                      POLKADOT_LIKE_ANONYMOUSPROXY: "#/components/schemas/PolkadotLikeAnonymousProxyData"
                      POLKADOT_LIKE_BOND: "#/components/schemas/PolkadotLikeBondData"
                      POLKADOT_LIKE_BONDEXTRA: "#/components/schemas/PolkadotLikeBondExtraData"
                      POLKADOT_LIKE_CHILL: "#/components/schemas/PolkadotLikeChillData"
                      POLKADOT_LIKE_KILLANONYMOUS: "#/components/schemas/PolkadotLikeKillAnonymousData"
                      POLKADOT_LIKE_REBOND: "#/components/schemas/PolkadotLikeRebondData"
                      POLKADOT_LIKE_REMOVEPROXY: "#/components/schemas/PolkadotLikeRemoveProxyData"
                      POLKADOT_LIKE_SEND: "#/components/schemas/PolkadotLikeSendData"
                      POLKADOT_LIKE_SETPAYEE: "#/components/schemas/PolkadotLikeSetPayeeData"
                      POLKADOT_LIKE_UNBOND: "#/components/schemas/PolkadotLikeUnbondData"
                      POLKADOT_LIKE_WITHDRAWUNBONDED: "#/components/schemas/PolkadotLikeWithdrawUnbondedData"
                      RIPPLE_LIKE_SEND: "#/components/schemas/RippleLikeSendData"
                      SOLANA_LIKE_CREATE_DELEGATE_STAKE: "#/components/schemas/SolanaLikeCreateDelegateStakeData"
                      SOLANA_LIKE_DEACTIVATE_STAKE: "#/components/schemas/SolanaLikeDeactivateStakeData"
                      SOLANA_LIKE_DELEGATE_STAKE: "#/components/schemas/SolanaLikeDelegateStakeData"
                      SOLANA_LIKE_MERGE_STAKE: "#/components/schemas/SolanaLikeMergeStakeData"
                      SOLANA_LIKE_SEND: "#/components/schemas/SolanaLikeSendData"
                      SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE: "#/components/schemas/SolanaLikeSplitDeactivateStakeData"
                      SOLANA_LIKE_SPLIT_STAKE: "#/components/schemas/SolanaLikeSplitStakeData"
                      SOLANA_LIKE_WITHDRAW_STAKE: "#/components/schemas/SolanaLikeWithdrawStakeData"
                      SOLANA_LIKE_SEND_TOKEN: "#/components/schemas/SolanaLikeSendTokenData"
                      SOLANA_LIKE_FUND_AND_SEND_TOKEN: "#/components/schemas/SolanaLikeFundAndSendTokenData"
                      SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT: "#/components/schemas/SolanaLikeCreateTokenAccountData"
                      STELLAR_LIKE_SEND: "#/components/schemas/StellarLikeSendData"
                      SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendData"
                      SUI_LIKE_SEND_TOKEN: "#/components/schemas/SuiLikeTransferTokenData"
                      SUI_LIKE_STAKE: "#/components/schemas/SuiLikeStakeData"
                      SUI_LIKE_UNSTAKE: "#/components/schemas/SuiLikeUnstakeData"
                      TEZOS_LIKE_SEND: "#/components/schemas/TezosLikeSendData"
                      TEZOS_LIKE_DELEGATE: "#/components/schemas/TezosLikeDelegateData"
                      TEZOS_LIKE_UNDELEGATE: "#/components/schemas/TezosLikeUndelegateData"
                      TRON_LIKE_SEND: "#/components/schemas/TronLikeSendData"
                      TRON_LIKE_SEND_TOKEN: "#/components/schemas/TronLikeSendTokenData"
              required:
                - transaction
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                oneOf:
                  - description: Bitcoin-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: BITCOIN_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Ethereum-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: ETHEREUM_LIKE
                      baseFees:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                      gasLimit:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                      nonce:
                        type: string
                      priorityFees:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - baseFees
                      - gasLimit
                      - nonce
                      - priorityFees
                    additionalProperties: false
                  - description: Hedera-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: HEDERA_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Ripple-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: RIPPLE_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Stellar-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: STELLAR_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Sui-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: SUI_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Tezos-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: TEZOS_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                  - description: Tron-like fees
                    type: object
                    properties:
                      type:
                        type: string
                        const: TRON_LIKE
                      fee:
                        type: string
                        minLength: 1
                        pattern: ^(-?[1-9]\d*|0)$
                    required:
                      - type
                      - fee
                    additionalProperties: false
                type: object
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /accounts/{id}/addresses/{index}:
    get:
      operationId: accounts-getUtxoAccountAddressChallengeForApi
      summary: Securely get a verified address for an UTXO based account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
        - in: path
          name: index
          schema:
            description: Index of the address to retrieve
            type: integer
            minimum: 0
            maximum: 9007199254740991
          required: true
          description: Index of the address to retrieve
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: JWT signed by the HSM, and containing the account address
                type: string
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/address:
    get:
      operationId: accounts-getEoaAccountAddressChallengeForApi
      summary: Securely get a verified address for an EOA account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: JWT signed by the HSM, and containing the account address
                type: string
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/balance:
    get:
      operationId: accounts-getAccountBalance
      summary: Get balance of a single account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccountLiveDataResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/parent-account-info:
    get:
      operationId: accounts-getParentAccountInfo
      summary: Get parent account info or own account info if there is no parent
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/AccountLiveDataResponse"
                  - type: object
                    properties:
                      name:
                        description: Account name
                        type: string
                      network:
                        description: Account network
                        type: string
                    required:
                      - name
                      - network
                    additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/balances:
    get:
      operationId: accounts-getAccountBalances
      summary: Get balances of a multiple accounts
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: query
          name: ids
          schema:
            description: Ids of the target accounts, maximum 30
            maxItems: 30
            type: array
            items:
              type: string
          required: true
          description: Ids of the target accounts, maximum 30
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/AccountLiveDataResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/fresh-address:
    get:
      operationId: accounts-getFreshAddress
      summary: Get a fresh address of an account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  address:
                    description: Address
                    type: string
                  derivationPath:
                    description: Derivation path
                    anyOf:
                      - type: string
                      - type: "null"
                required:
                  - address
                  - derivationPath
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/stakes:
    get:
      operationId: accounts-listAccountStakes
      summary: List account stakes
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
        - in: query
          name: cursor
          schema:
            description: Optional cursor to get next pages (based on the `next` key on query
              response)
            type: string
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: total
            type: string
            enum:
              - staked
              - rewards
              - total
        - in: query
          name: sortOrder
          schema:
            default: desc
            description: Sort order
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    description: Next page cursor
                    anyOf:
                      - type: string
                      - type: "null"
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Staking position ID (if applicable)
                          type: string
                          minLength: 1
                        validator:
                          description: Validator address
                          type: string
                          minLength: 1
                        state:
                          description: Stake state
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                            - ACTIVATING
                            - DEACTIVATING
                            - UNKNOWN
                        staked:
                          description: Staked amount
                          type: string
                        rewards:
                          type: object
                          properties:
                            total:
                              description: Total rewards
                              type: string
                          required:
                            - total
                          additionalProperties: false
                      required:
                        - id
                        - validator
                        - state
                        - staked
                        - rewards
                      additionalProperties: false
                required:
                  - next
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/staking-validators:
    get:
      operationId: accounts-listStakingValidators
      summary: List staking validators for account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
        - in: query
          name: cursor
          schema:
            description: Optional cursor to get next pages (based on the `next` key on query
              response)
            type: string
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: balance
            type: string
            enum:
              - balance
        - in: query
          name: sortOrder
          schema:
            default: desc
            description: Sort order
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    description: Next page cursor
                    anyOf:
                      - type: string
                      - type: "null"
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        address:
                          description: Validator address
                          type: string
                        apy:
                          description: Validator APY
                          anyOf:
                            - type: string
                            - type: "null"
                        balance:
                          description: Validator balance
                          anyOf:
                            - type: string
                            - type: "null"
                        commissionRate:
                          description: Validator commission rate
                          anyOf:
                            - type: string
                            - type: "null"
                        description:
                          description: Description
                          anyOf:
                            - type: string
                            - type: "null"
                        logo:
                          description: Logo URL
                          anyOf:
                            - type: string
                            - type: "null"
                        name:
                          description: Validator name
                          anyOf:
                            - type: string
                            - type: "null"
                        url:
                          description: Validator URL
                          anyOf:
                            - type: string
                            - type: "null"
                      required:
                        - address
                        - apy
                        - balance
                        - commissionRate
                        - description
                        - logo
                        - name
                        - url
                      additionalProperties: false
                required:
                  - next
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/canton/pre-approval-state:
    get:
      operationId: accounts-canton-getPreApprovalState
      summary: Get pre-approval state of a Canton account
      tags:
        - account
        - canton
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target Canton account
            type: string
          required: true
          description: Id of the target Canton account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: Pre-approval state of the account
                oneOf:
                  - type: object
                    properties:
                      enabled:
                        description: Pre-approval is enabled
                        type: boolean
                        const: true
                      contractId:
                        description: ID of the pre-approval contract
                        type: string
                      expiresAt:
                        description: Timestamp when the pre-approval expires and becomes invalid
                        type: string
                      lastRenewedAt:
                        description: Timestamp of the most recent renewal of the pre-approval
                        type: string
                      provider:
                        description: Validator that issued and manages the pre-approval
                        type: string
                      recipient:
                        description: Party that authorizes the pre-approval to receive transfers
                        type: string
                      validFrom:
                        description: Timestamp when the pre-approval becomes effective
                        type: string
                    required:
                      - enabled
                      - contractId
                      - expiresAt
                      - lastRenewedAt
                      - provider
                      - recipient
                      - validFrom
                    additionalProperties: false
                  - type: object
                    properties:
                      enabled:
                        description: Pre-approval is not enabled
                        type: boolean
                        const: false
                    required:
                      - enabled
                    additionalProperties: false
                type: object
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /accounts/{id}/canton/transfer-proposals:
    get:
      operationId: accounts-canton-getTransferProposals
      summary: Get transfer proposals to a Canton account
      tags:
        - account
        - canton
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target Canton account
            type: string
          required: true
          description: Id of the target Canton account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/CantonTransferProposalOutput"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /signed-messages:
    get:
      operationId: signedMessages-list
      summary: List signed messages by account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: accountId
          schema:
            description: Id of the target account
            type: string
          required: true
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      $ref: "#/components/schemas/SignedMessageResponse"
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /signed-messages/{id}:
    get:
      operationId: signedMessages-findById
      summary: Get a single signed message
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the signed message
            type: string
          required: true
          description: Id of the signed message
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SignedMessageResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /groups:
    get:
      operationId: groups-list
      summary: List groups
      description: List groups in the same workspace.
      tags:
        - group
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: status
          schema:
            description: Group status
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Internal unique identifier
                          type: string
                        legacyId:
                          description: Legacy internal unique identifier (for retro-compatibility)
                          type: number
                        name:
                          description: Group name
                          type: string
                        description:
                          description: Group description
                          anyOf:
                            - type: string
                            - type: "null"
                        status:
                          description: Group status
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                        members:
                          description: Group members
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                description: Internal unique identifier
                                type: string
                              legacyId:
                                description: Legacy internal unique identifier (for retro-compatibility)
                                type: number
                              legacyViewAll:
                                description: If true, user can read all resources on the workspace
                                type: boolean
                              workspaceName:
                                description: User's workspace name
                                type: string
                              name:
                                description: User name
                                type: string
                              deviceUserId:
                                description: User's device ID (for non-API users)
                                anyOf:
                                  - type: string
                                  - type: "null"
                              deviceType:
                                description: User's device type
                                type: string
                                enum:
                                  - PSD
                                  - SOFT_PSD
                                  - API
                              role:
                                description: User role
                                type: string
                                enum:
                                  - ADMIN
                                  - OPERATOR
                                  - READ_ONLY_API_KEY
                              pubKey:
                                description: User public key
                                type: string
                              status:
                                description: User status
                                type: string
                                enum:
                                  - ACTIVE
                                  - INACTIVE
                              isSuspended:
                                description: Whether the user is suspended
                                type: boolean
                              createdAt:
                                description: Creation timestamp
                                type: string
                              updatedAt:
                                description: Last modification timestamp
                                type: string
                            required:
                              - id
                              - legacyId
                              - legacyViewAll
                              - workspaceName
                              - name
                              - deviceUserId
                              - deviceType
                              - role
                              - pubKey
                              - status
                              - isSuspended
                              - createdAt
                              - updatedAt
                            additionalProperties: false
                        createdAt:
                          description: Creation timestamp
                          type: string
                        updatedAt:
                          description: Last modification timestamp
                          type: string
                      required:
                        - id
                        - legacyId
                        - name
                        - description
                        - status
                        - members
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /groups/{id}:
    get:
      operationId: groups-findById
      summary: Get a single group
      description: Find a group by ID.
      tags:
        - group
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target group
            type: string
          required: true
          description: Id of the target group
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: Internal unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  name:
                    description: Group name
                    type: string
                  description:
                    description: Group description
                    anyOf:
                      - type: string
                      - type: "null"
                  status:
                    description: Group status
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                  members:
                    description: Group members
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Internal unique identifier
                          type: string
                        legacyId:
                          description: Legacy internal unique identifier (for retro-compatibility)
                          type: number
                        legacyViewAll:
                          description: If true, user can read all resources on the workspace
                          type: boolean
                        workspaceName:
                          description: User's workspace name
                          type: string
                        name:
                          description: User name
                          type: string
                        deviceUserId:
                          description: User's device ID (for non-API users)
                          anyOf:
                            - type: string
                            - type: "null"
                        deviceType:
                          description: User's device type
                          type: string
                          enum:
                            - PSD
                            - SOFT_PSD
                            - API
                        role:
                          description: User role
                          type: string
                          enum:
                            - ADMIN
                            - OPERATOR
                            - READ_ONLY_API_KEY
                        pubKey:
                          description: User public key
                          type: string
                        status:
                          description: User status
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                        isSuspended:
                          description: Whether the user is suspended
                          type: boolean
                        createdAt:
                          description: Creation timestamp
                          type: string
                        updatedAt:
                          description: Last modification timestamp
                          type: string
                      required:
                        - id
                        - legacyId
                        - legacyViewAll
                        - workspaceName
                        - name
                        - deviceUserId
                        - deviceType
                        - role
                        - pubKey
                        - status
                        - isSuspended
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                required:
                  - id
                  - legacyId
                  - name
                  - description
                  - status
                  - members
                  - createdAt
                  - updatedAt
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /whitelists:
    get:
      operationId: whitelists-list
      summary: List whitelists
      description: List whitelists in the same workspace.
      tags:
        - whitelist
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: status
          schema:
            description: Whitelist status
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      $ref: "#/components/schemas/WhitelistResponse"
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /whitelists/{id}:
    get:
      operationId: whitelists-findById
      summary: Get a single whitelist
      description: Find a whitelist by ID.
      tags:
        - whitelist
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target group
            type: string
          required: true
          description: Id of the target group
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WhitelistResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /policies:
    get:
      operationId: policies-list
      summary: List policies
      tags:
        - policy
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: name
          schema:
            description: Search by matching name
            type: string
        - in: query
          name: isPrivate
          schema:
            default: false
            description: Search private policies
            type: boolean
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      $ref: "#/components/schemas/PolicyResponse"
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /policies/{id}:
    get:
      operationId: policies-findById
      summary: Get a single policy
      tags:
        - policy
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target policy
            type: string
          required: true
          description: Id of the target policy
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PolicyResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /entities:
    get:
      operationId: entities-list
      summary: List entities
      description: List entities in the same workspace.
      tags:
        - entity
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: status
          schema:
            description: Entity status
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Entity ID
                          type: string
                        legacyId:
                          description: Legacy internal unique identifier (for retro-compatibility)
                          type: number
                        name:
                          description: Entity name
                          type: string
                        status:
                          description: Entity status
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                        accountIds:
                          description: Accounts in this entity
                          type: array
                          items:
                            type: string
                        memberIds:
                          description: Users in this entity
                          type: array
                          items:
                            type: string
                        createdAt:
                          description: Creation timestamp
                          type: string
                        updatedAt:
                          description: Last modification timestamp
                          type: string
                      required:
                        - id
                        - legacyId
                        - name
                        - status
                        - accountIds
                        - memberIds
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /entities/{id}:
    get:
      operationId: entities-findById
      summary: Get a single entity
      description: Find an entity by ID.
      tags:
        - entity
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the target entity
            type: string
          required: true
          description: Id of the target entity
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: Entity ID
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  name:
                    description: Entity name
                    type: string
                  status:
                    description: Entity status
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                  accountIds:
                    description: Accounts in this entity
                    type: array
                    items:
                      type: string
                  memberIds:
                    description: Users in this entity
                    type: array
                    items:
                      type: string
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                required:
                  - id
                  - legacyId
                  - name
                  - status
                  - accountIds
                  - memberIds
                  - createdAt
                  - updatedAt
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /requests:
    get:
      operationId: requests-list
      summary: List requests
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: type
          schema:
            description: Search by request type
            anyOf:
              - description: Multiple types
                type: array
                items:
                  type: string
                  enum:
                    - UPDATE_QUORUM
                    - CREATE_TRANSACTION
                    - SIGN_MESSAGE
                    - SIGN_DIGESTS
                    - CREATE_ACCOUNT
                    - EDIT_ACCOUNT
                    - CREATE_GROUP
                    - EDIT_GROUP
                    - REVOKE_GROUP
                    - CREATE_WHITELIST
                    - EDIT_WHITELIST
                    - CREATE_ENTITY
                    - EDIT_ENTITY
                    - REVOKE_ENTITY
                    - CREATE_PSD_USER
                    - CREATE_API_USER
                    - CREATE_API_USER_ACCESS
                    - REVOKE_USER
                    - EDIT_WORKSPACE_RULE
                    - CREATE_SCICONFIG
                    - EDIT_SCICONFIG
                    - CREATE_API_KEY
                    - EDIT_API_KEY
                    - REVOKE_API_KEY
                    - CREATE_POLICY
                    - EDIT_POLICY
                    - EDIT_TOKEN_RULE
                    - TRADELINK_CREATE_CUSTODIAN
                    - TRADELINK_EDIT_CUSTODIAN
                    - TRADELINK_CREATE_EXCHANGE
                    - TRADELINK_EDIT_EXCHANGE
                    - TRADELINK_CREATE_ASSET_MANAGER
                    - TRADELINK_EDIT_ASSET_MANAGER
                    - TRADELINK_ACTIVATE_ACCOUNT
                    - TRADELINK_ADJUST_PLEDGE
                    - TRADELINK_CREATE_SETTLEMENT
                    - TRADELINK_FORCE_UNPLEDGE
                    - TRADELINK_ARBITRATE
                    - TRADELINK_WITHDRAW
                    - TRADELINK_REPLEDGE
              - description: Single type
                type: string
                enum:
                  - UPDATE_QUORUM
                  - CREATE_TRANSACTION
                  - SIGN_MESSAGE
                  - SIGN_DIGESTS
                  - CREATE_ACCOUNT
                  - EDIT_ACCOUNT
                  - CREATE_GROUP
                  - EDIT_GROUP
                  - REVOKE_GROUP
                  - CREATE_WHITELIST
                  - EDIT_WHITELIST
                  - CREATE_ENTITY
                  - EDIT_ENTITY
                  - REVOKE_ENTITY
                  - CREATE_PSD_USER
                  - CREATE_API_USER
                  - CREATE_API_USER_ACCESS
                  - REVOKE_USER
                  - EDIT_WORKSPACE_RULE
                  - CREATE_SCICONFIG
                  - EDIT_SCICONFIG
                  - CREATE_API_KEY
                  - EDIT_API_KEY
                  - REVOKE_API_KEY
                  - CREATE_POLICY
                  - EDIT_POLICY
                  - EDIT_TOKEN_RULE
                  - TRADELINK_CREATE_CUSTODIAN
                  - TRADELINK_EDIT_CUSTODIAN
                  - TRADELINK_CREATE_EXCHANGE
                  - TRADELINK_EDIT_EXCHANGE
                  - TRADELINK_CREATE_ASSET_MANAGER
                  - TRADELINK_EDIT_ASSET_MANAGER
                  - TRADELINK_ACTIVATE_ACCOUNT
                  - TRADELINK_ADJUST_PLEDGE
                  - TRADELINK_CREATE_SETTLEMENT
                  - TRADELINK_FORCE_UNPLEDGE
                  - TRADELINK_ARBITRATE
                  - TRADELINK_WITHDRAW
                  - TRADELINK_REPLEDGE
        - in: query
          name: state
          schema:
            description: Search by request state
            anyOf:
              - description: Multiple states
                type: array
                items:
                  type: string
                  enum:
                    - INITIAL
                    - PENDING_APPROVAL
                    - EXECUTING
                    - EXECUTED
                    - FAILED
                    - ABORTED
                    - BLOCKED
                    - EXPIRED
                    - STUCK
              - description: Single state
                type: string
                enum:
                  - INITIAL
                  - PENDING_APPROVAL
                  - EXECUTING
                  - EXECUTED
                  - FAILED
                  - ABORTED
                  - BLOCKED
                  - EXPIRED
                  - STUCK
        - in: query
          name: targetId
          schema:
            description: Search by target ID
            type: string
        - in: query
          name: createdBy
          schema:
            description: Search by request creator (user ID or 'me')
            type: string
        - in: query
          name: reviewedBy
          schema:
            description: Search by user who has already reviewed (user ID or 'me')
            type: string
        - in: query
          name: pendingBy
          schema:
            description: Search by user who has a pending review for the request (user ID or
              'me')
            type: string
        - in: query
          name: sortBy
          schema:
            description: Sort by attribute
            default: createdAt
            type: string
            enum:
              - state
              - expiresAt
              - createdAt
              - updatedAt
        - in: query
          name: sortOrder
          schema:
            description: Sort order
            default: asc
            type: string
            enum:
              - asc
              - desc
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      $ref: "#/components/schemas/VaultRequestResponse"
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /requests/{id}:
    get:
      operationId: requests-findById
      summary: Get a request by ID
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the request
            type: string
          required: true
          description: Id of the request
        - in: query
          name: withInflight
          schema:
            description: Include extra inflight information
            default: false
            type: boolean
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VaultRequestResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /requests/{id}/challenge:
    get:
      operationId: requests-getChallenge
      summary: Get the challenge of the specified request for current user
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: Id of the request
            type: string
          required: true
          description: Id of the request
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  pubKey:
                    description: Public key of the current user
                    type: string
                  challenge:
                    description: Challenge data to sign with the user's private key
                    oneOf:
                      - type: object
                        properties:
                          challengeType:
                            type: string
                            const: PSD
                          wActions:
                            description: Wrapped blobs that describe the screens to display
                            type: array
                            items:
                              type: string
                          handshake:
                            description: Handshake for the HSM <-> PSD communication
                            type: string
                          handshakeAttestation:
                            description: Handshake attestation to verify secure channel between HSM & PSD
                            type: object
                            properties:
                              codeHash:
                                description: Hash of the executable that generated this certificate
                                type: string
                                format: base64
                                contentEncoding: base64
                                pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
                              attestationPub:
                                description: Attestation public key
                                type: string
                                format: base64
                                contentEncoding: base64
                                pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
                              certificate:
                                description: Certificate bytes
                                type: string
                                format: base64
                                contentEncoding: base64
                                pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
                              signature:
                                description: Certificate signature
                                type: string
                                format: base64
                                contentEncoding: base64
                                pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
                            required:
                              - codeHash
                              - attestationPub
                              - certificate
                              - signature
                            additionalProperties: false
                          partitionId:
                            description: HSM partition id (maybe not useful)
                            type: string
                        required:
                          - challengeType
                          - wActions
                          - handshake
                          - handshakeAttestation
                          - partitionId
                        additionalProperties: false
                      - type: object
                        properties:
                          challengeType:
                            type: string
                            const: API
                          payload:
                            description: JSON payload to approve and to reject
                            type: object
                            properties:
                              approve:
                                description: JSON payload to sign (as JWS) to approve
                                type: string
                              reject:
                                description: JSON payload to sign (as JWS) to reject
                                type: string
                            required:
                              - approve
                              - reject
                            additionalProperties: false
                        required:
                          - challengeType
                          - payload
                        additionalProperties: false
                      - type: object
                        properties:
                          challengeType:
                            type: string
                            const: SOFT
                        required:
                          - challengeType
                        additionalProperties: false
                    type: object
                required:
                  - pubKey
                  - challenge
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /requests/transaction/sui:
    post:
      operationId: requests-createSuiTransaction
      summary: Create a Sui transaction request
      tags:
        - request
      security:
        - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              description: Transaction request data
              type: object
              properties:
                accountId:
                  description: Target account id
                  type: string
                  minLength: 1
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/SuiLikeSendData"
                    - $ref: "#/components/schemas/SuiLikeTransferTokenData"
                    - $ref: "#/components/schemas/SuiLikeStakeData"
                    - $ref: "#/components/schemas/SuiLikeUnstakeData"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendData"
                      SUI_LIKE_SEND_TOKEN: "#/components/schemas/SuiLikeTransferTokenData"
                      SUI_LIKE_STAKE: "#/components/schemas/SuiLikeStakeData"
                      SUI_LIKE_UNSTAKE: "#/components/schemas/SuiLikeUnstakeData"
                note:
                  description: Optional request note
                  type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
              required:
                - accountId
                - transaction
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: Transaction request
                type: object
                properties:
                  type:
                    type: string
                    const: CREATE_TRANSACTION
                  data:
                    type: object
                    properties:
                      accountId:
                        type: string
                      transaction:
                        oneOf:
                          - $ref: "#/components/schemas/SuiLikeSendDataOutput"
                          - $ref: "#/components/schemas/SuiLikeTransferTokenDataOutput"
                          - $ref: "#/components/schemas/SuiLikeStakeDataOutput"
                          - $ref: "#/components/schemas/SuiLikeUnstakeDataOutput"
                        type: object
                        discriminator:
                          propertyName: type
                          mapping:
                            SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendDataOutput"
                            SUI_LIKE_SEND_TOKEN: "#/components/schemas/SuiLikeTransferTokenDataOutput"
                            SUI_LIKE_STAKE: "#/components/schemas/SuiLikeStakeDataOutput"
                            SUI_LIKE_UNSTAKE: "#/components/schemas/SuiLikeUnstakeDataOutput"
                    required:
                      - accountId
                      - transaction
                    additionalProperties: false
                  id:
                    description: Request unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  state:
                    description: Request state
                    type: string
                    enum:
                      - INITIAL
                      - PENDING_APPROVAL
                      - EXECUTING
                      - EXECUTED
                      - FAILED
                      - ABORTED
                      - BLOCKED
                      - EXPIRED
                      - STUCK
                  reviewSteps:
                    description: Request review steps
                    type: array
                    items:
                      type: object
                      properties:
                        stageName:
                          description: The review stage name
                          type: string
                          pattern: ^\w+$
                        quorum:
                          description: Quorum for the review step
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                      required:
                        - stageName
                        - quorum
                      additionalProperties: false
                  currentStepIndex:
                    description: Index of the current approval step
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  expiresAt:
                    description: Request expiration date
                    type: string
                  expiredAt:
                    description: "Deprecated: use expiresAt"
                    type: string
                  targetId:
                    description: Optional ID of the target object
                    anyOf:
                      - type: string
                      - type: "null"
                  note:
                    description: Optional request note
                    anyOf:
                      - type: object
                        properties:
                          title:
                            description: Note title
                            type: string
                          content:
                            description: Note content
                            type: string
                        required:
                          - title
                          - content
                        additionalProperties: false
                      - type: "null"
                  reviews:
                    description: Requests reviews
                    type: array
                    items:
                      type: object
                      properties:
                        stepIndex:
                          description: Index of the governance step in the request workflow
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        userId:
                          description: Reviewer id
                          type: string
                        status:
                          description: Review status
                          type: string
                          enum:
                            - PENDING
                            - QUEUED
                            - APPROVED
                            - REJECTED
                            - OBSOLETE
                        createdAt:
                          description: Created date
                          type: string
                        updatedAt:
                          description: Updated date
                          type: string
                      required:
                        - stepIndex
                        - userId
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                  createdById:
                    description: ID of the user who created the request
                    type: string
                  inflight:
                    description: Extra information if the request is currently being processed
                    type: object
                    properties:
                      lastError:
                        description: Error message from the last failure
                        anyOf:
                          - type: string
                          - type: "null"
                      numFailed:
                        description: Number of failures so far
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      retryAfter:
                        description: Date after which next retry is scheduled
                        type: string
                    required:
                      - lastError
                      - numFailed
                      - retryAfter
                    additionalProperties: false
                required:
                  - type
                  - data
                  - id
                  - legacyId
                  - state
                  - reviewSteps
                  - currentStepIndex
                  - expiresAt
                  - targetId
                  - note
                  - reviews
                  - createdAt
                  - updatedAt
                  - createdById
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /requests/transaction/ethereum:
    post:
      operationId: requests-createEthTransaction
      summary: Create an Ethereum transaction request
      tags:
        - request
      security:
        - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              description: Transaction request data
              type: object
              properties:
                accountId:
                  description: Target account id
                  type: string
                  minLength: 1
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/EthereumLikeDeployContractData"
                    - $ref: "#/components/schemas/EthereumLikeExecuteContractData"
                    - $ref: "#/components/schemas/EthereumLikeSendData"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      ETHEREUM_LIKE_DEPLOY_CONTRACT: "#/components/schemas/EthereumLikeDeployContractData"
                      ETHEREUM_LIKE_EXECUTE_CONTRACT: "#/components/schemas/EthereumLikeExecuteContractData"
                      ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendData"
                note:
                  description: Optional request note
                  type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
              required:
                - accountId
                - transaction
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: Transaction request
                type: object
                properties:
                  type:
                    type: string
                    const: CREATE_TRANSACTION
                  data:
                    type: object
                    properties:
                      accountId:
                        type: string
                      transaction:
                        oneOf:
                          - $ref: "#/components/schemas/EthereumLikeDeployContractDataOutput"
                          - $ref: "#/components/schemas/EthereumLikeExecuteContractDataOutput"
                          - $ref: "#/components/schemas/EthereumLikeSendDataOutput"
                        type: object
                        discriminator:
                          propertyName: type
                          mapping:
                            ETHEREUM_LIKE_DEPLOY_CONTRACT: "#/components/schemas/EthereumLikeDeployContract\
                              DataOutput"
                            ETHEREUM_LIKE_EXECUTE_CONTRACT: "#/components/schemas/EthereumLikeExecuteContra\
                              ctDataOutput"
                            ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendDataOutput"
                    required:
                      - accountId
                      - transaction
                    additionalProperties: false
                  id:
                    description: Request unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  state:
                    description: Request state
                    type: string
                    enum:
                      - INITIAL
                      - PENDING_APPROVAL
                      - EXECUTING
                      - EXECUTED
                      - FAILED
                      - ABORTED
                      - BLOCKED
                      - EXPIRED
                      - STUCK
                  reviewSteps:
                    description: Request review steps
                    type: array
                    items:
                      type: object
                      properties:
                        stageName:
                          description: The review stage name
                          type: string
                          pattern: ^\w+$
                        quorum:
                          description: Quorum for the review step
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                      required:
                        - stageName
                        - quorum
                      additionalProperties: false
                  currentStepIndex:
                    description: Index of the current approval step
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  expiresAt:
                    description: Request expiration date
                    type: string
                  expiredAt:
                    description: "Deprecated: use expiresAt"
                    type: string
                  targetId:
                    description: Optional ID of the target object
                    anyOf:
                      - type: string
                      - type: "null"
                  note:
                    description: Optional request note
                    anyOf:
                      - type: object
                        properties:
                          title:
                            description: Note title
                            type: string
                          content:
                            description: Note content
                            type: string
                        required:
                          - title
                          - content
                        additionalProperties: false
                      - type: "null"
                  reviews:
                    description: Requests reviews
                    type: array
                    items:
                      type: object
                      properties:
                        stepIndex:
                          description: Index of the governance step in the request workflow
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        userId:
                          description: Reviewer id
                          type: string
                        status:
                          description: Review status
                          type: string
                          enum:
                            - PENDING
                            - QUEUED
                            - APPROVED
                            - REJECTED
                            - OBSOLETE
                        createdAt:
                          description: Created date
                          type: string
                        updatedAt:
                          description: Updated date
                          type: string
                      required:
                        - stepIndex
                        - userId
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                  createdById:
                    description: ID of the user who created the request
                    type: string
                  inflight:
                    description: Extra information if the request is currently being processed
                    type: object
                    properties:
                      lastError:
                        description: Error message from the last failure
                        anyOf:
                          - type: string
                          - type: "null"
                      numFailed:
                        description: Number of failures so far
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      retryAfter:
                        description: Date after which next retry is scheduled
                        type: string
                    required:
                      - lastError
                      - numFailed
                      - retryAfter
                    additionalProperties: false
                required:
                  - type
                  - data
                  - id
                  - legacyId
                  - state
                  - reviewSteps
                  - currentStepIndex
                  - expiresAt
                  - targetId
                  - note
                  - reviews
                  - createdAt
                  - updatedAt
                  - createdById
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /requests/transaction/hedera:
    post:
      operationId: requests-createHederaTransaction
      summary: Create a Hedera transaction request
      tags:
        - request
      security:
        - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              description: Transaction request data
              type: object
              properties:
                accountId:
                  description: Target account id
                  type: string
                  minLength: 1
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/HederaLikeSendData"
                    - $ref: "#/components/schemas/HederaLikeSendTokenData"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendData"
                      HEDERA_LIKE_SEND_TOKEN: "#/components/schemas/HederaLikeSendTokenData"
                note:
                  description: Optional request note
                  type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
              required:
                - accountId
                - transaction
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: Transaction request
                type: object
                properties:
                  type:
                    type: string
                    const: CREATE_TRANSACTION
                  data:
                    type: object
                    properties:
                      accountId:
                        type: string
                      transaction:
                        oneOf:
                          - $ref: "#/components/schemas/HederaLikeSendDataOutput"
                          - $ref: "#/components/schemas/HederaLikeSendTokenDataOutput"
                        type: object
                        discriminator:
                          propertyName: type
                          mapping:
                            HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendDataOutput"
                            HEDERA_LIKE_SEND_TOKEN: "#/components/schemas/HederaLikeSendTokenDataOutput"
                    required:
                      - accountId
                      - transaction
                    additionalProperties: false
                  id:
                    description: Request unique identifier
                    type: string
                  legacyId:
                    description: Legacy internal unique identifier (for retro-compatibility)
                    type: number
                  state:
                    description: Request state
                    type: string
                    enum:
                      - INITIAL
                      - PENDING_APPROVAL
                      - EXECUTING
                      - EXECUTED
                      - FAILED
                      - ABORTED
                      - BLOCKED
                      - EXPIRED
                      - STUCK
                  reviewSteps:
                    description: Request review steps
                    type: array
                    items:
                      type: object
                      properties:
                        stageName:
                          description: The review stage name
                          type: string
                          pattern: ^\w+$
                        quorum:
                          description: Quorum for the review step
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                      required:
                        - stageName
                        - quorum
                      additionalProperties: false
                  currentStepIndex:
                    description: Index of the current approval step
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  expiresAt:
                    description: Request expiration date
                    type: string
                  expiredAt:
                    description: "Deprecated: use expiresAt"
                    type: string
                  targetId:
                    description: Optional ID of the target object
                    anyOf:
                      - type: string
                      - type: "null"
                  note:
                    description: Optional request note
                    anyOf:
                      - type: object
                        properties:
                          title:
                            description: Note title
                            type: string
                          content:
                            description: Note content
                            type: string
                        required:
                          - title
                          - content
                        additionalProperties: false
                      - type: "null"
                  reviews:
                    description: Requests reviews
                    type: array
                    items:
                      type: object
                      properties:
                        stepIndex:
                          description: Index of the governance step in the request workflow
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        userId:
                          description: Reviewer id
                          type: string
                        status:
                          description: Review status
                          type: string
                          enum:
                            - PENDING
                            - QUEUED
                            - APPROVED
                            - REJECTED
                            - OBSOLETE
                        createdAt:
                          description: Created date
                          type: string
                        updatedAt:
                          description: Updated date
                          type: string
                      required:
                        - stepIndex
                        - userId
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                  createdAt:
                    description: Creation timestamp
                    type: string
                  updatedAt:
                    description: Last modification timestamp
                    type: string
                  createdById:
                    description: ID of the user who created the request
                    type: string
                  inflight:
                    description: Extra information if the request is currently being processed
                    type: object
                    properties:
                      lastError:
                        description: Error message from the last failure
                        anyOf:
                          - type: string
                          - type: "null"
                      numFailed:
                        description: Number of failures so far
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      retryAfter:
                        description: Date after which next retry is scheduled
                        type: string
                    required:
                      - lastError
                      - numFailed
                      - retryAfter
                    additionalProperties: false
                required:
                  - type
                  - data
                  - id
                  - legacyId
                  - state
                  - reviewSteps
                  - currentStepIndex
                  - expiresAt
                  - targetId
                  - note
                  - reviews
                  - createdAt
                  - updatedAt
                  - createdById
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /requests/{id}/approve:
    post:
      operationId: requests-approve
      summary: Approve a request from the current user
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: ID of the request to approve
            type: string
          required: true
          description: ID of the request to approve
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  oneOf:
                    - type: object
                      properties:
                        challengeType:
                          description: Challenge type
                          type: string
                          enum:
                            - PSD
                            - API
                        signature:
                          description: Challenge signature
                          type: string
                          minLength: 1
                      required:
                        - challengeType
                        - signature
                    - type: object
                      properties:
                        challengeType:
                          description: Challenge type
                          type: string
                          enum:
                            - SOFT
                      required:
                        - challengeType
                  type: object
              required:
                - data
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VaultRequestResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /requests/{id}/reject:
    post:
      operationId: requests-reject
      summary: Reject a request from the current user
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - in: path
          name: id
          schema:
            description: ID of the request to reject
            type: string
          required: true
          description: ID of the request to reject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  description: Response to the challenge
                  anyOf:
                    - type: object
                      properties:
                        signature:
                          type: string
                          minLength: 1
                        challengeType:
                          type: string
                          const: API
                      required:
                        - signature
                        - challengeType
                    - type: "null"
              required:
                - data
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VaultRequestResponse"
        "400": *a1
        "401": *a2
        "403": *a3
        "500": *a4
  /assets/currencies:
    get:
      operationId: assets-currencies
      summary: List currencies
      tags:
        - assets
      security:
        - Authorization: []
      parameters:
        - in: query
          name: cursor
          schema:
            description: Optional cursor to get next pages (based on the `next` key on query
              response)
            type: string
        - in: query
          name: search
          schema:
            description: Search by name, ticker
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    description: Next page cursor
                    anyOf:
                      - type: string
                      - type: "null"
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Asset identifier
                          type: string
                        name:
                          description: Asset name
                          type: string
                        ticker:
                          description: Asset ticker
                          type: string
                        type:
                          description: Asset type
                          type: string
                          enum:
                            - BITCOIN_LIKE
                            - CANTON_LIKE
                            - CARDANO_LIKE
                            - ETHEREUM_LIKE
                            - GENERIC_LIKE
                            - HEDERA_LIKE
                            - POLKADOT_LIKE
                            - RAW_SIGNING
                            - RIPPLE_LIKE
                            - SOLANA_LIKE
                            - STELLAR_LIKE
                            - SUI_LIKE
                            - TEZOS_LIKE
                            - TRON_LIKE
                        units:
                          description: Asset units
                          type: array
                          items:
                            description: Asset units
                            type: object
                            properties:
                              code:
                                description: "Unit denomination, e.g: wei, Gwei, etc."
                                type: string
                              name:
                                description: Full name
                                type: string
                              magnitude:
                                description: Number of decimals place
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                            required:
                              - code
                              - name
                              - magnitude
                            additionalProperties: false
                      required:
                        - id
                        - name
                        - ticker
                        - type
                        - units
                      additionalProperties: false
                required:
                  - next
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /assets/tokens:
    get:
      operationId: assets-tokens
      summary: List tokens
      tags:
        - assets
      security:
        - Authorization: []
      parameters:
        - in: query
          name: cursor
          schema:
            description: Optional cursor to get next pages (based on the `next` key on query
              response)
            type: string
        - in: query
          name: search
          schema:
            description: Search by name, ticker, or contract address
            type: string
        - in: query
          name: network
          schema:
            description: TODO
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    description: Next page cursor
                    anyOf:
                      - type: string
                      - type: "null"
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Asset identifier
                          type: string
                        name:
                          description: Asset name
                          type: string
                        ticker:
                          description: Asset ticker
                          type: string
                        type:
                          description: Asset type
                          type: string
                          enum:
                            - BITCOIN_LIKE
                            - CANTON_LIKE
                            - CARDANO_LIKE
                            - ETHEREUM_LIKE
                            - GENERIC_LIKE
                            - HEDERA_LIKE
                            - POLKADOT_LIKE
                            - RAW_SIGNING
                            - RIPPLE_LIKE
                            - SOLANA_LIKE
                            - STELLAR_LIKE
                            - SUI_LIKE
                            - TEZOS_LIKE
                            - TRON_LIKE
                        units:
                          description: Asset units
                          type: array
                          items:
                            description: Asset units
                            type: object
                            properties:
                              code:
                                description: "Unit denomination, e.g: wei, Gwei, etc."
                                type: string
                              name:
                                description: Full name
                                type: string
                              magnitude:
                                description: Number of decimals place
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                            required:
                              - code
                              - name
                              - magnitude
                            additionalProperties: false
                        contractAddress:
                          description: Token contract address
                          type: string
                        currency:
                          description: Parent currency
                          type: string
                      required:
                        - id
                        - name
                        - ticker
                        - type
                        - units
                        - contractAddress
                        - currency
                      additionalProperties: false
                required:
                  - next
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /tradelink/network:
    get:
      operationId: tradelink-getNetwork
      summary: Get Tradelink network instance
      description: Get the materialized Tradelink Network configuration of workspace
      tags:
        - tradelink
      security:
        - Authorization: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      custodian:
                        type: object
                        properties:
                          id:
                            type: string
                          settlement:
                            type: array
                            items:
                              description: Review step with users
                              type: object
                              properties:
                                quorum:
                                  description: Number of required approvals for the step
                                  type: number
                                  minimum: 0
                                userIds:
                                  description: User ids in the step
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                          withdraw:
                            type: array
                            items:
                              description: Review step with users
                              type: object
                              properties:
                                quorum:
                                  description: Number of required approvals for the step
                                  type: number
                                  minimum: 0
                                userIds:
                                  description: User ids in the step
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                          arbitration:
                            type: array
                            items:
                              description: Review step with users
                              type: object
                              properties:
                                quorum:
                                  description: Number of required approvals for the step
                                  type: number
                                  minimum: 0
                                userIds:
                                  description: User ids in the step
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                        required:
                          - id
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      exchanges:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - ASSET_MANAGER
                                - EXCHANGE
                            id:
                              type: string
                            tradelinkId:
                              type: string
                            groups:
                              type: array
                              items:
                                description: Review step with users
                                type: object
                                properties:
                                  quorum:
                                    description: Number of required approvals for the step
                                    type: number
                                    minimum: 0
                                  userIds:
                                    description: User ids in the step
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    description: Will be deprecated soon, use network instead. Currency
                                    type: string
                                    minLength: 1
                                    maxLength: 40
                                    pattern: ^\w+$
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                          required:
                            - type
                            - id
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                      assetManagers:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - ASSET_MANAGER
                                - EXCHANGE
                            id:
                              type: string
                            tradelinkId:
                              type: string
                            groups:
                              type: array
                              items:
                                description: Review step with users
                                type: object
                                properties:
                                  quorum:
                                    description: Number of required approvals for the step
                                    type: number
                                    minimum: 0
                                  userIds:
                                    description: User ids in the step
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    description: Will be deprecated soon, use network instead. Currency
                                    type: string
                                    minLength: 1
                                    maxLength: 40
                                    pattern: ^\w+$
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                          required:
                            - type
                            - id
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                    required:
                      - custodian
                      - exchanges
                      - assetManagers
                    additionalProperties: false
                  - type: "null"
        "401": *a2
        "403": *a3
        "500": *a4
  /tradelink/network/blueprint:
    get:
      operationId: tradelink-getNetworkBlueprint
      summary: Get Tradelink network blueprint
      description: Get the Tradelink network blueprint with all available Network
        configuration options
      tags:
        - tradelink
      security:
        - Authorization: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      tradelinkId:
                        type: string
                      workspaceName:
                        type: string
                        minLength: 1
                        maxLength: 20
                        pattern: ^[a-z0-9]+$
                      custodian:
                        type: object
                        properties:
                          tradelinkId:
                            description: Unique identifier in Tradelink service
                            type: string
                          name:
                            description: Name
                            type: string
                          code:
                            description: Code
                            type: string
                          logoUrl:
                            description: Logo URL
                            type: string
                        required:
                          - tradelinkId
                          - name
                          - code
                          - logoUrl
                        additionalProperties: false
                      assetManagers:
                        type: array
                        items:
                          type: object
                          properties:
                            tradelinkId:
                              description: Unique identifier in Tradelink service
                              type: string
                            name:
                              description: Name
                              type: string
                            code:
                              description: Code
                              type: string
                            logoUrl:
                              description: Logo URL
                              type: string
                          required:
                            - tradelinkId
                            - name
                            - code
                            - logoUrl
                          additionalProperties: false
                      exchanges:
                        type: array
                        items:
                          type: object
                          properties:
                            tradelinkId:
                              description: Unique identifier in Tradelink service
                              type: string
                            name:
                              description: Name
                              type: string
                            code:
                              description: Code
                              type: string
                            logoUrl:
                              description: Logo URL
                              type: string
                          required:
                            - tradelinkId
                            - name
                            - code
                            - logoUrl
                          additionalProperties: false
                    required:
                      - tradelinkId
                      - workspaceName
                      - custodian
                      - assetManagers
                      - exchanges
                    additionalProperties: false
                  - type: "null"
        "401": *a2
        "403": *a3
        "500": *a4
  /tradelink/settlements:
    get:
      operationId: tradelink-listSettlements
      summary: Get Tradelink settlements
      description: Get the Tradelink settlements for the workspace
      tags:
        - tradelink
      security:
        - Authorization: []
      parameters:
        - in: query
          name: page
          schema:
            description: Which page to fetch
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - in: query
          name: pageSize
          schema:
            description: Page size to use
            default: 30
            type: integer
            minimum: 1
            maximum: 30
        - in: query
          name: pledgeId
          schema:
            type: string
        - in: query
          name: accountId
          schema:
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    description: Current page
                    type: number
                  next:
                    description: Next page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  prev:
                    description: Previous page or null if there is none
                    anyOf:
                      - type: number
                      - type: "null"
                  pageSize:
                    description: Max count of items per page
                    type: number
                  total:
                    description: Total count of items
                    type: number
                  results:
                    description: Array of results
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          description: Settlement ID
                          type: string
                        pledgeId:
                          description: Pledge ID associated with the settlement
                          type: string
                        state:
                          description: State of the settlement
                          type: string
                          enum:
                            - REGISTERED
                            - PENDING_REPLEDGE_CREATION_APPROVAL
                            - PENDING_REPLEDGE_APPROVAL
                            - PENDING_CREATION_APPROVAL
                            - PENDING_PRE_APPROVAL
                            - PRE_APPROVED
                            - APPROVED
                            - REJECTED
                            - CONFIRMED
                            - FAILED
                            - CANCELED
                        outboundTransactionHash:
                          description: Outbound transaction hash of the settlement
                          anyOf:
                            - type: string
                            - type: "null"
                        accountId:
                          description: Account ID associated with the settlement
                          type: string
                        exchangeId:
                          description: Exchange ID associated with the settlement
                          type: string
                      required:
                        - id
                        - pledgeId
                        - state
                        - outboundTransactionHash
                        - accountId
                        - exchangeId
                      additionalProperties: false
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /tradelink/settlements/{settlementId}:
    get:
      operationId: tradelink-getSettlement
      summary: Get Tradelink settlement
      description: Get a Tradelink settlement by its Id
      tags:
        - tradelink
      security:
        - Authorization: []
      parameters:
        - in: path
          name: settlementId
          schema:
            type: string
          required: true
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: Settlement ID
                    type: string
                  pledgeId:
                    description: Pledge ID associated with the settlement
                    type: string
                  state:
                    description: State of the settlement
                    type: string
                    enum:
                      - REGISTERED
                      - PENDING_REPLEDGE_CREATION_APPROVAL
                      - PENDING_REPLEDGE_APPROVAL
                      - PENDING_CREATION_APPROVAL
                      - PENDING_PRE_APPROVAL
                      - PRE_APPROVED
                      - APPROVED
                      - REJECTED
                      - CONFIRMED
                      - FAILED
                      - CANCELED
                  outboundTransactionHash:
                    description: Outbound transaction hash of the settlement
                    anyOf:
                      - type: string
                      - type: "null"
                  accountId:
                    description: Account ID associated with the settlement
                    type: string
                  exchangeId:
                    description: Exchange ID associated with the settlement
                    type: string
                required:
                  - id
                  - pledgeId
                  - state
                  - outboundTransactionHash
                  - accountId
                  - exchangeId
                additionalProperties: false
        "400": *a1
        "401": *a2
        "403": *a3
        "404": *a5
        "500": *a4
  /pki/chain-certificate:
    get:
      operationId: pki-getChainCertificate
      summary: Get the PKI certificate chain
      tags:
        - pki
      security:
        - Authorization: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                description: Chain certificate response containing certificate files
                type: array
                items:
                  type: string
        "401": *a2
        "403": *a3
        "500": *a4
components:
  schemas:
    BitcoinLikeSendData:
      description: Bitcoin-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: BITCOIN_LIKE_SEND
        feeStrategy:
          description: Bitcoin-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            feePerByte:
              description: Fee per byte
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    CantonLikeSendData:
      description: Canton-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        executeBeforeSeconds:
          description: Execute before seconds
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        type:
          type: string
          const: CANTON_LIKE_SEND
      required:
        - amount
        - currency
        - recipient
        - type
    CantonLikeSendTokenData:
      description: Canton-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        executeBeforeSeconds:
          description: Execute before seconds
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        type:
          type: string
          const: CANTON_LIKE_SEND_TOKEN
      required:
        - amount
        - currency
        - recipient
        - type
    CantonLikeWithdrawData:
      description: Canton-like withdraw data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transfer currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        transferProposal:
          $ref: "#/components/schemas/CantonTransferProposal"
        reason:
          description: Reason of the verdict
          anyOf:
            - type: string
            - type: "null"
        type:
          type: string
          const: CANTON_LIKE_WITHDRAW
      required:
        - currency
        - transferProposal
        - reason
        - type
    CantonTransferProposal:
      description: A pending asset-transfer request
      type: object
      properties:
        amount:
          description: Transfer amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        contractId:
          description: ID of the transfer-proposal contract
          type: string
        instrumentAdmin:
          description: Issuer of the instrument being transferred
          type: string
        instrumentId:
          description: ID of the instrument being transferred
          type: string
        expiresAtMicros:
          description: Expiration timestamp in microseconds
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        memo:
          description: Optional note attached to the proposal
          anyOf:
            - type: string
            - type: "null"
        sender:
          description: Party proposing to send the asset
          type: string
        recipient:
          description: Intended recipient of the proposed transfer
          type: string
      required:
        - amount
        - contractId
        - instrumentAdmin
        - instrumentId
        - expiresAtMicros
        - memo
        - sender
        - recipient
    CantonLikeReceiveData:
      description: Canton-like receive data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transfer currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        transferProposal:
          $ref: "#/components/schemas/CantonTransferProposal"
        verdict:
          description: Accept or reject the transfer
          type: string
          enum:
            - ACCEPT
            - REJECT
        reason:
          description: Reason of the verdict
          anyOf:
            - type: string
            - type: "null"
        type:
          type: string
          const: CANTON_LIKE_RECEIVE
      required:
        - currency
        - transferProposal
        - verdict
        - reason
        - type
    CantonLikePreApprovalData:
      description: Canton-like pre-approval data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Recipient party on which to enable pre-approval
          type: string
          minLength: 1
        type:
          type: string
          const: CANTON_LIKE_PRE_APPROVAL
      required:
        - currency
        - recipient
        - type
    CantonLikeTapData:
      description: Canton-like tap data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: CANTON_LIKE_TAP
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
    CardanoSendData:
      description: Cardano-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: CARDANO_LIKE_SEND
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    CardanoStakingDelegateData:
      description: Cardano-like staking delegate
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_DELEGATE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        stakePoolId:
          description: ""
          type: string
          minLength: 1
          maxLength: 100
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - stakePoolId
    CardanoStakingDeregisterData:
      description: Cardano-like staking deregister data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_DEREGISTER
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        amount:
          description: Amount to deregister
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
    CardanoStakingRegisterData:
      description: Cardano-like staking register data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_REGISTER
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        amount:
          description: Amount to register
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
    CardanoStakingWithdrawData:
      description: Cardano-like staking withdraw data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_WITHDRAW
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        amount:
          description: Amount to withdraw
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
    EthereumLikeDeployContractData:
      description: Ethereum-like deploy contract data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          type: string
          const: "0x0000000000000000000000000000000000000000"
        type:
          type: string
          const: ETHEREUM_LIKE_DEPLOY_CONTRACT
        contractData:
          description: Contract data in hexadecimal format
          type: string
          pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategy"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - contractData
        - feeStrategy
    EthereumLikeFeeStrategy:
      description: Ethereum-like fee strategy
      anyOf:
        - description: Ethereum-like legacy fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            gasPrice:
              description: Gas price
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            gasLimit:
              description: Gas limit
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
          required:
            - type
            - gasPrice
            - gasLimit
        - description: Ethereum-like EIP-1559 fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            maxPriorityFeePerGas:
              description: Maximum priority fee per gas
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            maxFeePerGas:
              description: Maximum fee per gas (base + priority)
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            gasLimit:
              description: Gas limit
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
          required:
            - type
            - maxPriorityFeePerGas
            - maxFeePerGas
            - gasLimit
    EthereumLikeExecuteContractData:
      description: Ethereum-like execute contract data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: ETHEREUM_LIKE_EXECUTE_CONTRACT
        contractData:
          description: Contract call data in hexadecimal format
          type: string
          pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategy"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - contractData
        - feeStrategy
    EthereumLikeSendData:
      description: Ethereum-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: ETHEREUM_LIKE_SEND
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategy"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    GenericTransactionData:
      description: Generic transaction data
      type: object
      properties:
        type:
          type: string
          const: GENERIC_TRANSACTION
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        rawTx:
          description: Raw tx
          type: string
      required:
        - type
        - currency
        - rawTx
    HederaLikeSendData:
      description: Hedera-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: HEDERA_LIKE_SEND
        feeStrategy:
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    HederaLikeSendTokenData:
      description: Hedera-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: HEDERA_LIKE_SEND_TOKEN
        feeStrategy:
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    PolkadotLikeAddProxyData:
      description: Polkadot-like add proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_ADDPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        kind:
          description: Proxy kind
          type: string
          const: Staking
        proxy:
          description: Proxy address
          type: string
      required:
        - type
        - currency
        - kind
        - proxy
    PolkadotLikeAnonymousProxyData:
      description: Polkadot-like anonymous proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_ANONYMOUSPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
    PolkadotLikeBondData:
      description: Polkadot-like bond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_BOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        payee:
          type: string
          enum:
            - Staked
            - Stash
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - payee
        - amount
    PolkadotLikeBondExtraData:
      description: Polkadot-like bond extra data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_BONDEXTRA
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
    PolkadotLikeChillData:
      description: Polkadot-like chill data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_CHILL
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
    PolkadotLikeKillAnonymousData:
      description: Polkadot-like kill anonymous data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_KILLANONYMOUS
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
    PolkadotLikeRebondData:
      description: Polkadot-like rebond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_REBOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
    PolkadotLikeRemoveProxyData:
      description: Polkadot-like remove proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_REMOVEPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        kind:
          type: string
          const: Staking
        proxy:
          description: Proxy address
          type: string
      required:
        - type
        - currency
        - kind
        - proxy
    PolkadotLikeSendData:
      description: Polkadot-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: POLKADOT_LIKE_SEND
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
    PolkadotLikeSetPayeeData:
      description: Polkadot-like set payee data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_SETPAYEE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        payee:
          type: string
          enum:
            - Staked
            - Stash
      required:
        - type
        - currency
        - payee
    PolkadotLikeUnbondData:
      description: Polkadot-like unbond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_UNBOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
    PolkadotLikeWithdrawUnbondedData:
      description: Polkadot-like withdraw unbonded data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_WITHDRAWUNBONDED
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
    RippleLikeSendData:
      description: Ripple-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: RIPPLE_LIKE_SEND
        destinationTag:
          description: Destination tag
          anyOf:
            - type: string
              minLength: 1
              pattern: ^(-?[1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Ripple-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - destinationTag
        - feeStrategy
    SolanaLikeCreateDelegateStakeData:
      description: Solana-like create delegate stake data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Delegated vote address
          type: string
        type:
          type: string
          const: SOLANA_LIKE_CREATE_DELEGATE_STAKE
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SolanaLikeDeactivateStakeData:
      description: Solana-like deactivate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_DEACTIVATE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
    SolanaLikeDelegateStakeData:
      description: Solana-like delegate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_DELEGATE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Delegated vote address
          type: string
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - recipient
        - stakeAccount
        - feeStrategy
    SolanaLikeMergeStakeData:
      description: Solana-like merge stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_MERGE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        mergeSrcAccount:
          description: Source stake address
          type: string
        mergeDstAccount:
          description: Destination stake address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - mergeSrcAccount
        - mergeDstAccount
        - feeStrategy
    SolanaLikeSendData:
      description: Solana-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_SEND
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SolanaLikeSplitDeactivateStakeData:
      description: Solana-like split deactivate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
    SolanaLikeSplitStakeData:
      description: Solana-like split stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_SPLIT_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
    SolanaLikeWithdrawStakeData:
      description: Solana-like withdraw stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_WITHDRAW_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
    SolanaLikeSendTokenData:
      description: Solana-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_SEND_TOKEN
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SolanaLikeFundAndSendTokenData:
      description: Solana-like fund token account and send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_FUND_AND_SEND_TOKEN
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SolanaLikeCreateTokenAccountData:
      description: Solana-like create token account
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
    StellarLikeSendData:
      description: Stellar-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: STELLAR_LIKE_SEND
        memo:
          description: Stellar memo
          anyOf:
            - oneOf:
                - description: Text memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_TEXT
                    value:
                      description: Text memo (at most a 28 bytes string)
                      type: string
                      maxLength: 28
                  required:
                    - type
                    - value
                - description: Id memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_ID
                    value:
                      description: Id memo (unsigned 64 bits integer)
                      type: string
                      minLength: 1
                      pattern: ^(-?[1-9]\d*|0)$
                  required:
                    - type
                    - value
                - description: Hash memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_HASH
                    value:
                      description: Transaction hash memo (64 bytes hexadecimal string)
                      type: string
                      maxLength: 128
                      pattern: ^[a-fA-F0-9]+$
                  required:
                    - type
                    - value
                - description: Return memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_RETURN
                    value:
                      description: A 64 bytes hexadecimal string intended to be interpreted as the
                        hash of the transaction the sender is refunding.
                      type: string
                      maxLength: 128
                      pattern: ^[a-fA-F0-9]+$
                  required:
                    - type
                    - value
              type: object
            - type: "null"
        feeStrategy:
          description: Stellar-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - memo
        - feeStrategy
    SuiLikeSendData:
      description: Sui-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SUI_LIKE_SEND
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SuiLikeTransferTokenData:
      description: Sui-like transfer token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SUI_LIKE_SEND_TOKEN
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    SuiLikeStakeData:
      description: Sui-like stake data
      type: object
      properties:
        type:
          type: string
          const: SUI_LIKE_STAKE
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        validator:
          description: Validator address
          type: string
          minLength: 1
      required:
        - type
        - feeStrategy
        - amount
        - currency
        - maxFee
        - validator
    SuiLikeUnstakeData:
      description: Sui-like unstake data
      type: object
      properties:
        type:
          type: string
          const: SUI_LIKE_UNSTAKE
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakedSuiId:
          description: Staked object to (partially?) unstake
          type: string
          minLength: 1
        amount:
          description: Amount to unstake from the position
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        useAllAmount:
          description: Whether to unstake the full amount (triggers different sets of
            transaction commands)
          type: boolean
      required:
        - type
        - feeStrategy
        - currency
        - maxFee
        - stakedSuiId
        - amount
        - useAllAmount
    TezosLikeSendData:
      description: Tezos-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TEZOS_LIKE_SEND
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    TezosLikeDelegateData:
      description: Tezos-like delegate data
      type: object
      properties:
        type:
          type: string
          const: TEZOS_LIKE_DELEGATE
        amount:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - recipient
        - feeStrategy
    TezosLikeUndelegateData:
      description: Tezos-like undelegate data
      type: object
      properties:
        type:
          type: string
          const: TEZOS_LIKE_UNDELEGATE
        amount:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
    TronLikeSendData:
      description: Tron-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TRON_LIKE_SEND
        feeStrategy:
          description: Tron-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    TronLikeSendTokenData:
      description: Tron-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TRON_LIKE_SEND_TOKEN
        feeStrategy:
          description: Tron-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
    error.BAD_REQUEST:
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
      type: object
      properties:
        message:
          description: The error message
          example: Invalid input data
          type: string
        code:
          description: The error code
          example: BAD_REQUEST
          type: string
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
    error.UNAUTHORIZED:
      title: Authorization not provided error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Authorization not provided
        issues: []
      type: object
      properties:
        message:
          description: The error message
          example: Authorization not provided
          type: string
        code:
          description: The error code
          example: UNAUTHORIZED
          type: string
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
    error.FORBIDDEN:
      title: Insufficient access error (403)
      description: The error information
      example:
        code: FORBIDDEN
        message: Insufficient access
        issues: []
      type: object
      properties:
        message:
          description: The error message
          example: Insufficient access
          type: string
        code:
          description: The error code
          example: FORBIDDEN
          type: string
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
    error.INTERNAL_SERVER_ERROR:
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
      type: object
      properties:
        message:
          description: The error message
          example: Internal server error
          type: string
        code:
          description: The error code
          example: INTERNAL_SERVER_ERROR
          type: string
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
    error.NOT_FOUND:
      title: Not found error (404)
      description: The error information
      example:
        code: NOT_FOUND
        message: Not found
        issues: []
      type: object
      properties:
        message:
          description: The error message
          example: Not found
          type: string
        code:
          description: The error code
          example: NOT_FOUND
          type: string
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
    AccountLiveDataResponse:
      description: Account live data
      oneOf:
        - description: Raw signing account
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: RAW_SIGNING
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Bitcoin-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: BITCOIN_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Canton-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: CANTON_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Cardano-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: CARDANO_LIKE
            staking:
              description: Cardano-like staking data
              anyOf:
                - type: object
                  properties:
                    staked:
                      description: Staked balance
                      type: string
                  required:
                    - staked
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Ethereum-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: ETHEREUM_LIKE
            staking:
              description: Ethereum-like staking data
              anyOf:
                - type: object
                  properties:
                    totalStaking:
                      description: Total staked amount
                      type: string
                    totalRewards:
                      description: Total of rewards
                      type: string
                    availableRewards:
                      description: Available rewards
                      type: string
                    networkApy:
                      description: Network APY
                      type: number
                  required:
                    - totalStaking
                    - totalRewards
                    - availableRewards
                    - networkApy
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Generic-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: GENERIC_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Hedera-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: HEDERA_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Polkadot-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: POLKADOT_LIKE
            staking:
              description: Polkadot-like staking data
              anyOf:
                - type: object
                  properties:
                    info:
                      type: object
                      properties:
                        controllerAddress:
                          description: Controller address
                          anyOf:
                            - type: string
                            - type: "null"
                        rewardsDestination:
                          description: Rewards destination
                          anyOf:
                            - type: string
                            - type: "null"
                        proxies:
                          description: Proxies
                          type: array
                          items:
                            type: string
                        legacyStaking:
                          description: True if account uses legacy staking
                          type: boolean
                        isNominator:
                          description: True if is nominator
                          type: boolean
                      required:
                        - controllerAddress
                        - rewardsDestination
                        - proxies
                        - legacyStaking
                        - isNominator
                      additionalProperties: false
                    balances:
                      type: object
                      properties:
                        free:
                          description: Free balance
                          type: string
                        reserved:
                          description: Reserved balance
                          type: string
                        frozen:
                          description: Frozen balance
                          type: string
                        bonded:
                          description: Bonded balance
                          type: string
                        available:
                          description: Available balance
                          type: string
                        unbonding:
                          description: Unbonding balances
                          type: array
                          items:
                            type: object
                            properties:
                              amount:
                                description: Amount
                                type: string
                              waiting_time:
                                description: Waiting time
                                type: string
                            required:
                              - amount
                              - waiting_time
                            additionalProperties: false
                        unbonded:
                          description: Unbonded balances
                          type: array
                          items:
                            type: object
                            properties:
                              amount:
                                description: Amount
                                type: string
                              waiting_time:
                                description: Waiting time
                                type: string
                            required:
                              - amount
                              - waiting_time
                            additionalProperties: false
                        totalUnbonding:
                          description: Total unbonding
                          type: string
                        totalUnbonded:
                          description: Total unbonded
                          type: string
                      required:
                        - free
                        - reserved
                        - frozen
                        - bonded
                        - available
                        - unbonding
                        - unbonded
                        - totalUnbonding
                        - totalUnbonded
                      additionalProperties: false
                    anonymousProxy:
                      description: Anonymous proxy
                      anyOf:
                        - type: object
                          properties:
                            address:
                              description: Address
                              type: string
                            createdAt:
                              description: Creation date
                              type: string
                            isController:
                              description: True if is controller
                              type: boolean
                            isMain:
                              description: True if is main
                              type: boolean
                            balances:
                              anyOf:
                                - type: object
                                  properties:
                                    free:
                                      description: Anonymous proxy free balance
                                      type: string
                                    reserved:
                                      description: Anonymous proxy reserved balance
                                      type: string
                                    frozen:
                                      description: Anonymous proxy frozen balance
                                      type: string
                                    bonded:
                                      description: Anonymous proxy bonded balance
                                      type: string
                                    available:
                                      description: Anonymous proxy available balance
                                      type: string
                                    total:
                                      description: Anonymous proxy total balance
                                      type: string
                                  required:
                                    - free
                                    - reserved
                                    - frozen
                                    - bonded
                                    - available
                                    - total
                                  additionalProperties: false
                                - type: "null"
                            blockHeight:
                              description: Anonymous proxy block height
                              type: string
                            extIndex:
                              description: Ext index
                              type: string
                            index:
                              description: Index
                              type: string
                            kind:
                              description: Kind
                              type: string
                          required:
                            - address
                            - createdAt
                            - isController
                            - isMain
                            - balances
                            - blockHeight
                            - extIndex
                            - index
                            - kind
                          additionalProperties: false
                        - type: "null"
                  required:
                    - info
                    - balances
                    - anonymousProxy
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Ripple-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: RIPPLE_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Solana-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: SOLANA_LIKE
            staking:
              description: Solana-like staking data
              anyOf:
                - type: object
                  properties:
                    staked:
                      description: Staked balance
                      type: string
                    rewards:
                      type: object
                      properties:
                        total:
                          description: Total rewards
                          type: string
                        last7:
                          description: Rewards on last 7 days
                          type: string
                        last30:
                          description: Rewards on last 30 days
                          type: string
                      required:
                        - total
                        - last7
                        - last30
                      additionalProperties: false
                    stakes:
                      type: array
                      items:
                        type: object
                        properties:
                          uid:
                            type: string
                          baseAccountUid:
                            type: string
                          pubKey:
                            description: Public key
                            type: string
                          validatorPubKey:
                            description: Validator public key
                            anyOf:
                              - type: string
                              - type: "null"
                          initialAmount:
                            description: Initial amount
                            type: string
                          activeAmount:
                            description: Active amount
                            type: string
                          inactiveAmount:
                            description: Inactive amount
                            type: string
                          totalBalance:
                            description: Total balance
                            type: string
                          creationDate:
                            description: Creation date
                            type: string
                          activationEpoch:
                            description: Activation epoch
                            anyOf:
                              - type: string
                              - type: "null"
                          activationDate:
                            description: Activation date
                            anyOf:
                              - type: string
                              - type: "null"
                          deactivationEpoch:
                            description: Deactivation epoch
                            anyOf:
                              - type: string
                              - type: "null"
                          deactivationDate:
                            description: Deactivation date
                            anyOf:
                              - type: string
                              - type: "null"
                          status:
                            description: Staking account status
                            type: string
                            enum:
                              - not_sync
                              - activating
                              - activated
                              - deactivating
                              - deactivated
                              - deleted
                          rentExemptReserve:
                            description: Rent exempt reserve
                            type: string
                          withdrawableAmount:
                            description: Withdrawable amount
                            type: string
                          totalRewards:
                            description: Total rewards
                            type: string
                          creationTxHash:
                            description: Creation transaction hash
                            anyOf:
                              - type: string
                              - type: "null"
                          actionsTxHashes:
                            description: Actions transactions hashes
                            type: array
                            items:
                              type: string
                        required:
                          - uid
                          - baseAccountUid
                          - pubKey
                          - validatorPubKey
                          - initialAmount
                          - activeAmount
                          - inactiveAmount
                          - totalBalance
                          - creationDate
                          - activationEpoch
                          - activationDate
                          - deactivationEpoch
                          - deactivationDate
                          - status
                          - rentExemptReserve
                          - withdrawableAmount
                          - totalRewards
                          - creationTxHash
                          - actionsTxHashes
                        additionalProperties: false
                  required:
                    - staked
                    - rewards
                    - stakes
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Stellar-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: STELLAR_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Sui-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: SUI_LIKE
            staking:
              description: Sui-like staking data
              anyOf:
                - type: object
                  properties:
                    totalStaked:
                      description: Total staked amount
                      type: string
                    totalRewards:
                      description: Total of rewards
                      type: string
                  required:
                    - totalStaked
                    - totalRewards
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Tezos-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: TEZOS_LIKE
            staking:
              description: Tezos-like staking data
              anyOf:
                - type: object
                  properties:
                    delegations:
                      type: array
                      items:
                        type: object
                        properties:
                          address:
                            type: string
                        required:
                          - address
                        additionalProperties: false
                  required:
                    - delegations
                  additionalProperties: false
                - type: "null"
          required:
            - id
            - balance
            - type
          additionalProperties: false
        - description: Tron-like
          type: object
          properties:
            id:
              description: Account internal unique identifier
              type: string
            balance:
              description: Balance fields
              type: object
              properties:
                total:
                  description: Total balance
                  type: string
                pending:
                  description: Pending balance
                  type: string
              required:
                - total
                - pending
              additionalProperties: false
            type:
              description: Account type
              type: string
              const: TRON_LIKE
          required:
            - id
            - balance
            - type
          additionalProperties: false
      type: object
    SignedMessageResponse:
      description: Signed message
      type: object
      properties:
        id:
          description: Unique identifier
          type: string
        type:
          description: Type of the message to sign
          type: string
          enum:
            - EIP191
            - EIP712
            - CIP8
            - BIP137
        data:
          description: Hex data to sign, either a json string for EIP712, or a raw string
            for other types
          type: string
          minLength: 1
          pattern: ^[0-9a-fA-F]+$
        address:
          description: Address of the signing key
          type: string
        derivationPath:
          description: Derivation path of the signing key
          type: string
        signature:
          description: Signature of the message
          type: object
          properties:
            digest:
              description: Signed digest
              anyOf:
                - type: string
                - type: "null"
            derivationPath:
              description: Derivation path used to sign the digest
              anyOf:
                - type: string
                - type: "null"
            r:
              description: Base64 encoded signature r coordinate
              type: string
              format: base64
              contentEncoding: base64
              pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
            s:
              description: Base64 encoded signature s coordinate
              type: string
              format: base64
              contentEncoding: base64
              pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
            v:
              description: Ecdsa only, signature recovery value
              anyOf:
                - anyOf:
                    - type: number
                      const: 0
                    - type: number
                      const: 1
                - type: "null"
            der:
              description: Hex string encoded DER signature format (for eddsa, concatenation
                of r & s)
              type: string
              pattern: ^[0-9a-fA-F]+$
            pubkey:
              description: Public key for signature verification, 32 or 33 bytes
              anyOf:
                - type: string
                  pattern: ^[0-9a-fA-F]+$
                - type: "null"
          required:
            - digest
            - derivationPath
            - r
            - s
            - v
            - der
            - pubkey
          additionalProperties: false
        createdById:
          description: ID of the creator
          type: string
        createdAt:
          description: Creation timestamp
          type: string
      required:
        - id
        - type
        - data
        - address
        - derivationPath
        - signature
        - createdById
        - createdAt
      additionalProperties: false
    WhitelistResponse:
      description: Whitelist
      type: object
      properties:
        id:
          description: Internal unique identifier
          type: string
        legacyId:
          description: Legacy internal unique identifier (for retro-compatibility)
          type: number
        name:
          description: Whitelist name
          type: string
        status:
          description: Whitelist status
          type: string
          enum:
            - ACTIVE
            - INACTIVE
        addresses:
          type: array
          items:
            type: object
            properties:
              name:
                description: Address name
                type: string
                minLength: 1
                maxLength: 50
              currency:
                description: Address currency
                type: string
                minLength: 1
                maxLength: 40
                pattern: ^\w+$
              address:
                description: Address value
                type: string
                minLength: 1
                maxLength: 200
              destinationTags:
                description: List of destination tags (applicable for Ripple currency)
                type: array
                items:
                  type: string
                  minLength: 1
                  pattern: ^\w+$
            required:
              - name
              - currency
              - address
            additionalProperties: false
        createdAt:
          description: Creation timestamp
          type: string
        updatedAt:
          description: Last modification timestamp
          type: string
        description:
          description: Whitelist description
          anyOf:
            - type: string
            - type: "null"
      required:
        - id
        - legacyId
        - name
        - status
        - addresses
        - createdAt
        - updatedAt
        - description
      additionalProperties: false
    PolicyResponse:
      description: Account policy
      type: object
      properties:
        id:
          description: Internal unique identifier
          type: string
        legacyId:
          description: Legacy internal unique identifier (for retro-compatibility)
          type: number
        name:
          description: Policy name
          type: string
        description:
          description: Policy description
          anyOf:
            - type: string
            - type: "null"
        currency:
          anyOf:
            - description: Will be deprecated soon, use network instead. Currency
              type: string
              minLength: 1
              maxLength: 40
              pattern: ^\w+$
            - type: "null"
        network:
          anyOf:
            - description: Network (Same as currency for now)
              type: string
              minLength: 1
              maxLength: 40
              pattern: ^\w+$
            - type: "null"
        isPrivate:
          description: Whether the policy is private
          type: boolean
        rules:
          description: List of governance rules
          type: array
          items:
            $ref: "#/components/schemas/GovRuleResponse"
        whitelists:
          description: Related whitelists
          type: array
          items:
            $ref: "#/components/schemas/WhitelistResponse"
        users:
          description: Referenced users
          type: array
          items:
            type: object
            properties:
              id:
                description: Internal unique identifier
                type: string
              legacyId:
                description: Legacy internal unique identifier (for retro-compatibility)
                type: number
              legacyViewAll:
                description: If true, user can read all resources on the workspace
                type: boolean
              workspaceName:
                description: User's workspace name
                type: string
              name:
                description: User name
                type: string
              deviceUserId:
                description: User's device ID (for non-API users)
                anyOf:
                  - type: string
                  - type: "null"
              deviceType:
                description: User's device type
                type: string
                enum:
                  - PSD
                  - SOFT_PSD
                  - API
              role:
                description: User role
                type: string
                enum:
                  - ADMIN
                  - OPERATOR
                  - READ_ONLY_API_KEY
              pubKey:
                description: User public key
                type: string
              status:
                description: User status
                type: string
                enum:
                  - ACTIVE
                  - INACTIVE
              isSuspended:
                description: Whether the user is suspended
                type: boolean
              createdAt:
                description: Creation timestamp
                type: string
              updatedAt:
                description: Last modification timestamp
                type: string
            required:
              - id
              - legacyId
              - legacyViewAll
              - workspaceName
              - name
              - deviceUserId
              - deviceType
              - role
              - pubKey
              - status
              - isSuspended
              - createdAt
              - updatedAt
            additionalProperties: false
        groups:
          description: Referenced groups
          type: array
          items:
            type: object
            properties:
              id:
                description: Internal unique identifier
                type: string
              legacyId:
                description: Legacy internal unique identifier (for retro-compatibility)
                type: number
              name:
                description: Group name
                type: string
              description:
                description: Group description
                anyOf:
                  - type: string
                  - type: "null"
              status:
                description: Group status
                type: string
                enum:
                  - ACTIVE
                  - INACTIVE
              createdAt:
                description: Creation timestamp
                type: string
              updatedAt:
                description: Last modification timestamp
                type: string
              memberIds:
                description: List of member user IDs
                type: array
                items:
                  type: string
            required:
              - id
              - legacyId
              - name
              - description
              - status
              - createdAt
              - updatedAt
              - memberIds
            additionalProperties: false
        createdAt:
          description: Creation timestamp
          type: string
        updatedAt:
          description: Last modification timestamp
          type: string
      required:
        - id
        - legacyId
        - name
        - description
        - currency
        - network
        - isPrivate
        - rules
        - whitelists
        - users
        - groups
        - createdAt
        - updatedAt
      additionalProperties: false
    GovRuleResponse:
      description: Governance rule
      type: object
      properties:
        reviewSteps:
          description: Review steps
          minItems: 1
          type: array
          items:
            anyOf:
              - description: Review step with users
                type: object
                properties:
                  quorum:
                    description: Number of required approvals for the step
                    type: number
                    minimum: 0
                  userIds:
                    description: User ids in the step
                    type: array
                    items:
                      type: string
                      minLength: 1
                required:
                  - quorum
                  - userIds
                additionalProperties: false
              - description: Review step with group
                type: object
                properties:
                  quorum:
                    description: Number of required approvals for the step
                    type: number
                    minimum: 0
                  groupId:
                    description: Group id in the step
                    type: string
                    minLength: 1
                required:
                  - quorum
                  - groupId
                additionalProperties: false
        threshold:
          description: Threshold for the transaction value
          type: object
          properties:
            min:
              description: Minimum transaction amount
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
            max:
              description: Maximum transaction amount
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
          required:
            - min
            - max
          additionalProperties: false
        whitelistIds:
          description: IDs of whitelists for the recipient address
          type: array
          items:
            type: string
            minLength: 1
        operationType:
          description: Allowed action
          type: string
          enum:
            - SEND
            - STAKE
            - DEPLOY_CONTRACT
            - EXECUTE_CONTRACT
            - ACTIVATE_TOKEN
            - RECEIVE
            - SIGN_MESSAGE
            - SIGN_DIGESTS
      required:
        - reviewSteps
        - operationType
      additionalProperties: false
    VaultRequestResponse:
      description: Vault request response data
      oneOf:
        - description: UPDATE_QUORUM request
          type: object
          properties:
            type:
              type: string
              const: UPDATE_QUORUM
            data:
              type: object
              properties:
                quorum:
                  description: Workspace quorum
                  type: integer
                  minimum: 2
                  maximum: 9007199254740991
              required:
                - quorum
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_TRANSACTION request
          type: object
          properties:
            type:
              type: string
              const: CREATE_TRANSACTION
            data:
              $ref: "#/components/schemas/CreateTransactionRequestData"
            meta:
              anyOf:
                - type: object
                  properties:
                    hash:
                      anyOf:
                        - type: string
                        - type: "null"
                  required:
                    - hash
                  additionalProperties: false
                - type: "null"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: SIGN_MESSAGE request
          type: object
          properties:
            type:
              type: string
              const: SIGN_MESSAGE
            data:
              type: object
              properties:
                message:
                  description: Message to sign
                  oneOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          const: EIP191
                        data:
                          description: Hex data to sign, either a json string for EIP712, or a raw string
                            for other types
                          type: string
                          minLength: 1
                          pattern: ^[0-9a-fA-F]+$
                      required:
                        - type
                        - data
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: EIP712
                        data:
                          description: Hex data to sign, either a json string for EIP712, or a raw string
                            for other types
                          type: string
                          minLength: 1
                          pattern: ^[0-9a-fA-F]+$
                      required:
                        - type
                        - data
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: CIP8
                        data:
                          description: Hex data to sign, either a json string for EIP712, or a raw string
                            for other types
                          type: string
                          minLength: 1
                          pattern: ^[0-9a-fA-F]+$
                        signingKey:
                          description: CIP-8 signing key
                          type: string
                          enum:
                            - PAYMENT
                            - STAKE
                      required:
                        - type
                        - data
                        - signingKey
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: BIP137
                        data:
                          description: Hex data to sign, either a json string for EIP712, or a raw string
                            for other types
                          type: string
                          minLength: 1
                          pattern: ^[0-9a-fA-F]+$
                      required:
                        - type
                        - data
                      additionalProperties: false
                  type: object
                accountId:
                  description: Target account id
                  type: string
                  minLength: 1
                address:
                  description: Address with which to sign the message
                  type: string
                  minLength: 1
                derivationPath:
                  description: Derivation path of the signing address
                  type: string
                  minLength: 1
              required:
                - message
                - accountId
                - address
                - derivationPath
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: SIGN_DIGESTS request
          type: object
          properties:
            type:
              type: string
              const: SIGN_DIGESTS
            data:
              type: object
              properties:
                accountId:
                  description: Target account id
                  type: string
                  minLength: 1
                digests:
                  description: The digests to sign
                  type: array
                  items:
                    type: object
                    properties:
                      digest:
                        description: The hex string digest to sign
                        type: string
                        pattern: ^[0-9a-fA-F]+$
                      derivationPath:
                        description: The derivation path with which to sign the digest
                        type: string
                        minLength: 1
                    required:
                      - digest
                      - derivationPath
                    additionalProperties: false
              required:
                - accountId
                - digests
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_ACCOUNT request
          type: object
          properties:
            type:
              type: string
              const: CREATE_ACCOUNT
            data:
              $ref: "#/components/schemas/CreateAccountRequestData"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_ACCOUNT request
          type: object
          properties:
            type:
              type: string
              const: EDIT_ACCOUNT
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              $ref: "#/components/schemas/EditAccountRequestData"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_TOKEN_RULE request
          type: object
          properties:
            type:
              type: string
              const: EDIT_TOKEN_RULE
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                parentAccountId:
                  description: Parent account unique ID
                  type: string
                  minLength: 1
                contractAddress:
                  description: Token contract address
                  type: string
                  minLength: 1
                rules:
                  description: Account governance rules
                  type: array
                  items:
                    $ref: "#/components/schemas/ClassicGovRuleData"
              required:
                - parentAccountId
                - contractAddress
                - rules
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_GROUP request
          type: object
          properties:
            type:
              type: string
              const: CREATE_GROUP
            data:
              type: object
              properties:
                name:
                  description: Group name
                  type: string
                  minLength: 1
                  maxLength: 19
                description:
                  description: Group description
                  anyOf:
                    - type: string
                    - type: "null"
                members:
                  description: List of group members ids
                  type: array
                  items:
                    type: string
              required:
                - name
                - description
                - members
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_GROUP request
          type: object
          properties:
            type:
              type: string
              const: EDIT_GROUP
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                name:
                  description: Group name
                  type: string
                  minLength: 1
                  maxLength: 19
                description:
                  description: Group description
                  anyOf:
                    - type: string
                    - type: "null"
                members:
                  description: List of group members ids
                  type: array
                  items:
                    type: string
              required:
                - name
                - description
                - members
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: REVOKE_GROUP request
          type: object
          properties:
            type:
              type: string
              const: REVOKE_GROUP
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties: {}
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_WHITELIST request
          type: object
          properties:
            type:
              type: string
              const: CREATE_WHITELIST
            data:
              type: object
              properties:
                name:
                  description: Whitelist name
                  type: string
                  minLength: 1
                  maxLength: 45
                description:
                  anyOf:
                    - type: string
                    - type: "null"
                addresses:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 50
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                        maxLength: 200
                      destinationTags:
                        type: array
                        items:
                          type: string
                          minLength: 1
                          pattern: ^\w+$
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
                type:
                  type: string
                  enum:
                    - TRANSACTION
                    - SMART_CONTRACT
              required:
                - name
                - description
                - addresses
                - type
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_WHITELIST request
          type: object
          properties:
            type:
              type: string
              const: EDIT_WHITELIST
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                name:
                  description: Whitelist name
                  type: string
                  minLength: 1
                  maxLength: 45
                addresses:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 50
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                        maxLength: 200
                      destinationTags:
                        type: array
                        items:
                          type: string
                          minLength: 1
                          pattern: ^\w+$
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
              required:
                - name
                - addresses
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_ENTITY request
          type: object
          properties:
            type:
              type: string
              const: CREATE_ENTITY
            data:
              type: object
              properties:
                name:
                  description: Entity name
                  type: string
                  minLength: 1
                  maxLength: 19
                accountIds:
                  description: List of Account IDs
                  type: array
                  items:
                    type: string
                memberIds:
                  description: List of User IDs
                  type: array
                  items:
                    type: string
              required:
                - name
                - accountIds
                - memberIds
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_ENTITY request
          type: object
          properties:
            type:
              type: string
              const: EDIT_ENTITY
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                name:
                  description: Entity name
                  type: string
                  minLength: 1
                  maxLength: 19
                accountIds:
                  description: List of Account IDs
                  type: array
                  items:
                    type: string
                memberIds:
                  description: List of User IDs
                  type: array
                  items:
                    type: string
              required:
                - name
                - accountIds
                - memberIds
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: REVOKE_ENTITY request
          type: object
          properties:
            type:
              type: string
              const: REVOKE_ENTITY
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties: {}
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_PSD_USER request
          type: object
          properties:
            type:
              type: string
              const: CREATE_PSD_USER
            data:
              type: object
              properties:
                registrationId:
                  description: User registration ID
                  type: string
              required:
                - registrationId
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_API_USER request
          type: object
          properties:
            type:
              type: string
              const: CREATE_API_USER
            data:
              description: Create API user request data
              type: object
              properties:
                name:
                  description: User name
                  type: string
                  minLength: 1
                  maxLength: 19
                pubKey:
                  description: Public key, uncompressed secp256r1 format
                  type: string
                  pattern: ^04[0-9a-fA-F]{128}$
                role:
                  description: User role
                  type: string
                  enum:
                    - ADMIN
                    - OPERATOR
                viewAll:
                  description: View all data
                  type: boolean
              required:
                - name
                - pubKey
                - role
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_API_USER_ACCESS request
          type: object
          properties:
            type:
              type: string
              const: CREATE_API_USER_ACCESS
            data:
              description: Create API user credential request data
              type: object
              properties:
                name:
                  description: User name
                  type: string
                  minLength: 1
                  maxLength: 19
              required:
                - name
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: REVOKE_USER request
          type: object
          properties:
            type:
              type: string
              const: REVOKE_USER
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties: {}
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_WORKSPACE_RULE request
          type: object
          properties:
            type:
              type: string
              const: EDIT_WORKSPACE_RULE
            data:
              type: object
              properties:
                permission:
                  description: Granted permissions
                  type: string
                  enum:
                    - CREATE_ACCOUNT_WITH_POLICY
                reviewConfig:
                  description: List of admin review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
              required:
                - permission
                - reviewConfig
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_SCICONFIG request
          type: object
          properties:
            type:
              type: string
              const: CREATE_SCICONFIG
            data:
              type: object
              properties:
                account:
                  description: Account UUID
                  type: string
                config:
                  type: object
                  properties:
                    dapps:
                      description: Allowed DApps, null allows all
                      anyOf:
                        - type: array
                          items:
                            type: string
                        - type: "null"
                    customContractCallEnabled:
                      description: Allow non-DApp SCI
                      type: boolean
                  required:
                    - dapps
                    - customContractCallEnabled
                  additionalProperties: false
              required:
                - account
                - config
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_SCICONFIG request
          type: object
          properties:
            type:
              type: string
              const: EDIT_SCICONFIG
            data:
              type: object
              properties:
                config:
                  type: object
                  properties:
                    dapps:
                      description: Allowed DApps, null allows all
                      anyOf:
                        - type: array
                          items:
                            type: string
                        - type: "null"
                    customContractCallEnabled:
                      description: Allow non-DApp SCI
                      type: boolean
                  required:
                    - dapps
                    - customContractCallEnabled
                  additionalProperties: false
              required:
                - config
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_API_KEY request
          type: object
          properties:
            type:
              type: string
              const: CREATE_API_KEY
            data:
              description: Create read-only API key request data
              type: object
              properties:
                name:
                  description: API key name
                  type: string
                  minLength: 1
                  maxLength: 19
                entities:
                  description: List of related entities ids
                  type: array
                  items:
                    type: string
                scopes:
                  description: FIXME to be precised
                  type: object
                  properties: {}
                  additionalProperties: false
              required:
                - name
                - entities
                - scopes
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_API_KEY request
          type: object
          properties:
            type:
              type: string
              const: EDIT_API_KEY
            data:
              description: Edit read-only API key request data
              type: object
              properties:
                name:
                  description: API key name
                  type: string
                  minLength: 1
                  maxLength: 19
                entities:
                  description: List of related entities ids
                  type: array
                  items:
                    type: string
                scopes:
                  description: FIXME to be precised
                  type: object
                  properties: {}
                  additionalProperties: false
              required:
                - name
                - entities
                - scopes
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: REVOKE_API_KEY request
          type: object
          properties:
            type:
              type: string
              const: REVOKE_API_KEY
            data:
              type: object
              properties: {}
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: CREATE_POLICY request
          type: object
          properties:
            type:
              type: string
              const: CREATE_POLICY
            data:
              type: object
              properties:
                name:
                  description: Policy name
                  type: string
                  minLength: 1
                  maxLength: 19
                description:
                  description: Description
                  anyOf:
                    - type: string
                    - type: "null"
                currency:
                  anyOf:
                    - description: Currency
                      type: string
                      minLength: 1
                      maxLength: 40
                      pattern: ^\w+$
                    - type: "null"
                govRules:
                  description: Governance rules
                  type: array
                  items:
                    $ref: "#/components/schemas/ClassicGovRuleData"
              required:
                - name
                - description
                - currency
                - govRules
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: EDIT_POLICY request
          type: object
          properties:
            type:
              type: string
              const: EDIT_POLICY
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                name:
                  description: Policy name
                  type: string
                  minLength: 1
                  maxLength: 19
                description:
                  description: Description
                  anyOf:
                    - type: string
                    - type: "null"
                govRules:
                  description: Governance rules
                  type: array
                  items:
                    $ref: "#/components/schemas/ClassicGovRuleData"
              required:
                - name
                - description
                - govRules
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_ACTIVATE_ACCOUNT request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_ACTIVATE_ACCOUNT
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: "null"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_CREATE_CUSTODIAN request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_CREATE_CUSTODIAN
            data:
              type: object
              properties:
                settlement:
                  description: List of settlement review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                withdraw:
                  description: List of withdraw review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                arbitration:
                  description: List of arbitration review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
              required:
                - settlement
                - withdraw
                - arbitration
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_EDIT_CUSTODIAN request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_EDIT_CUSTODIAN
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                settlement:
                  description: List of settlement review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                withdraw:
                  description: List of withdraw review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                arbitration:
                  description: List of arbitration review steps
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
              required:
                - settlement
                - withdraw
                - arbitration
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_CREATE_EXCHANGE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_CREATE_EXCHANGE
            data:
              type: object
              properties:
                tradelinkId:
                  type: string
                  minLength: 1
                groups:
                  description: List of asset manager review groups
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                whitelist:
                  description: List of asset manager whitelisted addresses
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
              required:
                - tradelinkId
                - groups
                - whitelist
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_EDIT_EXCHANGE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_EDIT_EXCHANGE
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                tradelinkId:
                  type: string
                  minLength: 1
                groups:
                  description: List of asset manager review groups
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                whitelist:
                  description: List of asset manager whitelisted addresses
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
              required:
                - tradelinkId
                - groups
                - whitelist
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_CREATE_ASSET_MANAGER request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_CREATE_ASSET_MANAGER
            data:
              type: object
              properties:
                tradelinkId:
                  type: string
                  minLength: 1
                groups:
                  description: List of asset manager review groups
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                whitelist:
                  description: List of asset manager whitelisted addresses
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
              required:
                - tradelinkId
                - groups
                - whitelist
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_EDIT_ASSET_MANAGER request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_EDIT_ASSET_MANAGER
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            data:
              type: object
              properties:
                tradelinkId:
                  type: string
                  minLength: 1
                groups:
                  description: List of asset manager review groups
                  type: array
                  items:
                    description: Review step with users
                    type: object
                    properties:
                      quorum:
                        description: Number of required approvals for the step
                        type: number
                        minimum: 0
                      userIds:
                        description: User ids in the step
                        type: array
                        items:
                          type: string
                          minLength: 1
                    required:
                      - quorum
                      - userIds
                    additionalProperties: false
                whitelist:
                  description: List of asset manager whitelisted addresses
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      currency:
                        description: Will be deprecated soon, use network instead. Currency
                        type: string
                        minLength: 1
                        maxLength: 40
                        pattern: ^\w+$
                      address:
                        type: string
                        minLength: 1
                    required:
                      - name
                      - currency
                      - address
                    additionalProperties: false
              required:
                - tradelinkId
                - groups
                - whitelist
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - targetId
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_ADJUST_PLEDGE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_ADJUST_PLEDGE
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                exchangeId:
                  description: Exchange id
                  type: string
                amount:
                  description: Amount to add to pledge
                  type: string
                  minLength: 1
                  pattern: ^(-?[1-9]\d*|0)$
              required:
                - accountId
                - exchangeId
                - amount
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_REPLEDGE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_REPLEDGE
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                exchangeId:
                  description: Exchange id
                  type: string
                amount:
                  description: Amount to add to pledge
                  type: string
                  minLength: 1
                  pattern: ^(-?[1-9]\d*|0)$
              required:
                - accountId
                - exchangeId
                - amount
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_CREATE_SETTLEMENT request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_CREATE_SETTLEMENT
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                exchangeId:
                  description: Exchange id
                  type: string
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/BitcoinLikeSendDataOutput"
                    - $ref: "#/components/schemas/CantonLikeSendDataOutput"
                    - $ref: "#/components/schemas/CardanoSendDataOutput"
                    - $ref: "#/components/schemas/EthereumLikeSendDataOutput"
                    - $ref: "#/components/schemas/HederaLikeSendDataOutput"
                    - $ref: "#/components/schemas/PolkadotLikeSendDataOutput"
                    - $ref: "#/components/schemas/RippleLikeSendDataOutput"
                    - $ref: "#/components/schemas/SolanaLikeSendDataOutput"
                    - $ref: "#/components/schemas/StellarLikeSendDataOutput"
                    - $ref: "#/components/schemas/SuiLikeSendDataOutput"
                    - $ref: "#/components/schemas/TezosLikeSendDataOutput"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      BITCOIN_LIKE_SEND: "#/components/schemas/BitcoinLikeSendDataOutput"
                      CANTON_LIKE_SEND: "#/components/schemas/CantonLikeSendDataOutput"
                      CARDANO_LIKE_SEND: "#/components/schemas/CardanoSendDataOutput"
                      ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendDataOutput"
                      HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendDataOutput"
                      POLKADOT_LIKE_SEND: "#/components/schemas/PolkadotLikeSendDataOutput"
                      RIPPLE_LIKE_SEND: "#/components/schemas/RippleLikeSendDataOutput"
                      SOLANA_LIKE_SEND: "#/components/schemas/SolanaLikeSendDataOutput"
                      STELLAR_LIKE_SEND: "#/components/schemas/StellarLikeSendDataOutput"
                      SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendDataOutput"
                      TEZOS_LIKE_SEND: "#/components/schemas/TezosLikeSendDataOutput"
              required:
                - accountId
                - exchangeId
                - transaction
              additionalProperties: false
            meta:
              anyOf:
                - type: object
                  properties:
                    hash:
                      anyOf:
                        - type: string
                        - type: "null"
                  required:
                    - hash
                  additionalProperties: false
                - type: "null"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_FORCE_UNPLEDGE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_FORCE_UNPLEDGE
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                exchangeId:
                  description: Exchange id
                  type: string
              required:
                - accountId
                - exchangeId
              additionalProperties: false
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_WITHDRAW request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_WITHDRAW
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/BitcoinLikeSendDataOutput"
                    - $ref: "#/components/schemas/CantonLikeSendDataOutput"
                    - $ref: "#/components/schemas/CardanoSendDataOutput"
                    - $ref: "#/components/schemas/EthereumLikeSendDataOutput"
                    - $ref: "#/components/schemas/HederaLikeSendDataOutput"
                    - $ref: "#/components/schemas/PolkadotLikeSendDataOutput"
                    - $ref: "#/components/schemas/RippleLikeSendDataOutput"
                    - $ref: "#/components/schemas/SolanaLikeSendDataOutput"
                    - $ref: "#/components/schemas/StellarLikeSendDataOutput"
                    - $ref: "#/components/schemas/SuiLikeSendDataOutput"
                    - $ref: "#/components/schemas/TezosLikeSendDataOutput"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      BITCOIN_LIKE_SEND: "#/components/schemas/BitcoinLikeSendDataOutput"
                      CANTON_LIKE_SEND: "#/components/schemas/CantonLikeSendDataOutput"
                      CARDANO_LIKE_SEND: "#/components/schemas/CardanoSendDataOutput"
                      ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendDataOutput"
                      HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendDataOutput"
                      POLKADOT_LIKE_SEND: "#/components/schemas/PolkadotLikeSendDataOutput"
                      RIPPLE_LIKE_SEND: "#/components/schemas/RippleLikeSendDataOutput"
                      SOLANA_LIKE_SEND: "#/components/schemas/SolanaLikeSendDataOutput"
                      STELLAR_LIKE_SEND: "#/components/schemas/StellarLikeSendDataOutput"
                      SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendDataOutput"
                      TEZOS_LIKE_SEND: "#/components/schemas/TezosLikeSendDataOutput"
              required:
                - accountId
                - transaction
              additionalProperties: false
            meta:
              anyOf:
                - type: object
                  properties:
                    hash:
                      anyOf:
                        - type: string
                        - type: "null"
                  required:
                    - hash
                  additionalProperties: false
                - type: "null"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
        - description: TRADELINK_ARBITRATE request
          type: object
          properties:
            type:
              type: string
              const: TRADELINK_ARBITRATE
            data:
              type: object
              properties:
                accountId:
                  description: Account id
                  type: string
                transaction:
                  oneOf:
                    - $ref: "#/components/schemas/BitcoinLikeSendDataOutput"
                    - $ref: "#/components/schemas/CantonLikeSendDataOutput"
                    - $ref: "#/components/schemas/CardanoSendDataOutput"
                    - $ref: "#/components/schemas/EthereumLikeSendDataOutput"
                    - $ref: "#/components/schemas/HederaLikeSendDataOutput"
                    - $ref: "#/components/schemas/PolkadotLikeSendDataOutput"
                    - $ref: "#/components/schemas/RippleLikeSendDataOutput"
                    - $ref: "#/components/schemas/SolanaLikeSendDataOutput"
                    - $ref: "#/components/schemas/StellarLikeSendDataOutput"
                    - $ref: "#/components/schemas/SuiLikeSendDataOutput"
                    - $ref: "#/components/schemas/TezosLikeSendDataOutput"
                  type: object
                  discriminator:
                    propertyName: type
                    mapping:
                      BITCOIN_LIKE_SEND: "#/components/schemas/BitcoinLikeSendDataOutput"
                      CANTON_LIKE_SEND: "#/components/schemas/CantonLikeSendDataOutput"
                      CARDANO_LIKE_SEND: "#/components/schemas/CardanoSendDataOutput"
                      ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendDataOutput"
                      HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendDataOutput"
                      POLKADOT_LIKE_SEND: "#/components/schemas/PolkadotLikeSendDataOutput"
                      RIPPLE_LIKE_SEND: "#/components/schemas/RippleLikeSendDataOutput"
                      SOLANA_LIKE_SEND: "#/components/schemas/SolanaLikeSendDataOutput"
                      STELLAR_LIKE_SEND: "#/components/schemas/StellarLikeSendDataOutput"
                      SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendDataOutput"
                      TEZOS_LIKE_SEND: "#/components/schemas/TezosLikeSendDataOutput"
              required:
                - accountId
                - transaction
              additionalProperties: false
            meta:
              anyOf:
                - type: object
                  properties:
                    hash:
                      anyOf:
                        - type: string
                        - type: "null"
                  required:
                    - hash
                  additionalProperties: false
                - type: "null"
            id:
              description: Request unique identifier
              type: string
            legacyId:
              description: Legacy internal unique identifier (for retro-compatibility)
              type: number
            state:
              description: Request state
              type: string
              enum:
                - INITIAL
                - PENDING_APPROVAL
                - EXECUTING
                - EXECUTED
                - FAILED
                - ABORTED
                - BLOCKED
                - EXPIRED
                - STUCK
            reviewSteps:
              description: Request review steps
              type: array
              items:
                type: object
                properties:
                  stageName:
                    description: The review stage name
                    type: string
                    pattern: ^\w+$
                  quorum:
                    description: Quorum for the review step
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                required:
                  - stageName
                  - quorum
                additionalProperties: false
            currentStepIndex:
              description: Index of the current approval step
              type: integer
              minimum: 0
              maximum: 9007199254740991
            expiresAt:
              description: Request expiration date
              type: string
            expiredAt:
              description: "Deprecated: use expiresAt"
              type: string
            targetId:
              description: Optional ID of the target object
              anyOf:
                - type: string
                - type: "null"
            note:
              description: Optional request note
              anyOf:
                - type: object
                  properties:
                    title:
                      description: Note title
                      type: string
                    content:
                      description: Note content
                      type: string
                  required:
                    - title
                    - content
                  additionalProperties: false
                - type: "null"
            reviews:
              description: Requests reviews
              type: array
              items:
                type: object
                properties:
                  stepIndex:
                    description: Index of the governance step in the request workflow
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  userId:
                    description: Reviewer id
                    type: string
                  status:
                    description: Review status
                    type: string
                    enum:
                      - PENDING
                      - QUEUED
                      - APPROVED
                      - REJECTED
                      - OBSOLETE
                  createdAt:
                    description: Created date
                    type: string
                  updatedAt:
                    description: Updated date
                    type: string
                required:
                  - stepIndex
                  - userId
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
            createdAt:
              description: Creation timestamp
              type: string
            updatedAt:
              description: Last modification timestamp
              type: string
            createdById:
              description: ID of the user who created the request
              type: string
            inflight:
              description: Extra information if the request is currently being processed
              type: object
              properties:
                lastError:
                  description: Error message from the last failure
                  anyOf:
                    - type: string
                    - type: "null"
                numFailed:
                  description: Number of failures so far
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                retryAfter:
                  description: Date after which next retry is scheduled
                  type: string
              required:
                - lastError
                - numFailed
                - retryAfter
              additionalProperties: false
          required:
            - type
            - data
            - id
            - legacyId
            - state
            - reviewSteps
            - currentStepIndex
            - expiresAt
            - targetId
            - note
            - reviews
            - createdAt
            - updatedAt
            - createdById
          additionalProperties: false
      type: object
    CreateTransactionRequestData:
      description: Create transaction request data
      type: object
      properties:
        accountId:
          description: Target account id
          type: string
          minLength: 1
        transaction:
          oneOf:
            - $ref: "#/components/schemas/BitcoinLikeSendDataOutput"
            - $ref: "#/components/schemas/CantonLikeSendDataOutput"
            - $ref: "#/components/schemas/CantonLikeSendTokenDataOutput"
            - $ref: "#/components/schemas/CantonLikeWithdrawDataOutput"
            - $ref: "#/components/schemas/CantonLikeReceiveDataOutput"
            - $ref: "#/components/schemas/CantonLikePreApprovalDataOutput"
            - $ref: "#/components/schemas/CantonLikeTapDataOutput"
            - $ref: "#/components/schemas/CardanoSendDataOutput"
            - $ref: "#/components/schemas/CardanoStakingDelegateDataOutput"
            - $ref: "#/components/schemas/CardanoStakingDeregisterDataOutput"
            - $ref: "#/components/schemas/CardanoStakingRegisterDataOutput"
            - $ref: "#/components/schemas/CardanoStakingWithdrawDataOutput"
            - $ref: "#/components/schemas/EthereumLikeDeployContractDataOutput"
            - $ref: "#/components/schemas/EthereumLikeExecuteContractDataOutput"
            - $ref: "#/components/schemas/EthereumLikeSendDataOutput"
            - $ref: "#/components/schemas/GenericTransactionDataOutput"
            - $ref: "#/components/schemas/HederaLikeSendDataOutput"
            - $ref: "#/components/schemas/HederaLikeSendTokenDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeAddProxyDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeAnonymousProxyDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeBondDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeBondExtraDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeChillDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeKillAnonymousDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeRebondDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeRemoveProxyDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeSendDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeSetPayeeDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeUnbondDataOutput"
            - $ref: "#/components/schemas/PolkadotLikeWithdrawUnbondedDataOutput"
            - $ref: "#/components/schemas/RippleLikeSendDataOutput"
            - $ref: "#/components/schemas/SolanaLikeCreateDelegateStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeDeactivateStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeDelegateStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeMergeStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeSendDataOutput"
            - $ref: "#/components/schemas/SolanaLikeSplitDeactivateStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeSplitStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeWithdrawStakeDataOutput"
            - $ref: "#/components/schemas/SolanaLikeSendTokenDataOutput"
            - $ref: "#/components/schemas/SolanaLikeFundAndSendTokenDataOutput"
            - $ref: "#/components/schemas/SolanaLikeCreateTokenAccountDataOutput"
            - $ref: "#/components/schemas/StellarLikeSendDataOutput"
            - $ref: "#/components/schemas/SuiLikeSendDataOutput"
            - $ref: "#/components/schemas/SuiLikeTransferTokenDataOutput"
            - $ref: "#/components/schemas/SuiLikeStakeDataOutput"
            - $ref: "#/components/schemas/SuiLikeUnstakeDataOutput"
            - $ref: "#/components/schemas/TezosLikeSendDataOutput"
            - $ref: "#/components/schemas/TezosLikeDelegateDataOutput"
            - $ref: "#/components/schemas/TezosLikeUndelegateDataOutput"
            - $ref: "#/components/schemas/TronLikeSendDataOutput"
            - $ref: "#/components/schemas/TronLikeSendTokenDataOutput"
          type: object
          discriminator:
            propertyName: type
            mapping:
              BITCOIN_LIKE_SEND: "#/components/schemas/BitcoinLikeSendDataOutput"
              CANTON_LIKE_SEND: "#/components/schemas/CantonLikeSendDataOutput"
              CANTON_LIKE_SEND_TOKEN: "#/components/schemas/CantonLikeSendTokenDataOutput"
              CANTON_LIKE_WITHDRAW: "#/components/schemas/CantonLikeWithdrawDataOutput"
              CANTON_LIKE_RECEIVE: "#/components/schemas/CantonLikeReceiveDataOutput"
              CANTON_LIKE_PRE_APPROVAL: "#/components/schemas/CantonLikePreApprovalDataOutput"
              CANTON_LIKE_TAP: "#/components/schemas/CantonLikeTapDataOutput"
              CARDANO_LIKE_SEND: "#/components/schemas/CardanoSendDataOutput"
              CARDANO_LIKE_STAKING_DELEGATE: "#/components/schemas/CardanoStakingDelegateDataOutput"
              CARDANO_LIKE_STAKING_DEREGISTER: "#/components/schemas/CardanoStakingDeregisterDataOutput"
              CARDANO_LIKE_STAKING_REGISTER: "#/components/schemas/CardanoStakingRegisterDataOutput"
              CARDANO_LIKE_STAKING_WITHDRAW: "#/components/schemas/CardanoStakingWithdrawDataOutput"
              ETHEREUM_LIKE_DEPLOY_CONTRACT: "#/components/schemas/EthereumLikeDeployContractDataOutput"
              ETHEREUM_LIKE_EXECUTE_CONTRACT: "#/components/schemas/EthereumLikeExecuteContractDataOutput"
              ETHEREUM_LIKE_SEND: "#/components/schemas/EthereumLikeSendDataOutput"
              GENERIC_TRANSACTION: "#/components/schemas/GenericTransactionDataOutput"
              HEDERA_LIKE_SEND: "#/components/schemas/HederaLikeSendDataOutput"
              HEDERA_LIKE_SEND_TOKEN: "#/components/schemas/HederaLikeSendTokenDataOutput"
              POLKADOT_LIKE_ADDPROXY: "#/components/schemas/PolkadotLikeAddProxyDataOutput"
              POLKADOT_LIKE_ANONYMOUSPROXY: "#/components/schemas/PolkadotLikeAnonymousProxyDataOutput"
              POLKADOT_LIKE_BOND: "#/components/schemas/PolkadotLikeBondDataOutput"
              POLKADOT_LIKE_BONDEXTRA: "#/components/schemas/PolkadotLikeBondExtraDataOutput"
              POLKADOT_LIKE_CHILL: "#/components/schemas/PolkadotLikeChillDataOutput"
              POLKADOT_LIKE_KILLANONYMOUS: "#/components/schemas/PolkadotLikeKillAnonymousDataOutput"
              POLKADOT_LIKE_REBOND: "#/components/schemas/PolkadotLikeRebondDataOutput"
              POLKADOT_LIKE_REMOVEPROXY: "#/components/schemas/PolkadotLikeRemoveProxyDataOutput"
              POLKADOT_LIKE_SEND: "#/components/schemas/PolkadotLikeSendDataOutput"
              POLKADOT_LIKE_SETPAYEE: "#/components/schemas/PolkadotLikeSetPayeeDataOutput"
              POLKADOT_LIKE_UNBOND: "#/components/schemas/PolkadotLikeUnbondDataOutput"
              POLKADOT_LIKE_WITHDRAWUNBONDED: "#/components/schemas/PolkadotLikeWithdrawUnbondedDataOutput"
              RIPPLE_LIKE_SEND: "#/components/schemas/RippleLikeSendDataOutput"
              SOLANA_LIKE_CREATE_DELEGATE_STAKE: "#/components/schemas/SolanaLikeCreateDelegateStakeDataOutput"
              SOLANA_LIKE_DEACTIVATE_STAKE: "#/components/schemas/SolanaLikeDeactivateStakeDataOutput"
              SOLANA_LIKE_DELEGATE_STAKE: "#/components/schemas/SolanaLikeDelegateStakeDataOutput"
              SOLANA_LIKE_MERGE_STAKE: "#/components/schemas/SolanaLikeMergeStakeDataOutput"
              SOLANA_LIKE_SEND: "#/components/schemas/SolanaLikeSendDataOutput"
              SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE: "#/components/schemas/SolanaLikeSplitDeactivateStakeDataOutput"
              SOLANA_LIKE_SPLIT_STAKE: "#/components/schemas/SolanaLikeSplitStakeDataOutput"
              SOLANA_LIKE_WITHDRAW_STAKE: "#/components/schemas/SolanaLikeWithdrawStakeDataOutput"
              SOLANA_LIKE_SEND_TOKEN: "#/components/schemas/SolanaLikeSendTokenDataOutput"
              SOLANA_LIKE_FUND_AND_SEND_TOKEN: "#/components/schemas/SolanaLikeFundAndSendTokenDataOutput"
              SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT: "#/components/schemas/SolanaLikeCreateTokenAccountDataOutput"
              STELLAR_LIKE_SEND: "#/components/schemas/StellarLikeSendDataOutput"
              SUI_LIKE_SEND: "#/components/schemas/SuiLikeSendDataOutput"
              SUI_LIKE_SEND_TOKEN: "#/components/schemas/SuiLikeTransferTokenDataOutput"
              SUI_LIKE_STAKE: "#/components/schemas/SuiLikeStakeDataOutput"
              SUI_LIKE_UNSTAKE: "#/components/schemas/SuiLikeUnstakeDataOutput"
              TEZOS_LIKE_SEND: "#/components/schemas/TezosLikeSendDataOutput"
              TEZOS_LIKE_DELEGATE: "#/components/schemas/TezosLikeDelegateDataOutput"
              TEZOS_LIKE_UNDELEGATE: "#/components/schemas/TezosLikeUndelegateDataOutput"
              TRON_LIKE_SEND: "#/components/schemas/TronLikeSendDataOutput"
              TRON_LIKE_SEND_TOKEN: "#/components/schemas/TronLikeSendTokenDataOutput"
      required:
        - accountId
        - transaction
      additionalProperties: false
    CreateAccountRequestData:
      description: Create account request data
      type: object
      properties:
        name:
          description: Account name
          type: string
          minLength: 1
          maxLength: 40
        currency:
          description: Will be deprecated soon, use network instead. Currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        contractAddress:
          description: Token issuer
          anyOf:
            - type: string
              minLength: 1
            - type: "null"
        tokenIdentifier:
          description: Token identifier
          anyOf:
            - type: string
              minLength: 1
            - type: "null"
        governance:
          description: Governance fields
          oneOf:
            - description: Classic governance
              type: object
              properties:
                type:
                  type: string
                  const: CLASSIC
                policy:
                  description: Account policy or governance rules
                  anyOf:
                    - description: Account policy
                      type: object
                      properties:
                        policyId:
                          type: string
                      required:
                        - policyId
                      additionalProperties: false
                    - description: Account governance rules
                      type: object
                      properties:
                        rules:
                          type: array
                          items:
                            $ref: "#/components/schemas/ClassicGovRuleData"
                      required:
                        - rules
                      additionalProperties: false
              required:
                - type
                - policy
              additionalProperties: false
            - description: Tradelink governance
              type: object
              properties:
                type:
                  type: string
                  const: TRADELINK
                assetManagerId:
                  type: string
                exchangeConfigs:
                  type: array
                  items:
                    type: object
                    properties:
                      exchangeId:
                        description: Tradelink exchange id
                        type: string
                      repledgeAuthorized:
                        description: Determines whether this exchange is authorized to repledge on this
                          account
                        type: boolean
                      needsAssetManagerApprovalForSettlements:
                        description: Determines whether asset manager will "pre-approve" the settlement
                          requests on this account
                        type: boolean
                    required:
                      - exchangeId
                      - repledgeAuthorized
                      - needsAssetManagerApprovalForSettlements
                    additionalProperties: false
              required:
                - type
                - assetManagerId
                - exchangeConfigs
              additionalProperties: false
            - description: Raw signing governance
              type: object
              properties:
                type:
                  type: string
                  const: RAW_SIGNING
                policy:
                  type: object
                  properties:
                    rules:
                      type: array
                      items:
                        description: Digest signing rule
                        type: object
                        properties:
                          operationType:
                            type: string
                            const: SIGN_DIGESTS
                          reviewSteps:
                            type: array
                            items:
                              description: Review step with users
                              type: object
                              properties:
                                quorum:
                                  description: Number of required approvals for the step
                                  type: number
                                  minimum: 0
                                userIds:
                                  description: User ids in the step
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                        required:
                          - operationType
                          - reviewSteps
                        additionalProperties: false
                  required:
                    - rules
                  additionalProperties: false
              required:
                - type
                - policy
              additionalProperties: false
          type: object
        index:
          description: Account index
          type: number
          minimum: 0
        derivationPath:
          description: Account bip44 derivation path
          type: string
        type:
          type: string
          enum:
            - BITCOIN_LIKE
            - CANTON_LIKE
            - CARDANO_LIKE
            - ETHEREUM_LIKE
            - GENERIC_LIKE
            - HEDERA_LIKE
            - POLKADOT_LIKE
            - RAW_SIGNING
            - RIPPLE_LIKE
            - SOLANA_LIKE
            - STELLAR_LIKE
            - SUI_LIKE
            - TEZOS_LIKE
            - TRON_LIKE
      required:
        - name
        - currency
        - contractAddress
        - tokenIdentifier
        - governance
        - index
        - derivationPath
        - type
      additionalProperties: false
    ClassicGovRuleData:
      description: Account governance rule
      type: object
      properties:
        reviewSteps:
          description: Review steps
          minItems: 1
          type: array
          items:
            anyOf:
              - description: Review step with users
                type: object
                properties:
                  quorum:
                    description: Number of required approvals for the step
                    type: number
                    minimum: 0
                  userIds:
                    description: User ids in the step
                    type: array
                    items:
                      type: string
                      minLength: 1
                required:
                  - quorum
                  - userIds
                additionalProperties: false
              - description: Review step with group
                type: object
                properties:
                  quorum:
                    description: Number of required approvals for the step
                    type: number
                    minimum: 0
                  groupId:
                    description: Group id in the step
                    type: string
                    minLength: 1
                required:
                  - quorum
                  - groupId
                additionalProperties: false
        threshold:
          description: Threshold for the transaction value
          type: object
          properties:
            min:
              description: Minimum transaction amount
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
            max:
              description: Maximum transaction amount
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
          required:
            - min
            - max
          additionalProperties: false
        whitelistIds:
          description: IDs of whitelists for the recipient address
          type: array
          items:
            type: string
            minLength: 1
        operationType:
          description: Allowed action
          type: string
          enum:
            - SEND
            - STAKE
            - DEPLOY_CONTRACT
            - EXECUTE_CONTRACT
            - SIGN_MESSAGE
            - ACTIVATE_TOKEN
            - RECEIVE
      required:
        - reviewSteps
        - operationType
      additionalProperties: false
    EditAccountRequestData:
      description: Edit account request data
      type: object
      properties:
        name:
          description: Account name
          type: string
          minLength: 1
          maxLength: 40
        governance:
          description: Governance fields
          oneOf:
            - description: Classic governance
              type: object
              properties:
                type:
                  type: string
                  const: CLASSIC
                policy:
                  description: Account policy or governance rules
                  anyOf:
                    - description: Account policy
                      type: object
                      properties:
                        policyId:
                          type: string
                      required:
                        - policyId
                      additionalProperties: false
                    - description: Account governance rules
                      type: object
                      properties:
                        rules:
                          type: array
                          items:
                            $ref: "#/components/schemas/ClassicGovRuleData"
                      required:
                        - rules
                      additionalProperties: false
              required:
                - type
                - policy
              additionalProperties: false
            - description: Tradelink governance
              type: object
              properties:
                type:
                  type: string
                  const: TRADELINK
                exchangeConfigs:
                  type: array
                  items:
                    type: object
                    properties:
                      exchangeId:
                        description: Tradelink exchange id
                        type: string
                      repledgeAuthorized:
                        description: Determines whether this exchange is authorized to repledge on this
                          account
                        type: boolean
                      needsAssetManagerApprovalForSettlements:
                        description: Determines whether asset manager will "pre-approve" the settlement
                          requests on this account
                        type: boolean
                    required:
                      - exchangeId
                      - repledgeAuthorized
                      - needsAssetManagerApprovalForSettlements
                    additionalProperties: false
              required:
                - type
                - exchangeConfigs
              additionalProperties: false
            - description: Raw signing governance
              type: object
              properties:
                type:
                  type: string
                  const: RAW_SIGNING
                policy:
                  type: object
                  properties:
                    rules:
                      type: array
                      items:
                        description: Digest signing rule
                        type: object
                        properties:
                          operationType:
                            type: string
                            const: SIGN_DIGESTS
                          reviewSteps:
                            type: array
                            items:
                              description: Review step with users
                              type: object
                              properties:
                                quorum:
                                  description: Number of required approvals for the step
                                  type: number
                                  minimum: 0
                                userIds:
                                  description: User ids in the step
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                        required:
                          - operationType
                          - reviewSteps
                        additionalProperties: false
                  required:
                    - rules
                  additionalProperties: false
              required:
                - type
                - policy
              additionalProperties: false
          type: object
      required:
        - name
        - governance
      additionalProperties: false
    CantonTransferProposalOutput:
      description: A pending asset-transfer request
      type: object
      properties:
        amount:
          description: Transfer amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        contractId:
          description: ID of the transfer-proposal contract
          type: string
        instrumentAdmin:
          description: Issuer of the instrument being transferred
          type: string
        instrumentId:
          description: ID of the instrument being transferred
          type: string
        expiresAtMicros:
          description: Expiration timestamp in microseconds
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        memo:
          description: Optional note attached to the proposal
          anyOf:
            - type: string
            - type: "null"
        sender:
          description: Party proposing to send the asset
          type: string
        recipient:
          description: Intended recipient of the proposed transfer
          type: string
      required:
        - amount
        - contractId
        - instrumentAdmin
        - instrumentId
        - expiresAtMicros
        - memo
        - sender
        - recipient
      additionalProperties: false
    BitcoinLikeSendDataOutput:
      description: Bitcoin-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: BITCOIN_LIKE_SEND
        feeStrategy:
          description: Bitcoin-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            feePerByte:
              description: Fee per byte
              anyOf:
                - type: string
                  minLength: 1
                  pattern: ^([1-9]\d*|0)$
                - type: "null"
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    CantonLikeSendDataOutput:
      description: Canton-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        executeBeforeSeconds:
          description: Execute before seconds
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        type:
          type: string
          const: CANTON_LIKE_SEND
      required:
        - amount
        - currency
        - recipient
        - type
      additionalProperties: false
    CantonLikeSendTokenDataOutput:
      description: Canton-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        executeBeforeSeconds:
          description: Execute before seconds
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        type:
          type: string
          const: CANTON_LIKE_SEND_TOKEN
      required:
        - amount
        - currency
        - recipient
        - type
      additionalProperties: false
    CantonLikeWithdrawDataOutput:
      description: Canton-like withdraw data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transfer currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        transferProposal:
          $ref: "#/components/schemas/CantonTransferProposalOutput"
        reason:
          description: Reason of the verdict
          anyOf:
            - type: string
            - type: "null"
        type:
          type: string
          const: CANTON_LIKE_WITHDRAW
      required:
        - currency
        - transferProposal
        - reason
        - type
      additionalProperties: false
    CantonLikeReceiveDataOutput:
      description: Canton-like receive data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transfer currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        transferProposal:
          $ref: "#/components/schemas/CantonTransferProposalOutput"
        verdict:
          description: Accept or reject the transfer
          type: string
          enum:
            - ACCEPT
            - REJECT
        reason:
          description: Reason of the verdict
          anyOf:
            - type: string
            - type: "null"
        type:
          type: string
          const: CANTON_LIKE_RECEIVE
      required:
        - currency
        - transferProposal
        - verdict
        - reason
        - type
      additionalProperties: false
    CantonLikePreApprovalDataOutput:
      description: Canton-like pre-approval data
      type: object
      properties:
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        recipient:
          description: Recipient party on which to enable pre-approval
          type: string
          minLength: 1
        type:
          type: string
          const: CANTON_LIKE_PRE_APPROVAL
      required:
        - currency
        - recipient
        - type
      additionalProperties: false
    CantonLikeTapDataOutput:
      description: Canton-like tap data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: CANTON_LIKE_TAP
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
      additionalProperties: false
    CardanoSendDataOutput:
      description: Cardano-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: CARDANO_LIKE_SEND
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    CardanoStakingDelegateDataOutput:
      description: Cardano-like staking delegate
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_DELEGATE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        stakePoolId:
          description: ""
          type: string
          minLength: 1
          maxLength: 100
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - stakePoolId
      additionalProperties: false
    CardanoStakingDeregisterDataOutput:
      description: Cardano-like staking deregister data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_DEREGISTER
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        amount:
          description: Amount to deregister
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
      additionalProperties: false
    CardanoStakingRegisterDataOutput:
      description: Cardano-like staking register data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_REGISTER
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        amount:
          description: Amount to register
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
      additionalProperties: false
    CardanoStakingWithdrawDataOutput:
      description: Cardano-like staking withdraw data
      type: object
      properties:
        type:
          type: string
          const: CARDANO_LIKE_STAKING_WITHDRAW
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Cardano-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        amount:
          description: Amount to withdraw
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
        - amount
      additionalProperties: false
    EthereumLikeDeployContractDataOutput:
      description: Ethereum-like deploy contract data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          type: string
          const: "0x0000000000000000000000000000000000000000"
        type:
          type: string
          const: ETHEREUM_LIKE_DEPLOY_CONTRACT
        contractData:
          description: Contract data in hexadecimal format
          type: string
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategyOutput"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - contractData
        - feeStrategy
      additionalProperties: false
    EthereumLikeFeeStrategyOutput:
      description: Ethereum-like fee strategy
      anyOf:
        - description: Ethereum-like legacy fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            gasPrice:
              description: Gas price
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            gasLimit:
              description: Gas limit
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
          required:
            - type
            - gasPrice
            - gasLimit
          additionalProperties: false
        - description: Ethereum-like EIP-1559 fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
            maxPriorityFeePerGas:
              description: Maximum priority fee per gas
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            maxFeePerGas:
              description: Maximum fee per gas (base + priority)
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            gasLimit:
              description: Gas limit
              type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
          required:
            - type
            - maxPriorityFeePerGas
            - maxFeePerGas
            - gasLimit
          additionalProperties: false
    EthereumLikeExecuteContractDataOutput:
      description: Ethereum-like execute contract data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: ETHEREUM_LIKE_EXECUTE_CONTRACT
        contractData:
          description: Contract call data in hexadecimal format
          type: string
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategyOutput"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - contractData
        - feeStrategy
      additionalProperties: false
    EthereumLikeSendDataOutput:
      description: Ethereum-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: ETHEREUM_LIKE_SEND
        feeStrategy:
          $ref: "#/components/schemas/EthereumLikeFeeStrategyOutput"
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    GenericTransactionDataOutput:
      description: Generic transaction data
      type: object
      properties:
        type:
          type: string
          const: GENERIC_TRANSACTION
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        rawTx:
          description: Raw tx
          type: string
      required:
        - type
        - currency
        - rawTx
      additionalProperties: false
    HederaLikeSendDataOutput:
      description: Hedera-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: HEDERA_LIKE_SEND
        feeStrategy:
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    HederaLikeSendTokenDataOutput:
      description: Hedera-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: HEDERA_LIKE_SEND_TOKEN
        feeStrategy:
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    PolkadotLikeAddProxyDataOutput:
      description: Polkadot-like add proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_ADDPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        kind:
          description: Proxy kind
          type: string
          const: Staking
        proxy:
          description: Proxy address
          type: string
      required:
        - type
        - currency
        - kind
        - proxy
      additionalProperties: false
    PolkadotLikeAnonymousProxyDataOutput:
      description: Polkadot-like anonymous proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_ANONYMOUSPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
      additionalProperties: false
    PolkadotLikeBondDataOutput:
      description: Polkadot-like bond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_BOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        payee:
          type: string
          enum:
            - Staked
            - Stash
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - payee
        - amount
      additionalProperties: false
    PolkadotLikeBondExtraDataOutput:
      description: Polkadot-like bond extra data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_BONDEXTRA
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
      additionalProperties: false
    PolkadotLikeChillDataOutput:
      description: Polkadot-like chill data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_CHILL
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
      additionalProperties: false
    PolkadotLikeKillAnonymousDataOutput:
      description: Polkadot-like kill anonymous data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_KILLANONYMOUS
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
      additionalProperties: false
    PolkadotLikeRebondDataOutput:
      description: Polkadot-like rebond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_REBOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
      additionalProperties: false
    PolkadotLikeRemoveProxyDataOutput:
      description: Polkadot-like remove proxy data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_REMOVEPROXY
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        kind:
          type: string
          const: Staking
        proxy:
          description: Proxy address
          type: string
      required:
        - type
        - currency
        - kind
        - proxy
      additionalProperties: false
    PolkadotLikeSendDataOutput:
      description: Polkadot-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: POLKADOT_LIKE_SEND
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
      additionalProperties: false
    PolkadotLikeSetPayeeDataOutput:
      description: Polkadot-like set payee data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_SETPAYEE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        payee:
          type: string
          enum:
            - Staked
            - Stash
      required:
        - type
        - currency
        - payee
      additionalProperties: false
    PolkadotLikeUnbondDataOutput:
      description: Polkadot-like unbond data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_UNBOND
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        amount:
          description: Amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
      required:
        - type
        - currency
        - amount
      additionalProperties: false
    PolkadotLikeWithdrawUnbondedDataOutput:
      description: Polkadot-like withdraw unbonded data
      type: object
      properties:
        type:
          type: string
          const: POLKADOT_LIKE_WITHDRAWUNBONDED
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
      required:
        - type
        - currency
      additionalProperties: false
    RippleLikeSendDataOutput:
      description: Ripple-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: RIPPLE_LIKE_SEND
        destinationTag:
          description: Destination tag
          anyOf:
            - type: string
              minLength: 1
              pattern: ^(-?[1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Ripple-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - destinationTag
        - feeStrategy
      additionalProperties: false
    SolanaLikeCreateDelegateStakeDataOutput:
      description: Solana-like create delegate stake data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Delegated vote address
          type: string
        type:
          type: string
          const: SOLANA_LIKE_CREATE_DELEGATE_STAKE
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SolanaLikeDeactivateStakeDataOutput:
      description: Solana-like deactivate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_DEACTIVATE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeDelegateStakeDataOutput:
      description: Solana-like delegate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_DELEGATE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Delegated vote address
          type: string
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - recipient
        - stakeAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeMergeStakeDataOutput:
      description: Solana-like merge stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_MERGE_STAKE
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        mergeSrcAccount:
          description: Source stake address
          type: string
        mergeDstAccount:
          description: Destination stake address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - mergeSrcAccount
        - mergeDstAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeSendDataOutput:
      description: Solana-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_SEND
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SolanaLikeSplitDeactivateStakeDataOutput:
      description: Solana-like split deactivate stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeSplitStakeDataOutput:
      description: Solana-like split stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_SPLIT_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeWithdrawStakeDataOutput:
      description: Solana-like withdraw stake data
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_WITHDRAW_STAKE
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakeAccount:
          description: Stake account address
          type: string
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - amount
        - currency
        - maxFee
        - stakeAccount
        - feeStrategy
      additionalProperties: false
    SolanaLikeSendTokenDataOutput:
      description: Solana-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_SEND_TOKEN
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SolanaLikeFundAndSendTokenDataOutput:
      description: Solana-like fund token account and send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SOLANA_LIKE_FUND_AND_SEND_TOKEN
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SolanaLikeCreateTokenAccountDataOutput:
      description: Solana-like create token account
      type: object
      properties:
        type:
          type: string
          const: SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        feeStrategy:
          description: Solana-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
      additionalProperties: false
    StellarLikeSendDataOutput:
      description: Stellar-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: STELLAR_LIKE_SEND
        memo:
          description: Stellar memo
          anyOf:
            - oneOf:
                - description: Text memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_TEXT
                    value:
                      description: Text memo (at most a 28 bytes string)
                      type: string
                      maxLength: 28
                  required:
                    - type
                    - value
                  additionalProperties: false
                - description: Id memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_ID
                    value:
                      description: Id memo (unsigned 64 bits integer)
                      type: string
                      minLength: 1
                      pattern: ^(-?[1-9]\d*|0)$
                  required:
                    - type
                    - value
                  additionalProperties: false
                - description: Hash memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_HASH
                    value:
                      description: Transaction hash memo (64 bytes hexadecimal string)
                      type: string
                      maxLength: 128
                      pattern: ^[a-fA-F0-9]+$
                  required:
                    - type
                    - value
                  additionalProperties: false
                - description: Return memo
                  type: object
                  properties:
                    type:
                      type: string
                      const: MEMO_RETURN
                    value:
                      description: A 64 bytes hexadecimal string intended to be interpreted as the
                        hash of the transaction the sender is refunding.
                      type: string
                      maxLength: 128
                      pattern: ^[a-fA-F0-9]+$
                  required:
                    - type
                    - value
                  additionalProperties: false
              type: object
            - type: "null"
        feeStrategy:
          description: Stellar-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - memo
        - feeStrategy
      additionalProperties: false
    SuiLikeSendDataOutput:
      description: Sui-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SUI_LIKE_SEND
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SuiLikeTransferTokenDataOutput:
      description: Sui-like transfer token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: SUI_LIKE_SEND_TOKEN
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    SuiLikeStakeDataOutput:
      description: Sui-like stake data
      type: object
      properties:
        type:
          type: string
          const: SUI_LIKE_STAKE
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        validator:
          description: Validator address
          type: string
          minLength: 1
      required:
        - type
        - feeStrategy
        - amount
        - currency
        - maxFee
        - validator
      additionalProperties: false
    SuiLikeUnstakeDataOutput:
      description: Sui-like unstake data
      type: object
      properties:
        type:
          type: string
          const: SUI_LIKE_UNSTAKE
        feeStrategy:
          description: Sui-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        stakedSuiId:
          description: Staked object to (partially?) unstake
          type: string
          minLength: 1
        amount:
          description: Amount to unstake from the position
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        useAllAmount:
          description: Whether to unstake the full amount (triggers different sets of
            transaction commands)
          type: boolean
      required:
        - type
        - feeStrategy
        - currency
        - maxFee
        - stakedSuiId
        - amount
        - useAllAmount
      additionalProperties: false
    TezosLikeSendDataOutput:
      description: Tezos-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TEZOS_LIKE_SEND
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    TezosLikeDelegateDataOutput:
      description: Tezos-like delegate data
      type: object
      properties:
        type:
          type: string
          const: TEZOS_LIKE_DELEGATE
        amount:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - recipient
        - feeStrategy
      additionalProperties: false
    TezosLikeUndelegateDataOutput:
      description: Tezos-like undelegate data
      type: object
      properties:
        type:
          type: string
          const: TEZOS_LIKE_UNDELEGATE
        amount:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: "Deprecated: DO NOT USE!"
          type: string
          minLength: 1
        feeStrategy:
          description: Tezos-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
                - CUSTOM
          required:
            - type
          additionalProperties: false
      required:
        - type
        - currency
        - maxFee
        - feeStrategy
      additionalProperties: false
    TronLikeSendDataOutput:
      description: Tron-like send data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TRON_LIKE_SEND
        feeStrategy:
          description: Tron-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
    TronLikeSendTokenDataOutput:
      description: Tron-like send token data
      type: object
      properties:
        amount:
          description: Transaction amount
          type: string
          minLength: 1
          pattern: ^([1-9]\d*|0)$
        currency:
          description: Will be deprecated soon, use Account.network. Transaction currency
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^\w+$
        maxFee:
          description: Transaction max fee
          anyOf:
            - type: string
              minLength: 1
              pattern: ^([1-9]\d*|0)$
            - type: "null"
        recipient:
          description: Transaction recipient
          type: string
          minLength: 1
        type:
          type: string
          const: TRON_LIKE_SEND_TOKEN
        feeStrategy:
          description: Tron-like fee strategy
          type: object
          properties:
            type:
              type: string
              enum:
                - SLOW
                - NORMAL
                - FAST
          required:
            - type
          additionalProperties: false
      required:
        - amount
        - currency
        - maxFee
        - recipient
        - type
        - feeStrategy
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
