openapi: 3.0.3
info:
  title: revault-api
  description: A short description of what revault-api is
  version: 1.14.0
servers:
  - url: /rest
paths:
  /auth/token:
    post:
      operationId: auth-authenticate
      summary: Authenticate
      description: Exchange API Key credentials for JWT tokens
      tags:
        - auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace:
                  type: string
                  description: Target workspace
                apiKeyId:
                  type: string
                  description: API Key id
                apiKeySecret:
                  type: string
                  description: API Key secret
              required:
                - workspace
                - apiKeyId
                - apiKeySecret
              additionalProperties: false
      parameters: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessToken:
                    type: string
                    description: JSON Web Token used to authenticate requests
                  expiresInSeconds:
                    type: number
                    description: JWT validity period (in seconds)
                  refreshToken:
                    type: string
                    description: Refresh token used to obtain new JWT
                  refreshExpiresInSeconds:
                    type: number
                    description: Refresh token validity period (in seconds)
                required:
                  - accessToken
                  - expiresInSeconds
                  - refreshToken
                  - refreshExpiresInSeconds
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /auth/token/refresh:
    post:
      operationId: auth-refreshToken
      summary: Refresh token
      description: Exchange refreshToken for JWT tokens
      tags:
        - auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace:
                  type: string
                  description: Target workspace
                refreshToken:
                  type: string
                  description: Refresh token
              required:
                - workspace
                - refreshToken
              additionalProperties: false
      parameters: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessToken:
                    type: string
                    description: JSON Web Token used to authenticate requests
                  expiresInSeconds:
                    type: number
                    description: JWT validity period (in seconds)
                  refreshToken:
                    type: string
                    description: Refresh token used to obtain new JWT
                  refreshExpiresInSeconds:
                    type: number
                    description: Refresh token validity period (in seconds)
                required:
                  - accessToken
                  - expiresInSeconds
                  - refreshToken
                  - refreshExpiresInSeconds
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /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:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: role
          in: query
          required: false
          schema:
            type: string
            enum:
              - ADMIN
              - OPERATOR
              - READ_ONLY_API_KEY
          description: User role
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
          description: User status
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - role
              - status
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal unique identifier
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        legacyViewAll:
                          type: boolean
                          description: >-
                            If true, user can read all resources on the
                            workspace
                        workspaceName:
                          type: string
                          description: User's workspace name
                        name:
                          type: string
                          description: User name
                        deviceUserId:
                          type: string
                          nullable: true
                          description: User's device ID (for non-API users)
                        role:
                          type: string
                          enum:
                            - ADMIN
                            - OPERATOR
                            - READ_ONLY_API_KEY
                          description: User role
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: User status
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                      required:
                        - id
                        - legacyId
                        - legacyViewAll
                        - workspaceName
                        - name
                        - deviceUserId
                        - role
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /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:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target user
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Internal unique identifier
                  legacyId:
                    type: number
                    description: >-
                      Legacy internal unique identifier (for
                      retro-compatibility)
                  legacyViewAll:
                    type: boolean
                    description: If true, user can read all resources on the workspace
                  workspaceName:
                    type: string
                    description: User's workspace name
                  name:
                    type: string
                    description: User name
                  deviceUserId:
                    type: string
                    nullable: true
                    description: User's device ID (for non-API users)
                  role:
                    type: string
                    enum:
                      - ADMIN
                      - OPERATOR
                      - READ_ONLY_API_KEY
                    description: User role
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                    description: User status
                  createdAt:
                    type: string
                    format: date-time
                    description: Creation timestamp
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last modification timestamp
                required:
                  - id
                  - legacyId
                  - legacyViewAll
                  - workspaceName
                  - name
                  - deviceUserId
                  - role
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /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:
        - name: userId
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: string
            default: me
          description: Id of the target user or `me` for the current user
        - name: resourceType
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACCOUNT
              - ENTITY
              - GROUP
              - POLICY
              - WHITELIST
              - TRADELINK_CUSTODIAN
              - TRADELINK_ENTITY
        - name: resourceId
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  userId:
                    type: string
                    description: User ID
                  allowedActions:
                    type: array
                    items:
                      type: string
                      enum:
                        - READ
                        - EDIT
                        - SEND
                        - STAKE
                        - DEPLOY_CONTRACT
                        - EXECUTE_CONTRACT
                        - SIGN_DIGESTS
                        - SIGN_MESSAGE
                    description: Allowed actions on resource
                required:
                  - userId
                  - allowedActions
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /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:
        - name: userId
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: string
            default: me
          description: Id of the target user or `me` for the current user
        - name: resourceType
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACCOUNT
              - ENTITY
              - GROUP
              - POLICY
              - WHITELIST
              - TRADELINK_CUSTODIAN
              - TRADELINK_ENTITY
        - name: action
          in: query
          required: true
          schema:
            type: string
            enum:
              - READ
              - EDIT
              - SEND
              - STAKE
              - DEPLOY_CONTRACT
              - EXECUTE_CONTRACT
              - SIGN_DIGESTS
              - SIGN_MESSAGE
          description: Allowed action on the resource
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  userId:
                    type: string
                    description: User ID
                  action:
                    type: string
                    description: The requested action
                  resources:
                    type: array
                    items:
                      type: object
                      properties:
                        resourceType:
                          type: string
                          enum:
                            - ACCOUNT
                            - ENTITY
                            - GROUP
                            - POLICY
                            - WHITELIST
                            - TRADELINK_CUSTODIAN
                            - TRADELINK_ENTITY
                          description: Type of the resource
                        resourceId:
                          type: string
                          description: ID of resource on which the action is allowed
                      required:
                        - resourceType
                        - resourceId
                      additionalProperties: false
                required:
                  - userId
                  - action
                  - resources
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /accounts:
    get:
      operationId: accounts-list
      summary: List accounts
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
          description: Account status
        - name: name
          in: query
          required: false
          schema:
            type: string
          description: Search by matching name
        - name: governanceType
          in: query
          required: false
          schema:
            type: string
            enum:
              - CLASSIC
              - TRADELINK
          description: Account governance type
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - currency
              - index
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
        - name: skipLiveData
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Do not fetch live data (e.g. balance and staking) from blockchain
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal unique identifier
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: Status
                        name:
                          type: string
                          description: Name
                        currency:
                          type: string
                          description: Currency identifier
                        index:
                          type: number
                          minimum: 0
                          description: BIP44 account index
                        derivationPath:
                          type: string
                          description: Derivation path
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                        balance:
                          type: object
                          properties:
                            total:
                              type: string
                              description: Total balance
                            pending:
                              type: string
                              description: Pending balance
                          required:
                            - total
                            - pending
                          additionalProperties: false
                          description: Balance fields
                        asset:
                          anyOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - BITCOIN_LIKE
                                  description: Account type
                                xpub:
                                  type: string
                                  description: xpub (extended public key)
                              required:
                                - type
                                - xpub
                              additionalProperties: false
                              description: Bitcoin-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - CARDANO_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                staking:
                                  type: object
                                  properties:
                                    staked:
                                      type: string
                                      description: Staked balance
                                  required:
                                    - staked
                                  additionalProperties: false
                                  nullable: true
                                  description: Cardano-like staking data
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Cardano-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - ETHEREUM_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                staking:
                                  type: object
                                  properties:
                                    totalStaking:
                                      type: string
                                      description: Total staked amount
                                    totalRewards:
                                      type: string
                                      description: Total of rewards
                                    availableRewards:
                                      type: string
                                      description: Available rewards
                                    networkApy:
                                      type: number
                                      description: Network APY
                                  required:
                                    - totalStaking
                                    - totalRewards
                                    - availableRewards
                                    - networkApy
                                  additionalProperties: false
                                  nullable: true
                                  description: Ethereum-like staking data
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Ethereum-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - ERC20_LIKE
                                    - BEP20_LIKE
                                    - TRC20_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                contractAddress:
                                  type: string
                                  description: Token contract address
                              required:
                                - type
                                - address
                                - contractAddress
                              additionalProperties: false
                              description: Ethereum-like token
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - GENERIC_LIKE
                                  description: Account type
                              required:
                                - type
                              additionalProperties: false
                              description: Generic-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - POLKADOT_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                staking:
                                  type: object
                                  properties:
                                    info:
                                      type: object
                                      properties:
                                        controllerAddress:
                                          type: string
                                          nullable: true
                                          description: Controller address
                                        rewardsDestination:
                                          type: string
                                          nullable: true
                                          description: Rewards destination
                                        proxies:
                                          type: array
                                          items:
                                            type: string
                                          description: Proxies
                                        legacyStaking:
                                          type: boolean
                                          description: True if account uses legacy staking
                                        isNominator:
                                          type: boolean
                                          description: True if is nominator
                                      required:
                                        - controllerAddress
                                        - rewardsDestination
                                        - proxies
                                        - legacyStaking
                                        - isNominator
                                      additionalProperties: false
                                    balances:
                                      type: object
                                      properties:
                                        free:
                                          type: string
                                          description: Free balance
                                        reserved:
                                          type: string
                                          description: Reserved balance
                                        frozen:
                                          type: string
                                          description: Frozen balance
                                        bonded:
                                          type: string
                                          description: Bonded balance
                                        available:
                                          type: string
                                          description: Available balance
                                        unbonding:
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              amount:
                                                type: string
                                                description: Amount
                                              waiting_time:
                                                type: string
                                                description: Waiting time
                                            required:
                                              - amount
                                              - waiting_time
                                            additionalProperties: false
                                          description: Unbonding balances
                                        unbonded:
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              amount:
                                                type: string
                                                description: Amount
                                              waiting_time:
                                                type: string
                                                description: Waiting time
                                            required:
                                              - amount
                                              - waiting_time
                                            additionalProperties: false
                                          description: Unbonded balances
                                        totalUnbonding:
                                          type: string
                                          description: Total unbonding
                                        totalUnbonded:
                                          type: string
                                          description: Total unbonded
                                      required:
                                        - free
                                        - reserved
                                        - frozen
                                        - bonded
                                        - available
                                        - unbonding
                                        - unbonded
                                        - totalUnbonding
                                        - totalUnbonded
                                      additionalProperties: false
                                    anonymousProxy:
                                      type: object
                                      properties:
                                        address:
                                          type: string
                                          description: Address
                                        createdAt:
                                          type: string
                                          description: Creation date
                                        isController:
                                          type: boolean
                                          description: True if is controller
                                        isMain:
                                          type: boolean
                                          description: True if is main
                                        balances:
                                          type: object
                                          properties:
                                            free:
                                              type: string
                                              description: Anonymous proxy free balance
                                            reserved:
                                              type: string
                                              description: Anonymous proxy reserved balance
                                            frozen:
                                              type: string
                                              description: Anonymous proxy frozen balance
                                            bonded:
                                              type: string
                                              description: Anonymous proxy bonded balance
                                            available:
                                              type: string
                                              description: Anonymous proxy available balance
                                            total:
                                              type: string
                                              description: Anonymous proxy total balance
                                          required:
                                            - free
                                            - reserved
                                            - frozen
                                            - bonded
                                            - available
                                            - total
                                          additionalProperties: false
                                          nullable: true
                                        blockHeight:
                                          type: string
                                          description: Anonymous proxy block height
                                        extIndex:
                                          type: string
                                          description: Ext index
                                        index:
                                          type: string
                                          description: Index
                                        kind:
                                          type: string
                                          description: Kind
                                      required:
                                        - address
                                        - createdAt
                                        - isController
                                        - isMain
                                        - balances
                                        - blockHeight
                                        - extIndex
                                        - index
                                        - kind
                                      additionalProperties: false
                                      nullable: true
                                      description: Anonymous proxy
                                  required:
                                    - info
                                    - balances
                                    - anonymousProxy
                                  additionalProperties: false
                                  nullable: true
                                  description: Polkadot-like staking data
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Polkadot-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - RIPPLE_LIKE
                                  description: Account type
                                xpub:
                                  type: string
                                  description: xpub (extended public key)
                              required:
                                - type
                                - xpub
                              additionalProperties: false
                              description: Ripple-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - SOLANA_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                staking:
                                  type: object
                                  properties:
                                    staked:
                                      type: string
                                      description: Staked balance
                                    rewards:
                                      type: object
                                      properties:
                                        total:
                                          type: string
                                          description: Total rewards
                                        last7:
                                          type: string
                                          description: Rewards on last 7 days
                                        last30:
                                          type: string
                                          description: Rewards on last 30 days
                                      required:
                                        - total
                                        - last7
                                        - last30
                                      additionalProperties: false
                                    stakes:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          uid:
                                            type: string
                                          baseAccountUid:
                                            type: string
                                          pubKey:
                                            type: string
                                            description: Public key
                                          validatorPubKey:
                                            type: string
                                            nullable: true
                                            description: Validator public key
                                          initialAmount:
                                            type: string
                                            description: Initial amount
                                          activeAmount:
                                            type: string
                                            description: Active amount
                                          inactiveAmount:
                                            type: string
                                            description: Inactive amount
                                          totalBalance:
                                            type: string
                                            description: Total balance
                                          creationDate:
                                            type: string
                                            description: Creation date
                                          activationEpoch:
                                            type: string
                                            nullable: true
                                            description: Activation epoch
                                          activationDate:
                                            type: string
                                            nullable: true
                                            description: Activation date
                                          deactivationEpoch:
                                            type: string
                                            nullable: true
                                            description: Deactivation epoch
                                          deactivationDate:
                                            type: string
                                            nullable: true
                                            description: Deactivation date
                                          status:
                                            type: string
                                            enum:
                                              - not_sync
                                              - activating
                                              - activated
                                              - deactivating
                                              - deactivated
                                              - deleted
                                            description: Staking account status
                                          rentExemptReserve:
                                            type: string
                                            description: Rent exempt reserve
                                          withdrawableAmount:
                                            type: string
                                            description: Withdrawable amount
                                          totalRewards:
                                            type: string
                                            description: Total rewards
                                          creationTxHash:
                                            type: string
                                            nullable: true
                                            description: Creation transaction hash
                                          actionsTxHashes:
                                            type: array
                                            items:
                                              type: string
                                            description: Actions transactions hashes
                                        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
                                  nullable: true
                                  description: Solana-like staking data
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Solana-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - STELLAR_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Stellar-like
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - TEZOS_LIKE
                                  description: Account type
                                address:
                                  type: string
                                  nullable: true
                                  description: Account address
                                staking:
                                  type: object
                                  properties:
                                    delegations:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          address:
                                            type: string
                                        required:
                                          - address
                                        additionalProperties: false
                                  required:
                                    - delegations
                                  additionalProperties: false
                                  nullable: true
                                  description: Tezos-like staking data
                              required:
                                - type
                                - address
                              additionalProperties: false
                              description: Tezos-like
                          description: Asset fields
                        governance:
                          anyOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - CLASSIC
                                  description: Classic account governance
                                policyId:
                                  type: string
                                  description: >-
                                    Identifier of corresponding governance
                                    policy
                              required:
                                - type
                                - policyId
                              additionalProperties: false
                              description: Classic
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - TRADELINK
                                  description: Tradelink account governance
                                assetManagerId:
                                  type: string
                                  description: Identifier of corresponding asset manager
                              required:
                                - type
                                - assetManagerId
                              additionalProperties: false
                              description: Tradelink
                          description: Governance fields
                      required:
                        - id
                        - legacyId
                        - status
                        - name
                        - currency
                        - index
                        - derivationPath
                        - createdAt
                        - updatedAt
                        - asset
                        - governance
                      additionalProperties: false
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /accounts/{id}:
    get:
      operationId: accounts-findById
      summary: Get a single account
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target account
        - name: skipLiveData
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Do not fetch live data (e.g. balance and staking) from blockchain
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Internal unique identifier
                  legacyId:
                    type: number
                    description: >-
                      Legacy internal unique identifier (for
                      retro-compatibility)
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                    description: Status
                  name:
                    type: string
                    description: Name
                  currency:
                    type: string
                    description: Currency identifier
                  index:
                    type: number
                    minimum: 0
                    description: BIP44 account index
                  derivationPath:
                    type: string
                    description: Derivation path
                  createdAt:
                    type: string
                    format: date-time
                    description: Creation timestamp
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last modification timestamp
                  balance:
                    type: object
                    properties:
                      total:
                        type: string
                        description: Total balance
                      pending:
                        type: string
                        description: Pending balance
                    required:
                      - total
                      - pending
                    additionalProperties: false
                    description: Balance fields
                  asset:
                    anyOf:
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - BITCOIN_LIKE
                            description: Account type
                          xpub:
                            type: string
                            description: xpub (extended public key)
                        required:
                          - type
                          - xpub
                        additionalProperties: false
                        description: Bitcoin-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - CARDANO_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          staking:
                            type: object
                            properties:
                              staked:
                                type: string
                                description: Staked balance
                            required:
                              - staked
                            additionalProperties: false
                            nullable: true
                            description: Cardano-like staking data
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Cardano-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - ETHEREUM_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          staking:
                            type: object
                            properties:
                              totalStaking:
                                type: string
                                description: Total staked amount
                              totalRewards:
                                type: string
                                description: Total of rewards
                              availableRewards:
                                type: string
                                description: Available rewards
                              networkApy:
                                type: number
                                description: Network APY
                            required:
                              - totalStaking
                              - totalRewards
                              - availableRewards
                              - networkApy
                            additionalProperties: false
                            nullable: true
                            description: Ethereum-like staking data
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Ethereum-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - ERC20_LIKE
                              - BEP20_LIKE
                              - TRC20_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          contractAddress:
                            type: string
                            description: Token contract address
                        required:
                          - type
                          - address
                          - contractAddress
                        additionalProperties: false
                        description: Ethereum-like token
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - GENERIC_LIKE
                            description: Account type
                        required:
                          - type
                        additionalProperties: false
                        description: Generic-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - POLKADOT_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          staking:
                            type: object
                            properties:
                              info:
                                type: object
                                properties:
                                  controllerAddress:
                                    type: string
                                    nullable: true
                                    description: Controller address
                                  rewardsDestination:
                                    type: string
                                    nullable: true
                                    description: Rewards destination
                                  proxies:
                                    type: array
                                    items:
                                      type: string
                                    description: Proxies
                                  legacyStaking:
                                    type: boolean
                                    description: True if account uses legacy staking
                                  isNominator:
                                    type: boolean
                                    description: True if is nominator
                                required:
                                  - controllerAddress
                                  - rewardsDestination
                                  - proxies
                                  - legacyStaking
                                  - isNominator
                                additionalProperties: false
                              balances:
                                type: object
                                properties:
                                  free:
                                    type: string
                                    description: Free balance
                                  reserved:
                                    type: string
                                    description: Reserved balance
                                  frozen:
                                    type: string
                                    description: Frozen balance
                                  bonded:
                                    type: string
                                    description: Bonded balance
                                  available:
                                    type: string
                                    description: Available balance
                                  unbonding:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        amount:
                                          type: string
                                          description: Amount
                                        waiting_time:
                                          type: string
                                          description: Waiting time
                                      required:
                                        - amount
                                        - waiting_time
                                      additionalProperties: false
                                    description: Unbonding balances
                                  unbonded:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        amount:
                                          type: string
                                          description: Amount
                                        waiting_time:
                                          type: string
                                          description: Waiting time
                                      required:
                                        - amount
                                        - waiting_time
                                      additionalProperties: false
                                    description: Unbonded balances
                                  totalUnbonding:
                                    type: string
                                    description: Total unbonding
                                  totalUnbonded:
                                    type: string
                                    description: Total unbonded
                                required:
                                  - free
                                  - reserved
                                  - frozen
                                  - bonded
                                  - available
                                  - unbonding
                                  - unbonded
                                  - totalUnbonding
                                  - totalUnbonded
                                additionalProperties: false
                              anonymousProxy:
                                type: object
                                properties:
                                  address:
                                    type: string
                                    description: Address
                                  createdAt:
                                    type: string
                                    description: Creation date
                                  isController:
                                    type: boolean
                                    description: True if is controller
                                  isMain:
                                    type: boolean
                                    description: True if is main
                                  balances:
                                    type: object
                                    properties:
                                      free:
                                        type: string
                                        description: Anonymous proxy free balance
                                      reserved:
                                        type: string
                                        description: Anonymous proxy reserved balance
                                      frozen:
                                        type: string
                                        description: Anonymous proxy frozen balance
                                      bonded:
                                        type: string
                                        description: Anonymous proxy bonded balance
                                      available:
                                        type: string
                                        description: Anonymous proxy available balance
                                      total:
                                        type: string
                                        description: Anonymous proxy total balance
                                    required:
                                      - free
                                      - reserved
                                      - frozen
                                      - bonded
                                      - available
                                      - total
                                    additionalProperties: false
                                    nullable: true
                                  blockHeight:
                                    type: string
                                    description: Anonymous proxy block height
                                  extIndex:
                                    type: string
                                    description: Ext index
                                  index:
                                    type: string
                                    description: Index
                                  kind:
                                    type: string
                                    description: Kind
                                required:
                                  - address
                                  - createdAt
                                  - isController
                                  - isMain
                                  - balances
                                  - blockHeight
                                  - extIndex
                                  - index
                                  - kind
                                additionalProperties: false
                                nullable: true
                                description: Anonymous proxy
                            required:
                              - info
                              - balances
                              - anonymousProxy
                            additionalProperties: false
                            nullable: true
                            description: Polkadot-like staking data
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Polkadot-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - RIPPLE_LIKE
                            description: Account type
                          xpub:
                            type: string
                            description: xpub (extended public key)
                        required:
                          - type
                          - xpub
                        additionalProperties: false
                        description: Ripple-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - SOLANA_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          staking:
                            type: object
                            properties:
                              staked:
                                type: string
                                description: Staked balance
                              rewards:
                                type: object
                                properties:
                                  total:
                                    type: string
                                    description: Total rewards
                                  last7:
                                    type: string
                                    description: Rewards on last 7 days
                                  last30:
                                    type: string
                                    description: Rewards on last 30 days
                                required:
                                  - total
                                  - last7
                                  - last30
                                additionalProperties: false
                              stakes:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    baseAccountUid:
                                      type: string
                                    pubKey:
                                      type: string
                                      description: Public key
                                    validatorPubKey:
                                      type: string
                                      nullable: true
                                      description: Validator public key
                                    initialAmount:
                                      type: string
                                      description: Initial amount
                                    activeAmount:
                                      type: string
                                      description: Active amount
                                    inactiveAmount:
                                      type: string
                                      description: Inactive amount
                                    totalBalance:
                                      type: string
                                      description: Total balance
                                    creationDate:
                                      type: string
                                      description: Creation date
                                    activationEpoch:
                                      type: string
                                      nullable: true
                                      description: Activation epoch
                                    activationDate:
                                      type: string
                                      nullable: true
                                      description: Activation date
                                    deactivationEpoch:
                                      type: string
                                      nullable: true
                                      description: Deactivation epoch
                                    deactivationDate:
                                      type: string
                                      nullable: true
                                      description: Deactivation date
                                    status:
                                      type: string
                                      enum:
                                        - not_sync
                                        - activating
                                        - activated
                                        - deactivating
                                        - deactivated
                                        - deleted
                                      description: Staking account status
                                    rentExemptReserve:
                                      type: string
                                      description: Rent exempt reserve
                                    withdrawableAmount:
                                      type: string
                                      description: Withdrawable amount
                                    totalRewards:
                                      type: string
                                      description: Total rewards
                                    creationTxHash:
                                      type: string
                                      nullable: true
                                      description: Creation transaction hash
                                    actionsTxHashes:
                                      type: array
                                      items:
                                        type: string
                                      description: Actions transactions hashes
                                  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
                            nullable: true
                            description: Solana-like staking data
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Solana-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - STELLAR_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Stellar-like
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - TEZOS_LIKE
                            description: Account type
                          address:
                            type: string
                            nullable: true
                            description: Account address
                          staking:
                            type: object
                            properties:
                              delegations:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    address:
                                      type: string
                                  required:
                                    - address
                                  additionalProperties: false
                            required:
                              - delegations
                            additionalProperties: false
                            nullable: true
                            description: Tezos-like staking data
                        required:
                          - type
                          - address
                        additionalProperties: false
                        description: Tezos-like
                    description: Asset fields
                  governance:
                    anyOf:
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - CLASSIC
                            description: Classic account governance
                          policyId:
                            type: string
                            description: Identifier of corresponding governance policy
                        required:
                          - type
                          - policyId
                        additionalProperties: false
                        description: Classic
                      - type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - TRADELINK
                            description: Tradelink account governance
                          assetManagerId:
                            type: string
                            description: Identifier of corresponding asset manager
                        required:
                          - type
                          - assetManagerId
                        additionalProperties: false
                        description: Tradelink
                    description: Governance fields
                required:
                  - id
                  - legacyId
                  - status
                  - name
                  - currency
                  - index
                  - derivationPath
                  - createdAt
                  - updatedAt
                  - asset
                  - governance
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /accounts/{id}/transactions:
    get:
      operationId: accounts-listAccountTransactions
      summary: List account transactions
      tags:
        - account
      security:
        - Authorization: []
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            Optional cursor to get next pages (based on the `next` key on query
            response)
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target account
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    type: string
                    nullable: true
                    description: Next page cursor
                  results:
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - BITCOIN_LIKE_SEND
                                - BITCOIN_LIKE_RECEIVE
                              description: Bitcoin-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Bitcoin-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            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
                              description: Cardano-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Cardano-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - ETHEREUM_LIKE_SEND
                                - ETHEREUM_LIKE_RECEIVE
                              description: Ethereum-like transaction type
                            gasPrice:
                              type: string
                            gasLimit:
                              type: string
                            nonce:
                              type: string
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - gasPrice
                            - gasLimit
                            - nonce
                            - note
                          additionalProperties: false
                          description: Ethereum-like transfer transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                - ETHEREUM_LIKE_DEPLOY_CONTRACT
                              description: Ethereum-like transaction type
                            gasPrice:
                              type: string
                            gasLimit:
                              type: string
                            nonce:
                              type: string
                            contractData:
                              type: string
                              description: Contract deployment or contract execution data
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - gasPrice
                            - gasLimit
                            - nonce
                            - contractData
                            - note
                          additionalProperties: false
                          description: Ethereum-like contract transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - GENERIC_TRANSACTION
                              description: Generic transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Generic transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            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
                              description: Polkadot-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Polkadot-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - RIPPLE_LIKE_SEND
                                - RIPPLE_LIKE_RECEIVE
                              description: Ripple-like transaction type
                            memos:
                              type: array
                              items:
                                type: string
                            destinationTag:
                              type: string
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - memos
                            - destinationTag
                            - note
                          additionalProperties: false
                          description: Ripple-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            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
                              description: Solana-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Solana-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - STELLAR_LIKE_SEND
                                - STELLAR_LIKE_RECEIVE
                              description: Stellar-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Stellar-like transaction
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            hash:
                              type: string
                              description: Transaction hash
                            block:
                              type: object
                              properties:
                                height:
                                  type: string
                                  nullable: true
                                  description: Transaction block height
                                time:
                                  type: string
                                  nullable: true
                                  description: Transaction block time
                              required:
                                - height
                                - time
                              additionalProperties: false
                            status:
                              type: string
                              enum:
                                - SUCCESSFUL
                                - FAILED
                              description: Transaction status
                            confirmations:
                              type: string
                              description: Block confirmations
                            amount:
                              type: string
                              description: Transaction amount
                            fee:
                              type: string
                              description: Transaction fee
                            senders:
                              type: array
                              items:
                                type: string
                              description: >-
                                Senders (can be multiple for UTXOs-based
                                accounts)
                            recipients:
                              type: array
                              items:
                                type: string
                              description: >-
                                Recipients (can be multiple for multi-output
                                transactions)
                            type:
                              type: string
                              enum:
                                - TEZOS_LIKE_SEND
                                - TEZOS_LIKE_RECEIVE
                                - TEZOS_LIKE_REVEAL
                                - TEZOS_LIKE_DELEGATE
                                - TEZOS_LIKE_UNDELEGATE
                              description: Tezos-like transaction type
                            note:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: Transaction note title
                                content:
                                  type: string
                                  description: Transaction note content
                              required:
                                - title
                                - content
                              additionalProperties: false
                              description: Optional transaction note
                              nullable: true
                          required:
                            - id
                            - hash
                            - block
                            - status
                            - confirmations
                            - amount
                            - fee
                            - senders
                            - recipients
                            - type
                            - note
                          additionalProperties: false
                          description: Tezos-like transaction
                    description: Array of results
                required:
                  - next
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /groups:
    get:
      operationId: groups-list
      summary: List groups
      description: List groups in the same workspace.
      tags:
        - group
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
          description: Group status
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal unique identifier
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        name:
                          type: string
                          description: Group name
                        description:
                          type: string
                          nullable: true
                          description: Group description
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: Group status
                        members:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                description: Internal unique identifier
                              legacyId:
                                type: number
                                description: >-
                                  Legacy internal unique identifier (for
                                  retro-compatibility)
                              legacyViewAll:
                                type: boolean
                                description: >-
                                  If true, user can read all resources on the
                                  workspace
                              workspaceName:
                                type: string
                                description: User's workspace name
                              name:
                                type: string
                                description: User name
                              deviceUserId:
                                type: string
                                nullable: true
                                description: User's device ID (for non-API users)
                              role:
                                type: string
                                enum:
                                  - ADMIN
                                  - OPERATOR
                                  - READ_ONLY_API_KEY
                                description: User role
                              status:
                                type: string
                                enum:
                                  - ACTIVE
                                  - INACTIVE
                                description: User status
                              createdAt:
                                type: string
                                format: date-time
                                description: Creation timestamp
                              updatedAt:
                                type: string
                                format: date-time
                                description: Last modification timestamp
                            required:
                              - id
                              - legacyId
                              - legacyViewAll
                              - workspaceName
                              - name
                              - deviceUserId
                              - role
                              - status
                              - createdAt
                              - updatedAt
                            additionalProperties: false
                          description: Group members
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                      required:
                        - id
                        - legacyId
                        - name
                        - description
                        - status
                        - members
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /groups/{id}:
    get:
      operationId: groups-findById
      summary: Get a single group
      description: Find a group by ID.
      tags:
        - group
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target group
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Internal unique identifier
                  legacyId:
                    type: number
                    description: >-
                      Legacy internal unique identifier (for
                      retro-compatibility)
                  name:
                    type: string
                    description: Group name
                  description:
                    type: string
                    nullable: true
                    description: Group description
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                    description: Group status
                  members:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal unique identifier
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        legacyViewAll:
                          type: boolean
                          description: >-
                            If true, user can read all resources on the
                            workspace
                        workspaceName:
                          type: string
                          description: User's workspace name
                        name:
                          type: string
                          description: User name
                        deviceUserId:
                          type: string
                          nullable: true
                          description: User's device ID (for non-API users)
                        role:
                          type: string
                          enum:
                            - ADMIN
                            - OPERATOR
                            - READ_ONLY_API_KEY
                          description: User role
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: User status
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                      required:
                        - id
                        - legacyId
                        - legacyViewAll
                        - workspaceName
                        - name
                        - deviceUserId
                        - role
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                    description: Group members
                  createdAt:
                    type: string
                    format: date-time
                    description: Creation timestamp
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last modification timestamp
                required:
                  - id
                  - legacyId
                  - name
                  - description
                  - status
                  - members
                  - createdAt
                  - updatedAt
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /whitelists:
    get:
      operationId: whitelists-list
      summary: List whitelists
      description: List whitelists in the same workspace.
      tags:
        - whitelist
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
          description: Whitelist status
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal unique identifier
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        name:
                          type: string
                          description: Whitelist name
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: Whitelist status
                        addresses:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                minLength: 1
                                maxLength: 50
                                nullable: true
                                description: Address name
                              currency:
                                type: string
                                minLength: 1
                                maxLength: 50
                                description: Address currency
                              address:
                                type: string
                                minLength: 1
                                maxLength: 200
                                description: Address value
                              destinationTags:
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                  pattern: ^\w+$
                                description: >-
                                  List of destination tags (applicable for
                                  Ripple currency)
                            required:
                              - name
                              - currency
                              - address
                              - destinationTags
                            additionalProperties: false
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                        description:
                          type: string
                          nullable: true
                          description: Whitelist description
                      required:
                        - id
                        - legacyId
                        - name
                        - status
                        - addresses
                        - createdAt
                        - updatedAt
                        - description
                      additionalProperties: false
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /whitelists/{id}:
    get:
      operationId: whitelists-findById
      summary: Get a single whitelist
      description: Find a whitelist by ID.
      tags:
        - whitelist
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target group
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Internal unique identifier
                  legacyId:
                    type: number
                    description: >-
                      Legacy internal unique identifier (for
                      retro-compatibility)
                  name:
                    type: string
                    description: Whitelist name
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                    description: Whitelist status
                  addresses:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          minLength: 1
                          maxLength: 50
                          nullable: true
                          description: Address name
                        currency:
                          type: string
                          minLength: 1
                          maxLength: 50
                          description: Address currency
                        address:
                          type: string
                          minLength: 1
                          maxLength: 200
                          description: Address value
                        destinationTags:
                          type: array
                          items:
                            type: string
                            minLength: 1
                            pattern: ^\w+$
                          description: >-
                            List of destination tags (applicable for Ripple
                            currency)
                      required:
                        - name
                        - currency
                        - address
                        - destinationTags
                      additionalProperties: false
                  createdAt:
                    type: string
                    format: date-time
                    description: Creation timestamp
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last modification timestamp
                  description:
                    type: string
                    nullable: true
                    description: Whitelist description
                required:
                  - id
                  - legacyId
                  - name
                  - status
                  - addresses
                  - createdAt
                  - updatedAt
                  - description
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /policies:
    get:
      operationId: policies-list
      summary: List policies
      tags:
        - policy
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: name
          in: query
          required: false
          schema:
            type: string
          description: Search by matching name
        - name: isPrivate
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Search private policies
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            name:
                              type: string
                              description: Policy name
                            description:
                              type: string
                              nullable: true
                              description: Policy description
                            users:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Internal unique identifier
                                  legacyId:
                                    type: number
                                    description: >-
                                      Legacy internal unique identifier (for
                                      retro-compatibility)
                                  legacyViewAll:
                                    type: boolean
                                    description: >-
                                      If true, user can read all resources on
                                      the workspace
                                  workspaceName:
                                    type: string
                                    description: User's workspace name
                                  name:
                                    type: string
                                    description: User name
                                  deviceUserId:
                                    type: string
                                    nullable: true
                                    description: User's device ID (for non-API users)
                                  role:
                                    type: string
                                    enum:
                                      - ADMIN
                                      - OPERATOR
                                      - READ_ONLY_API_KEY
                                    description: User role
                                  status:
                                    type: string
                                    enum:
                                      - ACTIVE
                                      - INACTIVE
                                    description: User status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Creation timestamp
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Last modification timestamp
                                required:
                                  - id
                                  - legacyId
                                  - legacyViewAll
                                  - workspaceName
                                  - name
                                  - deviceUserId
                                  - role
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Referenced users
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Internal unique identifier
                                  legacyId:
                                    type: number
                                    description: >-
                                      Legacy internal unique identifier (for
                                      retro-compatibility)
                                  name:
                                    type: string
                                    description: Group name
                                  description:
                                    type: string
                                    nullable: true
                                    description: Group description
                                  status:
                                    type: string
                                    enum:
                                      - ACTIVE
                                      - INACTIVE
                                    description: Group status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Creation timestamp
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Last modification timestamp
                                required:
                                  - id
                                  - legacyId
                                  - name
                                  - description
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Referenced groups
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                            currency:
                              type: string
                              nullable: true
                              description: Currency identifier
                            type:
                              type: string
                              enum:
                                - ACCOUNT_POLICY
                                - ACCOUNT_PRIVATE_POLICY
                              description: Policy type
                            rules:
                              type: array
                              items:
                                type: object
                                properties:
                                  operationType:
                                    type: string
                                    enum:
                                      - SEND
                                      - STAKE
                                      - DEPLOY_CONTRACT
                                      - EXECUTE_CONTRACT
                                      - SIGN_DIGESTS
                                      - SIGN_MESSAGE
                                    description: Allowed operation type
                                  threshold:
                                    type: object
                                    properties:
                                      min:
                                        type: string
                                        pattern: ^\d+$
                                        nullable: true
                                        description: Minimum transaction amount
                                      max:
                                        type: string
                                        pattern: ^\d+$
                                        nullable: true
                                        description: Maximum transaction amount
                                    required:
                                      - min
                                      - max
                                    additionalProperties: false
                                    description: Threshold for the transaction value
                                  whitelistIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: >-
                                      IDs of whitelists for the recipient
                                      address
                                  reviewSteps:
                                    type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            quorum:
                                              type: number
                                              minimum: 0
                                              description: >-
                                                Number of required approvals for the
                                                step
                                            userIds:
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                              description: User ids in the step
                                          required:
                                            - quorum
                                            - userIds
                                          additionalProperties: false
                                          description: Review step with users
                                        - type: object
                                          properties:
                                            quorum:
                                              type: number
                                              minimum: 0
                                              description: >-
                                                Number of required approvals for the
                                                step
                                            groupId:
                                              type: string
                                              minLength: 1
                                              description: Group id in the step
                                          required:
                                            - quorum
                                            - groupId
                                          additionalProperties: false
                                          description: Review step with group
                                    minItems: 1
                                    description: Review steps
                                required:
                                  - operationType
                                  - reviewSteps
                                additionalProperties: false
                                description: Account governance rule
                              description: List of governance rules
                            whitelists:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Internal unique identifier
                                  legacyId:
                                    type: number
                                    description: >-
                                      Legacy internal unique identifier (for
                                      retro-compatibility)
                                  name:
                                    type: string
                                    description: Whitelist name
                                  status:
                                    type: string
                                    enum:
                                      - ACTIVE
                                      - INACTIVE
                                    description: Whitelist status
                                  addresses:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          minLength: 1
                                          maxLength: 50
                                          nullable: true
                                          description: Address name
                                        currency:
                                          type: string
                                          minLength: 1
                                          maxLength: 50
                                          description: Address currency
                                        address:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                          description: Address value
                                        destinationTags:
                                          type: array
                                          items:
                                            type: string
                                            minLength: 1
                                            pattern: ^\w+$
                                          description: >-
                                            List of destination tags (applicable for
                                            Ripple currency)
                                      required:
                                        - name
                                        - currency
                                        - address
                                        - destinationTags
                                      additionalProperties: false
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Creation timestamp
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Last modification timestamp
                                  description:
                                    type: string
                                    nullable: true
                                    description: Whitelist description
                                required:
                                  - id
                                  - legacyId
                                  - name
                                  - status
                                  - addresses
                                  - createdAt
                                  - updatedAt
                                  - description
                                additionalProperties: false
                              description: Related whitelists
                          required:
                            - id
                            - legacyId
                            - name
                            - description
                            - users
                            - groups
                            - createdAt
                            - updatedAt
                            - currency
                            - type
                            - rules
                            - whitelists
                          additionalProperties: false
                          description: Account policy
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /policies/{id}:
    get:
      operationId: policies-findById
      summary: Get a single policy
      tags:
        - policy
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target policy
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                        description: Internal unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      name:
                        type: string
                        description: Policy name
                      description:
                        type: string
                        nullable: true
                        description: Policy description
                      users:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            legacyViewAll:
                              type: boolean
                              description: >-
                                If true, user can read all resources on the
                                workspace
                            workspaceName:
                              type: string
                              description: User's workspace name
                            name:
                              type: string
                              description: User name
                            deviceUserId:
                              type: string
                              nullable: true
                              description: User's device ID (for non-API users)
                            role:
                              type: string
                              enum:
                                - ADMIN
                                - OPERATOR
                                - READ_ONLY_API_KEY
                              description: User role
                            status:
                              type: string
                              enum:
                                - ACTIVE
                                - INACTIVE
                              description: User status
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - id
                            - legacyId
                            - legacyViewAll
                            - workspaceName
                            - name
                            - deviceUserId
                            - role
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Referenced users
                      groups:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            name:
                              type: string
                              description: Group name
                            description:
                              type: string
                              nullable: true
                              description: Group description
                            status:
                              type: string
                              enum:
                                - ACTIVE
                                - INACTIVE
                              description: Group status
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - id
                            - legacyId
                            - name
                            - description
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Referenced groups
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                      currency:
                        type: string
                        nullable: true
                        description: Currency identifier
                      type:
                        type: string
                        enum:
                          - ACCOUNT_POLICY
                          - ACCOUNT_PRIVATE_POLICY
                        description: Policy type
                      rules:
                        type: array
                        items:
                          type: object
                          properties:
                            operationType:
                              type: string
                              enum:
                                - SEND
                                - STAKE
                                - DEPLOY_CONTRACT
                                - EXECUTE_CONTRACT
                                - SIGN_DIGESTS
                                - SIGN_MESSAGE
                              description: Allowed operation type
                            threshold:
                              type: object
                              properties:
                                min:
                                  type: string
                                  pattern: ^\d+$
                                  nullable: true
                                  description: Minimum transaction amount
                                max:
                                  type: string
                                  pattern: ^\d+$
                                  nullable: true
                                  description: Maximum transaction amount
                              required:
                                - min
                                - max
                              additionalProperties: false
                              description: Threshold for the transaction value
                            whitelistIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                              description: IDs of whitelists for the recipient address
                            reviewSteps:
                              type: array
                              items:
                                anyOf:
                                  - type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  - type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      groupId:
                                        type: string
                                        minLength: 1
                                        description: Group id in the step
                                    required:
                                      - quorum
                                      - groupId
                                    additionalProperties: false
                                    description: Review step with group
                              minItems: 1
                              description: Review steps
                          required:
                            - operationType
                            - reviewSteps
                          additionalProperties: false
                          description: Account governance rule
                        description: List of governance rules
                      whitelists:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Internal unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            name:
                              type: string
                              description: Whitelist name
                            status:
                              type: string
                              enum:
                                - ACTIVE
                                - INACTIVE
                              description: Whitelist status
                            addresses:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 50
                                    nullable: true
                                    description: Address name
                                  currency:
                                    type: string
                                    minLength: 1
                                    maxLength: 50
                                    description: Address currency
                                  address:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    description: Address value
                                  destinationTags:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      pattern: ^\w+$
                                    description: >-
                                      List of destination tags (applicable for
                                      Ripple currency)
                                required:
                                  - name
                                  - currency
                                  - address
                                  - destinationTags
                                additionalProperties: false
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                            description:
                              type: string
                              nullable: true
                              description: Whitelist description
                          required:
                            - id
                            - legacyId
                            - name
                            - status
                            - addresses
                            - createdAt
                            - updatedAt
                            - description
                          additionalProperties: false
                        description: Related whitelists
                    required:
                      - id
                      - legacyId
                      - name
                      - description
                      - users
                      - groups
                      - createdAt
                      - updatedAt
                      - currency
                      - type
                      - rules
                      - whitelists
                    additionalProperties: false
                    description: Account policy
        default:
          $ref: "#/components/responses/error"
  /entities:
    get:
      operationId: entities-list
      summary: List entities
      description: List entities in the same workspace.
      tags:
        - entity
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
          description: Entity status
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - status
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Entity ID
                        legacyId:
                          type: number
                          description: >-
                            Legacy internal unique identifier (for
                            retro-compatibility)
                        name:
                          type: string
                          description: Entity name
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - INACTIVE
                          description: Entity status
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last modification timestamp
                      required:
                        - id
                        - legacyId
                        - name
                        - status
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /entities/{id}:
    get:
      operationId: entities-findById
      summary: Get a single entity
      description: Find an entity by ID.
      tags:
        - entity
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target entity
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Entity ID
                  legacyId:
                    type: number
                    description: >-
                      Legacy internal unique identifier (for
                      retro-compatibility)
                  name:
                    type: string
                    description: Entity name
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                    description: Entity status
                  createdAt:
                    type: string
                    format: date-time
                    description: Creation timestamp
                  updatedAt:
                    type: string
                    format: date-time
                    description: Last modification timestamp
                required:
                  - id
                  - legacyId
                  - name
                  - status
                  - createdAt
                  - updatedAt
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /requests:
    post:
      operationId: requests-create
      summary: Create a request
      tags:
        - request
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request:
                  anyOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_ADMIN
                        data:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 19
                              description: User name
                            deviceType:
                              type: string
                              enum:
                                - PSD
                              description: Device type
                            deviceUserId:
                              type: string
                              pattern: ^[A-F0-9]{16}$
                              description: Device user ID
                            registration:
                              anyOf:
                                - type: object
                                  properties:
                                    subState:
                                      type: string
                                      enum:
                                        - PENDING
                                    deviceData:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          description: Name of the user to register
                                        psdModel:
                                          type: string
                                          enum:
                                            - BLUE
                                            - STAX
                                          description: Device model
                                        pubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: Device public key
                                        confidentialityKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        psdEphemeralKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        psdEphemeralKeyAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                      required:
                                        - name
                                        - psdModel
                                        - pubKey
                                        - confidentialityKey
                                        - psdEphemeralKey
                                        - psdEphemeralKeyAttestation
                                      additionalProperties: false
                                      description: Device data
                                    challenge:
                                      type: object
                                      properties:
                                        challenge:
                                          type: string
                                          description: TODO describe
                                        ephemeralPublicKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        ephemeralPublicKeyAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                        handshake:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        handshakeAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                        u2fRegisterData:
                                          type: string
                                          description: TODO describe
                                        ciphertext:
                                          type: string
                                          description: TODO describe
                                        requestId:
                                          type: string
                                          description: TODO describe
                                      required:
                                        - challenge
                                        - ephemeralPublicKey
                                        - ephemeralPublicKeyAttestation
                                        - handshake
                                        - handshakeAttestation
                                        - u2fRegisterData
                                        - ciphertext
                                        - requestId
                                      additionalProperties: false
                                      description: Registration challenge
                                  required:
                                    - subState
                                    - deviceData
                                    - challenge
                                  additionalProperties: false
                                  description: Pending registration
                                - type: object
                                  properties:
                                    subState:
                                      type: string
                                      enum:
                                        - COMPLETED
                                    pubKey:
                                      type: string
                                      pattern: ^[0-9a-fA-F]+$
                                      description: User device public key
                                    u2fKeyHandle:
                                      type: string
                                      description: U2F key handle for authenticate via PSD
                                    u2fPubKey:
                                      type: string
                                      pattern: ^[0-9a-fA-F]+$
                                      description: U2F public key for authenticate via PSD
                                  required:
                                    - subState
                                    - pubKey
                                    - u2fKeyHandle
                                    - u2fPubKey
                                  additionalProperties: false
                                  description: Completed registration
                              description: >-
                                Data collected from the new user during
                                registration
                          required:
                            - name
                            - deviceType
                            - deviceUserId
                          additionalProperties: false
                          description: Create PSD or Soft PSD user request data
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_ADMIN request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_GROUP
                        data:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 19
                              description: Group name
                            description:
                              type: string
                              nullable: true
                              description: Group description
                            members:
                              type: array
                              items:
                                type: string
                              description: List of group members ids
                          required:
                            - name
                            - description
                            - members
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_GROUP request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_OPERATOR
                        data:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 19
                              description: User name
                            deviceType:
                              type: string
                              enum:
                                - PSD
                                - SOFT_PSD
                              description: Device type
                            deviceUserId:
                              type: string
                              pattern: ^[A-F0-9]{16}$
                              description: Device user ID
                            registration:
                              anyOf:
                                - type: object
                                  properties:
                                    subState:
                                      type: string
                                      enum:
                                        - PENDING
                                    deviceData:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          description: Name of the user to register
                                        psdModel:
                                          type: string
                                          enum:
                                            - BLUE
                                            - STAX
                                          description: Device model
                                        pubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: Device public key
                                        confidentialityKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        psdEphemeralKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        psdEphemeralKeyAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                      required:
                                        - name
                                        - psdModel
                                        - pubKey
                                        - confidentialityKey
                                        - psdEphemeralKey
                                        - psdEphemeralKeyAttestation
                                      additionalProperties: false
                                      description: Device data
                                    challenge:
                                      type: object
                                      properties:
                                        challenge:
                                          type: string
                                          description: TODO describe
                                        ephemeralPublicKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        ephemeralPublicKeyAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                        handshake:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: TODO describe
                                        handshakeAttestation:
                                          type: object
                                          properties:
                                            codeHash:
                                              type: string
                                              contentEncoding: base64
                                              description: >-
                                                Hash of the executable that generated
                                                this certificate
                                            attestationPub:
                                              type: string
                                              contentEncoding: base64
                                              description: Attestation public key
                                            certificate:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate bytes
                                            signature:
                                              type: string
                                              contentEncoding: base64
                                              description: Certificate signature
                                          required:
                                            - codeHash
                                            - attestationPub
                                            - certificate
                                            - signature
                                          additionalProperties: false
                                          description: TODO describe
                                        u2fRegisterData:
                                          type: string
                                          description: TODO describe
                                        ciphertext:
                                          type: string
                                          description: TODO describe
                                        requestId:
                                          type: string
                                          description: TODO describe
                                      required:
                                        - challenge
                                        - ephemeralPublicKey
                                        - ephemeralPublicKeyAttestation
                                        - handshake
                                        - handshakeAttestation
                                        - u2fRegisterData
                                        - ciphertext
                                        - requestId
                                      additionalProperties: false
                                      description: Registration challenge
                                  required:
                                    - subState
                                    - deviceData
                                    - challenge
                                  additionalProperties: false
                                  description: Pending registration
                                - type: object
                                  properties:
                                    subState:
                                      type: string
                                      enum:
                                        - COMPLETED
                                    pubKey:
                                      type: string
                                      pattern: ^[0-9a-fA-F]+$
                                      description: User device public key
                                    u2fKeyHandle:
                                      type: string
                                      description: U2F key handle for authenticate via PSD
                                    u2fPubKey:
                                      type: string
                                      pattern: ^[0-9a-fA-F]+$
                                      description: U2F public key for authenticate via PSD
                                  required:
                                    - subState
                                    - pubKey
                                    - u2fKeyHandle
                                    - u2fPubKey
                                  additionalProperties: false
                                  description: Completed registration
                              description: >-
                                Data collected from the new user during
                                registration
                          required:
                            - name
                            - deviceType
                            - deviceUserId
                          additionalProperties: false
                          description: Create PSD or Soft PSD user request data
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_OPERATOR request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_TRANSACTION
                        data:
                          type: object
                          properties:
                            accountId:
                              type: string
                              minLength: 1
                              description: Target account id
                            transaction:
                              anyOf:
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - BITCOIN_LIKE_SEND
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                            - CUSTOM
                                        feePerByte:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Fee per byte
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Bitcoin-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Bitcoin-like send data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - CARDANO_LIKE_SEND
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Cardano-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Cardano-like send data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - CARDANO_LIKE_STAKING_DELEGATE
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Cardano-like fee strategy
                                    stakePoolId:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - feeStrategy
                                    - stakePoolId
                                  additionalProperties: false
                                  description: Cardano-like staking delegate
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - CARDANO_LIKE_STAKING_DEREGISTER
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Cardano-like fee strategy
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount to deregister
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - feeStrategy
                                    - amount
                                  additionalProperties: false
                                  description: Cardano-like staking deregister data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - CARDANO_LIKE_STAKING_REGISTER
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Cardano-like fee strategy
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount to register
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - feeStrategy
                                    - amount
                                  additionalProperties: false
                                  description: Cardano-like staking register data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - CARDANO_LIKE_STAKING_WITHDRAW
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Cardano-like fee strategy
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount to withdraw
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - feeStrategy
                                    - amount
                                  additionalProperties: false
                                  description: Cardano-like staking withdraw data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      enum:
                                        - >-
                                          0x0000000000000000000000000000000000000000
                                    type:
                                      type: string
                                      enum:
                                        - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                    contractData:
                                      type: string
                                      pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                      description: Contract data in hexadecimal format
                                    feeStrategy:
                                      anyOf:
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasPrice:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas price
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - gasPrice
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like legacy fee strategy
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            maxPriorityFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum priority fee per gas
                                            maxFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum fee per gas (base + priority)
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - maxPriorityFeePerGas
                                            - maxFeePerGas
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like EIP-1559 fee strategy
                                      description: Ethereum-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - contractData
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Ethereum-like deploy contract data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                    contractData:
                                      type: string
                                      pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                      description: Contract call data in hexadecimal format
                                    feeStrategy:
                                      anyOf:
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasPrice:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas price
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - gasPrice
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like legacy fee strategy
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            maxPriorityFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum priority fee per gas
                                            maxFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum fee per gas (base + priority)
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - maxPriorityFeePerGas
                                            - maxFeePerGas
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like EIP-1559 fee strategy
                                      description: Ethereum-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - contractData
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Ethereum-like execute contract data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - ETHEREUM_LIKE_SEND
                                    feeStrategy:
                                      anyOf:
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasPrice:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas price
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - gasPrice
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like legacy fee strategy
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            maxPriorityFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum priority fee per gas
                                            maxFeePerGas:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Maximum fee per gas (base + priority)
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                          required:
                                            - type
                                            - maxPriorityFeePerGas
                                            - maxFeePerGas
                                            - gasLimit
                                          additionalProperties: false
                                          description: Ethereum-like EIP-1559 fee strategy
                                      description: Ethereum-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Ethereum-like send data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - GENERIC_TRANSACTION
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    rawTx:
                                      type: string
                                      description: Raw tx
                                  required:
                                    - type
                                    - currency
                                    - rawTx
                                  additionalProperties: false
                                  description: Generic transaction data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_ADDPROXY
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    kind:
                                      type: string
                                      enum:
                                        - Staking
                                      description: Proxy kind
                                    proxy:
                                      type: string
                                      description: Proxy address
                                  required:
                                    - type
                                    - currency
                                    - kind
                                    - proxy
                                  additionalProperties: false
                                  description: Polkadot-like add proxy data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_ANONYMOUSPROXY
                                    currency:
                                      type: string
                                      description: Transaction currency
                                  required:
                                    - type
                                    - currency
                                  additionalProperties: false
                                  description: Polkadot-like anonymous proxy data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_BOND
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    payee:
                                      type: string
                                      enum:
                                        - Staked
                                        - Stash
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount
                                  required:
                                    - type
                                    - currency
                                    - payee
                                    - amount
                                  additionalProperties: false
                                  description: Polkadot-like bond data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_BONDEXTRA
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount
                                  required:
                                    - type
                                    - currency
                                    - amount
                                  additionalProperties: false
                                  description: Polkadot-like bond extra data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_CHILL
                                    currency:
                                      type: string
                                      description: Transaction currency
                                  required:
                                    - type
                                    - currency
                                  additionalProperties: false
                                  description: Polkadot-like chill data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_KILLANONYMOUS
                                    currency:
                                      type: string
                                      description: Transaction currency
                                  required:
                                    - type
                                    - currency
                                  additionalProperties: false
                                  description: Polkadot-like kill anonymous data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_REBOND
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount
                                  required:
                                    - type
                                    - currency
                                    - amount
                                  additionalProperties: false
                                  description: Polkadot-like rebond data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_REMOVEPROXY
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    kind:
                                      type: string
                                      enum:
                                        - Staking
                                    proxy:
                                      type: string
                                      description: Proxy address
                                  required:
                                    - type
                                    - currency
                                    - kind
                                    - proxy
                                  additionalProperties: false
                                  description: Polkadot-like remove proxy data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_SEND
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                  additionalProperties: false
                                  description: Polkadot-like send data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_SETPAYEE
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    payee:
                                      type: string
                                      enum:
                                        - Staked
                                        - Stash
                                  required:
                                    - type
                                    - currency
                                    - payee
                                  additionalProperties: false
                                  description: Polkadot-like set payee data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_UNBOND
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Amount
                                  required:
                                    - type
                                    - currency
                                    - amount
                                  additionalProperties: false
                                  description: Polkadot-like unbond data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - POLKADOT_LIKE_WITHDRAWUNBONDED
                                    currency:
                                      type: string
                                      description: Transaction currency
                                  required:
                                    - type
                                    - currency
                                  additionalProperties: false
                                  description: Polkadot-like withdraw unbonded data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - RIPPLE_LIKE_SEND
                                    destinationTag:
                                      type: string
                                      minLength: 1
                                      pattern: ^-?\d+$
                                      nullable: true
                                      description: Destination tag
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                            - CUSTOM
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Ripple-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - destinationTag
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Ripple-like send data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Delegated vote address
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like create delegate stake data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_DEACTIVATE_STAKE
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    stakeAccount:
                                      type: string
                                      description: Stake account address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - stakeAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like deactivate stake data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_DELEGATE_STAKE
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Delegated vote address
                                    stakeAccount:
                                      type: string
                                      description: Stake account address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - recipient
                                    - stakeAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like delegate stake data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_MERGE_STAKE
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    mergeSrcAccount:
                                      type: string
                                      description: Source stake address
                                    mergeDstAccount:
                                      type: string
                                      description: Destination stake address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - currency
                                    - maxFee
                                    - mergeSrcAccount
                                    - mergeDstAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like merge stake data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_SEND
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like send data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    stakeAccount:
                                      type: string
                                      description: Stake account address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - amount
                                    - currency
                                    - maxFee
                                    - stakeAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like split deactivate stake data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_SPLIT_STAKE
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    stakeAccount:
                                      type: string
                                      description: Stake account address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - amount
                                    - currency
                                    - maxFee
                                    - stakeAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like split stake data
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - SOLANA_LIKE_WITHDRAW_STAKE
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    stakeAccount:
                                      type: string
                                      description: Stake account address
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Solana-like fee strategy
                                  required:
                                    - type
                                    - amount
                                    - currency
                                    - maxFee
                                    - stakeAccount
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Solana-like delegate stake data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - STELLAR_LIKE_SEND
                                    memo:
                                      anyOf:
                                        - type: object
                                          properties:
                                            MEMO_TEXT:
                                              type: string
                                              maxLength: 28
                                              description: Text memo (at most a 28 bytes string)
                                          required:
                                            - MEMO_TEXT
                                          additionalProperties: false
                                          description: Text memo
                                        - type: object
                                          properties:
                                            MEMO_ID:
                                              type: string
                                              minLength: 1
                                              pattern: ^-?\d+$
                                              description: Id memo (unsigned 64 bits integer)
                                          required:
                                            - MEMO_ID
                                          additionalProperties: false
                                          description: Id memo
                                        - type: object
                                          properties:
                                            MEMO_HASH:
                                              type: string
                                              maxLength: 128
                                              pattern: ^[a-fA-F0-9]+$
                                              description: >-
                                                Transaction hash memo (64 bytes
                                                hexadecimal string)
                                          required:
                                            - MEMO_HASH
                                          additionalProperties: false
                                          description: Hash memo
                                        - type: object
                                          properties:
                                            MEMO_RETURN:
                                              type: string
                                              maxLength: 128
                                              pattern: ^[a-fA-F0-9]+$
                                              description: >-
                                                A 64 bytes hexadecimal string intended
                                                to be interpreted as the hash of the
                                                transaction the sender is refunding.
                                          required:
                                            - MEMO_RETURN
                                          additionalProperties: false
                                          description: Return memo
                                      nullable: true
                                      description: Stellar memo
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                      required:
                                        - type
                                      additionalProperties: false
                                      description: Stellar-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - memo
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Stellar-like send data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - TEZOS_LIKE_DELEGATE
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                            - CUSTOM
                                        gasLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Gas limit
                                        storageLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Storage limit
                                      required:
                                        - type
                                        - gasLimit
                                        - storageLimit
                                      additionalProperties: false
                                      description: Tezos-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Tezos-like delegate data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - TEZOS_LIKE_SEND
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                            - CUSTOM
                                        gasLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Gas limit
                                        storageLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Storage limit
                                      required:
                                        - type
                                        - gasLimit
                                        - storageLimit
                                      additionalProperties: false
                                      description: Tezos-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Tezos-like send data
                                - type: object
                                  properties:
                                    amount:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      description: Transaction amount
                                    currency:
                                      type: string
                                      description: Transaction currency
                                    maxFee:
                                      type: string
                                      pattern: ^0|[1-9]\d*$
                                      nullable: true
                                      description: Transaction max fee
                                    recipient:
                                      type: string
                                      description: Transaction recipient
                                    type:
                                      type: string
                                      enum:
                                        - TEZOS_LIKE_UNDELEGATE
                                    feeStrategy:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SLOW
                                            - NORMAL
                                            - FAST
                                            - CUSTOM
                                        gasLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Gas limit
                                        storageLimit:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Storage limit
                                      required:
                                        - type
                                        - gasLimit
                                        - storageLimit
                                      additionalProperties: false
                                      description: Tezos-like fee strategy
                                  required:
                                    - amount
                                    - currency
                                    - maxFee
                                    - recipient
                                    - type
                                    - feeStrategy
                                  additionalProperties: false
                                  description: Tezos-like undelegate data
                          required:
                            - accountId
                            - transaction
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_TRANSACTION request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_ACCOUNT
                        data:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 40
                              description: Account name
                            type:
                              type: string
                              enum:
                                - BITCOIN_LIKE
                                - ETHEREUM_LIKE
                                - ERC20_LIKE
                                - BEP20_LIKE
                                - CARDANO_LIKE
                                - SOLANA_LIKE
                                - TEZOS_LIKE
                                - STELLAR_LIKE
                                - RIPPLE_LIKE
                                - POLKADOT_LIKE
                                - TRC20_LIKE
                                - GENERIC_LIKE
                            currency:
                              type: string
                              minLength: 1
                              maxLength: 40
                              pattern: ^\w+$
                              description: Currency
                            index:
                              type: number
                              minimum: 0
                              description: Account index
                            contractAddress:
                              type: string
                              minLength: 1
                              description: Account contract address
                            governance:
                              anyOf:
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - CLASSIC
                                    policy:
                                      anyOf:
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - ACCOUNT_POLICY
                                            policyId:
                                              type: string
                                          required:
                                            - type
                                            - policyId
                                          additionalProperties: false
                                          description: Account policy
                                        - type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - ACCOUNT_PRIVATE_POLICY
                                            rules:
                                              type: array
                                              items:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      operationType:
                                                        type: string
                                                        enum:
                                                          - SEND
                                                          - STAKE
                                                          - DEPLOY_CONTRACT
                                                          - EXECUTE_CONTRACT
                                                          - SIGN_DIGESTS
                                                          - SIGN_MESSAGE
                                                        description: Allowed operation type
                                                      threshold:
                                                        type: object
                                                        properties:
                                                          min:
                                                            type: string
                                                            pattern: ^\d+$
                                                            nullable: true
                                                            description: Minimum transaction amount
                                                          max:
                                                            type: string
                                                            pattern: ^\d+$
                                                            nullable: true
                                                            description: Maximum transaction amount
                                                        required:
                                                          - min
                                                          - max
                                                        additionalProperties: false
                                                        description: Threshold for the transaction value
                                                      whitelistIds:
                                                        type: array
                                                        items:
                                                          type: string
                                                          minLength: 1
                                                        description: >-
                                                          IDs of whitelists for the recipient
                                                          address
                                                      reviewSteps:
                                                        type: array
                                                        items:
                                                          anyOf:
                                                            - type: object
                                                              properties:
                                                                quorum:
                                                                  type: number
                                                                  minimum: 0
                                                                  description:
                                                                    >-
                                                                    Number of required approvals for the
                                                                    step
                                                                userIds:
                                                                  type: array
                                                                  items:
                                                                    type: string
                                                                    minLength: 1
                                                                  description: User ids in the step
                                                              required:
                                                                - quorum
                                                                - userIds
                                                              additionalProperties: false
                                                              description: Review step with users
                                                            - type: object
                                                              properties:
                                                                quorum:
                                                                  type: number
                                                                  minimum: 0
                                                                  description:
                                                                    >-
                                                                    Number of required approvals for the
                                                                    step
                                                                groupId:
                                                                  type: string
                                                                  minLength: 1
                                                                  description: Group id in the step
                                                              required:
                                                                - quorum
                                                                - groupId
                                                              additionalProperties: false
                                                              description: Review step with group
                                                        minItems: 1
                                                        description: Review steps
                                                    required:
                                                      - operationType
                                                      - reviewSteps
                                                    additionalProperties: false
                                                    description: Account governance rule
                                                description: Governance rule
                                          required:
                                            - type
                                            - rules
                                          additionalProperties: false
                                          description: Account governance rules
                                      description: Account policy or governance rules
                                  required:
                                    - type
                                    - policy
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - TRADELINK
                                    assetManagerId:
                                      type: string
                                    exchangeConfigs:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          exchangeId:
                                            type: string
                                            description: Tradelink exchange id
                                          repledgeAuthorized:
                                            type: boolean
                                            description: >-
                                              Determines whether this exchange is
                                              authorized to repledge on this account
                                          needPreApproval:
                                            type: boolean
                                            description: >-
                                              Determines whether asset manager will
                                              "pre-approve" the settlement requests on
                                              this account
                                        required:
                                          - exchangeId
                                          - repledgeAuthorized
                                          - needPreApproval
                                        additionalProperties: false
                                  required:
                                    - type
                                    - assetManagerId
                                    - exchangeConfigs
                                  additionalProperties: false
                          required:
                            - name
                            - type
                            - currency
                            - governance
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_ACCOUNT request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - ACTIVATE_TRADELINK_ACCOUNT
                        targetId:
                          type: string
                        data:
                          type: object
                          properties: {}
                          additionalProperties: false
                      required:
                        - type
                        - targetId
                        - data
                      additionalProperties: false
                      description: ACTIVATE_TRADELINK_ACCOUNT request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_TRADELINK_CUSTODIAN
                        data:
                          type: object
                          properties:
                            settlement:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of settlement review steps
                            withdraw:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of withdraw review steps
                            arbitration:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of arbitration review steps
                          required:
                            - settlement
                            - withdraw
                            - arbitration
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_TRADELINK_CUSTODIAN request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - EDIT_TRADELINK_CUSTODIAN
                        targetId:
                          type: string
                        data:
                          type: object
                          properties:
                            settlement:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of settlement review steps
                            withdraw:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of withdraw review steps
                            arbitration:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of arbitration review steps
                          required:
                            - settlement
                            - withdraw
                            - arbitration
                          additionalProperties: false
                      required:
                        - type
                        - targetId
                        - data
                      additionalProperties: false
                      description: EDIT_TRADELINK_CUSTODIAN request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_TRADELINK_EXCHANGE
                        data:
                          type: object
                          properties:
                            tradelinkId:
                              type: string
                              minLength: 1
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of asset manager review groups
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    type: string
                                    minLength: 1
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                              description: List of asset manager whitelisted addresses
                          required:
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_TRADELINK_EXCHANGE request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - EDIT_TRADELINK_EXCHANGE
                        targetId:
                          type: string
                        data:
                          type: object
                          properties:
                            tradelinkId:
                              type: string
                              minLength: 1
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of asset manager review groups
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    type: string
                                    minLength: 1
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                              description: List of asset manager whitelisted addresses
                          required:
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                      required:
                        - type
                        - targetId
                        - data
                      additionalProperties: false
                      description: EDIT_TRADELINK_EXCHANGE request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - CREATE_TRADELINK_ASSET_MANAGER
                        data:
                          type: object
                          properties:
                            tradelinkId:
                              type: string
                              minLength: 1
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of asset manager review groups
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    type: string
                                    minLength: 1
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                              description: List of asset manager whitelisted addresses
                          required:
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: CREATE_TRADELINK_ASSET_MANAGER request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - EDIT_TRADELINK_ASSET_MANAGER
                        targetId:
                          type: string
                        data:
                          type: object
                          properties:
                            tradelinkId:
                              type: string
                              minLength: 1
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  quorum:
                                    type: number
                                    minimum: 0
                                    description: Number of required approvals for the step
                                  userIds:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                    description: User ids in the step
                                required:
                                  - quorum
                                  - userIds
                                additionalProperties: false
                                description: Review step with users
                              description: List of asset manager review groups
                            whitelist:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    minLength: 1
                                  currency:
                                    type: string
                                    minLength: 1
                                  address:
                                    type: string
                                    minLength: 1
                                required:
                                  - name
                                  - currency
                                  - address
                                additionalProperties: false
                              description: List of asset manager whitelisted addresses
                          required:
                            - tradelinkId
                            - groups
                            - whitelist
                          additionalProperties: false
                      required:
                        - type
                        - targetId
                        - data
                      additionalProperties: false
                      description: EDIT_TRADELINK_ASSET_MANAGER request data
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - ADJUST_PLEDGE
                        data:
                          type: object
                          properties:
                            accountId:
                              type: string
                              description: Account id
                            exchangeId:
                              type: string
                              description: Exchange id
                            amount:
                              type: string
                              minLength: 1
                              pattern: ^-?\d+$
                              description: Amount to add to pledge
                          required:
                            - accountId
                            - exchangeId
                            - amount
                          additionalProperties: false
                      required:
                        - type
                        - data
                      additionalProperties: false
                      description: ADJUST_PLEDGE request data
              required:
                - request
              additionalProperties: false
      parameters: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - UPDATE_QUORUM
                      data:
                        type: object
                        properties:
                          quorum:
                            type: integer
                            minimum: 1
                            description: Workspace quorum
                        required:
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: UPDATE_QUORUM request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRANSACTION
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            minLength: 1
                            description: Target account id
                          transaction:
                            anyOf:
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - BITCOIN_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      feePerByte:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        nullable: true
                                        description: Fee per byte
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Bitcoin-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Bitcoin-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Cardano-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DELEGATE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  stakePoolId:
                                    type: string
                                    minLength: 1
                                    maxLength: 100
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - stakePoolId
                                additionalProperties: false
                                description: Cardano-like staking delegate
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DEREGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to deregister
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking deregister data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_REGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to register
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking register data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_WITHDRAW
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to withdraw
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking withdraw data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    enum:
                                      - >-
                                        0x0000000000000000000000000000000000000000
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like deploy contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract call data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like execute contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_SEND
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - GENERIC_TRANSACTION
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  rawTx:
                                    type: string
                                    description: Raw tx
                                required:
                                  - type
                                  - currency
                                  - rawTx
                                additionalProperties: false
                                description: Generic transaction data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ADDPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                    description: Proxy kind
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like add proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ANONYMOUSPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like anonymous proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - payee
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BONDEXTRA
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond extra data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_CHILL
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like chill data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_KILLANONYMOUS
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like kill anonymous data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like rebond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REMOVEPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like remove proxy data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SEND
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                additionalProperties: false
                                description: Polkadot-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SETPAYEE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                required:
                                  - type
                                  - currency
                                  - payee
                                additionalProperties: false
                                description: Polkadot-like set payee data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_UNBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like unbond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_WITHDRAWUNBONDED
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like withdraw unbonded data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - RIPPLE_LIKE_SEND
                                  destinationTag:
                                    type: string
                                    minLength: 1
                                    pattern: ^-?\d+$
                                    nullable: true
                                    description: Destination tag
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Ripple-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - destinationTag
                                  - feeStrategy
                                additionalProperties: false
                                description: Ripple-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like create delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DEACTIVATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DELEGATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - recipient
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_MERGE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  mergeSrcAccount:
                                    type: string
                                    description: Source stake address
                                  mergeDstAccount:
                                    type: string
                                    description: Destination stake address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - mergeSrcAccount
                                  - mergeDstAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like merge stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_WITHDRAW_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - STELLAR_LIKE_SEND
                                  memo:
                                    anyOf:
                                      - type: object
                                        properties:
                                          MEMO_TEXT:
                                            type: string
                                            maxLength: 28
                                            description: Text memo (at most a 28 bytes string)
                                        required:
                                          - MEMO_TEXT
                                        additionalProperties: false
                                        description: Text memo
                                      - type: object
                                        properties:
                                          MEMO_ID:
                                            type: string
                                            minLength: 1
                                            pattern: ^-?\d+$
                                            description: Id memo (unsigned 64 bits integer)
                                        required:
                                          - MEMO_ID
                                        additionalProperties: false
                                        description: Id memo
                                      - type: object
                                        properties:
                                          MEMO_HASH:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              Transaction hash memo (64 bytes
                                              hexadecimal string)
                                        required:
                                          - MEMO_HASH
                                        additionalProperties: false
                                        description: Hash memo
                                      - type: object
                                        properties:
                                          MEMO_RETURN:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              A 64 bytes hexadecimal string intended
                                              to be interpreted as the hash of the
                                              transaction the sender is refunding.
                                        required:
                                          - MEMO_RETURN
                                        additionalProperties: false
                                        description: Return memo
                                    nullable: true
                                    description: Stellar memo
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Stellar-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - memo
                                  - feeStrategy
                                additionalProperties: false
                                description: Stellar-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_DELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like delegate data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_UNDELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like undelegate data
                        required:
                          - accountId
                          - transaction
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRANSACTION request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          type:
                            type: string
                            enum:
                              - BITCOIN_LIKE
                              - ETHEREUM_LIKE
                              - ERC20_LIKE
                              - BEP20_LIKE
                              - CARDANO_LIKE
                              - SOLANA_LIKE
                              - TEZOS_LIKE
                              - STELLAR_LIKE
                              - RIPPLE_LIKE
                              - POLKADOT_LIKE
                              - TRC20_LIKE
                              - GENERIC_LIKE
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          contractAddress:
                            type: string
                            minLength: 1
                            description: Account contract address
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  assetManagerId:
                                    type: string
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - assetManagerId
                                  - exchangeConfigs
                                additionalProperties: false
                          index:
                            type: number
                            minimum: 0
                            description: Account index
                          derivationPath:
                            type: string
                            description: Account bip44 derivation path
                        required:
                          - name
                          - type
                          - currency
                          - governance
                          - index
                          - derivationPath
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - exchangeConfigs
                                additionalProperties: false
                        required:
                          - name
                          - governance
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ACTIVATE_TRADELINK_ACCOUNT
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ACTIVATE_TRADELINK_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          description:
                            type: string
                            nullable: true
                            description: Group description
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - description
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_GROUP
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          description:
                            type: string
                            nullable: true
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                          type:
                            type: string
                            enum:
                              - TRANSACTION
                              - SMART_CONTRACT
                        required:
                          - name
                          - description
                          - addresses
                          - type
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                        required:
                          - name
                          - addresses
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_ENTITY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          publicKey:
                            type: string
                            description: Public key
                        required:
                          - name
                          - publicKey
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER_ACCESS
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                        required:
                          - name
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER_ACCESS request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_USER
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          type:
                            type: string
                            enum:
                              - MASTER
                              - NORMAL
                            description: Admin gov rule type
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - type
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_SCICONFIG
                      data:
                        type: object
                        properties:
                          account:
                            type: string
                            description: Account UUID
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - account
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_SCICONFIG
                      data:
                        type: object
                        properties:
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Create read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Edit read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_API_KEY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - currency
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_CUSTODIAN
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_CUSTODIAN
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_EXCHANGE
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_EXCHANGE
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_ASSET_MANAGER
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_ASSET_MANAGER
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ADJUST_PLEDGE
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            description: Account id
                          exchangeId:
                            type: string
                            description: Exchange id
                          amount:
                            type: string
                            minLength: 1
                            pattern: ^-?\d+$
                            description: Amount to add to pledge
                        required:
                          - accountId
                          - exchangeId
                          - amount
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ADJUST_PLEDGE request
        default:
          $ref: "#/components/responses/error"
    get:
      operationId: requests-list
      summary: List requests
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
            default: 1
          description: Which page to fetch
        - name: pageSize
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: integer
                minimum: 1
                maximum: 30
            default: 30
          description: Page size to use
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum:
              - UPDATE_QUORUM
              - CREATE_TRANSACTION
              - CREATE_ACCOUNT
              - EDIT_ACCOUNT
              - ACTIVATE_TRADELINK_ACCOUNT
              - CREATE_GROUP
              - EDIT_GROUP
              - REVOKE_GROUP
              - CREATE_WHITELIST
              - EDIT_WHITELIST
              - CREATE_ENTITY
              - EDIT_ENTITY
              - REVOKE_ENTITY
              - CREATE_ADMIN
              - CREATE_OPERATOR
              - CREATE_API_USER
              - CREATE_API_USER_ACCESS
              - REVOKE_USER
              - CREATE_ADMIN_GOV_RULE
              - EDIT_ADMIN_GOV_RULE
              - CREATE_SCICONFIG
              - EDIT_SCICONFIG
              - CREATE_API_KEY
              - EDIT_API_KEY
              - REVOKE_API_KEY
              - CREATE_POLICY
              - EDIT_POLICY
              - CREATE_TRADELINK_CUSTODIAN
              - EDIT_TRADELINK_CUSTODIAN
              - CREATE_TRADELINK_EXCHANGE
              - EDIT_TRADELINK_EXCHANGE
              - CREATE_TRADELINK_ASSET_MANAGER
              - EDIT_TRADELINK_ASSET_MANAGER
              - ADJUST_PLEDGE
          description: Search by request type
        - name: state
          in: query
          required: false
          schema:
            type: string
            enum:
              - INITIAL
              - PENDING_REGISTRATION
              - PENDING_APPROVAL
              - APPROVED
              - EXECUTING
              - EXECUTED
              - FAILED
              - ABORTED
              - BLOCKED
              - EXPIRED
              - STUCK
          description: Search by request state
        - name: createdBy
          in: query
          required: false
          schema:
            type: string
        - name: reviewedBy
          in: query
          required: false
          schema:
            type: string
        - name: pendingBy
          in: query
          required: false
          schema:
            type: string
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - state
              - expiredAt
              - createdAt
              - updatedAt
            default: createdAt
          description: Sort by attribute
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          description: Sort order
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    description: Current page
                  next:
                    type: number
                    nullable: true
                    description: Next page or null if there is none
                  prev:
                    type: number
                    nullable: true
                    description: Previous page or null if there is none
                  pageSize:
                    type: number
                    description: Max count of items per page
                  total:
                    type: number
                    description: Total count of items
                  results:
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - UPDATE_QUORUM
                            data:
                              type: object
                              properties:
                                quorum:
                                  type: integer
                                  minimum: 1
                                  description: Workspace quorum
                              required:
                                - quorum
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: UPDATE_QUORUM request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_TRANSACTION
                            data:
                              type: object
                              properties:
                                accountId:
                                  type: string
                                  minLength: 1
                                  description: Target account id
                                transaction:
                                  anyOf:
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - BITCOIN_LIKE_SEND
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            feePerByte:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              nullable: true
                                              description: Fee per byte
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Bitcoin-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Bitcoin-like send data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - CARDANO_LIKE_SEND
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Cardano-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Cardano-like send data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CARDANO_LIKE_STAKING_DELEGATE
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Cardano-like fee strategy
                                        stakePoolId:
                                          type: string
                                          minLength: 1
                                          maxLength: 100
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - feeStrategy
                                        - stakePoolId
                                      additionalProperties: false
                                      description: Cardano-like staking delegate
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CARDANO_LIKE_STAKING_DEREGISTER
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Cardano-like fee strategy
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount to deregister
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - feeStrategy
                                        - amount
                                      additionalProperties: false
                                      description: Cardano-like staking deregister data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CARDANO_LIKE_STAKING_REGISTER
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Cardano-like fee strategy
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount to register
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - feeStrategy
                                        - amount
                                      additionalProperties: false
                                      description: Cardano-like staking register data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CARDANO_LIKE_STAKING_WITHDRAW
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Cardano-like fee strategy
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount to withdraw
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - feeStrategy
                                        - amount
                                      additionalProperties: false
                                      description: Cardano-like staking withdraw data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          enum:
                                            - >-
                                              0x0000000000000000000000000000000000000000
                                        type:
                                          type: string
                                          enum:
                                            - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                        contractData:
                                          type: string
                                          pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                          description: Contract data in hexadecimal format
                                        feeStrategy:
                                          anyOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                gasPrice:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas price
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - gasPrice
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like legacy fee strategy
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                maxPriorityFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum priority fee per gas
                                                maxFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum fee per gas (base + priority)
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - maxPriorityFeePerGas
                                                - maxFeePerGas
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like EIP-1559 fee strategy
                                          description: Ethereum-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - contractData
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Ethereum-like deploy contract data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                        contractData:
                                          type: string
                                          pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                          description: Contract call data in hexadecimal format
                                        feeStrategy:
                                          anyOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                gasPrice:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas price
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - gasPrice
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like legacy fee strategy
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                maxPriorityFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum priority fee per gas
                                                maxFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum fee per gas (base + priority)
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - maxPriorityFeePerGas
                                                - maxFeePerGas
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like EIP-1559 fee strategy
                                          description: Ethereum-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - contractData
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Ethereum-like execute contract data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - ETHEREUM_LIKE_SEND
                                        feeStrategy:
                                          anyOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                gasPrice:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas price
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - gasPrice
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like legacy fee strategy
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SLOW
                                                    - NORMAL
                                                    - FAST
                                                    - CUSTOM
                                                maxPriorityFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum priority fee per gas
                                                maxFeePerGas:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Maximum fee per gas (base + priority)
                                                gasLimit:
                                                  type: string
                                                  pattern: ^0|[1-9]\d*$
                                                  description: Gas limit
                                              required:
                                                - type
                                                - maxPriorityFeePerGas
                                                - maxFeePerGas
                                                - gasLimit
                                              additionalProperties: false
                                              description: Ethereum-like EIP-1559 fee strategy
                                          description: Ethereum-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Ethereum-like send data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - GENERIC_TRANSACTION
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        rawTx:
                                          type: string
                                          description: Raw tx
                                      required:
                                        - type
                                        - currency
                                        - rawTx
                                      additionalProperties: false
                                      description: Generic transaction data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_ADDPROXY
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        kind:
                                          type: string
                                          enum:
                                            - Staking
                                          description: Proxy kind
                                        proxy:
                                          type: string
                                          description: Proxy address
                                      required:
                                        - type
                                        - currency
                                        - kind
                                        - proxy
                                      additionalProperties: false
                                      description: Polkadot-like add proxy data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_ANONYMOUSPROXY
                                        currency:
                                          type: string
                                          description: Transaction currency
                                      required:
                                        - type
                                        - currency
                                      additionalProperties: false
                                      description: Polkadot-like anonymous proxy data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_BOND
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        payee:
                                          type: string
                                          enum:
                                            - Staked
                                            - Stash
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount
                                      required:
                                        - type
                                        - currency
                                        - payee
                                        - amount
                                      additionalProperties: false
                                      description: Polkadot-like bond data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_BONDEXTRA
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount
                                      required:
                                        - type
                                        - currency
                                        - amount
                                      additionalProperties: false
                                      description: Polkadot-like bond extra data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_CHILL
                                        currency:
                                          type: string
                                          description: Transaction currency
                                      required:
                                        - type
                                        - currency
                                      additionalProperties: false
                                      description: Polkadot-like chill data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_KILLANONYMOUS
                                        currency:
                                          type: string
                                          description: Transaction currency
                                      required:
                                        - type
                                        - currency
                                      additionalProperties: false
                                      description: Polkadot-like kill anonymous data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_REBOND
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount
                                      required:
                                        - type
                                        - currency
                                        - amount
                                      additionalProperties: false
                                      description: Polkadot-like rebond data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_REMOVEPROXY
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        kind:
                                          type: string
                                          enum:
                                            - Staking
                                        proxy:
                                          type: string
                                          description: Proxy address
                                      required:
                                        - type
                                        - currency
                                        - kind
                                        - proxy
                                      additionalProperties: false
                                      description: Polkadot-like remove proxy data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_SEND
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                      additionalProperties: false
                                      description: Polkadot-like send data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_SETPAYEE
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        payee:
                                          type: string
                                          enum:
                                            - Staked
                                            - Stash
                                      required:
                                        - type
                                        - currency
                                        - payee
                                      additionalProperties: false
                                      description: Polkadot-like set payee data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_UNBOND
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Amount
                                      required:
                                        - type
                                        - currency
                                        - amount
                                      additionalProperties: false
                                      description: Polkadot-like unbond data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - POLKADOT_LIKE_WITHDRAWUNBONDED
                                        currency:
                                          type: string
                                          description: Transaction currency
                                      required:
                                        - type
                                        - currency
                                      additionalProperties: false
                                      description: Polkadot-like withdraw unbonded data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - RIPPLE_LIKE_SEND
                                        destinationTag:
                                          type: string
                                          minLength: 1
                                          pattern: ^-?\d+$
                                          nullable: true
                                          description: Destination tag
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Ripple-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - destinationTag
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Ripple-like send data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Delegated vote address
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like create delegate stake data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_DEACTIVATE_STAKE
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        stakeAccount:
                                          type: string
                                          description: Stake account address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - stakeAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like deactivate stake data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_DELEGATE_STAKE
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Delegated vote address
                                        stakeAccount:
                                          type: string
                                          description: Stake account address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - recipient
                                        - stakeAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like delegate stake data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_MERGE_STAKE
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        mergeSrcAccount:
                                          type: string
                                          description: Source stake address
                                        mergeDstAccount:
                                          type: string
                                          description: Destination stake address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - currency
                                        - maxFee
                                        - mergeSrcAccount
                                        - mergeDstAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like merge stake data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_SEND
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like send data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        stakeAccount:
                                          type: string
                                          description: Stake account address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - amount
                                        - currency
                                        - maxFee
                                        - stakeAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like split deactivate stake data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_SPLIT_STAKE
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        stakeAccount:
                                          type: string
                                          description: Stake account address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - amount
                                        - currency
                                        - maxFee
                                        - stakeAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like split stake data
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SOLANA_LIKE_WITHDRAW_STAKE
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        stakeAccount:
                                          type: string
                                          description: Stake account address
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Solana-like fee strategy
                                      required:
                                        - type
                                        - amount
                                        - currency
                                        - maxFee
                                        - stakeAccount
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Solana-like delegate stake data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - STELLAR_LIKE_SEND
                                        memo:
                                          anyOf:
                                            - type: object
                                              properties:
                                                MEMO_TEXT:
                                                  type: string
                                                  maxLength: 28
                                                  description: Text memo (at most a 28 bytes string)
                                              required:
                                                - MEMO_TEXT
                                              additionalProperties: false
                                              description: Text memo
                                            - type: object
                                              properties:
                                                MEMO_ID:
                                                  type: string
                                                  minLength: 1
                                                  pattern: ^-?\d+$
                                                  description: Id memo (unsigned 64 bits integer)
                                              required:
                                                - MEMO_ID
                                              additionalProperties: false
                                              description: Id memo
                                            - type: object
                                              properties:
                                                MEMO_HASH:
                                                  type: string
                                                  maxLength: 128
                                                  pattern: ^[a-fA-F0-9]+$
                                                  description: >-
                                                    Transaction hash memo (64 bytes
                                                    hexadecimal string)
                                              required:
                                                - MEMO_HASH
                                              additionalProperties: false
                                              description: Hash memo
                                            - type: object
                                              properties:
                                                MEMO_RETURN:
                                                  type: string
                                                  maxLength: 128
                                                  pattern: ^[a-fA-F0-9]+$
                                                  description: >-
                                                    A 64 bytes hexadecimal string intended
                                                    to be interpreted as the hash of the
                                                    transaction the sender is refunding.
                                              required:
                                                - MEMO_RETURN
                                              additionalProperties: false
                                              description: Return memo
                                          nullable: true
                                          description: Stellar memo
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                          required:
                                            - type
                                          additionalProperties: false
                                          description: Stellar-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - memo
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Stellar-like send data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - TEZOS_LIKE_DELEGATE
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                            storageLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Storage limit
                                          required:
                                            - type
                                            - gasLimit
                                            - storageLimit
                                          additionalProperties: false
                                          description: Tezos-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Tezos-like delegate data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - TEZOS_LIKE_SEND
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                            storageLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Storage limit
                                          required:
                                            - type
                                            - gasLimit
                                            - storageLimit
                                          additionalProperties: false
                                          description: Tezos-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Tezos-like send data
                                    - type: object
                                      properties:
                                        amount:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          description: Transaction amount
                                        currency:
                                          type: string
                                          description: Transaction currency
                                        maxFee:
                                          type: string
                                          pattern: ^0|[1-9]\d*$
                                          nullable: true
                                          description: Transaction max fee
                                        recipient:
                                          type: string
                                          description: Transaction recipient
                                        type:
                                          type: string
                                          enum:
                                            - TEZOS_LIKE_UNDELEGATE
                                        feeStrategy:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              enum:
                                                - SLOW
                                                - NORMAL
                                                - FAST
                                                - CUSTOM
                                            gasLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Gas limit
                                            storageLimit:
                                              type: string
                                              pattern: ^0|[1-9]\d*$
                                              description: Storage limit
                                          required:
                                            - type
                                            - gasLimit
                                            - storageLimit
                                          additionalProperties: false
                                          description: Tezos-like fee strategy
                                      required:
                                        - amount
                                        - currency
                                        - maxFee
                                        - recipient
                                        - type
                                        - feeStrategy
                                      additionalProperties: false
                                      description: Tezos-like undelegate data
                              required:
                                - accountId
                                - transaction
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_TRANSACTION request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_ACCOUNT
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  description: Account name
                                type:
                                  type: string
                                  enum:
                                    - BITCOIN_LIKE
                                    - ETHEREUM_LIKE
                                    - ERC20_LIKE
                                    - BEP20_LIKE
                                    - CARDANO_LIKE
                                    - SOLANA_LIKE
                                    - TEZOS_LIKE
                                    - STELLAR_LIKE
                                    - RIPPLE_LIKE
                                    - POLKADOT_LIKE
                                    - TRC20_LIKE
                                    - GENERIC_LIKE
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  pattern: ^\w+$
                                  description: Currency
                                contractAddress:
                                  type: string
                                  minLength: 1
                                  description: Account contract address
                                governance:
                                  anyOf:
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CLASSIC
                                        policy:
                                          anyOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - ACCOUNT_POLICY
                                                policyId:
                                                  type: string
                                              required:
                                                - type
                                                - policyId
                                              additionalProperties: false
                                              description: Account policy
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - ACCOUNT_PRIVATE_POLICY
                                                rules:
                                                  type: array
                                                  items:
                                                    anyOf:
                                                      - type: object
                                                        properties:
                                                          operationType:
                                                            type: string
                                                            enum:
                                                              - SEND
                                                              - STAKE
                                                              - DEPLOY_CONTRACT
                                                              - EXECUTE_CONTRACT
                                                              - SIGN_DIGESTS
                                                              - SIGN_MESSAGE
                                                            description: Allowed operation type
                                                          threshold:
                                                            type: object
                                                            properties:
                                                              min:
                                                                type: string
                                                                pattern: ^\d+$
                                                                nullable: true
                                                                description: Minimum transaction amount
                                                              max:
                                                                type: string
                                                                pattern: ^\d+$
                                                                nullable: true
                                                                description: Maximum transaction amount
                                                            required:
                                                              - min
                                                              - max
                                                            additionalProperties: false
                                                            description: Threshold for the transaction value
                                                          whitelistIds:
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                            description: >-
                                                              IDs of whitelists for the recipient
                                                              address
                                                          reviewSteps:
                                                            type: array
                                                            items:
                                                              anyOf:
                                                                - type: object
                                                                  properties:
                                                                    quorum:
                                                                      type: number
                                                                      minimum: 0
                                                                      description:
                                                                        >-
                                                                        Number of required approvals for the
                                                                        step
                                                                    userIds:
                                                                      type: array
                                                                      items:
                                                                        type: string
                                                                        minLength: 1
                                                                      description: User ids in the step
                                                                  required:
                                                                    - quorum
                                                                    - userIds
                                                                  additionalProperties: false
                                                                  description: Review step with users
                                                                - type: object
                                                                  properties:
                                                                    quorum:
                                                                      type: number
                                                                      minimum: 0
                                                                      description:
                                                                        >-
                                                                        Number of required approvals for the
                                                                        step
                                                                    groupId:
                                                                      type: string
                                                                      minLength: 1
                                                                      description: Group id in the step
                                                                  required:
                                                                    - quorum
                                                                    - groupId
                                                                  additionalProperties: false
                                                                  description: Review step with group
                                                            minItems: 1
                                                            description: Review steps
                                                        required:
                                                          - operationType
                                                          - reviewSteps
                                                        additionalProperties: false
                                                        description: Account governance rule
                                                    description: Governance rule
                                              required:
                                                - type
                                                - rules
                                              additionalProperties: false
                                              description: Account governance rules
                                          description: Account policy or governance rules
                                      required:
                                        - type
                                        - policy
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - TRADELINK
                                        assetManagerId:
                                          type: string
                                        exchangeConfigs:
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              exchangeId:
                                                type: string
                                                description: Tradelink exchange id
                                              repledgeAuthorized:
                                                type: boolean
                                                description: >-
                                                  Determines whether this exchange is
                                                  authorized to repledge on this account
                                              needPreApproval:
                                                type: boolean
                                                description: >-
                                                  Determines whether asset manager will
                                                  "pre-approve" the settlement requests on
                                                  this account
                                            required:
                                              - exchangeId
                                              - repledgeAuthorized
                                              - needPreApproval
                                            additionalProperties: false
                                      required:
                                        - type
                                        - assetManagerId
                                        - exchangeConfigs
                                      additionalProperties: false
                                index:
                                  type: number
                                  minimum: 0
                                  description: Account index
                                derivationPath:
                                  type: string
                                  description: Account bip44 derivation path
                              required:
                                - name
                                - type
                                - currency
                                - governance
                                - index
                                - derivationPath
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_ACCOUNT request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_ACCOUNT
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  description: Account name
                                governance:
                                  anyOf:
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - CLASSIC
                                        policy:
                                          anyOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - ACCOUNT_POLICY
                                                policyId:
                                                  type: string
                                              required:
                                                - type
                                                - policyId
                                              additionalProperties: false
                                              description: Account policy
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - ACCOUNT_PRIVATE_POLICY
                                                rules:
                                                  type: array
                                                  items:
                                                    anyOf:
                                                      - type: object
                                                        properties:
                                                          operationType:
                                                            type: string
                                                            enum:
                                                              - SEND
                                                              - STAKE
                                                              - DEPLOY_CONTRACT
                                                              - EXECUTE_CONTRACT
                                                              - SIGN_DIGESTS
                                                              - SIGN_MESSAGE
                                                            description: Allowed operation type
                                                          threshold:
                                                            type: object
                                                            properties:
                                                              min:
                                                                type: string
                                                                pattern: ^\d+$
                                                                nullable: true
                                                                description: Minimum transaction amount
                                                              max:
                                                                type: string
                                                                pattern: ^\d+$
                                                                nullable: true
                                                                description: Maximum transaction amount
                                                            required:
                                                              - min
                                                              - max
                                                            additionalProperties: false
                                                            description: Threshold for the transaction value
                                                          whitelistIds:
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                            description: >-
                                                              IDs of whitelists for the recipient
                                                              address
                                                          reviewSteps:
                                                            type: array
                                                            items:
                                                              anyOf:
                                                                - type: object
                                                                  properties:
                                                                    quorum:
                                                                      type: number
                                                                      minimum: 0
                                                                      description:
                                                                        >-
                                                                        Number of required approvals for the
                                                                        step
                                                                    userIds:
                                                                      type: array
                                                                      items:
                                                                        type: string
                                                                        minLength: 1
                                                                      description: User ids in the step
                                                                  required:
                                                                    - quorum
                                                                    - userIds
                                                                  additionalProperties: false
                                                                  description: Review step with users
                                                                - type: object
                                                                  properties:
                                                                    quorum:
                                                                      type: number
                                                                      minimum: 0
                                                                      description:
                                                                        >-
                                                                        Number of required approvals for the
                                                                        step
                                                                    groupId:
                                                                      type: string
                                                                      minLength: 1
                                                                      description: Group id in the step
                                                                  required:
                                                                    - quorum
                                                                    - groupId
                                                                  additionalProperties: false
                                                                  description: Review step with group
                                                            minItems: 1
                                                            description: Review steps
                                                        required:
                                                          - operationType
                                                          - reviewSteps
                                                        additionalProperties: false
                                                        description: Account governance rule
                                                    description: Governance rule
                                              required:
                                                - type
                                                - rules
                                              additionalProperties: false
                                              description: Account governance rules
                                          description: Account policy or governance rules
                                      required:
                                        - type
                                        - policy
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - TRADELINK
                                        exchangeConfigs:
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              exchangeId:
                                                type: string
                                                description: Tradelink exchange id
                                              repledgeAuthorized:
                                                type: boolean
                                                description: >-
                                                  Determines whether this exchange is
                                                  authorized to repledge on this account
                                              needPreApproval:
                                                type: boolean
                                                description: >-
                                                  Determines whether asset manager will
                                                  "pre-approve" the settlement requests on
                                                  this account
                                            required:
                                              - exchangeId
                                              - repledgeAuthorized
                                              - needPreApproval
                                            additionalProperties: false
                                      required:
                                        - type
                                        - exchangeConfigs
                                      additionalProperties: false
                              required:
                                - name
                                - governance
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_ACCOUNT request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - ACTIVATE_TRADELINK_ACCOUNT
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            data:
                              type: object
                              properties: {}
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - targetId
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: ACTIVATE_TRADELINK_ACCOUNT request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_GROUP
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Group name
                                description:
                                  type: string
                                  nullable: true
                                  description: Group description
                                members:
                                  type: array
                                  items:
                                    type: string
                                  description: List of group members ids
                              required:
                                - name
                                - description
                                - members
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_GROUP request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_GROUP
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Group name
                                members:
                                  type: array
                                  items:
                                    type: string
                                  description: List of group members ids
                              required:
                                - name
                                - members
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_GROUP request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - REVOKE_GROUP
                            data:
                              type: object
                              properties: {}
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: REVOKE_GROUP request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_WHITELIST
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 45
                                  description: Whitelist name
                                description:
                                  type: string
                                  nullable: true
                                addresses:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 50
                                        nullable: true
                                      currency:
                                        type: string
                                        minLength: 1
                                        maxLength: 50
                                      address:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                      destinationTags:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          pattern: ^\w+$
                                    required:
                                      - name
                                      - currency
                                      - address
                                      - destinationTags
                                    additionalProperties: false
                                type:
                                  type: string
                                  enum:
                                    - TRANSACTION
                                    - SMART_CONTRACT
                              required:
                                - name
                                - description
                                - addresses
                                - type
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_WHITELIST request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_WHITELIST
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 45
                                  description: Whitelist name
                                addresses:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 50
                                        nullable: true
                                      currency:
                                        type: string
                                        minLength: 1
                                        maxLength: 50
                                      address:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                      destinationTags:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          pattern: ^\w+$
                                    required:
                                      - name
                                      - currency
                                      - address
                                      - destinationTags
                                    additionalProperties: false
                              required:
                                - name
                                - addresses
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_WHITELIST request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_ENTITY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Entity name
                                accounts:
                                  type: array
                                  items:
                                    type: string
                              required:
                                - name
                                - accounts
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_ENTITY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_ENTITY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Entity name
                                accounts:
                                  type: array
                                  items:
                                    type: string
                              required:
                                - name
                                - accounts
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_ENTITY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - REVOKE_ENTITY
                            data:
                              type: object
                              properties: {}
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: REVOKE_ENTITY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_ADMIN
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: User name
                                deviceType:
                                  type: string
                                  enum:
                                    - PSD
                                  description: Device type
                                deviceUserId:
                                  type: string
                                  pattern: ^[A-F0-9]{16}$
                                  description: Device user ID
                                registration:
                                  anyOf:
                                    - type: object
                                      properties:
                                        subState:
                                          type: string
                                          enum:
                                            - PENDING
                                        deviceData:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                              description: Name of the user to register
                                            psdModel:
                                              type: string
                                              enum:
                                                - BLUE
                                                - STAX
                                              description: Device model
                                            pubKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: Device public key
                                            confidentialityKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            psdEphemeralKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            psdEphemeralKeyAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                          required:
                                            - name
                                            - psdModel
                                            - pubKey
                                            - confidentialityKey
                                            - psdEphemeralKey
                                            - psdEphemeralKeyAttestation
                                          additionalProperties: false
                                          description: Device data
                                        challenge:
                                          type: object
                                          properties:
                                            challenge:
                                              type: string
                                              description: TODO describe
                                            ephemeralPublicKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            ephemeralPublicKeyAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                            handshake:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            handshakeAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                            u2fRegisterData:
                                              type: string
                                              description: TODO describe
                                            ciphertext:
                                              type: string
                                              description: TODO describe
                                            requestId:
                                              type: string
                                              description: TODO describe
                                          required:
                                            - challenge
                                            - ephemeralPublicKey
                                            - ephemeralPublicKeyAttestation
                                            - handshake
                                            - handshakeAttestation
                                            - u2fRegisterData
                                            - ciphertext
                                            - requestId
                                          additionalProperties: false
                                          description: Registration challenge
                                      required:
                                        - subState
                                        - deviceData
                                        - challenge
                                      additionalProperties: false
                                      description: Pending registration
                                    - type: object
                                      properties:
                                        subState:
                                          type: string
                                          enum:
                                            - COMPLETED
                                        pubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: User device public key
                                        u2fKeyHandle:
                                          type: string
                                          description: U2F key handle for authenticate via PSD
                                        u2fPubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: U2F public key for authenticate via PSD
                                      required:
                                        - subState
                                        - pubKey
                                        - u2fKeyHandle
                                        - u2fPubKey
                                      additionalProperties: false
                                      description: Completed registration
                                  description: >-
                                    Data collected from the new user during
                                    registration
                              required:
                                - name
                                - deviceType
                                - deviceUserId
                              additionalProperties: false
                              description: Create PSD or Soft PSD user request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_ADMIN request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_OPERATOR
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: User name
                                deviceType:
                                  type: string
                                  enum:
                                    - PSD
                                    - SOFT_PSD
                                  description: Device type
                                deviceUserId:
                                  type: string
                                  pattern: ^[A-F0-9]{16}$
                                  description: Device user ID
                                registration:
                                  anyOf:
                                    - type: object
                                      properties:
                                        subState:
                                          type: string
                                          enum:
                                            - PENDING
                                        deviceData:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                              description: Name of the user to register
                                            psdModel:
                                              type: string
                                              enum:
                                                - BLUE
                                                - STAX
                                              description: Device model
                                            pubKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: Device public key
                                            confidentialityKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            psdEphemeralKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            psdEphemeralKeyAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                          required:
                                            - name
                                            - psdModel
                                            - pubKey
                                            - confidentialityKey
                                            - psdEphemeralKey
                                            - psdEphemeralKeyAttestation
                                          additionalProperties: false
                                          description: Device data
                                        challenge:
                                          type: object
                                          properties:
                                            challenge:
                                              type: string
                                              description: TODO describe
                                            ephemeralPublicKey:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            ephemeralPublicKeyAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                            handshake:
                                              type: string
                                              pattern: ^[0-9a-fA-F]+$
                                              description: TODO describe
                                            handshakeAttestation:
                                              type: object
                                              properties:
                                                codeHash:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: >-
                                                    Hash of the executable that generated
                                                    this certificate
                                                attestationPub:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Attestation public key
                                                certificate:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate bytes
                                                signature:
                                                  type: string
                                                  contentEncoding: base64
                                                  description: Certificate signature
                                              required:
                                                - codeHash
                                                - attestationPub
                                                - certificate
                                                - signature
                                              additionalProperties: false
                                              description: TODO describe
                                            u2fRegisterData:
                                              type: string
                                              description: TODO describe
                                            ciphertext:
                                              type: string
                                              description: TODO describe
                                            requestId:
                                              type: string
                                              description: TODO describe
                                          required:
                                            - challenge
                                            - ephemeralPublicKey
                                            - ephemeralPublicKeyAttestation
                                            - handshake
                                            - handshakeAttestation
                                            - u2fRegisterData
                                            - ciphertext
                                            - requestId
                                          additionalProperties: false
                                          description: Registration challenge
                                      required:
                                        - subState
                                        - deviceData
                                        - challenge
                                      additionalProperties: false
                                      description: Pending registration
                                    - type: object
                                      properties:
                                        subState:
                                          type: string
                                          enum:
                                            - COMPLETED
                                        pubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: User device public key
                                        u2fKeyHandle:
                                          type: string
                                          description: U2F key handle for authenticate via PSD
                                        u2fPubKey:
                                          type: string
                                          pattern: ^[0-9a-fA-F]+$
                                          description: U2F public key for authenticate via PSD
                                      required:
                                        - subState
                                        - pubKey
                                        - u2fKeyHandle
                                        - u2fPubKey
                                      additionalProperties: false
                                      description: Completed registration
                                  description: >-
                                    Data collected from the new user during
                                    registration
                              required:
                                - name
                                - deviceType
                                - deviceUserId
                              additionalProperties: false
                              description: Create PSD or Soft PSD user request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_OPERATOR request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_API_USER
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: User name
                                publicKey:
                                  type: string
                                  description: Public key
                              required:
                                - name
                                - publicKey
                              additionalProperties: false
                              description: Create API user request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_API_USER request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_API_USER_ACCESS
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: User name
                              required:
                                - name
                              additionalProperties: false
                              description: Create API user request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_API_USER_ACCESS request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - REVOKE_USER
                            data:
                              type: object
                              properties: {}
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: REVOKE_USER request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_ADMIN_GOV_RULE
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  description: Admin gov rule name
                                description:
                                  type: string
                                  nullable: true
                                  description: Admin gov rule description
                                type:
                                  type: string
                                  enum:
                                    - MASTER
                                    - NORMAL
                                  description: Admin gov rule type
                                permissions:
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - MANAGE_GROUP
                                      - MANAGE_WHITELIST
                                      - MANAGE_ACCOUNT_WITH_POLICY
                                  description: Granted permissions
                                members:
                                  type: array
                                  items:
                                    type: string
                                  description: List of admin user ids
                                quorum:
                                  type: integer
                                  minimum: 0
                                  description: Quorum
                              required:
                                - name
                                - description
                                - type
                                - permissions
                                - members
                                - quorum
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_ADMIN_GOV_RULE request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_ADMIN_GOV_RULE
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  description: Admin gov rule name
                                description:
                                  type: string
                                  nullable: true
                                  description: Admin gov rule description
                                permissions:
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - MANAGE_GROUP
                                      - MANAGE_WHITELIST
                                      - MANAGE_ACCOUNT_WITH_POLICY
                                  description: Granted permissions
                                members:
                                  type: array
                                  items:
                                    type: string
                                  description: List of admin user ids
                                quorum:
                                  type: integer
                                  minimum: 0
                                  description: Quorum
                              required:
                                - name
                                - description
                                - permissions
                                - members
                                - quorum
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_ADMIN_GOV_RULE request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_SCICONFIG
                            data:
                              type: object
                              properties:
                                account:
                                  type: string
                                  description: Account UUID
                                config:
                                  type: object
                                  properties:
                                    dapps:
                                      type: array
                                      items:
                                        type: string
                                      nullable: true
                                      description: Allowed DApps, null allows all
                                    customContractCallEnabled:
                                      type: boolean
                                      description: Allow non-DApp SCI
                                  required:
                                    - dapps
                                    - customContractCallEnabled
                                  additionalProperties: false
                              required:
                                - account
                                - config
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_SCICONFIG request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_SCICONFIG
                            data:
                              type: object
                              properties:
                                config:
                                  type: object
                                  properties:
                                    dapps:
                                      type: array
                                      items:
                                        type: string
                                      nullable: true
                                      description: Allowed DApps, null allows all
                                    customContractCallEnabled:
                                      type: boolean
                                      description: Allow non-DApp SCI
                                  required:
                                    - dapps
                                    - customContractCallEnabled
                                  additionalProperties: false
                              required:
                                - config
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_SCICONFIG request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_API_KEY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: API key name
                                entities:
                                  type: array
                                  items:
                                    type: string
                                  description: List of related entities ids
                                scopes:
                                  type: object
                                  properties: {}
                                  additionalProperties: false
                                  description: FIXME to be precised
                              required:
                                - name
                                - entities
                                - scopes
                              additionalProperties: false
                              description: Create read-only API key request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_API_KEY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_API_KEY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: API key name
                                entities:
                                  type: array
                                  items:
                                    type: string
                                  description: List of related entities ids
                                scopes:
                                  type: object
                                  properties: {}
                                  additionalProperties: false
                                  description: FIXME to be precised
                              required:
                                - name
                                - entities
                                - scopes
                              additionalProperties: false
                              description: Edit read-only API key request data
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_API_KEY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - REVOKE_API_KEY
                            data:
                              type: object
                              properties: {}
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: REVOKE_API_KEY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_POLICY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Policy name
                                description:
                                  type: string
                                  nullable: true
                                  description: Description
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 40
                                  pattern: ^\w+$
                                  description: Currency
                                govRules:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: object
                                        properties:
                                          operationType:
                                            type: string
                                            enum:
                                              - SEND
                                              - STAKE
                                              - DEPLOY_CONTRACT
                                              - EXECUTE_CONTRACT
                                              - SIGN_DIGESTS
                                              - SIGN_MESSAGE
                                            description: Allowed operation type
                                          threshold:
                                            type: object
                                            properties:
                                              min:
                                                type: string
                                                pattern: ^\d+$
                                                nullable: true
                                                description: Minimum transaction amount
                                              max:
                                                type: string
                                                pattern: ^\d+$
                                                nullable: true
                                                description: Maximum transaction amount
                                            required:
                                              - min
                                              - max
                                            additionalProperties: false
                                            description: Threshold for the transaction value
                                          whitelistIds:
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                            description: >-
                                              IDs of whitelists for the recipient
                                              address
                                          reviewSteps:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    quorum:
                                                      type: number
                                                      minimum: 0
                                                      description: >-
                                                        Number of required approvals for the
                                                        step
                                                    userIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: User ids in the step
                                                  required:
                                                    - quorum
                                                    - userIds
                                                  additionalProperties: false
                                                  description: Review step with users
                                                - type: object
                                                  properties:
                                                    quorum:
                                                      type: number
                                                      minimum: 0
                                                      description: >-
                                                        Number of required approvals for the
                                                        step
                                                    groupId:
                                                      type: string
                                                      minLength: 1
                                                      description: Group id in the step
                                                  required:
                                                    - quorum
                                                    - groupId
                                                  additionalProperties: false
                                                  description: Review step with group
                                            minItems: 1
                                            description: Review steps
                                        required:
                                          - operationType
                                          - reviewSteps
                                        additionalProperties: false
                                        description: Account governance rule
                                    description: Governance rule
                                  description: Governance rules
                              required:
                                - name
                                - description
                                - currency
                                - govRules
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_POLICY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_POLICY
                            data:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 19
                                  description: Policy name
                                description:
                                  type: string
                                  nullable: true
                                  description: Description
                                govRules:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: object
                                        properties:
                                          operationType:
                                            type: string
                                            enum:
                                              - SEND
                                              - STAKE
                                              - DEPLOY_CONTRACT
                                              - EXECUTE_CONTRACT
                                              - SIGN_DIGESTS
                                              - SIGN_MESSAGE
                                            description: Allowed operation type
                                          threshold:
                                            type: object
                                            properties:
                                              min:
                                                type: string
                                                pattern: ^\d+$
                                                nullable: true
                                                description: Minimum transaction amount
                                              max:
                                                type: string
                                                pattern: ^\d+$
                                                nullable: true
                                                description: Maximum transaction amount
                                            required:
                                              - min
                                              - max
                                            additionalProperties: false
                                            description: Threshold for the transaction value
                                          whitelistIds:
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                            description: >-
                                              IDs of whitelists for the recipient
                                              address
                                          reviewSteps:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    quorum:
                                                      type: number
                                                      minimum: 0
                                                      description: >-
                                                        Number of required approvals for the
                                                        step
                                                    userIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: User ids in the step
                                                  required:
                                                    - quorum
                                                    - userIds
                                                  additionalProperties: false
                                                  description: Review step with users
                                                - type: object
                                                  properties:
                                                    quorum:
                                                      type: number
                                                      minimum: 0
                                                      description: >-
                                                        Number of required approvals for the
                                                        step
                                                    groupId:
                                                      type: string
                                                      minLength: 1
                                                      description: Group id in the step
                                                  required:
                                                    - quorum
                                                    - groupId
                                                  additionalProperties: false
                                                  description: Review step with group
                                            minItems: 1
                                            description: Review steps
                                        required:
                                          - operationType
                                          - reviewSteps
                                        additionalProperties: false
                                        description: Account governance rule
                                    description: Governance rule
                                  description: Governance rules
                              required:
                                - name
                                - description
                                - govRules
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_POLICY request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_TRADELINK_CUSTODIAN
                            data:
                              type: object
                              properties:
                                settlement:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of settlement review steps
                                withdraw:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of withdraw review steps
                                arbitration:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of arbitration review steps
                              required:
                                - settlement
                                - withdraw
                                - arbitration
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_TRADELINK_CUSTODIAN request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_TRADELINK_CUSTODIAN
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            data:
                              type: object
                              properties:
                                settlement:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of settlement review steps
                                withdraw:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of withdraw review steps
                                arbitration:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of arbitration review steps
                              required:
                                - settlement
                                - withdraw
                                - arbitration
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - targetId
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_TRADELINK_CUSTODIAN request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_TRADELINK_EXCHANGE
                            data:
                              type: object
                              properties:
                                tradelinkId:
                                  type: string
                                  minLength: 1
                                groups:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of asset manager review groups
                                whitelist:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                      currency:
                                        type: string
                                        minLength: 1
                                      address:
                                        type: string
                                        minLength: 1
                                    required:
                                      - name
                                      - currency
                                      - address
                                    additionalProperties: false
                                  description: List of asset manager whitelisted addresses
                              required:
                                - tradelinkId
                                - groups
                                - whitelist
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_TRADELINK_EXCHANGE request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_TRADELINK_EXCHANGE
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            data:
                              type: object
                              properties:
                                tradelinkId:
                                  type: string
                                  minLength: 1
                                groups:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of asset manager review groups
                                whitelist:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                      currency:
                                        type: string
                                        minLength: 1
                                      address:
                                        type: string
                                        minLength: 1
                                    required:
                                      - name
                                      - currency
                                      - address
                                    additionalProperties: false
                                  description: List of asset manager whitelisted addresses
                              required:
                                - tradelinkId
                                - groups
                                - whitelist
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - targetId
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_TRADELINK_EXCHANGE request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - CREATE_TRADELINK_ASSET_MANAGER
                            data:
                              type: object
                              properties:
                                tradelinkId:
                                  type: string
                                  minLength: 1
                                groups:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of asset manager review groups
                                whitelist:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                      currency:
                                        type: string
                                        minLength: 1
                                      address:
                                        type: string
                                        minLength: 1
                                    required:
                                      - name
                                      - currency
                                      - address
                                    additionalProperties: false
                                  description: List of asset manager whitelisted addresses
                              required:
                                - tradelinkId
                                - groups
                                - whitelist
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: CREATE_TRADELINK_ASSET_MANAGER request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - EDIT_TRADELINK_ASSET_MANAGER
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            data:
                              type: object
                              properties:
                                tradelinkId:
                                  type: string
                                  minLength: 1
                                groups:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quorum:
                                        type: number
                                        minimum: 0
                                        description: >-
                                          Number of required approvals for the
                                          step
                                      userIds:
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                        description: User ids in the step
                                    required:
                                      - quorum
                                      - userIds
                                    additionalProperties: false
                                    description: Review step with users
                                  description: List of asset manager review groups
                                whitelist:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                      currency:
                                        type: string
                                        minLength: 1
                                      address:
                                        type: string
                                        minLength: 1
                                    required:
                                      - name
                                      - currency
                                      - address
                                    additionalProperties: false
                                  description: List of asset manager whitelisted addresses
                              required:
                                - tradelinkId
                                - groups
                                - whitelist
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - targetId
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: EDIT_TRADELINK_ASSET_MANAGER request
                        - type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - ADJUST_PLEDGE
                            data:
                              type: object
                              properties:
                                accountId:
                                  type: string
                                  description: Account id
                                exchangeId:
                                  type: string
                                  description: Exchange id
                                amount:
                                  type: string
                                  minLength: 1
                                  pattern: ^-?\d+$
                                  description: Amount to add to pledge
                              required:
                                - accountId
                                - exchangeId
                                - amount
                              additionalProperties: false
                            id:
                              type: string
                              description: Request unique identifier
                            legacyId:
                              type: number
                              description: >-
                                Legacy internal unique identifier (for
                                retro-compatibility)
                            state:
                              type: string
                              enum:
                                - INITIAL
                                - PENDING_REGISTRATION
                                - PENDING_APPROVAL
                                - APPROVED
                                - EXECUTING
                                - EXECUTED
                                - FAILED
                                - ABORTED
                                - BLOCKED
                                - EXPIRED
                                - STUCK
                              description: Request state
                            reviewSteps:
                              type: array
                              items:
                                type: object
                                properties:
                                  stageName:
                                    type: string
                                    pattern: ^\w+$
                                    description: The review stage name
                                  quorum:
                                    type: integer
                                    minimum: 1
                                    description: Quorum for the review step
                                required:
                                  - stageName
                                  - quorum
                                additionalProperties: false
                              description: Request review steps
                            currentStepIndex:
                              type: integer
                              minimum: 0
                              description: Index of the current approval step
                            expiredAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: Optional expiration date
                            targetId:
                              type: string
                              nullable: true
                              description: Optional ID of the target object
                            reviews:
                              type: array
                              items:
                                type: object
                                properties:
                                  stepIndex:
                                    type: integer
                                    description: >-
                                      Index of the governance step in the
                                      request workflow
                                  userId:
                                    type: string
                                    description: Reviewer id
                                  status:
                                    type: string
                                    enum:
                                      - PENDING
                                      - APPROVED
                                      - REJECTED
                                      - OBSOLETE
                                    description: Review status
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: Created date
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: Updated date
                                required:
                                  - stepIndex
                                  - userId
                                  - status
                                  - createdAt
                                  - updatedAt
                                additionalProperties: false
                              description: Requests reviews
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last modification timestamp
                          required:
                            - type
                            - data
                            - id
                            - legacyId
                            - state
                            - reviewSteps
                            - currentStepIndex
                            - expiredAt
                            - targetId
                            - reviews
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                          description: ADJUST_PLEDGE request
                    description: Array of results
                required:
                  - page
                  - next
                  - prev
                  - pageSize
                  - total
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /requests/{id}:
    get:
      operationId: requests-findById
      summary: Get a request by ID
      tags:
        - request
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the request
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - UPDATE_QUORUM
                      data:
                        type: object
                        properties:
                          quorum:
                            type: integer
                            minimum: 1
                            description: Workspace quorum
                        required:
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: UPDATE_QUORUM request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRANSACTION
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            minLength: 1
                            description: Target account id
                          transaction:
                            anyOf:
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - BITCOIN_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      feePerByte:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        nullable: true
                                        description: Fee per byte
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Bitcoin-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Bitcoin-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Cardano-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DELEGATE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  stakePoolId:
                                    type: string
                                    minLength: 1
                                    maxLength: 100
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - stakePoolId
                                additionalProperties: false
                                description: Cardano-like staking delegate
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DEREGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to deregister
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking deregister data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_REGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to register
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking register data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_WITHDRAW
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to withdraw
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking withdraw data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    enum:
                                      - >-
                                        0x0000000000000000000000000000000000000000
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like deploy contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract call data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like execute contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_SEND
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - GENERIC_TRANSACTION
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  rawTx:
                                    type: string
                                    description: Raw tx
                                required:
                                  - type
                                  - currency
                                  - rawTx
                                additionalProperties: false
                                description: Generic transaction data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ADDPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                    description: Proxy kind
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like add proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ANONYMOUSPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like anonymous proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - payee
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BONDEXTRA
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond extra data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_CHILL
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like chill data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_KILLANONYMOUS
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like kill anonymous data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like rebond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REMOVEPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like remove proxy data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SEND
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                additionalProperties: false
                                description: Polkadot-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SETPAYEE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                required:
                                  - type
                                  - currency
                                  - payee
                                additionalProperties: false
                                description: Polkadot-like set payee data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_UNBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like unbond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_WITHDRAWUNBONDED
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like withdraw unbonded data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - RIPPLE_LIKE_SEND
                                  destinationTag:
                                    type: string
                                    minLength: 1
                                    pattern: ^-?\d+$
                                    nullable: true
                                    description: Destination tag
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Ripple-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - destinationTag
                                  - feeStrategy
                                additionalProperties: false
                                description: Ripple-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like create delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DEACTIVATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DELEGATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - recipient
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_MERGE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  mergeSrcAccount:
                                    type: string
                                    description: Source stake address
                                  mergeDstAccount:
                                    type: string
                                    description: Destination stake address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - mergeSrcAccount
                                  - mergeDstAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like merge stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_WITHDRAW_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - STELLAR_LIKE_SEND
                                  memo:
                                    anyOf:
                                      - type: object
                                        properties:
                                          MEMO_TEXT:
                                            type: string
                                            maxLength: 28
                                            description: Text memo (at most a 28 bytes string)
                                        required:
                                          - MEMO_TEXT
                                        additionalProperties: false
                                        description: Text memo
                                      - type: object
                                        properties:
                                          MEMO_ID:
                                            type: string
                                            minLength: 1
                                            pattern: ^-?\d+$
                                            description: Id memo (unsigned 64 bits integer)
                                        required:
                                          - MEMO_ID
                                        additionalProperties: false
                                        description: Id memo
                                      - type: object
                                        properties:
                                          MEMO_HASH:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              Transaction hash memo (64 bytes
                                              hexadecimal string)
                                        required:
                                          - MEMO_HASH
                                        additionalProperties: false
                                        description: Hash memo
                                      - type: object
                                        properties:
                                          MEMO_RETURN:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              A 64 bytes hexadecimal string intended
                                              to be interpreted as the hash of the
                                              transaction the sender is refunding.
                                        required:
                                          - MEMO_RETURN
                                        additionalProperties: false
                                        description: Return memo
                                    nullable: true
                                    description: Stellar memo
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Stellar-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - memo
                                  - feeStrategy
                                additionalProperties: false
                                description: Stellar-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_DELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like delegate data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_UNDELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like undelegate data
                        required:
                          - accountId
                          - transaction
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRANSACTION request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          type:
                            type: string
                            enum:
                              - BITCOIN_LIKE
                              - ETHEREUM_LIKE
                              - ERC20_LIKE
                              - BEP20_LIKE
                              - CARDANO_LIKE
                              - SOLANA_LIKE
                              - TEZOS_LIKE
                              - STELLAR_LIKE
                              - RIPPLE_LIKE
                              - POLKADOT_LIKE
                              - TRC20_LIKE
                              - GENERIC_LIKE
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          contractAddress:
                            type: string
                            minLength: 1
                            description: Account contract address
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  assetManagerId:
                                    type: string
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - assetManagerId
                                  - exchangeConfigs
                                additionalProperties: false
                          index:
                            type: number
                            minimum: 0
                            description: Account index
                          derivationPath:
                            type: string
                            description: Account bip44 derivation path
                        required:
                          - name
                          - type
                          - currency
                          - governance
                          - index
                          - derivationPath
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - exchangeConfigs
                                additionalProperties: false
                        required:
                          - name
                          - governance
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ACTIVATE_TRADELINK_ACCOUNT
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ACTIVATE_TRADELINK_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          description:
                            type: string
                            nullable: true
                            description: Group description
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - description
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_GROUP
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          description:
                            type: string
                            nullable: true
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                          type:
                            type: string
                            enum:
                              - TRANSACTION
                              - SMART_CONTRACT
                        required:
                          - name
                          - description
                          - addresses
                          - type
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                        required:
                          - name
                          - addresses
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_ENTITY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          publicKey:
                            type: string
                            description: Public key
                        required:
                          - name
                          - publicKey
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER_ACCESS
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                        required:
                          - name
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER_ACCESS request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_USER
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          type:
                            type: string
                            enum:
                              - MASTER
                              - NORMAL
                            description: Admin gov rule type
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - type
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_SCICONFIG
                      data:
                        type: object
                        properties:
                          account:
                            type: string
                            description: Account UUID
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - account
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_SCICONFIG
                      data:
                        type: object
                        properties:
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Create read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Edit read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_API_KEY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - currency
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_CUSTODIAN
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_CUSTODIAN
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_EXCHANGE
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_EXCHANGE
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_ASSET_MANAGER
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_ASSET_MANAGER
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ADJUST_PLEDGE
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            description: Account id
                          exchangeId:
                            type: string
                            description: Exchange id
                          amount:
                            type: string
                            minLength: 1
                            pattern: ^-?\d+$
                            description: Amount to add to pledge
                        required:
                          - accountId
                          - exchangeId
                          - amount
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ADJUST_PLEDGE request
        default:
          $ref: "#/components/responses/error"
  /requests/{id}/generate-registration-challenge:
    post:
      operationId: requests-generateRegistrationChallenge
      summary: Generate registration challenge
      tags:
        - request
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceName:
                  type: string
                  description: Workspace name
                deviceData:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Name of the user to register
                    psdModel:
                      type: string
                      enum:
                        - BLUE
                        - STAX
                      description: Device model
                    pubKey:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: Device public key
                    confidentialityKey:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: TODO describe
                    psdEphemeralKey:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: TODO describe
                    psdEphemeralKeyAttestation:
                      type: object
                      properties:
                        codeHash:
                          type: string
                          contentEncoding: base64
                          description: >-
                            Hash of the executable that generated this
                            certificate
                        attestationPub:
                          type: string
                          contentEncoding: base64
                          description: Attestation public key
                        certificate:
                          type: string
                          contentEncoding: base64
                          description: Certificate bytes
                        signature:
                          type: string
                          contentEncoding: base64
                          description: Certificate signature
                      required:
                        - codeHash
                        - attestationPub
                        - certificate
                        - signature
                      additionalProperties: false
                      description: TODO describe
                  required:
                    - name
                    - psdModel
                    - pubKey
                    - confidentialityKey
                    - psdEphemeralKey
                    - psdEphemeralKeyAttestation
                  additionalProperties: false
                  description: TODO describe
              required:
                - workspaceName
                - deviceData
              additionalProperties: false
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target request
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
        default:
          $ref: "#/components/responses/error"
  /requests/{id}/confirm-registration-challenge:
    post:
      operationId: requests-confirmRegistrationChallenge
      summary: Confirm registration challenge
      tags:
        - request
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceName:
                  type: string
                  description: Workspace name
                challengeResponse:
                  type: object
                  properties:
                    certificate:
                      type: object
                      properties:
                        codeHash:
                          type: string
                          contentEncoding: base64
                          description: >-
                            Hash of the executable that generated this
                            certificate
                        attestationPub:
                          type: string
                          contentEncoding: base64
                          description: Attestation public key
                        certificate:
                          type: string
                          contentEncoding: base64
                          description: Certificate bytes
                        signature:
                          type: string
                          contentEncoding: base64
                          description: Certificate signature
                      required:
                        - codeHash
                        - attestationPub
                        - certificate
                        - signature
                      additionalProperties: false
                      description: TODO describe
                    u2fRegister:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: TODO describe
                    u2fKeyHandle:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: TODO describe
                    registerData:
                      type: string
                      description: TODO describe
                    validationKey:
                      type: string
                      pattern: ^[0-9a-fA-F]+$
                      description: TODO describe
                    pairingPayload:
                      type: string
                      description: TODO describe
                  required:
                    - certificate
                    - u2fRegister
                    - u2fKeyHandle
                    - registerData
                    - validationKey
                    - pairingPayload
                  additionalProperties: false
                  description: TODO describe
              required:
                - workspaceName
                - challengeResponse
              additionalProperties: false
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the target request
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
        default:
          $ref: "#/components/responses/error"
  /requests/{id}/challenge:
    get:
      operationId: requests-getChallenge
      summary: Get the challenge of the specified request for current user
      tags:
        - request
        - write
      security:
        - Authorization: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id of the request
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  pubKey:
                    type: string
                    description: Public key of the current user
                  challenge:
                    anyOf:
                      - type: object
                        properties:
                          challengeType:
                            type: string
                            enum:
                              - PSD
                          wActions:
                            type: array
                            items:
                              type: string
                            description: Wrapped blobs that describe the screens to display
                          handshake:
                            type: string
                            description: Handshake for the HSM <-> PSD communication
                          handshakeAttestation:
                            type: object
                            properties:
                              codeHash:
                                type: string
                                contentEncoding: base64
                                description: >-
                                  Hash of the executable that generated this
                                  certificate
                              attestationPub:
                                type: string
                                contentEncoding: base64
                                description: Attestation public key
                              certificate:
                                type: string
                                contentEncoding: base64
                                description: Certificate bytes
                              signature:
                                type: string
                                contentEncoding: base64
                                description: Certificate signature
                            required:
                              - codeHash
                              - attestationPub
                              - certificate
                              - signature
                            additionalProperties: false
                            description: >-
                              Handshake attestation to verify secure channel
                              between HSM & PSD
                          partitionId:
                            type: string
                            description: HSM partition id (maybe not useful)
                        required:
                          - challengeType
                          - wActions
                          - handshake
                          - handshakeAttestation
                          - partitionId
                        additionalProperties: false
                        description: Necessary data to approve on a PSD
                      - type: object
                        properties:
                          challengeType:
                            type: string
                            enum:
                              - API
                          payload:
                            type: string
                            description: JSON to sign and return as a JWS
                        required:
                          - challengeType
                          - payload
                        additionalProperties: false
                        description: Necessary data for approval by an API user
                    description: Challenge data to sign with the user's private key
                required:
                  - pubKey
                  - challenge
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /requests/{id}/approve:
    post:
      operationId: requests-approve
      summary: Approve a request from the current user
      tags:
        - request
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  anyOf:
                    - type: object
                      properties:
                        signature:
                          type: string
                          minLength: 1
                        challengeType:
                          type: string
                          enum:
                            - PSD
                            - API
                      required:
                        - signature
                        - challengeType
                      additionalProperties: false
                      description: Approval data for STANDALONE mode
                    - type: object
                      properties:
                        challengeType:
                          type: string
                          enum:
                            - GATE_COMPAT
                        approvalData:
                          type: object
                          additionalProperties: {}
                      required:
                        - challengeType
                        - approvalData
                      additionalProperties: false
                      description: Approval data for GATE_COMPAT mode
                  description: Response to the challenge
              required:
                - data
              additionalProperties: false
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the request to approve
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - UPDATE_QUORUM
                      data:
                        type: object
                        properties:
                          quorum:
                            type: integer
                            minimum: 1
                            description: Workspace quorum
                        required:
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: UPDATE_QUORUM request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRANSACTION
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            minLength: 1
                            description: Target account id
                          transaction:
                            anyOf:
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - BITCOIN_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      feePerByte:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        nullable: true
                                        description: Fee per byte
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Bitcoin-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Bitcoin-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Cardano-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DELEGATE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  stakePoolId:
                                    type: string
                                    minLength: 1
                                    maxLength: 100
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - stakePoolId
                                additionalProperties: false
                                description: Cardano-like staking delegate
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DEREGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to deregister
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking deregister data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_REGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to register
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking register data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_WITHDRAW
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to withdraw
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking withdraw data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    enum:
                                      - >-
                                        0x0000000000000000000000000000000000000000
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like deploy contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract call data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like execute contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_SEND
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - GENERIC_TRANSACTION
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  rawTx:
                                    type: string
                                    description: Raw tx
                                required:
                                  - type
                                  - currency
                                  - rawTx
                                additionalProperties: false
                                description: Generic transaction data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ADDPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                    description: Proxy kind
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like add proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ANONYMOUSPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like anonymous proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - payee
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BONDEXTRA
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond extra data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_CHILL
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like chill data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_KILLANONYMOUS
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like kill anonymous data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like rebond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REMOVEPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like remove proxy data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SEND
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                additionalProperties: false
                                description: Polkadot-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SETPAYEE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                required:
                                  - type
                                  - currency
                                  - payee
                                additionalProperties: false
                                description: Polkadot-like set payee data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_UNBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like unbond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_WITHDRAWUNBONDED
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like withdraw unbonded data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - RIPPLE_LIKE_SEND
                                  destinationTag:
                                    type: string
                                    minLength: 1
                                    pattern: ^-?\d+$
                                    nullable: true
                                    description: Destination tag
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Ripple-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - destinationTag
                                  - feeStrategy
                                additionalProperties: false
                                description: Ripple-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like create delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DEACTIVATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DELEGATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - recipient
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_MERGE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  mergeSrcAccount:
                                    type: string
                                    description: Source stake address
                                  mergeDstAccount:
                                    type: string
                                    description: Destination stake address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - mergeSrcAccount
                                  - mergeDstAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like merge stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_WITHDRAW_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - STELLAR_LIKE_SEND
                                  memo:
                                    anyOf:
                                      - type: object
                                        properties:
                                          MEMO_TEXT:
                                            type: string
                                            maxLength: 28
                                            description: Text memo (at most a 28 bytes string)
                                        required:
                                          - MEMO_TEXT
                                        additionalProperties: false
                                        description: Text memo
                                      - type: object
                                        properties:
                                          MEMO_ID:
                                            type: string
                                            minLength: 1
                                            pattern: ^-?\d+$
                                            description: Id memo (unsigned 64 bits integer)
                                        required:
                                          - MEMO_ID
                                        additionalProperties: false
                                        description: Id memo
                                      - type: object
                                        properties:
                                          MEMO_HASH:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              Transaction hash memo (64 bytes
                                              hexadecimal string)
                                        required:
                                          - MEMO_HASH
                                        additionalProperties: false
                                        description: Hash memo
                                      - type: object
                                        properties:
                                          MEMO_RETURN:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              A 64 bytes hexadecimal string intended
                                              to be interpreted as the hash of the
                                              transaction the sender is refunding.
                                        required:
                                          - MEMO_RETURN
                                        additionalProperties: false
                                        description: Return memo
                                    nullable: true
                                    description: Stellar memo
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Stellar-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - memo
                                  - feeStrategy
                                additionalProperties: false
                                description: Stellar-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_DELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like delegate data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_UNDELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like undelegate data
                        required:
                          - accountId
                          - transaction
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRANSACTION request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          type:
                            type: string
                            enum:
                              - BITCOIN_LIKE
                              - ETHEREUM_LIKE
                              - ERC20_LIKE
                              - BEP20_LIKE
                              - CARDANO_LIKE
                              - SOLANA_LIKE
                              - TEZOS_LIKE
                              - STELLAR_LIKE
                              - RIPPLE_LIKE
                              - POLKADOT_LIKE
                              - TRC20_LIKE
                              - GENERIC_LIKE
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          contractAddress:
                            type: string
                            minLength: 1
                            description: Account contract address
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  assetManagerId:
                                    type: string
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - assetManagerId
                                  - exchangeConfigs
                                additionalProperties: false
                          index:
                            type: number
                            minimum: 0
                            description: Account index
                          derivationPath:
                            type: string
                            description: Account bip44 derivation path
                        required:
                          - name
                          - type
                          - currency
                          - governance
                          - index
                          - derivationPath
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - exchangeConfigs
                                additionalProperties: false
                        required:
                          - name
                          - governance
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ACTIVATE_TRADELINK_ACCOUNT
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ACTIVATE_TRADELINK_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          description:
                            type: string
                            nullable: true
                            description: Group description
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - description
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_GROUP
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          description:
                            type: string
                            nullable: true
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                          type:
                            type: string
                            enum:
                              - TRANSACTION
                              - SMART_CONTRACT
                        required:
                          - name
                          - description
                          - addresses
                          - type
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                        required:
                          - name
                          - addresses
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_ENTITY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          publicKey:
                            type: string
                            description: Public key
                        required:
                          - name
                          - publicKey
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER_ACCESS
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                        required:
                          - name
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER_ACCESS request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_USER
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          type:
                            type: string
                            enum:
                              - MASTER
                              - NORMAL
                            description: Admin gov rule type
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - type
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_SCICONFIG
                      data:
                        type: object
                        properties:
                          account:
                            type: string
                            description: Account UUID
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - account
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_SCICONFIG
                      data:
                        type: object
                        properties:
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Create read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Edit read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_API_KEY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - currency
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_CUSTODIAN
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_CUSTODIAN
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_EXCHANGE
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_EXCHANGE
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_ASSET_MANAGER
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_ASSET_MANAGER
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ADJUST_PLEDGE
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            description: Account id
                          exchangeId:
                            type: string
                            description: Exchange id
                          amount:
                            type: string
                            minLength: 1
                            pattern: ^-?\d+$
                            description: Amount to add to pledge
                        required:
                          - accountId
                          - exchangeId
                          - amount
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ADJUST_PLEDGE request
        default:
          $ref: "#/components/responses/error"
  /requests/{id}/reject:
    post:
      operationId: requests-reject
      summary: Reject a request from the current user
      tags:
        - request
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  properties:
                    signature:
                      type: string
                      minLength: 1
                    challengeType:
                      type: string
                      enum:
                        - API
                  required:
                    - signature
                    - challengeType
                  additionalProperties: false
                  nullable: true
                  description: Response to the challenge
              required:
                - data
              additionalProperties: false
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the request to reject
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - UPDATE_QUORUM
                      data:
                        type: object
                        properties:
                          quorum:
                            type: integer
                            minimum: 1
                            description: Workspace quorum
                        required:
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: UPDATE_QUORUM request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRANSACTION
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            minLength: 1
                            description: Target account id
                          transaction:
                            anyOf:
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - BITCOIN_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      feePerByte:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        nullable: true
                                        description: Fee per byte
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Bitcoin-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Bitcoin-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Cardano-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DELEGATE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  stakePoolId:
                                    type: string
                                    minLength: 1
                                    maxLength: 100
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - stakePoolId
                                additionalProperties: false
                                description: Cardano-like staking delegate
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_DEREGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to deregister
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking deregister data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_REGISTER
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to register
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking register data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CARDANO_LIKE_STAKING_WITHDRAW
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Cardano-like fee strategy
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount to withdraw
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - feeStrategy
                                  - amount
                                additionalProperties: false
                                description: Cardano-like staking withdraw data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    enum:
                                      - >-
                                        0x0000000000000000000000000000000000000000
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_DEPLOY_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like deploy contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_EXECUTE_CONTRACT
                                  contractData:
                                    type: string
                                    pattern: ^(?:0x|0X)?[a-fA-F0-9]+$
                                    description: Contract call data in hexadecimal format
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - contractData
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like execute contract data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - ETHEREUM_LIKE_SEND
                                  feeStrategy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          gasPrice:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas price
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - gasPrice
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like legacy fee strategy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - SLOW
                                              - NORMAL
                                              - FAST
                                              - CUSTOM
                                          maxPriorityFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum priority fee per gas
                                          maxFeePerGas:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Maximum fee per gas (base + priority)
                                          gasLimit:
                                            type: string
                                            pattern: ^0|[1-9]\d*$
                                            description: Gas limit
                                        required:
                                          - type
                                          - maxPriorityFeePerGas
                                          - maxFeePerGas
                                          - gasLimit
                                        additionalProperties: false
                                        description: Ethereum-like EIP-1559 fee strategy
                                    description: Ethereum-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Ethereum-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - GENERIC_TRANSACTION
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  rawTx:
                                    type: string
                                    description: Raw tx
                                required:
                                  - type
                                  - currency
                                  - rawTx
                                additionalProperties: false
                                description: Generic transaction data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ADDPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                    description: Proxy kind
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like add proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_ANONYMOUSPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like anonymous proxy data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - payee
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_BONDEXTRA
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like bond extra data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_CHILL
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like chill data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_KILLANONYMOUS
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like kill anonymous data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like rebond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_REMOVEPROXY
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  kind:
                                    type: string
                                    enum:
                                      - Staking
                                  proxy:
                                    type: string
                                    description: Proxy address
                                required:
                                  - type
                                  - currency
                                  - kind
                                  - proxy
                                additionalProperties: false
                                description: Polkadot-like remove proxy data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SEND
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                additionalProperties: false
                                description: Polkadot-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_SETPAYEE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  payee:
                                    type: string
                                    enum:
                                      - Staked
                                      - Stash
                                required:
                                  - type
                                  - currency
                                  - payee
                                additionalProperties: false
                                description: Polkadot-like set payee data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_UNBOND
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Amount
                                required:
                                  - type
                                  - currency
                                  - amount
                                additionalProperties: false
                                description: Polkadot-like unbond data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - POLKADOT_LIKE_WITHDRAWUNBONDED
                                  currency:
                                    type: string
                                    description: Transaction currency
                                required:
                                  - type
                                  - currency
                                additionalProperties: false
                                description: Polkadot-like withdraw unbonded data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - RIPPLE_LIKE_SEND
                                  destinationTag:
                                    type: string
                                    minLength: 1
                                    pattern: ^-?\d+$
                                    nullable: true
                                    description: Destination tag
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Ripple-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - destinationTag
                                  - feeStrategy
                                additionalProperties: false
                                description: Ripple-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_CREATE_DELEGATE_STAKE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like create delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DEACTIVATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_DELEGATE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Delegated vote address
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - recipient
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_MERGE_STAKE
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  mergeSrcAccount:
                                    type: string
                                    description: Source stake address
                                  mergeDstAccount:
                                    type: string
                                    description: Destination stake address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - currency
                                  - maxFee
                                  - mergeSrcAccount
                                  - mergeDstAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like merge stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like send data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split deactivate stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_SPLIT_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like split stake data
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - SOLANA_LIKE_WITHDRAW_STAKE
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  stakeAccount:
                                    type: string
                                    description: Stake account address
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Solana-like fee strategy
                                required:
                                  - type
                                  - amount
                                  - currency
                                  - maxFee
                                  - stakeAccount
                                  - feeStrategy
                                additionalProperties: false
                                description: Solana-like delegate stake data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - STELLAR_LIKE_SEND
                                  memo:
                                    anyOf:
                                      - type: object
                                        properties:
                                          MEMO_TEXT:
                                            type: string
                                            maxLength: 28
                                            description: Text memo (at most a 28 bytes string)
                                        required:
                                          - MEMO_TEXT
                                        additionalProperties: false
                                        description: Text memo
                                      - type: object
                                        properties:
                                          MEMO_ID:
                                            type: string
                                            minLength: 1
                                            pattern: ^-?\d+$
                                            description: Id memo (unsigned 64 bits integer)
                                        required:
                                          - MEMO_ID
                                        additionalProperties: false
                                        description: Id memo
                                      - type: object
                                        properties:
                                          MEMO_HASH:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              Transaction hash memo (64 bytes
                                              hexadecimal string)
                                        required:
                                          - MEMO_HASH
                                        additionalProperties: false
                                        description: Hash memo
                                      - type: object
                                        properties:
                                          MEMO_RETURN:
                                            type: string
                                            maxLength: 128
                                            pattern: ^[a-fA-F0-9]+$
                                            description: >-
                                              A 64 bytes hexadecimal string intended
                                              to be interpreted as the hash of the
                                              transaction the sender is refunding.
                                        required:
                                          - MEMO_RETURN
                                        additionalProperties: false
                                        description: Return memo
                                    nullable: true
                                    description: Stellar memo
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                    required:
                                      - type
                                    additionalProperties: false
                                    description: Stellar-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - memo
                                  - feeStrategy
                                additionalProperties: false
                                description: Stellar-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_DELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like delegate data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_SEND
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like send data
                              - type: object
                                properties:
                                  amount:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    description: Transaction amount
                                  currency:
                                    type: string
                                    description: Transaction currency
                                  maxFee:
                                    type: string
                                    pattern: ^0|[1-9]\d*$
                                    nullable: true
                                    description: Transaction max fee
                                  recipient:
                                    type: string
                                    description: Transaction recipient
                                  type:
                                    type: string
                                    enum:
                                      - TEZOS_LIKE_UNDELEGATE
                                  feeStrategy:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SLOW
                                          - NORMAL
                                          - FAST
                                          - CUSTOM
                                      gasLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Gas limit
                                      storageLimit:
                                        type: string
                                        pattern: ^0|[1-9]\d*$
                                        description: Storage limit
                                    required:
                                      - type
                                      - gasLimit
                                      - storageLimit
                                    additionalProperties: false
                                    description: Tezos-like fee strategy
                                required:
                                  - amount
                                  - currency
                                  - maxFee
                                  - recipient
                                  - type
                                  - feeStrategy
                                additionalProperties: false
                                description: Tezos-like undelegate data
                        required:
                          - accountId
                          - transaction
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRANSACTION request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          type:
                            type: string
                            enum:
                              - BITCOIN_LIKE
                              - ETHEREUM_LIKE
                              - ERC20_LIKE
                              - BEP20_LIKE
                              - CARDANO_LIKE
                              - SOLANA_LIKE
                              - TEZOS_LIKE
                              - STELLAR_LIKE
                              - RIPPLE_LIKE
                              - POLKADOT_LIKE
                              - TRC20_LIKE
                              - GENERIC_LIKE
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          contractAddress:
                            type: string
                            minLength: 1
                            description: Account contract address
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  assetManagerId:
                                    type: string
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - assetManagerId
                                  - exchangeConfigs
                                additionalProperties: false
                          index:
                            type: number
                            minimum: 0
                            description: Account index
                          derivationPath:
                            type: string
                            description: Account bip44 derivation path
                        required:
                          - name
                          - type
                          - currency
                          - governance
                          - index
                          - derivationPath
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ACCOUNT
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Account name
                          governance:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - CLASSIC
                                  policy:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_POLICY
                                          policyId:
                                            type: string
                                        required:
                                          - type
                                          - policyId
                                        additionalProperties: false
                                        description: Account policy
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ACCOUNT_PRIVATE_POLICY
                                          rules:
                                            type: array
                                            items:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operationType:
                                                      type: string
                                                      enum:
                                                        - SEND
                                                        - STAKE
                                                        - DEPLOY_CONTRACT
                                                        - EXECUTE_CONTRACT
                                                        - SIGN_DIGESTS
                                                        - SIGN_MESSAGE
                                                      description: Allowed operation type
                                                    threshold:
                                                      type: object
                                                      properties:
                                                        min:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Minimum transaction amount
                                                        max:
                                                          type: string
                                                          pattern: ^\d+$
                                                          nullable: true
                                                          description: Maximum transaction amount
                                                      required:
                                                        - min
                                                        - max
                                                      additionalProperties: false
                                                      description: Threshold for the transaction value
                                                    whitelistIds:
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                      description: >-
                                                        IDs of whitelists for the recipient
                                                        address
                                                    reviewSteps:
                                                      type: array
                                                      items:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              userIds:
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  minLength: 1
                                                                description: User ids in the step
                                                            required:
                                                              - quorum
                                                              - userIds
                                                            additionalProperties: false
                                                            description: Review step with users
                                                          - type: object
                                                            properties:
                                                              quorum:
                                                                type: number
                                                                minimum: 0
                                                                description: >-
                                                                  Number of required approvals for the
                                                                  step
                                                              groupId:
                                                                type: string
                                                                minLength: 1
                                                                description: Group id in the step
                                                            required:
                                                              - quorum
                                                              - groupId
                                                            additionalProperties: false
                                                            description: Review step with group
                                                      minItems: 1
                                                      description: Review steps
                                                  required:
                                                    - operationType
                                                    - reviewSteps
                                                  additionalProperties: false
                                                  description: Account governance rule
                                              description: Governance rule
                                        required:
                                          - type
                                          - rules
                                        additionalProperties: false
                                        description: Account governance rules
                                    description: Account policy or governance rules
                                required:
                                  - type
                                  - policy
                                additionalProperties: false
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - TRADELINK
                                  exchangeConfigs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        exchangeId:
                                          type: string
                                          description: Tradelink exchange id
                                        repledgeAuthorized:
                                          type: boolean
                                          description: >-
                                            Determines whether this exchange is
                                            authorized to repledge on this account
                                        needPreApproval:
                                          type: boolean
                                          description: >-
                                            Determines whether asset manager will
                                            "pre-approve" the settlement requests on
                                            this account
                                      required:
                                        - exchangeId
                                        - repledgeAuthorized
                                        - needPreApproval
                                      additionalProperties: false
                                required:
                                  - type
                                  - exchangeConfigs
                                additionalProperties: false
                        required:
                          - name
                          - governance
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ACTIVATE_TRADELINK_ACCOUNT
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ACTIVATE_TRADELINK_ACCOUNT request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          description:
                            type: string
                            nullable: true
                            description: Group description
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - description
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_GROUP
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Group name
                          members:
                            type: array
                            items:
                              type: string
                            description: List of group members ids
                        required:
                          - name
                          - members
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_GROUP
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_GROUP request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          description:
                            type: string
                            nullable: true
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                          type:
                            type: string
                            enum:
                              - TRANSACTION
                              - SMART_CONTRACT
                        required:
                          - name
                          - description
                          - addresses
                          - type
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_WHITELIST
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 45
                            description: Whitelist name
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                  nullable: true
                                currency:
                                  type: string
                                  minLength: 1
                                  maxLength: 50
                                address:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                destinationTags:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    pattern: ^\w+$
                              required:
                                - name
                                - currency
                                - address
                                - destinationTags
                              additionalProperties: false
                        required:
                          - name
                          - addresses
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_WHITELIST request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ENTITY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Entity name
                          accounts:
                            type: array
                            items:
                              type: string
                        required:
                          - name
                          - accounts
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_ENTITY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_ENTITY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_OPERATOR
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          deviceType:
                            type: string
                            enum:
                              - PSD
                              - SOFT_PSD
                            description: Device type
                          deviceUserId:
                            type: string
                            pattern: ^[A-F0-9]{16}$
                            description: Device user ID
                          registration:
                            anyOf:
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - PENDING
                                  deviceData:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        description: Name of the user to register
                                      psdModel:
                                        type: string
                                        enum:
                                          - BLUE
                                          - STAX
                                        description: Device model
                                      pubKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: Device public key
                                      confidentialityKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      psdEphemeralKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                    required:
                                      - name
                                      - psdModel
                                      - pubKey
                                      - confidentialityKey
                                      - psdEphemeralKey
                                      - psdEphemeralKeyAttestation
                                    additionalProperties: false
                                    description: Device data
                                  challenge:
                                    type: object
                                    properties:
                                      challenge:
                                        type: string
                                        description: TODO describe
                                      ephemeralPublicKey:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      ephemeralPublicKeyAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      handshake:
                                        type: string
                                        pattern: ^[0-9a-fA-F]+$
                                        description: TODO describe
                                      handshakeAttestation:
                                        type: object
                                        properties:
                                          codeHash:
                                            type: string
                                            contentEncoding: base64
                                            description: >-
                                              Hash of the executable that generated
                                              this certificate
                                          attestationPub:
                                            type: string
                                            contentEncoding: base64
                                            description: Attestation public key
                                          certificate:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate bytes
                                          signature:
                                            type: string
                                            contentEncoding: base64
                                            description: Certificate signature
                                        required:
                                          - codeHash
                                          - attestationPub
                                          - certificate
                                          - signature
                                        additionalProperties: false
                                        description: TODO describe
                                      u2fRegisterData:
                                        type: string
                                        description: TODO describe
                                      ciphertext:
                                        type: string
                                        description: TODO describe
                                      requestId:
                                        type: string
                                        description: TODO describe
                                    required:
                                      - challenge
                                      - ephemeralPublicKey
                                      - ephemeralPublicKeyAttestation
                                      - handshake
                                      - handshakeAttestation
                                      - u2fRegisterData
                                      - ciphertext
                                      - requestId
                                    additionalProperties: false
                                    description: Registration challenge
                                required:
                                  - subState
                                  - deviceData
                                  - challenge
                                additionalProperties: false
                                description: Pending registration
                              - type: object
                                properties:
                                  subState:
                                    type: string
                                    enum:
                                      - COMPLETED
                                  pubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: User device public key
                                  u2fKeyHandle:
                                    type: string
                                    description: U2F key handle for authenticate via PSD
                                  u2fPubKey:
                                    type: string
                                    pattern: ^[0-9a-fA-F]+$
                                    description: U2F public key for authenticate via PSD
                                required:
                                  - subState
                                  - pubKey
                                  - u2fKeyHandle
                                  - u2fPubKey
                                additionalProperties: false
                                description: Completed registration
                            description: >-
                              Data collected from the new user during
                              registration
                        required:
                          - name
                          - deviceType
                          - deviceUserId
                        additionalProperties: false
                        description: Create PSD or Soft PSD user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_OPERATOR request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                          publicKey:
                            type: string
                            description: Public key
                        required:
                          - name
                          - publicKey
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_USER_ACCESS
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: User name
                        required:
                          - name
                        additionalProperties: false
                        description: Create API user request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_USER_ACCESS request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_USER
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_USER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          type:
                            type: string
                            enum:
                              - MASTER
                              - NORMAL
                            description: Admin gov rule type
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - type
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_ADMIN_GOV_RULE
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 40
                            description: Admin gov rule name
                          description:
                            type: string
                            nullable: true
                            description: Admin gov rule description
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - MANAGE_GROUP
                                - MANAGE_WHITELIST
                                - MANAGE_ACCOUNT_WITH_POLICY
                            description: Granted permissions
                          members:
                            type: array
                            items:
                              type: string
                            description: List of admin user ids
                          quorum:
                            type: integer
                            minimum: 0
                            description: Quorum
                        required:
                          - name
                          - description
                          - permissions
                          - members
                          - quorum
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_ADMIN_GOV_RULE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_SCICONFIG
                      data:
                        type: object
                        properties:
                          account:
                            type: string
                            description: Account UUID
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - account
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_SCICONFIG
                      data:
                        type: object
                        properties:
                          config:
                            type: object
                            properties:
                              dapps:
                                type: array
                                items:
                                  type: string
                                nullable: true
                                description: Allowed DApps, null allows all
                              customContractCallEnabled:
                                type: boolean
                                description: Allow non-DApp SCI
                            required:
                              - dapps
                              - customContractCallEnabled
                            additionalProperties: false
                        required:
                          - config
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_SCICONFIG request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Create read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_API_KEY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: API key name
                          entities:
                            type: array
                            items:
                              type: string
                            description: List of related entities ids
                          scopes:
                            type: object
                            properties: {}
                            additionalProperties: false
                            description: FIXME to be precised
                        required:
                          - name
                          - entities
                          - scopes
                        additionalProperties: false
                        description: Edit read-only API key request data
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - REVOKE_API_KEY
                      data:
                        type: object
                        properties: {}
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: REVOKE_API_KEY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          currency:
                            type: string
                            minLength: 1
                            maxLength: 40
                            pattern: ^\w+$
                            description: Currency
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - currency
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_POLICY
                      data:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 19
                            description: Policy name
                          description:
                            type: string
                            nullable: true
                            description: Description
                          govRules:
                            type: array
                            items:
                              anyOf:
                                - type: object
                                  properties:
                                    operationType:
                                      type: string
                                      enum:
                                        - SEND
                                        - STAKE
                                        - DEPLOY_CONTRACT
                                        - EXECUTE_CONTRACT
                                        - SIGN_DIGESTS
                                        - SIGN_MESSAGE
                                      description: Allowed operation type
                                    threshold:
                                      type: object
                                      properties:
                                        min:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Minimum transaction amount
                                        max:
                                          type: string
                                          pattern: ^\d+$
                                          nullable: true
                                          description: Maximum transaction amount
                                      required:
                                        - min
                                        - max
                                      additionalProperties: false
                                      description: Threshold for the transaction value
                                    whitelistIds:
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                      description: >-
                                        IDs of whitelists for the recipient
                                        address
                                    reviewSteps:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              userIds:
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                description: User ids in the step
                                            required:
                                              - quorum
                                              - userIds
                                            additionalProperties: false
                                            description: Review step with users
                                          - type: object
                                            properties:
                                              quorum:
                                                type: number
                                                minimum: 0
                                                description: >-
                                                  Number of required approvals for the
                                                  step
                                              groupId:
                                                type: string
                                                minLength: 1
                                                description: Group id in the step
                                            required:
                                              - quorum
                                              - groupId
                                            additionalProperties: false
                                            description: Review step with group
                                      minItems: 1
                                      description: Review steps
                                  required:
                                    - operationType
                                    - reviewSteps
                                  additionalProperties: false
                                  description: Account governance rule
                              description: Governance rule
                            description: Governance rules
                        required:
                          - name
                          - description
                          - govRules
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_POLICY request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_CUSTODIAN
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_CUSTODIAN
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          settlement:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of settlement review steps
                          withdraw:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of withdraw review steps
                          arbitration:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of arbitration review steps
                        required:
                          - settlement
                          - withdraw
                          - arbitration
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_CUSTODIAN request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_EXCHANGE
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_EXCHANGE
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_EXCHANGE request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - CREATE_TRADELINK_ASSET_MANAGER
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: CREATE_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - EDIT_TRADELINK_ASSET_MANAGER
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      data:
                        type: object
                        properties:
                          tradelinkId:
                            type: string
                            minLength: 1
                          groups:
                            type: array
                            items:
                              type: object
                              properties:
                                quorum:
                                  type: number
                                  minimum: 0
                                  description: Number of required approvals for the step
                                userIds:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                  description: User ids in the step
                              required:
                                - quorum
                                - userIds
                              additionalProperties: false
                              description: Review step with users
                            description: List of asset manager review groups
                          whitelist:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  minLength: 1
                                currency:
                                  type: string
                                  minLength: 1
                                address:
                                  type: string
                                  minLength: 1
                              required:
                                - name
                                - currency
                                - address
                              additionalProperties: false
                            description: List of asset manager whitelisted addresses
                        required:
                          - tradelinkId
                          - groups
                          - whitelist
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - targetId
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: EDIT_TRADELINK_ASSET_MANAGER request
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - ADJUST_PLEDGE
                      data:
                        type: object
                        properties:
                          accountId:
                            type: string
                            description: Account id
                          exchangeId:
                            type: string
                            description: Exchange id
                          amount:
                            type: string
                            minLength: 1
                            pattern: ^-?\d+$
                            description: Amount to add to pledge
                        required:
                          - accountId
                          - exchangeId
                          - amount
                        additionalProperties: false
                      id:
                        type: string
                        description: Request unique identifier
                      legacyId:
                        type: number
                        description: >-
                          Legacy internal unique identifier (for
                          retro-compatibility)
                      state:
                        type: string
                        enum:
                          - INITIAL
                          - PENDING_REGISTRATION
                          - PENDING_APPROVAL
                          - APPROVED
                          - EXECUTING
                          - EXECUTED
                          - FAILED
                          - ABORTED
                          - BLOCKED
                          - EXPIRED
                          - STUCK
                        description: Request state
                      reviewSteps:
                        type: array
                        items:
                          type: object
                          properties:
                            stageName:
                              type: string
                              pattern: ^\w+$
                              description: The review stage name
                            quorum:
                              type: integer
                              minimum: 1
                              description: Quorum for the review step
                          required:
                            - stageName
                            - quorum
                          additionalProperties: false
                        description: Request review steps
                      currentStepIndex:
                        type: integer
                        minimum: 0
                        description: Index of the current approval step
                      expiredAt:
                        type: string
                        format: date-time
                        nullable: true
                        description: Optional expiration date
                      targetId:
                        type: string
                        nullable: true
                        description: Optional ID of the target object
                      reviews:
                        type: array
                        items:
                          type: object
                          properties:
                            stepIndex:
                              type: integer
                              description: >-
                                Index of the governance step in the request
                                workflow
                            userId:
                              type: string
                              description: Reviewer id
                            status:
                              type: string
                              enum:
                                - PENDING
                                - APPROVED
                                - REJECTED
                                - OBSOLETE
                              description: Review status
                            createdAt:
                              type: string
                              format: date-time
                              description: Created date
                            updatedAt:
                              type: string
                              format: date-time
                              description: Updated date
                          required:
                            - stepIndex
                            - userId
                            - status
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: Requests reviews
                      createdAt:
                        type: string
                        format: date-time
                        description: Creation timestamp
                      updatedAt:
                        type: string
                        format: date-time
                        description: Last modification timestamp
                    required:
                      - type
                      - data
                      - id
                      - legacyId
                      - state
                      - reviewSteps
                      - currentStepIndex
                      - expiredAt
                      - targetId
                      - reviews
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                    description: ADJUST_PLEDGE request
        default:
          $ref: "#/components/responses/error"
  /assets/currencies:
    get:
      operationId: assets-currencies
      summary: List currencies
      tags:
        - assets
      security:
        - Authorization: []
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            Optional cursor to get next pages (based on the `next` key on query
            response)
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Search by name, ticker
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    type: string
                    nullable: true
                    description: Next page cursor
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Asset identifier
                        name:
                          type: string
                          description: Asset name
                        type:
                          type: string
                          enum:
                            - BITCOIN_LIKE
                            - ETHEREUM_LIKE
                            - ERC20_LIKE
                            - BEP20_LIKE
                            - CARDANO_LIKE
                            - SOLANA_LIKE
                            - TEZOS_LIKE
                            - STELLAR_LIKE
                            - RIPPLE_LIKE
                            - POLKADOT_LIKE
                            - TRC20_LIKE
                            - GENERIC_LIKE
                          description: Asset type
                        units:
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                description: "Unit denomination, e.g: wei, Gwei, etc."
                              name:
                                type: string
                                description: Full name
                              magnitude:
                                type: integer
                                minimum: 0
                                description: Number of decimals place
                            required:
                              - code
                              - name
                              - magnitude
                            additionalProperties: false
                            description: Asset units
                          description: Asset units
                      required:
                        - id
                        - name
                        - type
                        - units
                      additionalProperties: false
                    description: Array of results
                required:
                  - next
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /assets/tokens:
    get:
      operationId: assets-tokens
      summary: List tokens
      tags:
        - assets
      security:
        - Authorization: []
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            Optional cursor to get next pages (based on the `next` key on query
            response)
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Search by name, ticker, or contract address
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    type: string
                    nullable: true
                    description: Next page cursor
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Asset identifier
                        name:
                          type: string
                          description: Asset name
                        type:
                          type: string
                          enum:
                            - BITCOIN_LIKE
                            - ETHEREUM_LIKE
                            - ERC20_LIKE
                            - BEP20_LIKE
                            - CARDANO_LIKE
                            - SOLANA_LIKE
                            - TEZOS_LIKE
                            - STELLAR_LIKE
                            - RIPPLE_LIKE
                            - POLKADOT_LIKE
                            - TRC20_LIKE
                            - GENERIC_LIKE
                          description: Asset type
                        units:
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                description: "Unit denomination, e.g: wei, Gwei, etc."
                              name:
                                type: string
                                description: Full name
                              magnitude:
                                type: integer
                                minimum: 0
                                description: Number of decimals place
                            required:
                              - code
                              - name
                              - magnitude
                            additionalProperties: false
                            description: Asset units
                          description: Asset units
                        contractAddress:
                          type: string
                          description: Token contract address
                        currency:
                          type: string
                          description: Parent currency
                      required:
                        - id
                        - name
                        - type
                        - units
                        - contractAddress
                        - currency
                      additionalProperties: false
                    description: Array of results
                required:
                  - next
                  - results
                additionalProperties: false
        default:
          $ref: "#/components/responses/error"
  /tradelink/network:
    get:
      operationId: tradelink-getNetwork
      summary: Get Tradelink network instance
      description: Get the materialized Tradelink Network configuration of workspace
      tags:
        - tradelink
      security:
        - Authorization: []
      parameters: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  custodian:
                    type: object
                    properties:
                      id:
                        type: string
                      settlement:
                        type: array
                        items:
                          type: object
                          properties:
                            quorum:
                              type: number
                              minimum: 0
                              description: Number of required approvals for the step
                            userIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                              description: User ids in the step
                          required:
                            - quorum
                            - userIds
                          additionalProperties: false
                          description: Review step with users
                      withdraw:
                        type: array
                        items:
                          type: object
                          properties:
                            quorum:
                              type: number
                              minimum: 0
                              description: Number of required approvals for the step
                            userIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                              description: User ids in the step
                          required:
                            - quorum
                            - userIds
                          additionalProperties: false
                          description: Review step with users
                      arbitration:
                        type: array
                        items:
                          type: object
                          properties:
                            quorum:
                              type: number
                              minimum: 0
                              description: Number of required approvals for the step
                            userIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                              description: User ids in the step
                          required:
                            - quorum
                            - userIds
                          additionalProperties: false
                          description: Review step with users
                    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:
                            type: object
                            properties:
                              quorum:
                                type: number
                                minimum: 0
                                description: Number of required approvals for the step
                              userIds:
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                description: User ids in the step
                            required:
                              - quorum
                              - userIds
                            additionalProperties: false
                            description: Review step with users
                        whitelist:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                minLength: 1
                              currency:
                                type: string
                                minLength: 1
                              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:
                            type: object
                            properties:
                              quorum:
                                type: number
                                minimum: 0
                                description: Number of required approvals for the step
                              userIds:
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                description: User ids in the step
                            required:
                              - quorum
                              - userIds
                            additionalProperties: false
                            description: Review step with users
                        whitelist:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                minLength: 1
                              currency:
                                type: string
                                minLength: 1
                              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
                nullable: true
        default:
          $ref: "#/components/responses/error"
  /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: []
      parameters: []
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  tradelinkId:
                    type: string
                  workspaceName:
                    type: string
                    minLength: 1
                    maxLength: 20
                    pattern: ^[a-z0-9]+$
                  custodian:
                    type: object
                    properties:
                      tradelinkId:
                        type: string
                        description: Unique identifier in Tradelink service
                      name:
                        type: string
                        description: Name
                      code:
                        type: string
                        description: Code
                      logoUrl:
                        type: string
                        description: Logo URL
                    required:
                      - tradelinkId
                      - name
                      - code
                      - logoUrl
                    additionalProperties: false
                  assetManagers:
                    type: array
                    items:
                      type: object
                      properties:
                        tradelinkId:
                          type: string
                          description: Unique identifier in Tradelink service
                        name:
                          type: string
                          description: Name
                        code:
                          type: string
                          description: Code
                        logoUrl:
                          type: string
                          description: Logo URL
                      required:
                        - tradelinkId
                        - name
                        - code
                        - logoUrl
                      additionalProperties: false
                  exchanges:
                    type: array
                    items:
                      type: object
                      properties:
                        tradelinkId:
                          type: string
                          description: Unique identifier in Tradelink service
                        name:
                          type: string
                          description: Name
                        code:
                          type: string
                          description: Code
                        logoUrl:
                          type: string
                          description: Logo URL
                      required:
                        - tradelinkId
                        - name
                        - code
                        - logoUrl
                      additionalProperties: false
                required:
                  - tradelinkId
                  - workspaceName
                  - custodian
                  - assetManagers
                  - exchanges
                additionalProperties: false
                nullable: true
        default:
          $ref: "#/components/responses/error"
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
