openapi: 3.0.0
paths:
  /v1/health:
    get:
      operationId: PublicApiController_health
      parameters:
        - &a1
          name: x-api-key
          in: header
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                properties:
                  ok:
                    type: boolean
      tags: &a2
        - PublicApi
  /v1/chains:
    get:
      operationId: PublicApiController_getChains
      parameters:
        - *a1
        - name: key
          required: false
          in: query
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          schema:
            type: string
        - name: id
          required: false
          in: query
          description: Native chain ID (e.g. 1 for Ethereum)
          schema:
            type: string
        - name: uid
          required: false
          in: query
          description: Chain UUID (internal identifier)
          schema:
            format: uuid
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Chain"
      tags: *a2
  /v1/tokens:
    get:
      operationId: PublicApiController_getTokens
      parameters:
        - *a1
        - name: address
          required: false
          in: query
          description: Filter by token address
          schema:
            type: string
        - name: chainKey
          required: false
          in: query
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          schema:
            type: string
        - name: chainId
          required: false
          in: query
          description: Native chain ID (e.g. 1 for Ethereum)
          schema:
            type: string
        - name: chainUid
          required: false
          in: query
          description: Chain UUID (internal identifier)
          schema:
            type: string
        - name: cursor
          required: false
          in: query
          description: Pagination cursor
          schema:
            type: string
        - name: limit
          required: false
          in: query
          description: Page size (1-100)
          schema:
            minimum: 1
            maximum: 100
            default: 20
            type: number
        - name: search
          required: false
          in: query
          description: Search by name, symbol, or address
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PaginatedTokensResponse"
      tags: *a2
  /v1/token:
    get:
      operationId: PublicApiController_getToken
      parameters:
        - *a1
        - name: address
          required: true
          in: query
          description: 0x0000000000000000000000000000000000000000 for native tokens
          schema:
            type: string
        - name: chainKey
          required: false
          in: query
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          schema:
            type: string
        - name: chainId
          required: false
          in: query
          description: Native chain ID (e.g. 1 for Ethereum)
          schema:
            type: string
        - name: chainUid
          required: false
          in: query
          description: Chain UUID (internal identifier)
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TokenDto"
      tags: *a2
  /v1/routes:
    post:
      operationId: PublicApiController_getRoutes
      parameters:
        - *a1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/GetRoutesRequest"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RouteResponse"
        "400":
          description: ""
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: "#/components/schemas/PausedRouteErrorDto"
                  - $ref: "#/components/schemas/DisabledRouteErrorDto"
                  - $ref: "#/components/schemas/SlippageTooHighRouteErrorDto"
                  - $ref: "#/components/schemas/MaxUsdAmountExceededRouteErrorDto"
      tags: *a2
  /v1/activity:
    get:
      operationId: PublicApiController_getActivity
      parameters:
        - *a1
        - name: txHash
          required: false
          in: query
          description: Filter by initiating transactionHash
          schema:
            type: string
        - name: status
          required: false
          in: query
          description: '"pending" or "done", default all'
          schema:
            $ref: "#/components/schemas/ActivityFilterStatus"
        - name: type
          required: false
          in: query
          description: '"mainnet" or "testnet", default all'
          schema:
            $ref: "#/components/schemas/ChainType"
        - name: pageSize
          required: false
          in: query
          schema:
            maximum: 30
            default: 30
            type: number
        - name: fromChainId
          required: false
          in: query
          schema:
            type: string
        - name: fromChainKey
          required: false
          in: query
          schema:
            type: string
        - name: fromChainUid
          required: false
          in: query
          schema:
            format: uuid
            type: string
        - name: toChainUid
          required: false
          in: query
          schema:
            format: uuid
            type: string
        - name: toChainId
          required: false
          in: query
          schema:
            type: string
        - name: toChainKey
          required: false
          in: query
          schema:
            type: string
        - name: cursor
          required: false
          in: query
          schema:
            nullable: true
            type: object
            allOf:
              - $ref: "#/components/schemas/GetActivityCursor"
        - name: address
          required: false
          in: query
          description: Filter by address
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Activity"
      tags: *a2
  /v1/get_step_transaction:
    post:
      operationId: PublicApiController_getStepTransaction
      parameters:
        - *a1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/GetStepTransactionRequest"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: "#/components/schemas/InitiatingTransactionEvmDto"
                  - $ref: "#/components/schemas/InitiatingTransactionSvmDto"
                  - $ref: "#/components/schemas/InitiatingTransactionStarkDto"
      tags: *a2
  /v1/index_transaction:
    post:
      operationId: PublicApiController_indexTransaction
      parameters:
        - *a1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/IndexTransactionRequest"
      responses:
        "204":
          description: ""
      tags: *a2
  /v1/submit_gasless:
    post:
      operationId: PublicApiController_submitGasless
      parameters:
        - *a1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubmitGaslessRequest"
      responses:
        "200":
          description: ""
      tags: *a2
info:
  title: Superbridge API
  description: ""
  version: "1.0"
  contact: {}
tags: []
servers: []
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key
  schemas:
    SvmNotReadyStepGasEstimateDto:
      type: object
      properties:
        vm:
          type: string
          enum:
            - svm
        computeUnitLimit:
          type: number
        price:
          type: number
        signatures:
          type: number
      required:
        - vm
        - computeUnitLimit
        - price
        - signatures
    EvmNotReadyStepGasEstimateDto:
      type: object
      properties:
        vm:
          type: string
          enum:
            - evm
        gasLimit:
          type: number
      required:
        - vm
        - gasLimit
    StarkNotReadyStepGasEstimateDto:
      type: object
      properties:
        vm:
          type: string
          enum:
            - stark
        l1GasAmount:
          type: number
        l1DataGasAmount:
          type: number
        l2GasAmount:
          type: number
        l1GasPrice:
          type: string
        l1DataGasPrice:
          type: string
        l2GasPrice:
          type: string
      required:
        - vm
        - l1GasAmount
        - l1DataGasAmount
        - l2GasAmount
    InitiatingTransactionEvmDto:
      type: object
      properties:
        type:
          type: string
          default: evm
          enum:
            - evm
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        data:
          type: string
          description: Hex
        from:
          type: string
        to:
          type: string
        value:
          type: string
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - data
        - from
        - to
        - value
    TokenApprovalParamsDto:
      type: object
      properties:
        contractAddress:
          type: string
          description: The contract that needs the approval
        tokenAddress:
          type: string
        amount:
          type: string
        tx:
          $ref: "#/components/schemas/InitiatingTransactionEvmDto"
      required:
        - contractAddress
        - tokenAddress
        - amount
        - tx
    InitiatingTransactionEvmGaslessDto:
      type: object
      properties:
        type:
          type: string
          default: evm-gasless
          enum:
            - evm-gasless
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        typedData:
          type: string
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - typedData
    InitiatingTransactionSvmDto:
      type: object
      properties:
        type:
          type: string
          default: svm
          enum:
            - svm
        data:
          type: string
          description: Base64
        chainUid:
          type: string
        chainId:
          type: string
        chainKeys:
          type: array
          items:
            type: string
      required:
        - type
        - data
        - chainUid
        - chainId
        - chainKeys
    StarkCallDto:
      type: object
      properties:
        contractAddress:
          type: string
        entrypoint:
          type: string
        calldata:
          type: array
          items:
            type: string
      required:
        - contractAddress
        - entrypoint
        - calldata
    InitiatingTransactionStarkDto:
      type: object
      properties:
        type:
          type: string
          default: starknet
          enum:
            - starknet
        chainUid:
          type: string
        chainId:
          type: string
        chainKeys:
          type: array
          items:
            type: string
        calls:
          type: array
          items:
            $ref: "#/components/schemas/StarkCallDto"
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - calls
    TokenDto:
      type: object
      properties:
        address:
          type: string
          description: 0x0000000000000000000000000000000000000000 for native tokens
        isGasToken:
          type: boolean
          description: Whether this token provides gas on its chain, regardless of the
            address form in this DTO
        isNative:
          type: boolean
          description: Whether this exact address form is backed by the chain native
            balance RPC rather than an ERC20/SPL balance call
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        name:
          type: string
        decimals:
          type: number
        logoUri:
          type: string
          nullable: true
        symbol:
          type: string
        usd:
          type: number
          nullable: true
        isSpl2022:
          type: boolean
        verified:
          type: boolean
      required:
        - address
        - isGasToken
        - isNative
        - chainUid
        - chainId
        - chainKeys
        - name
        - decimals
        - logoUri
        - symbol
        - usd
        - verified
    FeeItem:
      type: object
      properties:
        amount:
          type: string
        token:
          $ref: "#/components/schemas/TokenDto"
        usd:
          type: number
        name:
          type: string
        exclusive:
          type: boolean
        bps:
          type: number
      required:
        - name
    ProviderDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        icon:
          type: string
          nullable: true
      required:
        - id
        - name
        - icon
    FeeGroup:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/FeeItem"
        provider:
          $ref: "#/components/schemas/ProviderDto"
      required:
        - items
        - provider
    SendType:
      type: string
      enum:
        - bridge
        - crosschainswap
        - swap
    QuoteDto:
      type: object
      properties:
        type:
          allOf:
            - $ref: "#/components/schemas/SendType"
        initiatingTransaction:
          oneOf:
            - $ref: "#/components/schemas/InitiatingTransactionEvmDto"
            - $ref: "#/components/schemas/InitiatingTransactionEvmGaslessDto"
            - $ref: "#/components/schemas/InitiatingTransactionSvmDto"
            - $ref: "#/components/schemas/InitiatingTransactionStarkDto"
          discriminator:
            propertyName: type
        steps:
          type: array
          items:
            oneOf:
              - $ref: "#/components/schemas/TransactionStepReadyDto"
              - $ref: "#/components/schemas/TransactionStepDoneDto"
              - $ref: "#/components/schemas/TransactionStepInvalidatedDto"
              - $ref: "#/components/schemas/TransactionStepNotReadyDto"
              - $ref: "#/components/schemas/TransactionStepAutoDto"
              - $ref: "#/components/schemas/WaitStepDoneDto"
              - $ref: "#/components/schemas/WaitStepInvalidatedDto"
              - $ref: "#/components/schemas/WaitStepInProgressDto"
              - $ref: "#/components/schemas/WaitStepNotStartedDto"
              - $ref: "#/components/schemas/UpgradeEventDto"
        fees:
          type: array
          items:
            $ref: "#/components/schemas/FeeGroup"
        metadata:
          type: string
        native:
          type: boolean
        revokeTokenApproval:
          $ref: "#/components/schemas/TokenApprovalParamsDto"
        tokenApproval:
          $ref: "#/components/schemas/TokenApprovalParamsDto"
        gasTokenApproval:
          $ref: "#/components/schemas/TokenApprovalParamsDto"
        token:
          $ref: "#/components/schemas/TokenDto"
        receiveToken:
          $ref: "#/components/schemas/TokenDto"
        receive:
          type: string
        minReceive:
          type: string
      required:
        - type
        - steps
        - fees
        - native
        - token
        - receiveToken
        - receive
    GenericQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - GenericError
        error:
          type: string
      required:
        - type
        - error
    AmountTooLargeQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - AmountTooLarge
        maximum:
          type: string
      required:
        - type
    AmountTooSmallQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - AmountTooSmall
        minimum:
          type: string
      required:
        - type
    PausedQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - Paused
      required:
        - type
    DisabledQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - Disabled
      required:
        - type
    PriceImpactTooHighQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - PriceImpactTooHigh
        priceImpactPercent:
          type: number
        maximumPriceImpactPercent:
          type: number
      required:
        - type
        - priceImpactPercent
        - maximumPriceImpactPercent
    EscapeHatchNotSupportedQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - EscapeHatchNotSupported
      required:
        - type
    ERC777MintToSmartContractQuoteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - ERC777MintToSmartContract
      required:
        - type
    PausedRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - Paused
      required:
        - type
    DisabledRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - Disabled
      required:
        - type
    EscapeHatchNotSupportedRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - EscapeHatchNotSupported
      required:
        - type
    EscapeHatchNotSupportedForSmartContractWalletsRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - EscapeHatchNotSupportedForSmartContractWallets
      required:
        - type
    SlippageTooHighRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - SlippageTooHigh
        slippagePercent:
          type: number
        maximumSlippagePercent:
          type: number
      required:
        - type
        - slippagePercent
        - maximumSlippagePercent
    MaxUsdAmountExceededRouteErrorDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - MaxUsdAmountExceeded
        maxUsdAmount:
          type: number
        usdValue:
          type: number
      required:
        - type
        - maxUsdAmount
    BlockExplorer:
      type: object
      properties:
        url:
          type: string
        family:
          enum:
            - etherscan
            - blockscout
            - routescan
            - starkscan
            - other
          type: string
      required:
        - url
        - family
    ChainVM:
      type: string
      enum:
        - evm
        - svm
        - stark
    ChainType:
      type: string
      enum:
        - mainnet
        - testnet
    Chain:
      type: object
      properties:
        id:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        keys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        uid:
          type: string
          description: Chain UUID (internal identifier)
        blockExplorers:
          type: array
          items:
            $ref: "#/components/schemas/BlockExplorer"
        logoUri:
          type: string
          nullable: true
        vm:
          allOf:
            - $ref: "#/components/schemas/ChainVM"
        type:
          allOf:
            - $ref: "#/components/schemas/ChainType"
        name:
          type: string
        rpcUrl:
          type: string
      required:
        - id
        - keys
        - uid
        - blockExplorers
        - logoUri
        - vm
        - type
        - name
        - rpcUrl
    PaginatedTokensResponse:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: "#/components/schemas/TokenDto"
        nextCursor:
          type: string
          nullable: true
      required:
        - tokens
        - nextCursor
    GetRoutesRequest:
      type: object
      properties:
        fromChainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        toChainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        fromChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        toChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        fromChainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        toChainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        fromTokenAddress:
          type: string
          description: 0x0000000000000000000000000000000000000000 for native tokens
        toTokenAddress:
          type: string
          description: 0x0000000000000000000000000000000000000000 for native tokens
        sender:
          type: string
        recipient:
          type: string
        amount:
          type: string
          description: Amount in wei (or smallest denomination)
        routeIds:
          type: array
          items: &a3
            type: string
            enum:
              - op-deposit-cdm
              - op-deposit-portal
              - op-withdrawal-cdm
              - op-withdrawal-messagepasser
              - arb-deposit-retryable
              - ArbitrumWithdrawal
              - ZksyncDeposit
              - ZksyncWithdrawal
              - Cctp
              - cctp-v1-wh
              - cctp-v1-wh-relayer
              - cctp-v1-wh-executor
              - cctp-v1-ccip
              - CctpV2Standard
              - CctpV2StandardAuto
              - cctp-v2-standard-forwarder
              - cctp-v2-standard-wh-executor
              - CctpV2Fast
              - CctpV2FastAuto
              - cctp-v2-fast-forwarder
              - cctp-v2-fast-wh-executor
              - cctpx-standard
              - cctpx-fast
              - cctpx-standard-forwarder
              - cctpx-fast-forwarder
              - Across
              - Hyperlane
              - Lz
              - stargate-v2-fast
              - Ccip
              - Eco
              - Relay
              - TaikoDeposit
              - TaikoWithdrawal
              - LineaDeposit
              - LineaWithdrawal
              - StarknetDeposit
              - StarknetWithdrawal
              - LxlyDeposit
              - LxlyWithdrawal
              - LxlyCross
              - Aori
              - GasDotZip
              - VeloraDelta
              - Openocean
              - Jupiter
              - BaseBridgeToSvm
              - BaseBridgeToEvm
              - WormholeTokenBridge
              - WormholeNTT
              - mayan-swift
              - mayan-swift-v2
              - mayan-mctp
              - mayan-fast-mctp
              - mayan-fast-mctp-swap
              - mayan-wh
              - mayan-mono
              - IcttTransfer
              - weth-deposit
              - weth-withdraw
              - lido-eth-to-steth
              - lido-steth-to-wsteth
              - lido-wsteth-to-steth
              - lido-eth-to-wsteth
              - signet-deposit
              - signet-withdrawal
              - Superset
        slippage:
          type: number
      required:
        - fromTokenAddress
        - toTokenAddress
        - amount
        - slippage
    RouteRequest:
      type: object
      properties:
        fromChainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        toChainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        fromChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        toChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        fromChainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        toChainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        fromTokenAddress:
          type: string
          description: 0x0000000000000000000000000000000000000000 for native tokens
        toTokenAddress:
          type: string
          description: 0x0000000000000000000000000000000000000000 for native tokens
        sender:
          type: string
        recipient:
          type: string
        amount:
          type: string
          description: Amount in wei (or smallest denomination)
        routeIds:
          type: array
          items: *a3
        escapeHatch:
          type: boolean
        isSmartWallet:
          type: boolean
        slippage:
          type: number
      required:
        - fromTokenAddress
        - toTokenAddress
        - amount
        - isSmartWallet
        - slippage
    RouteId:
      type: string
      enum:
        - op-deposit-cdm
        - op-deposit-portal
        - op-withdrawal-cdm
        - op-withdrawal-messagepasser
        - arb-deposit-retryable
        - ArbitrumWithdrawal
        - ZksyncDeposit
        - ZksyncWithdrawal
        - Cctp
        - cctp-v1-wh
        - cctp-v1-wh-relayer
        - cctp-v1-wh-executor
        - cctp-v1-ccip
        - CctpV2Standard
        - CctpV2StandardAuto
        - cctp-v2-standard-forwarder
        - cctp-v2-standard-wh-executor
        - CctpV2Fast
        - CctpV2FastAuto
        - cctp-v2-fast-forwarder
        - cctp-v2-fast-wh-executor
        - cctpx-standard
        - cctpx-fast
        - cctpx-standard-forwarder
        - cctpx-fast-forwarder
        - Across
        - Hyperlane
        - Lz
        - stargate-v2-fast
        - Ccip
        - Eco
        - Relay
        - TaikoDeposit
        - TaikoWithdrawal
        - LineaDeposit
        - LineaWithdrawal
        - StarknetDeposit
        - StarknetWithdrawal
        - LxlyDeposit
        - LxlyWithdrawal
        - LxlyCross
        - Aori
        - GasDotZip
        - VeloraDelta
        - Openocean
        - Jupiter
        - BaseBridgeToSvm
        - BaseBridgeToEvm
        - WormholeTokenBridge
        - WormholeNTT
        - mayan-swift
        - mayan-swift-v2
        - mayan-mctp
        - mayan-fast-mctp
        - mayan-fast-mctp-swap
        - mayan-wh
        - mayan-mono
        - IcttTransfer
        - weth-deposit
        - weth-withdraw
        - lido-eth-to-steth
        - lido-steth-to-wsteth
        - lido-wsteth-to-steth
        - lido-eth-to-wsteth
        - signet-deposit
        - signet-withdrawal
        - Superset
    RouteMetaDto:
      type: object
      properties:
        id:
          allOf:
            - $ref: "#/components/schemas/RouteId"
        provider:
          $ref: "#/components/schemas/ProviderDto"
        secondaryProvider:
          nullable: true
          type: object
          allOf:
            - $ref: "#/components/schemas/ProviderDto"
        requiresManualSteps:
          type: boolean
      required:
        - id
        - provider
        - secondaryProvider
        - requiresManualSteps
    RouteResult:
      type: object
      properties:
        result:
          oneOf:
            - $ref: "#/components/schemas/QuoteDto"
            - $ref: "#/components/schemas/GenericQuoteErrorDto"
            - $ref: "#/components/schemas/AmountTooLargeQuoteErrorDto"
            - $ref: "#/components/schemas/AmountTooSmallQuoteErrorDto"
            - $ref: "#/components/schemas/PausedQuoteErrorDto"
            - $ref: "#/components/schemas/DisabledQuoteErrorDto"
            - $ref: "#/components/schemas/PriceImpactTooHighQuoteErrorDto"
            - $ref: "#/components/schemas/EscapeHatchNotSupportedQuoteErrorDto"
            - $ref: "#/components/schemas/ERC777MintToSmartContractQuoteErrorDto"
        meta:
          $ref: "#/components/schemas/RouteMetaDto"
      required:
        - result
        - meta
    RouteResponse:
      type: object
      properties:
        request:
          $ref: "#/components/schemas/RouteRequest"
        results:
          type: array
          items:
            $ref: "#/components/schemas/RouteResult"
      required:
        - request
        - results
    ActivityFilterStatus:
      type: string
      enum:
        - pending
        - done
    GetActivityCursor:
      type: object
      properties:
        blockTimestamp:
          type: number
        id:
          type: string
          format: uuid
      required:
        - blockTimestamp
        - id
    WaitStepType:
      type: string
      enum:
        - general
        - refund
        - op-dispute-game
        - op-state-root
        - op-challenge-period
        - base-bridge-state-root
        - cctp-attestation
        - arb-confirmation
        - linea-block-anchored
    WaitStepDoneDto:
      type: object
      properties:
        type:
          type: string
          default: wait
          enum: &a4
            - wait
        waitType:
          allOf:
            - $ref: "#/components/schemas/WaitStepType"
        waitStatus:
          type: string
          default: done
          enum:
            - done
        actualDuration:
          type: number
        expectedDuration:
          type: number
      required:
        - type
        - waitType
        - waitStatus
        - expectedDuration
    UpgradeEventType:
      type: string
      enum:
        - op-upgrade-fault-proofs
        - arb-upgrade-bold
    UpgradeEventSubType:
      type: string
      enum:
        - op-upgrade-fault-proofs
        - op-respected-game-type-change
        - op-upgrade-13
        - op-retirement-timestamp-change
        - arb-bold-upgrade
    UpgradeEventDto:
      type: object
      properties:
        type:
          type: string
          default: upgrade-event
          enum:
            - upgrade-event
        upgradeType:
          allOf:
            - $ref: "#/components/schemas/UpgradeEventType"
        upgradeSubType:
          allOf:
            - $ref: "#/components/schemas/UpgradeEventSubType"
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        timestamp:
          type: number
        blockNumber:
          type: number
      required:
        - type
        - upgradeType
        - upgradeSubType
        - chainUid
        - chainId
        - chainKeys
        - timestamp
        - blockNumber
    WaitStepInvalidatedDto:
      type: object
      properties:
        type:
          type: string
          default: wait
          enum: *a4
        waitType:
          allOf:
            - $ref: "#/components/schemas/WaitStepType"
        waitStatus:
          type: string
          default: invalidated
          enum:
            - invalidated
        actualDuration:
          type: number
        invalidatedBy:
          $ref: "#/components/schemas/UpgradeEventDto"
        expectedDuration:
          type: number
      required:
        - type
        - waitType
        - waitStatus
        - invalidatedBy
        - expectedDuration
    WaitStepInProgressDto:
      type: object
      properties:
        type:
          type: string
          default: wait
          enum: *a4
        waitType:
          allOf:
            - $ref: "#/components/schemas/WaitStepType"
        waitStatus:
          type: string
          default: in-progress
          enum:
            - in-progress
        startedAt:
          type: number
        expectedDuration:
          type: number
      required:
        - type
        - waitType
        - waitStatus
        - startedAt
        - expectedDuration
    WaitStepNotStartedDto:
      type: object
      properties:
        type:
          type: string
          default: wait
          enum: *a4
        waitType:
          allOf:
            - $ref: "#/components/schemas/WaitStepType"
        waitStatus:
          type: string
          default: not-started
          enum:
            - not-started
        expectedDuration:
          type: number
      required:
        - type
        - waitType
        - waitStatus
        - expectedDuration
    RouteAction:
      type: string
      enum:
        - Revoke
        - Approve
        - ApproveGasToken
        - Initiate
        - Prove
        - Finalise
        - Refund
    TransactionStatus:
      type: string
      enum:
        - confirmed
        - reverted
        - dropped
    ConfirmationDtoV2:
      type: object
      properties:
        timestamp:
          type: number
        transactionHash:
          type: string
        status:
          allOf:
            - $ref: "#/components/schemas/TransactionStatus"
      required:
        - timestamp
        - transactionHash
        - status
    TransactionStepDoneDto:
      type: object
      properties:
        type:
          type: string
          default: transaction
          enum: &a5
            - transaction
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
        transactionStatus:
          type: string
          default: done
          enum:
            - done
        confirmation:
          $ref: "#/components/schemas/ConfirmationDtoV2"
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - action
        - transactionStatus
        - confirmation
    TransactionStepInvalidatedDto:
      type: object
      properties:
        type:
          type: string
          default: transaction
          enum: *a5
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
        transactionStatus:
          type: string
          default: invalidated
          enum:
            - invalidated
        confirmation:
          $ref: "#/components/schemas/ConfirmationDtoV2"
        invalidatedBy:
          $ref: "#/components/schemas/UpgradeEventDto"
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - action
        - transactionStatus
        - confirmation
        - invalidatedBy
    TransactionStepNotReadyDto:
      type: object
      properties:
        type:
          type: string
          default: transaction
          enum: *a5
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
        transactionStatus:
          type: string
          default: not-ready
          enum:
            - not-ready
        estimatedGas:
          oneOf:
            - $ref: "#/components/schemas/EvmNotReadyStepGasEstimateDto"
            - $ref: "#/components/schemas/SvmNotReadyStepGasEstimateDto"
            - $ref: "#/components/schemas/StarkNotReadyStepGasEstimateDto"
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - action
        - transactionStatus
        - estimatedGas
    TransactionStepReadyDto:
      type: object
      properties:
        type:
          type: string
          default: transaction
          enum: *a5
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
        transactionStatus:
          type: string
          default: ready
          enum:
            - ready
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - action
        - transactionStatus
    TransactionStepAutoDto:
      type: object
      properties:
        type:
          type: string
          default: transaction
          enum: *a5
        chainUid:
          type: string
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
        transactionStatus:
          type: string
          default: auto
          enum:
            - auto
      required:
        - type
        - chainUid
        - chainId
        - chainKeys
        - action
        - transactionStatus
    ProviderExplorerDetails:
      type: object
      properties:
        provider:
          $ref: "#/components/schemas/ProviderDto"
        name:
          type: string
        link:
          type: string
      required:
        - provider
        - link
    Activity:
      type: object
      properties:
        type:
          allOf:
            - $ref: "#/components/schemas/SendType"
        fromChainUid:
          type: string
          description: Chain UUID (internal identifier)
        fromChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        fromChainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        toChainUid:
          type: string
          description: Chain UUID (internal identifier)
        toChainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        toChainKeys:
          description: Shorthand chain identifier (e.g. eth for Ethereum)
          type: array
          items:
            type: string
        steps:
          type: array
          items:
            oneOf:
              - $ref: "#/components/schemas/TransactionStepDoneDto"
              - $ref: "#/components/schemas/TransactionStepInvalidatedDto"
              - $ref: "#/components/schemas/TransactionStepNotReadyDto"
              - $ref: "#/components/schemas/TransactionStepReadyDto"
              - $ref: "#/components/schemas/TransactionStepAutoDto"
              - $ref: "#/components/schemas/WaitStepDoneDto"
              - $ref: "#/components/schemas/WaitStepInvalidatedDto"
              - $ref: "#/components/schemas/WaitStepInProgressDto"
              - $ref: "#/components/schemas/WaitStepNotStartedDto"
              - $ref: "#/components/schemas/UpgradeEventDto"
        fees:
          type: array
          items:
            $ref: "#/components/schemas/FeeGroup"
        meta:
          $ref: "#/components/schemas/RouteMetaDto"
        id:
          type: string
        from:
          type: string
        to:
          type: string
        amount:
          type: string
        receiveAmount:
          type: string
        fromToken:
          $ref: "#/components/schemas/TokenDto"
        toToken:
          $ref: "#/components/schemas/TokenDto"
        referrer:
          type: string
          nullable: true
        nextCheckTimestamp:
          type: number
          nullable: true
        escapeHatch:
          type: boolean
        providerExplorerDetails:
          nullable: true
          type: object
          allOf:
            - $ref: "#/components/schemas/ProviderExplorerDetails"
      required:
        - type
        - fromChainUid
        - fromChainId
        - fromChainKeys
        - toChainUid
        - toChainId
        - toChainKeys
        - steps
        - fees
        - meta
        - id
        - from
        - to
        - amount
        - receiveAmount
        - fromToken
        - toToken
        - referrer
        - nextCheckTimestamp
        - escapeHatch
        - providerExplorerDetails
    GetStepTransactionRequest:
      type: object
      properties:
        id:
          type: string
        submitter:
          type: string
        action:
          allOf:
            - $ref: "#/components/schemas/RouteAction"
      required:
        - id
        - submitter
        - action
    IndexTransactionRequest:
      type: object
      properties:
        routeId:
          allOf:
            - $ref: "#/components/schemas/RouteId"
        chainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        metadata:
          type: string
        txHash:
          type: string
      required:
        - routeId
        - txHash
    SubmitGaslessRequest:
      type: object
      properties:
        routeId:
          allOf:
            - $ref: "#/components/schemas/RouteId"
        chainUid:
          type: string
          format: uuid
          description: Chain UUID (internal identifier)
        chainId:
          type: string
          description: Native chain ID (e.g. 1 for Ethereum)
        chainKey:
          type: string
          description: Shorthand chain identifier (e.g. eth for Ethereum)
        signature:
          type: string
        metadata:
          type: string
      required:
        - routeId
        - signature
        - metadata
