@otim/utils 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.mts +1910 -7
- package/dist/api/index.d.mts.map +1 -0
- package/dist/api/index.d.ts +1909 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1530 -1996
- package/dist/api/index.js.map +1 -7
- package/dist/api/index.mjs +1407 -1964
- package/dist/api/index.mjs.map +1 -7
- package/dist/api-urls-B-GTEiT3.d.mts +49 -0
- package/dist/api-urls-B-GTEiT3.d.mts.map +1 -0
- package/dist/api-urls-Cd20DG4i.js +171 -0
- package/dist/api-urls-Cd20DG4i.js.map +1 -0
- package/dist/api-urls-DJcIKBCy.mjs +135 -0
- package/dist/api-urls-DJcIKBCy.mjs.map +1 -0
- package/dist/api-urls-SKeIQMoZ.d.ts +49 -0
- package/dist/api-urls-SKeIQMoZ.d.ts.map +1 -0
- package/dist/chains/index.d.mts +13568 -16
- package/dist/chains/index.d.mts.map +1 -0
- package/dist/chains/index.d.ts +13567 -15
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +3615 -424
- package/dist/chains/index.js.map +1 -7
- package/dist/chains/index.mjs +3561 -440
- package/dist/chains/index.mjs.map +1 -7
- package/dist/chunk-kSYXY2_d.js +34 -0
- package/dist/client-factory-7xUSPC9I.mjs +42 -0
- package/dist/client-factory-7xUSPC9I.mjs.map +1 -0
- package/dist/client-factory-C3A4RPdj.d.ts +22 -0
- package/dist/client-factory-C3A4RPdj.d.ts.map +1 -0
- package/dist/client-factory-CTI_Nt35.js +49 -0
- package/dist/client-factory-CTI_Nt35.js.map +1 -0
- package/dist/client-factory-DOL0ZTWy.d.mts +22 -0
- package/dist/client-factory-DOL0ZTWy.d.mts.map +1 -0
- package/dist/constants.d.mts +14 -24
- package/dist/constants.d.mts.map +1 -0
- package/dist/constants.d.ts +13 -23
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +31 -46
- package/dist/constants.js.map +1 -7
- package/dist/constants.mjs +22 -26
- package/dist/constants.mjs.map +1 -7
- package/dist/date-CFzrYcjE.js +536 -0
- package/dist/date-CFzrYcjE.js.map +1 -0
- package/dist/date-gBac-Om9.mjs +313 -0
- package/dist/date-gBac-Om9.mjs.map +1 -0
- package/dist/defineProperty-DbMdhrDE.js +49 -0
- package/dist/defineProperty-DzhmunJg.mjs +43 -0
- package/dist/formatters/index.d.mts +1 -2
- package/dist/formatters/index.d.ts +1 -2
- package/dist/formatters/index.js +0 -19
- package/dist/formatters/index.mjs +1 -1
- package/dist/helpers/index.d.mts +562 -19
- package/dist/helpers/index.d.mts.map +1 -0
- package/dist/helpers/index.d.ts +561 -18
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +106 -1344
- package/dist/helpers/index.mjs +3 -1315
- package/dist/helpers-BNiSxjGq.mjs +895 -0
- package/dist/helpers-BNiSxjGq.mjs.map +1 -0
- package/dist/helpers-DoC7Xl12.js +1291 -0
- package/dist/helpers-DoC7Xl12.js.map +1 -0
- package/dist/index-BuJcJPoZ.d.ts +540 -0
- package/dist/index-BuJcJPoZ.d.ts.map +1 -0
- package/dist/index-DB0QdfAG.d.mts +540 -0
- package/dist/index-DB0QdfAG.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +1 -1
- package/dist/instructions/index.d.mts +687 -6
- package/dist/instructions/index.d.mts.map +1 -0
- package/dist/instructions/index.d.ts +686 -5
- package/dist/instructions/index.d.ts.map +1 -1
- package/dist/instructions/index.js +1912 -1091
- package/dist/instructions/index.js.map +1 -7
- package/dist/instructions/index.mjs +1887 -1058
- package/dist/instructions/index.mjs.map +1 -7
- package/dist/payments/index.d.mts +322 -16
- package/dist/payments/index.d.mts.map +1 -0
- package/dist/payments/index.d.ts +321 -15
- package/dist/payments/index.d.ts.map +1 -1
- package/dist/payments/index.js +616 -1258
- package/dist/payments/index.js.map +1 -7
- package/dist/payments/index.mjs +594 -1236
- package/dist/payments/index.mjs.map +1 -7
- package/dist/schemas/index.d.mts +2 -10
- package/dist/schemas/index.d.ts +2 -10
- package/dist/schemas/index.js +350 -393
- package/dist/schemas/index.js.map +1 -7
- package/dist/schemas/index.mjs +283 -371
- package/dist/schemas/index.mjs.map +1 -7
- package/dist/server/index.d.mts +354 -3
- package/dist/server/index.d.mts.map +1 -0
- package/dist/server/index.d.ts +353 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +248 -435
- package/dist/server/index.js.map +1 -7
- package/dist/server/index.mjs +199 -404
- package/dist/server/index.mjs.map +1 -7
- package/dist/server/react.d.mts +16 -0
- package/dist/server/react.d.mts.map +1 -0
- package/dist/server/react.d.ts +16 -0
- package/dist/server/react.d.ts.map +1 -0
- package/dist/server/react.js +30 -0
- package/dist/server/react.js.map +1 -0
- package/dist/server/react.mjs +28 -0
- package/dist/server/react.mjs.map +1 -0
- package/dist/wallet/wagmi/index.d.mts +23 -2
- package/dist/wallet/wagmi/index.d.mts.map +1 -0
- package/dist/wallet/wagmi/index.d.ts +22 -1
- package/dist/wallet/wagmi/index.d.ts.map +1 -1
- package/dist/wallet/wagmi/index.js +86 -417
- package/dist/wallet/wagmi/index.js.map +1 -7
- package/dist/wallet/wagmi/index.mjs +82 -418
- package/dist/wallet/wagmi/index.mjs.map +1 -7
- package/package.json +38 -27
- package/dist/api/api.d.mts +0 -18
- package/dist/api/api.d.ts +0 -18
- package/dist/api/api.d.ts.map +0 -1
- package/dist/api/core/error.d.mts +0 -74
- package/dist/api/core/error.d.ts +0 -74
- package/dist/api/core/error.d.ts.map +0 -1
- package/dist/api/core/index.d.mts +0 -4
- package/dist/api/core/index.d.ts +0 -4
- package/dist/api/core/index.d.ts.map +0 -1
- package/dist/api/core/instance.d.mts +0 -13
- package/dist/api/core/instance.d.ts +0 -13
- package/dist/api/core/instance.d.ts.map +0 -1
- package/dist/api/core/service.d.mts +0 -51
- package/dist/api/core/service.d.ts +0 -51
- package/dist/api/core/service.d.ts.map +0 -1
- package/dist/api/schemas/account.d.mts +0 -44
- package/dist/api/schemas/account.d.ts +0 -44
- package/dist/api/schemas/account.d.ts.map +0 -1
- package/dist/api/schemas/activity.d.mts +0 -277
- package/dist/api/schemas/activity.d.ts +0 -277
- package/dist/api/schemas/activity.d.ts.map +0 -1
- package/dist/api/schemas/auth.d.mts +0 -127
- package/dist/api/schemas/auth.d.ts +0 -127
- package/dist/api/schemas/auth.d.ts.map +0 -1
- package/dist/api/schemas/chain.d.mts +0 -15
- package/dist/api/schemas/chain.d.ts +0 -15
- package/dist/api/schemas/chain.d.ts.map +0 -1
- package/dist/api/schemas/config.d.mts +0 -33
- package/dist/api/schemas/config.d.ts +0 -33
- package/dist/api/schemas/config.d.ts.map +0 -1
- package/dist/api/schemas/contacts.d.mts +0 -27
- package/dist/api/schemas/contacts.d.ts +0 -27
- package/dist/api/schemas/contacts.d.ts.map +0 -1
- package/dist/api/schemas/index.d.mts +0 -12
- package/dist/api/schemas/index.d.ts +0 -12
- package/dist/api/schemas/index.d.ts.map +0 -1
- package/dist/api/schemas/instruction.d.mts +0 -446
- package/dist/api/schemas/instruction.d.ts +0 -446
- package/dist/api/schemas/instruction.d.ts.map +0 -1
- package/dist/api/schemas/integration.d.mts +0 -166
- package/dist/api/schemas/integration.d.ts +0 -166
- package/dist/api/schemas/integration.d.ts.map +0 -1
- package/dist/api/schemas/operating-account.d.mts +0 -11
- package/dist/api/schemas/operating-account.d.ts +0 -11
- package/dist/api/schemas/operating-account.d.ts.map +0 -1
- package/dist/api/schemas/payments.d.mts +0 -241
- package/dist/api/schemas/payments.d.ts +0 -241
- package/dist/api/schemas/payments.d.ts.map +0 -1
- package/dist/api/schemas/transaction.d.mts +0 -37
- package/dist/api/schemas/transaction.d.ts +0 -37
- package/dist/api/schemas/transaction.d.ts.map +0 -1
- package/dist/api/services/account.d.mts +0 -8
- package/dist/api/services/account.d.ts +0 -8
- package/dist/api/services/account.d.ts.map +0 -1
- package/dist/api/services/activity.d.mts +0 -7
- package/dist/api/services/activity.d.ts +0 -7
- package/dist/api/services/activity.d.ts.map +0 -1
- package/dist/api/services/auth.d.mts +0 -12
- package/dist/api/services/auth.d.ts +0 -12
- package/dist/api/services/auth.d.ts.map +0 -1
- package/dist/api/services/base.d.mts +0 -10
- package/dist/api/services/base.d.ts +0 -10
- package/dist/api/services/base.d.ts.map +0 -1
- package/dist/api/services/config.d.mts +0 -10
- package/dist/api/services/config.d.ts +0 -10
- package/dist/api/services/config.d.ts.map +0 -1
- package/dist/api/services/contacts.d.mts +0 -8
- package/dist/api/services/contacts.d.ts +0 -8
- package/dist/api/services/contacts.d.ts.map +0 -1
- package/dist/api/services/developer.d.mts +0 -6
- package/dist/api/services/developer.d.ts +0 -6
- package/dist/api/services/developer.d.ts.map +0 -1
- package/dist/api/services/index.d.mts +0 -13
- package/dist/api/services/index.d.ts +0 -13
- package/dist/api/services/index.d.ts.map +0 -1
- package/dist/api/services/instruction.d.mts +0 -12
- package/dist/api/services/instruction.d.ts +0 -12
- package/dist/api/services/instruction.d.ts.map +0 -1
- package/dist/api/services/integration.d.mts +0 -8
- package/dist/api/services/integration.d.ts +0 -8
- package/dist/api/services/integration.d.ts.map +0 -1
- package/dist/api/services/operating-account.d.mts +0 -8
- package/dist/api/services/operating-account.d.ts +0 -8
- package/dist/api/services/operating-account.d.ts.map +0 -1
- package/dist/api/services/payments.d.mts +0 -14
- package/dist/api/services/payments.d.ts +0 -14
- package/dist/api/services/payments.d.ts.map +0 -1
- package/dist/api/services/transaction.d.mts +0 -8
- package/dist/api/services/transaction.d.ts +0 -8
- package/dist/api/services/transaction.d.ts.map +0 -1
- package/dist/api/services/uniswap-token-list-service.d.mts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts.map +0 -1
- package/dist/api/utils/index.d.mts +0 -2
- package/dist/api/utils/index.d.ts +0 -2
- package/dist/api/utils/index.d.ts.map +0 -1
- package/dist/api/utils/pagination.d.mts +0 -32
- package/dist/api/utils/pagination.d.ts +0 -32
- package/dist/api/utils/pagination.d.ts.map +0 -1
- package/dist/chains/config/all-chains.d.mts +0 -4243
- package/dist/chains/config/all-chains.d.ts +0 -4243
- package/dist/chains/config/all-chains.d.ts.map +0 -1
- package/dist/chains/config/custom-chains.d.mts +0 -49
- package/dist/chains/config/custom-chains.d.ts +0 -49
- package/dist/chains/config/custom-chains.d.ts.map +0 -1
- package/dist/chains/config/mainnet-chains.d.mts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts.map +0 -1
- package/dist/chains/config/supported-chains.d.mts +0 -2172
- package/dist/chains/config/supported-chains.d.ts +0 -2172
- package/dist/chains/config/supported-chains.d.ts.map +0 -1
- package/dist/chains/config/testnet-chains.d.mts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts.map +0 -1
- package/dist/chains/lambda/chain-mapping.d.mts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts.map +0 -1
- package/dist/chains/lambda/index.d.mts +0 -2
- package/dist/chains/lambda/index.d.ts +0 -2
- package/dist/chains/lambda/index.d.ts.map +0 -1
- package/dist/chains/tokens/chain-tokens.d.mts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts.map +0 -1
- package/dist/chains/tokens/token-addresses.d.mts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts.map +0 -1
- package/dist/chains/tokens/token-metadata.d.mts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts.map +0 -1
- package/dist/chains/types.d.mts +0 -23
- package/dist/chains/types.d.ts +0 -23
- package/dist/chains/types.d.ts.map +0 -1
- package/dist/chains/utils/filter-tokens.d.mts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts.map +0 -1
- package/dist/chains/utils/stablecoin.d.mts +0 -7
- package/dist/chains/utils/stablecoin.d.ts +0 -7
- package/dist/chains/utils/stablecoin.d.ts.map +0 -1
- package/dist/chains/utils/token-maps.d.mts +0 -10
- package/dist/chains/utils/token-maps.d.ts +0 -10
- package/dist/chains/utils/token-maps.d.ts.map +0 -1
- package/dist/env.d.mts +0 -17
- package/dist/env.d.ts +0 -17
- package/dist/env.d.ts.map +0 -1
- package/dist/formatters/index.d.ts.map +0 -1
- package/dist/formatters/index.js.map +0 -7
- package/dist/formatters/index.mjs.map +0 -7
- package/dist/helpers/address.d.mts +0 -7
- package/dist/helpers/address.d.ts +0 -7
- package/dist/helpers/address.d.ts.map +0 -1
- package/dist/helpers/blockchain.d.mts +0 -41
- package/dist/helpers/blockchain.d.ts +0 -41
- package/dist/helpers/blockchain.d.ts.map +0 -1
- package/dist/helpers/date.d.mts +0 -70
- package/dist/helpers/date.d.ts +0 -70
- package/dist/helpers/date.d.ts.map +0 -1
- package/dist/helpers/datetime.d.mts +0 -57
- package/dist/helpers/datetime.d.ts +0 -57
- package/dist/helpers/datetime.d.ts.map +0 -1
- package/dist/helpers/domain.d.mts +0 -2
- package/dist/helpers/domain.d.ts +0 -2
- package/dist/helpers/domain.d.ts.map +0 -1
- package/dist/helpers/index.js.map +0 -7
- package/dist/helpers/index.mjs.map +0 -7
- package/dist/helpers/intl.d.mts +0 -20
- package/dist/helpers/intl.d.ts +0 -20
- package/dist/helpers/intl.d.ts.map +0 -1
- package/dist/helpers/logger.d.mts +0 -26
- package/dist/helpers/logger.d.ts +0 -26
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/mask-options.d.mts +0 -10
- package/dist/helpers/mask-options.d.ts +0 -10
- package/dist/helpers/mask-options.d.ts.map +0 -1
- package/dist/helpers/num-formatter.d.mts +0 -3
- package/dist/helpers/num-formatter.d.ts +0 -3
- package/dist/helpers/num-formatter.d.ts.map +0 -1
- package/dist/helpers/polling.d.mts +0 -39
- package/dist/helpers/polling.d.ts +0 -39
- package/dist/helpers/polling.d.ts.map +0 -1
- package/dist/helpers/random.d.mts +0 -10
- package/dist/helpers/random.d.ts +0 -10
- package/dist/helpers/random.d.ts.map +0 -1
- package/dist/helpers/sdk-loader.d.mts +0 -25
- package/dist/helpers/sdk-loader.d.ts +0 -25
- package/dist/helpers/sdk-loader.d.ts.map +0 -1
- package/dist/helpers/signatures.d.mts +0 -17
- package/dist/helpers/signatures.d.ts +0 -17
- package/dist/helpers/signatures.d.ts.map +0 -1
- package/dist/helpers/string.d.mts +0 -17
- package/dist/helpers/string.d.ts +0 -17
- package/dist/helpers/string.d.ts.map +0 -1
- package/dist/helpers/types.d.mts +0 -39
- package/dist/helpers/types.d.ts +0 -39
- package/dist/helpers/types.d.ts.map +0 -1
- package/dist/helpers/url.d.mts +0 -11
- package/dist/helpers/url.d.ts +0 -11
- package/dist/helpers/url.d.ts.map +0 -1
- package/dist/helpers/window.d.mts +0 -37
- package/dist/helpers/window.d.ts +0 -37
- package/dist/helpers/window.d.ts.map +0 -1
- package/dist/helpers/zod.d.mts +0 -51
- package/dist/helpers/zod.d.ts +0 -51
- package/dist/helpers/zod.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/instructions/actions/index.d.mts +0 -5
- package/dist/instructions/actions/index.d.ts +0 -5
- package/dist/instructions/actions/index.d.ts.map +0 -1
- package/dist/instructions/actions/refuel/index.d.mts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts.map +0 -1
- package/dist/instructions/actions/swap/index.d.mts +0 -19
- package/dist/instructions/actions/swap/index.d.ts +0 -19
- package/dist/instructions/actions/swap/index.d.ts.map +0 -1
- package/dist/instructions/actions/sweep/index.d.mts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts.map +0 -1
- package/dist/instructions/actions/transfer/index.d.mts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts.map +0 -1
- package/dist/instructions/activate.d.mts +0 -84
- package/dist/instructions/activate.d.ts +0 -84
- package/dist/instructions/activate.d.ts.map +0 -1
- package/dist/instructions/build.d.mts +0 -146
- package/dist/instructions/build.d.ts +0 -146
- package/dist/instructions/build.d.ts.map +0 -1
- package/dist/instructions/constants.d.mts +0 -9
- package/dist/instructions/constants.d.ts +0 -9
- package/dist/instructions/constants.d.ts.map +0 -1
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +0 -1
- package/dist/instructions/types.d.mts +0 -289
- package/dist/instructions/types.d.ts +0 -289
- package/dist/instructions/types.d.ts.map +0 -1
- package/dist/payments/action-names.d.mts +0 -16
- package/dist/payments/action-names.d.ts +0 -16
- package/dist/payments/action-names.d.ts.map +0 -1
- package/dist/payments/actions/index.d.mts +0 -5
- package/dist/payments/actions/index.d.ts +0 -5
- package/dist/payments/actions/index.d.ts.map +0 -1
- package/dist/payments/actions/sweep-cctp.d.mts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts.map +0 -1
- package/dist/payments/actions/sweep-erc20.d.mts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts.map +0 -1
- package/dist/payments/actions/sweep-uniswap-v3.d.mts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +0 -1
- package/dist/payments/actions/sweep.d.mts +0 -12
- package/dist/payments/actions/sweep.d.ts +0 -12
- package/dist/payments/actions/sweep.d.ts.map +0 -1
- package/dist/payments/build.d.mts +0 -28
- package/dist/payments/build.d.ts +0 -28
- package/dist/payments/build.d.ts.map +0 -1
- package/dist/payments/chain-token-config-builder.d.mts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts.map +0 -1
- package/dist/payments/comprehensive-payment-request.d.mts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts.map +0 -1
- package/dist/payments/config/cctp.d.mts +0 -14
- package/dist/payments/config/cctp.d.ts +0 -14
- package/dist/payments/config/cctp.d.ts.map +0 -1
- package/dist/payments/config/index.d.mts +0 -3
- package/dist/payments/config/index.d.ts +0 -3
- package/dist/payments/config/index.d.ts.map +0 -1
- package/dist/payments/config/tokens.d.mts +0 -14
- package/dist/payments/config/tokens.d.ts +0 -14
- package/dist/payments/config/tokens.d.ts.map +0 -1
- package/dist/payments/instruction-registry.d.mts +0 -19
- package/dist/payments/instruction-registry.d.ts +0 -19
- package/dist/payments/instruction-registry.d.ts.map +0 -1
- package/dist/payments/payment-metadata-builder.d.mts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts.map +0 -1
- package/dist/payments/payment-metadata.d.mts +0 -15
- package/dist/payments/payment-metadata.d.ts +0 -15
- package/dist/payments/payment-metadata.d.ts.map +0 -1
- package/dist/payments/payment-request-token-resolver.d.mts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts.map +0 -1
- package/dist/payments/types.d.mts +0 -40
- package/dist/payments/types.d.ts +0 -40
- package/dist/payments/types.d.ts.map +0 -1
- package/dist/payments/validation.d.mts +0 -19
- package/dist/payments/validation.d.ts +0 -19
- package/dist/payments/validation.d.ts.map +0 -1
- package/dist/schemas/account.d.mts +0 -9
- package/dist/schemas/account.d.ts +0 -9
- package/dist/schemas/account.d.ts.map +0 -1
- package/dist/schemas/brand.d.mts +0 -7
- package/dist/schemas/brand.d.ts +0 -7
- package/dist/schemas/brand.d.ts.map +0 -1
- package/dist/schemas/contact.d.mts +0 -18
- package/dist/schemas/contact.d.ts +0 -18
- package/dist/schemas/contact.d.ts.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/instruction.d.mts +0 -248
- package/dist/schemas/instruction.d.ts +0 -248
- package/dist/schemas/instruction.d.ts.map +0 -1
- package/dist/schemas/misc.d.mts +0 -36
- package/dist/schemas/misc.d.ts +0 -36
- package/dist/schemas/misc.d.ts.map +0 -1
- package/dist/schemas/payment.d.mts +0 -64
- package/dist/schemas/payment.d.ts +0 -64
- package/dist/schemas/payment.d.ts.map +0 -1
- package/dist/schemas/token.d.mts +0 -17
- package/dist/schemas/token.d.ts +0 -17
- package/dist/schemas/token.d.ts.map +0 -1
- package/dist/schemas/transaction.d.mts +0 -65
- package/dist/schemas/transaction.d.ts +0 -65
- package/dist/schemas/transaction.d.ts.map +0 -1
- package/dist/schemas/user.d.mts +0 -24
- package/dist/schemas/user.d.ts +0 -24
- package/dist/schemas/user.d.ts.map +0 -1
- package/dist/server/client.d.mts +0 -3
- package/dist/server/client.d.ts +0 -3
- package/dist/server/client.d.ts.map +0 -1
- package/dist/server/routes/account.d.mts +0 -4
- package/dist/server/routes/account.d.ts +0 -4
- package/dist/server/routes/account.d.ts.map +0 -1
- package/dist/server/routes/auth.d.mts +0 -28
- package/dist/server/routes/auth.d.ts +0 -28
- package/dist/server/routes/auth.d.ts.map +0 -1
- package/dist/server/routes/bridge.d.mts +0 -254
- package/dist/server/routes/bridge.d.ts +0 -254
- package/dist/server/routes/bridge.d.ts.map +0 -1
- package/dist/server/routes/config.d.mts +0 -3
- package/dist/server/routes/config.d.ts +0 -3
- package/dist/server/routes/config.d.ts.map +0 -1
- package/dist/server/routes/index.d.mts +0 -8
- package/dist/server/routes/index.d.ts +0 -8
- package/dist/server/routes/index.d.ts.map +0 -1
- package/dist/server/routes/instruction.d.mts +0 -4
- package/dist/server/routes/instruction.d.ts +0 -4
- package/dist/server/routes/instruction.d.ts.map +0 -1
- package/dist/server/routes/integration.d.mts +0 -4
- package/dist/server/routes/integration.d.ts +0 -4
- package/dist/server/routes/integration.d.ts.map +0 -1
- package/dist/server/routes/payments.d.mts +0 -5
- package/dist/server/routes/payments.d.ts +0 -5
- package/dist/server/routes/payments.d.ts.map +0 -1
- package/dist/server/routes/verify.d.mts +0 -3
- package/dist/server/routes/verify.d.ts +0 -3
- package/dist/server/routes/verify.d.ts.map +0 -1
- package/dist/wallet/wagmi/config.d.mts +0 -18
- package/dist/wallet/wagmi/config.d.ts +0 -18
- package/dist/wallet/wagmi/config.d.ts.map +0 -1
package/dist/api/index.d.mts
CHANGED
|
@@ -1,7 +1,1910 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//#
|
|
1
|
+
import { ZodType, z as z$1 } from "zod";
|
|
2
|
+
import { AxiosInstance, AxiosRequestConfig, CreateAxiosDefaults } from "axios";
|
|
3
|
+
import { Payments, Transactions, User, UserPreferences } from "@otim/utils/schemas";
|
|
4
|
+
import { Nullish, Optional } from "@otim/utils/helpers";
|
|
5
|
+
import { OtimEnvironment } from "@otim/utils/server";
|
|
6
|
+
|
|
7
|
+
//#region src/api/core/error.d.ts
|
|
8
|
+
declare const apiErrorSchema: z$1.ZodObject<{
|
|
9
|
+
code: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
10
|
+
message: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
11
|
+
errorCode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
12
|
+
errorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13
|
+
status: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
14
|
+
context: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
15
|
+
field_errors: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
16
|
+
}, z$1.core.$strip>>>;
|
|
17
|
+
}, z$1.core.$strip>;
|
|
18
|
+
declare const errorResponseSchema: z$1.ZodObject<{
|
|
19
|
+
message: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
20
|
+
errorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
21
|
+
errorCode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
22
|
+
errors: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
|
|
23
|
+
code: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
24
|
+
message: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
25
|
+
errorCode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
26
|
+
errorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
27
|
+
status: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
28
|
+
context: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
29
|
+
field_errors: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
30
|
+
}, z$1.core.$strip>>>;
|
|
31
|
+
}, z$1.core.$strip>>>>;
|
|
32
|
+
}, z$1.core.$strip>;
|
|
33
|
+
type ApiErrorPayload = z$1.infer<typeof apiErrorSchema>;
|
|
34
|
+
type ErrorResponsePayload = z$1.infer<typeof errorResponseSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* Normalize Error Shapes Into One User‑Facing Message.
|
|
37
|
+
* Why: Prefer server messages and avoid leaking technical details.
|
|
38
|
+
*
|
|
39
|
+
* @param maybeError An unknown error thrown by an HTTP client, SDK, or server.
|
|
40
|
+
* @param fallbackMessage Message used when the payload cannot be parsed or
|
|
41
|
+
* lacks a message.
|
|
42
|
+
*/
|
|
43
|
+
declare function getErrorMessage(maybeError: any, fallbackMessage?: string): string;
|
|
44
|
+
interface ErrorMessageWithCode {
|
|
45
|
+
message: string;
|
|
46
|
+
code: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Provide A Unified Error Message And Code For UI/Control‑Flow.
|
|
50
|
+
* Why: Normalize shapes and fall back to an "unknown" code.
|
|
51
|
+
*
|
|
52
|
+
* @param maybeError An unknown error thrown by an HTTP client, SDK, or server.
|
|
53
|
+
* @param fallbackMessage Message used when the payload cannot be parsed or is
|
|
54
|
+
* empty.
|
|
55
|
+
*/
|
|
56
|
+
declare function getErrorMessageWithCode(maybeError: any, fallbackMessage?: string): ErrorMessageWithCode;
|
|
57
|
+
/**
|
|
58
|
+
* Detect User Rejection (e.g., Canceled Wallet Signature).
|
|
59
|
+
* Why: Treat cancellations as benign and keep telemetry clean.
|
|
60
|
+
*
|
|
61
|
+
* @param error The error object to check.
|
|
62
|
+
* @returns true if the error is a user rejection, false otherwise.
|
|
63
|
+
*/
|
|
64
|
+
declare function isUserRejectionError(error: any): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Determine If An Error Code Is User‑Addressable.
|
|
67
|
+
* Why: 1000–1999 are intended to be surfaced to users.
|
|
68
|
+
*
|
|
69
|
+
* @param errorCode The error code to check.
|
|
70
|
+
* @param errorMessage Optional error message.
|
|
71
|
+
*/
|
|
72
|
+
declare const isUserAddressableError: (errorCode: number, errorMessage: Nullish<string>) => boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Detect Whether An Error Looks Technical/Low‑Level.
|
|
75
|
+
* Why: Avoid leaking framework/runtime details to users; rely on logging.
|
|
76
|
+
*/
|
|
77
|
+
declare function isTechnicalError(error: any): boolean;
|
|
78
|
+
declare function getUserFriendlyErrorMessage(error: any, fallbackMessage?: string): string;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/api/core/instance.d.ts
|
|
81
|
+
interface CreateInstanceParameters extends CreateAxiosDefaults {}
|
|
82
|
+
declare const createInstance: (config?: CreateAxiosDefaults) => AxiosInstance;
|
|
83
|
+
declare const createAbortController: () => AbortController;
|
|
84
|
+
type APIClientInit = CreateInstanceParameters | {
|
|
85
|
+
instance: AxiosInstance;
|
|
86
|
+
};
|
|
87
|
+
declare const isInstanceInit: (init: Optional<APIClientInit>) => init is {
|
|
88
|
+
instance: AxiosInstance;
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/api/core/service.d.ts
|
|
92
|
+
interface ServiceResponse<T> {
|
|
93
|
+
data: T;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Response shape for endpoints that return lists with pagination metadata.
|
|
97
|
+
*/
|
|
98
|
+
interface PaginatedServiceResponse<T> {
|
|
99
|
+
data: T;
|
|
100
|
+
hasMore: boolean;
|
|
101
|
+
}
|
|
102
|
+
interface PaginatedRequest {
|
|
103
|
+
page?: number;
|
|
104
|
+
perPage?: number;
|
|
105
|
+
}
|
|
106
|
+
declare class ServiceError extends Error {
|
|
107
|
+
readonly code?: string | undefined;
|
|
108
|
+
constructor(message: string, code?: string | undefined);
|
|
109
|
+
}
|
|
110
|
+
declare const HttpMethod: {
|
|
111
|
+
readonly Get: "GET";
|
|
112
|
+
readonly Post: "POST";
|
|
113
|
+
readonly Put: "PUT";
|
|
114
|
+
readonly Delete: "DELETE";
|
|
115
|
+
};
|
|
116
|
+
type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
117
|
+
/**
|
|
118
|
+
* Strongly-typed request config for services.
|
|
119
|
+
* - `data` is the request body or query payload.
|
|
120
|
+
* - `schema` is used to parse and validate the response.
|
|
121
|
+
* - `validateResponse`, when provided, is evaluated prior to schema parsing.
|
|
122
|
+
*/
|
|
123
|
+
interface ServiceRequestConfig<TRequest, Schema extends ZodType> extends AxiosRequestConfig {
|
|
124
|
+
data?: TRequest;
|
|
125
|
+
schema?: Schema;
|
|
126
|
+
validateResponse?: (data: unknown) => boolean;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/api/schemas/account.d.ts
|
|
130
|
+
declare const DelegationStatus: {
|
|
131
|
+
readonly Undelegated: "Undelegated";
|
|
132
|
+
readonly Pending: "Pending";
|
|
133
|
+
readonly Delegated: "Delegated";
|
|
134
|
+
readonly Expired: "Expired";
|
|
135
|
+
readonly Errored: "Errored";
|
|
136
|
+
};
|
|
137
|
+
type DelegationStatus = (typeof DelegationStatus)[keyof typeof DelegationStatus];
|
|
138
|
+
declare const delegationStatusValues: [DelegationStatus, ...DelegationStatus[]];
|
|
139
|
+
declare const delegationStatusSchema: z$1.ZodEnum<{
|
|
140
|
+
Errored: "Errored";
|
|
141
|
+
Undelegated: "Undelegated";
|
|
142
|
+
Pending: "Pending";
|
|
143
|
+
Delegated: "Delegated";
|
|
144
|
+
Expired: "Expired";
|
|
145
|
+
}>;
|
|
146
|
+
declare const delegationStatusRequestSchema: z$1.ZodObject<{
|
|
147
|
+
address: z$1.ZodString;
|
|
148
|
+
chainId: z$1.ZodNumber;
|
|
149
|
+
}, z$1.core.$strip>;
|
|
150
|
+
type DelegationStatusRequest = z$1.infer<typeof delegationStatusRequestSchema>;
|
|
151
|
+
declare const delegationStatusResponseSchema: z$1.ZodObject<{
|
|
152
|
+
delegationStatus: z$1.ZodEnum<{
|
|
153
|
+
Errored: "Errored";
|
|
154
|
+
Undelegated: "Undelegated";
|
|
155
|
+
Pending: "Pending";
|
|
156
|
+
Delegated: "Delegated";
|
|
157
|
+
Expired: "Expired";
|
|
158
|
+
}>;
|
|
159
|
+
}, z$1.core.$strip>;
|
|
160
|
+
type DelegationStatusResponse = z$1.infer<typeof delegationStatusResponseSchema>;
|
|
161
|
+
declare const delegationCreateRequestSchema: z$1.ZodObject<{
|
|
162
|
+
signedAuthorization: z$1.ZodString;
|
|
163
|
+
signerAddress: z$1.ZodString;
|
|
164
|
+
}, z$1.core.$strip>;
|
|
165
|
+
type DelegationCreateRequest = z$1.infer<typeof delegationCreateRequestSchema>;
|
|
166
|
+
declare const delegationCreateResponseSchema: z$1.ZodObject<{
|
|
167
|
+
success: z$1.ZodBoolean;
|
|
168
|
+
transactionHash: z$1.ZodOptional<z$1.ZodString>;
|
|
169
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
170
|
+
}, z$1.core.$strip>;
|
|
171
|
+
type DelegationCreateResponse = z$1.infer<typeof delegationCreateResponseSchema>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/api/schemas/activity.d.ts
|
|
174
|
+
declare const actionNameSchema: z$1.ZodEnum<{
|
|
175
|
+
Sweep: "Sweep";
|
|
176
|
+
SweepCCTP: "SweepCCTP";
|
|
177
|
+
SweepERC20: "SweepERC20";
|
|
178
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
179
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
180
|
+
Refuel: "Refuel";
|
|
181
|
+
RefuelERC20: "RefuelERC20";
|
|
182
|
+
Transfer: "Transfer";
|
|
183
|
+
TransferERC20: "TransferERC20";
|
|
184
|
+
TransferCCTP: "TransferCCTP";
|
|
185
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
186
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
187
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
188
|
+
DepositERC4626: "DepositERC4626";
|
|
189
|
+
WithdrawERC4626: "WithdrawERC4626";
|
|
190
|
+
SweepWithdrawERC4626: "SweepWithdrawERC4626";
|
|
191
|
+
SweepDepositAccount: "SweepDepositAccount";
|
|
192
|
+
SweepDepositAccountERC20: "SweepDepositAccountERC20";
|
|
193
|
+
CallOnce: "CallOnce";
|
|
194
|
+
}>;
|
|
195
|
+
type ActionName = z$1.infer<typeof actionNameSchema>;
|
|
196
|
+
/**
|
|
197
|
+
* Formats a payment rail value to a human-readable label.
|
|
198
|
+
*/
|
|
199
|
+
declare function formatPaymentRail(paymentRail: string | undefined): string;
|
|
200
|
+
/**
|
|
201
|
+
* Formats an action name to a human-readable label.
|
|
202
|
+
*/
|
|
203
|
+
declare function formatActionName(actionName: string | null, source?: {
|
|
204
|
+
payment_rail?: string;
|
|
205
|
+
}): string;
|
|
206
|
+
declare const transferFieldsSchema: z$1.ZodObject<{
|
|
207
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
208
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
209
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
210
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
211
|
+
}, z$1.core.$strip>;
|
|
212
|
+
declare const swapFieldsSchema: z$1.ZodObject<{
|
|
213
|
+
poolAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
214
|
+
fromToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
215
|
+
toToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
216
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
217
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
218
|
+
fromAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
219
|
+
toAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
220
|
+
}, z$1.core.$strip>;
|
|
221
|
+
declare const cctpBurnFieldsSchema: z$1.ZodObject<{
|
|
222
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
223
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
224
|
+
mintRecipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
225
|
+
destinationDomain: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
226
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
227
|
+
}, z$1.core.$strip>;
|
|
228
|
+
declare const erc4626DepositFieldsSchema: z$1.ZodObject<{
|
|
229
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
230
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
231
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
232
|
+
owner: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
233
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
234
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
235
|
+
}, z$1.core.$strip>;
|
|
236
|
+
declare const erc4626WithdrawFieldsSchema: z$1.ZodObject<{
|
|
237
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
238
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
239
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
240
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
241
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
242
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
243
|
+
}, z$1.core.$strip>;
|
|
244
|
+
declare const activityDataSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
245
|
+
transfer: z$1.ZodObject<{
|
|
246
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
247
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
248
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
249
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
250
|
+
}, z$1.core.$strip>;
|
|
251
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
252
|
+
swap: z$1.ZodObject<{
|
|
253
|
+
poolAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
254
|
+
fromToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
255
|
+
toToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
256
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
257
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
258
|
+
fromAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
259
|
+
toAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
260
|
+
}, z$1.core.$strip>;
|
|
261
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
262
|
+
cctpBurn: z$1.ZodObject<{
|
|
263
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
264
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
265
|
+
mintRecipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
266
|
+
destinationDomain: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
267
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
268
|
+
}, z$1.core.$strip>;
|
|
269
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
270
|
+
erc4626Deposit: z$1.ZodObject<{
|
|
271
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
272
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
273
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
274
|
+
owner: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
275
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
276
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
277
|
+
}, z$1.core.$strip>;
|
|
278
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
279
|
+
erc4626Withdraw: z$1.ZodObject<{
|
|
280
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
281
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
282
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
283
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
284
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
285
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
286
|
+
}, z$1.core.$strip>;
|
|
287
|
+
}, z$1.core.$strip>]>;
|
|
288
|
+
type ActivityData = z$1.infer<typeof activityDataSchema>;
|
|
289
|
+
type ActivityTransferData = z$1.infer<typeof transferFieldsSchema>;
|
|
290
|
+
type ActivitySwapData = z$1.infer<typeof swapFieldsSchema>;
|
|
291
|
+
type ActivityCCTPBurnData = z$1.infer<typeof cctpBurnFieldsSchema>;
|
|
292
|
+
type ActivityERC4626DepositData = z$1.infer<typeof erc4626DepositFieldsSchema>;
|
|
293
|
+
type ActivityERC4626WithdrawData = z$1.infer<typeof erc4626WithdrawFieldsSchema>;
|
|
294
|
+
declare const activityRecordSchema: z$1.ZodObject<{
|
|
295
|
+
actionName: z$1.ZodEnum<{
|
|
296
|
+
Sweep: "Sweep";
|
|
297
|
+
SweepCCTP: "SweepCCTP";
|
|
298
|
+
SweepERC20: "SweepERC20";
|
|
299
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
300
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
301
|
+
Refuel: "Refuel";
|
|
302
|
+
RefuelERC20: "RefuelERC20";
|
|
303
|
+
Transfer: "Transfer";
|
|
304
|
+
TransferERC20: "TransferERC20";
|
|
305
|
+
TransferCCTP: "TransferCCTP";
|
|
306
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
307
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
308
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
309
|
+
DepositERC4626: "DepositERC4626";
|
|
310
|
+
WithdrawERC4626: "WithdrawERC4626";
|
|
311
|
+
SweepWithdrawERC4626: "SweepWithdrawERC4626";
|
|
312
|
+
SweepDepositAccount: "SweepDepositAccount";
|
|
313
|
+
SweepDepositAccountERC20: "SweepDepositAccountERC20";
|
|
314
|
+
CallOnce: "CallOnce";
|
|
315
|
+
}>;
|
|
316
|
+
blockTimestamp: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
317
|
+
transactionHash: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
318
|
+
activity: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
319
|
+
transfer: z$1.ZodObject<{
|
|
320
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
321
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
322
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
323
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
324
|
+
}, z$1.core.$strip>;
|
|
325
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
326
|
+
swap: z$1.ZodObject<{
|
|
327
|
+
poolAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
328
|
+
fromToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
329
|
+
toToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
330
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
331
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
332
|
+
fromAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
333
|
+
toAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
334
|
+
}, z$1.core.$strip>;
|
|
335
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
336
|
+
cctpBurn: z$1.ZodObject<{
|
|
337
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
338
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
339
|
+
mintRecipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
340
|
+
destinationDomain: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
341
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
342
|
+
}, z$1.core.$strip>;
|
|
343
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
344
|
+
erc4626Deposit: z$1.ZodObject<{
|
|
345
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
346
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
347
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
348
|
+
owner: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
349
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
350
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
351
|
+
}, z$1.core.$strip>;
|
|
352
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
353
|
+
erc4626Withdraw: z$1.ZodObject<{
|
|
354
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
355
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
356
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
357
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
358
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
359
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
360
|
+
}, z$1.core.$strip>;
|
|
361
|
+
}, z$1.core.$strip>]>;
|
|
362
|
+
instructionId: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
363
|
+
executionCount: z$1.ZodNullable<z$1.ZodNumber>;
|
|
364
|
+
}, z$1.core.$strip>;
|
|
365
|
+
type ActivityRecord = z$1.infer<typeof activityRecordSchema>;
|
|
366
|
+
declare const getInstructionActivityRequestSchema: z$1.ZodObject<{
|
|
367
|
+
chainId: z$1.ZodNumber;
|
|
368
|
+
actionNames: z$1.ZodArray<z$1.ZodEnum<{
|
|
369
|
+
Sweep: "Sweep";
|
|
370
|
+
SweepCCTP: "SweepCCTP";
|
|
371
|
+
SweepERC20: "SweepERC20";
|
|
372
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
373
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
374
|
+
Refuel: "Refuel";
|
|
375
|
+
RefuelERC20: "RefuelERC20";
|
|
376
|
+
Transfer: "Transfer";
|
|
377
|
+
TransferERC20: "TransferERC20";
|
|
378
|
+
TransferCCTP: "TransferCCTP";
|
|
379
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
380
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
381
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
382
|
+
DepositERC4626: "DepositERC4626";
|
|
383
|
+
WithdrawERC4626: "WithdrawERC4626";
|
|
384
|
+
SweepWithdrawERC4626: "SweepWithdrawERC4626";
|
|
385
|
+
SweepDepositAccount: "SweepDepositAccount";
|
|
386
|
+
SweepDepositAccountERC20: "SweepDepositAccountERC20";
|
|
387
|
+
CallOnce: "CallOnce";
|
|
388
|
+
}>>;
|
|
389
|
+
page: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
390
|
+
perPage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
391
|
+
}, z$1.core.$strip>;
|
|
392
|
+
type GetInstructionActivityRequest = z$1.infer<typeof getInstructionActivityRequestSchema>;
|
|
393
|
+
declare const getInstructionActivityResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
394
|
+
actionName: z$1.ZodEnum<{
|
|
395
|
+
Sweep: "Sweep";
|
|
396
|
+
SweepCCTP: "SweepCCTP";
|
|
397
|
+
SweepERC20: "SweepERC20";
|
|
398
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
399
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
400
|
+
Refuel: "Refuel";
|
|
401
|
+
RefuelERC20: "RefuelERC20";
|
|
402
|
+
Transfer: "Transfer";
|
|
403
|
+
TransferERC20: "TransferERC20";
|
|
404
|
+
TransferCCTP: "TransferCCTP";
|
|
405
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
406
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
407
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
408
|
+
DepositERC4626: "DepositERC4626";
|
|
409
|
+
WithdrawERC4626: "WithdrawERC4626";
|
|
410
|
+
SweepWithdrawERC4626: "SweepWithdrawERC4626";
|
|
411
|
+
SweepDepositAccount: "SweepDepositAccount";
|
|
412
|
+
SweepDepositAccountERC20: "SweepDepositAccountERC20";
|
|
413
|
+
CallOnce: "CallOnce";
|
|
414
|
+
}>;
|
|
415
|
+
blockTimestamp: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
416
|
+
transactionHash: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
417
|
+
activity: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
418
|
+
transfer: z$1.ZodObject<{
|
|
419
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
420
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
421
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
422
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
423
|
+
}, z$1.core.$strip>;
|
|
424
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
425
|
+
swap: z$1.ZodObject<{
|
|
426
|
+
poolAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
427
|
+
fromToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
428
|
+
toToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
429
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
430
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
431
|
+
fromAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
432
|
+
toAmount: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
433
|
+
}, z$1.core.$strip>;
|
|
434
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
435
|
+
cctpBurn: z$1.ZodObject<{
|
|
436
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
437
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
438
|
+
mintRecipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
439
|
+
destinationDomain: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
440
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
441
|
+
}, z$1.core.$strip>;
|
|
442
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
443
|
+
erc4626Deposit: z$1.ZodObject<{
|
|
444
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
445
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
446
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
447
|
+
owner: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
448
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
449
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
450
|
+
}, z$1.core.$strip>;
|
|
451
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
452
|
+
erc4626Withdraw: z$1.ZodObject<{
|
|
453
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
454
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
455
|
+
from: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
456
|
+
to: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
457
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
458
|
+
shares: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
459
|
+
}, z$1.core.$strip>;
|
|
460
|
+
}, z$1.core.$strip>]>;
|
|
461
|
+
instructionId: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
462
|
+
executionCount: z$1.ZodNullable<z$1.ZodNumber>;
|
|
463
|
+
}, z$1.core.$strip>>;
|
|
464
|
+
type GetInstructionActivityResponse = z$1.infer<typeof getInstructionActivityResponseSchema>;
|
|
465
|
+
interface InstructionActivityRequest extends PaginatedRequest {
|
|
466
|
+
chainId: number;
|
|
467
|
+
actionNames: ActionName[];
|
|
468
|
+
}
|
|
469
|
+
//#endregion
|
|
470
|
+
//#region src/api/schemas/auth.d.ts
|
|
471
|
+
declare const authLoginRequestSchema: z$1.ZodObject<{
|
|
472
|
+
siwe: z$1.ZodString;
|
|
473
|
+
signature: z$1.ZodObject<{
|
|
474
|
+
v: z$1.ZodNumber;
|
|
475
|
+
r: z$1.ZodString;
|
|
476
|
+
s: z$1.ZodString;
|
|
477
|
+
}, z$1.core.$strip>;
|
|
478
|
+
}, z$1.core.$strip>;
|
|
479
|
+
type AuthLoginRequest = z$1.infer<typeof authLoginRequestSchema>;
|
|
480
|
+
declare const authLoginResponseSchema: z$1.ZodObject<{
|
|
481
|
+
authorization: z$1.ZodString;
|
|
482
|
+
user: z$1.ZodObject<{
|
|
483
|
+
id: z$1.ZodString;
|
|
484
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
|
|
485
|
+
email: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
486
|
+
createdAt: z$1.ZodString;
|
|
487
|
+
updatedAt: z$1.ZodString;
|
|
488
|
+
preferences: z$1.ZodOptional<z$1.ZodObject<{
|
|
489
|
+
chainId: z$1.ZodOptional<z$1.ZodNumber>;
|
|
490
|
+
tokenSymbol: z$1.ZodOptional<z$1.ZodString>;
|
|
491
|
+
localCurrency: z$1.ZodOptional<z$1.ZodString>;
|
|
492
|
+
}, z$1.core.$strip>>;
|
|
493
|
+
isDeveloper: z$1.ZodBoolean;
|
|
494
|
+
developerPublicKey: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
495
|
+
}, z$1.core.$strip>;
|
|
496
|
+
}, z$1.core.$strip>;
|
|
497
|
+
type AuthLoginResponse = z$1.infer<typeof authLoginResponseSchema>;
|
|
498
|
+
declare const turnkeyVerificationRequestSchema: z$1.ZodObject<{
|
|
499
|
+
email: z$1.ZodString;
|
|
500
|
+
}, z$1.core.$strip>;
|
|
501
|
+
type TurnkeyVerificationRequest = z$1.infer<typeof turnkeyVerificationRequestSchema>;
|
|
502
|
+
declare const turnkeyVerificationResponseSchema: z$1.ZodObject<{
|
|
503
|
+
isLogin: z$1.ZodBoolean;
|
|
504
|
+
codeAlreadyExists: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
505
|
+
}, z$1.core.$strip>;
|
|
506
|
+
type TurnkeyVerificationResponse = z$1.infer<typeof turnkeyVerificationResponseSchema>;
|
|
507
|
+
declare const attestationSchema: z$1.ZodObject<{
|
|
508
|
+
credentialId: z$1.ZodString;
|
|
509
|
+
clientDataJson: z$1.ZodString;
|
|
510
|
+
attestationObject: z$1.ZodString;
|
|
511
|
+
transports: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
512
|
+
}, z$1.core.$strip>;
|
|
513
|
+
type Attestation = z$1.infer<typeof attestationSchema>;
|
|
514
|
+
declare const turnkeyLoginRequestSchema: z$1.ZodObject<{
|
|
515
|
+
email: z$1.ZodEmail;
|
|
516
|
+
verificationCode: z$1.ZodCoercedNumber<unknown>;
|
|
517
|
+
passkeyChallenge: z$1.ZodOptional<z$1.ZodString>;
|
|
518
|
+
attestation: z$1.ZodOptional<z$1.ZodObject<{
|
|
519
|
+
credentialId: z$1.ZodString;
|
|
520
|
+
clientDataJson: z$1.ZodString;
|
|
521
|
+
attestationObject: z$1.ZodString;
|
|
522
|
+
transports: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
523
|
+
}, z$1.core.$strip>>;
|
|
524
|
+
}, z$1.core.$strip>;
|
|
525
|
+
type TurnkeyLoginRequest = z$1.infer<typeof turnkeyLoginRequestSchema>;
|
|
526
|
+
declare const turnkeyLoginResponseSchema: z$1.ZodObject<{
|
|
527
|
+
email: z$1.ZodString;
|
|
528
|
+
subOrgId: z$1.ZodString;
|
|
529
|
+
walletAddress: z$1.ZodString;
|
|
530
|
+
isLogin: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
531
|
+
}, z$1.core.$strip>;
|
|
532
|
+
type TurnkeyLoginResponse = z$1.infer<typeof turnkeyLoginResponseSchema>;
|
|
533
|
+
declare const meResponseSchema: z$1.ZodObject<{
|
|
534
|
+
id: z$1.ZodString;
|
|
535
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
|
|
536
|
+
email: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
537
|
+
createdAt: z$1.ZodString;
|
|
538
|
+
updatedAt: z$1.ZodString;
|
|
539
|
+
preferences: z$1.ZodOptional<z$1.ZodObject<{
|
|
540
|
+
chainId: z$1.ZodOptional<z$1.ZodNumber>;
|
|
541
|
+
tokenSymbol: z$1.ZodOptional<z$1.ZodString>;
|
|
542
|
+
localCurrency: z$1.ZodOptional<z$1.ZodString>;
|
|
543
|
+
}, z$1.core.$strip>>;
|
|
544
|
+
isDeveloper: z$1.ZodBoolean;
|
|
545
|
+
developerPublicKey: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
546
|
+
}, z$1.core.$strip>;
|
|
547
|
+
type MeResponse = z$1.infer<typeof meResponseSchema>;
|
|
548
|
+
declare const sessionTokenRequestSchema: z$1.ZodObject<{
|
|
549
|
+
sessionToken: z$1.ZodString;
|
|
550
|
+
userId: z$1.ZodString;
|
|
551
|
+
}, z$1.core.$strip>;
|
|
552
|
+
type SessionTokenRequest = z$1.infer<typeof sessionTokenRequestSchema>;
|
|
553
|
+
declare const sessionTokenResponseSchema: z$1.ZodObject<{
|
|
554
|
+
success: z$1.ZodBoolean;
|
|
555
|
+
}, z$1.core.$strip>;
|
|
556
|
+
type SessionTokenResponse = z$1.infer<typeof sessionTokenResponseSchema>;
|
|
557
|
+
declare const sessionVerifyResponseSchema: z$1.ZodObject<{
|
|
558
|
+
authenticated: z$1.ZodBoolean;
|
|
559
|
+
hasSessionToken: z$1.ZodBoolean;
|
|
560
|
+
}, z$1.core.$strip>;
|
|
561
|
+
type SessionVerifyResponse = z$1.infer<typeof sessionVerifyResponseSchema>;
|
|
562
|
+
/**
|
|
563
|
+
* @todo
|
|
564
|
+
* - Remove later, this is a temporary schema for the whitelist check
|
|
565
|
+
*/
|
|
566
|
+
declare const whitelistCheckRequestSchema: z$1.ZodObject<{
|
|
567
|
+
email: z$1.ZodString;
|
|
568
|
+
}, z$1.core.$strip>;
|
|
569
|
+
type WhitelistCheckRequest = z$1.infer<typeof whitelistCheckRequestSchema>;
|
|
570
|
+
declare const whitelistCheckResponseSchema: z$1.ZodObject<{
|
|
571
|
+
isAllowed: z$1.ZodBoolean;
|
|
572
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
573
|
+
}, z$1.core.$strip>;
|
|
574
|
+
type WhitelistCheckResponse = z$1.infer<typeof whitelistCheckResponseSchema>;
|
|
575
|
+
declare const addressWhitelistCheckRequestSchema: z$1.ZodObject<{
|
|
576
|
+
address: z$1.ZodString;
|
|
577
|
+
}, z$1.core.$strip>;
|
|
578
|
+
type AddressWhitelistCheckRequest = z$1.infer<typeof addressWhitelistCheckRequestSchema>;
|
|
579
|
+
declare const addressWhitelistCheckResponseSchema: z$1.ZodObject<{
|
|
580
|
+
isAllowed: z$1.ZodBoolean;
|
|
581
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
582
|
+
}, z$1.core.$strip>;
|
|
583
|
+
type AddressWhitelistCheckResponse = z$1.infer<typeof addressWhitelistCheckResponseSchema>;
|
|
584
|
+
//#endregion
|
|
585
|
+
//#region src/api/schemas/chain.d.ts
|
|
586
|
+
declare const chainIdSchema: z$1.ZodObject<{
|
|
587
|
+
chainId: z$1.ZodNullable<z$1.ZodNumber>;
|
|
588
|
+
}, z$1.core.$strip>;
|
|
589
|
+
type ChainIdResponse = z$1.infer<typeof chainIdSchema>;
|
|
590
|
+
declare const setChainIdSchema: z$1.ZodObject<{
|
|
591
|
+
chainId: z$1.ZodNumber;
|
|
592
|
+
}, z$1.core.$strip>;
|
|
593
|
+
type SetChainIdRequest = z$1.infer<typeof setChainIdSchema>;
|
|
594
|
+
declare const chainSuccessResponseSchema: z$1.ZodObject<{
|
|
595
|
+
success: z$1.ZodBoolean;
|
|
596
|
+
chainId: z$1.ZodOptional<z$1.ZodNumber>;
|
|
597
|
+
}, z$1.core.$strip>;
|
|
598
|
+
type ChainSuccessResponse = z$1.infer<typeof chainSuccessResponseSchema>;
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region src/api/schemas/config.d.ts
|
|
601
|
+
declare const getDelegateAddressSchema: z$1.ZodObject<{
|
|
602
|
+
chainId: z$1.ZodNumber;
|
|
603
|
+
}, z$1.core.$strip>;
|
|
604
|
+
type GetDelegateAddressRequest = z$1.infer<typeof getDelegateAddressSchema>;
|
|
605
|
+
declare const getDelegateAddressResponseSchema: z$1.ZodObject<{
|
|
606
|
+
otimDelegateAddress: z$1.ZodString;
|
|
607
|
+
}, z$1.core.$strip>;
|
|
608
|
+
type GetDelegateAddressResponse = z$1.infer<typeof getDelegateAddressResponseSchema>;
|
|
609
|
+
declare const getConfigTokensRequestParametersSchema: z$1.ZodObject<{
|
|
610
|
+
chainId: z$1.ZodNumber;
|
|
611
|
+
}, z$1.core.$strip>;
|
|
612
|
+
type GetConfigTokensRequestParameters = z$1.infer<typeof getConfigTokensRequestParametersSchema>;
|
|
613
|
+
declare const getConfigTokensResponseSchema: z$1.ZodObject<{
|
|
614
|
+
tokens: z$1.ZodArray<z$1.ZodObject<{
|
|
615
|
+
symbol: z$1.ZodAny;
|
|
616
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
617
|
+
}, z$1.core.$strip>>;
|
|
618
|
+
}, z$1.core.$strip>;
|
|
619
|
+
type GetConfigTokensResponse = z$1.infer<typeof getConfigTokensResponseSchema>;
|
|
620
|
+
declare const getConfigChainsResponseSchema: z$1.ZodUnknown;
|
|
621
|
+
type GetConfigChainsResponse = z$1.infer<typeof getConfigChainsResponseSchema>;
|
|
622
|
+
declare const getMaxPriorityFeePerGasEstimateSchema: z$1.ZodObject<{
|
|
623
|
+
chainId: z$1.ZodNumber;
|
|
624
|
+
}, z$1.core.$strip>;
|
|
625
|
+
type GetMaxPriorityFeePerGasEstimateRequest = z$1.infer<typeof getMaxPriorityFeePerGasEstimateSchema>;
|
|
626
|
+
declare const getMaxPriorityFeePerGasEstimateResponseSchema: z$1.ZodObject<{
|
|
627
|
+
slowMaxPriorityFeeEstimate: z$1.ZodNumber;
|
|
628
|
+
normalMaxPriorityFeeEstimate: z$1.ZodNumber;
|
|
629
|
+
fastMaxPriorityFeeEstimate: z$1.ZodNumber;
|
|
630
|
+
}, z$1.core.$strip>;
|
|
631
|
+
type GetMaxPriorityFeePerGasEstimateResponse = z$1.infer<typeof getMaxPriorityFeePerGasEstimateResponseSchema>;
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region src/api/schemas/contacts.d.ts
|
|
634
|
+
declare const newContactRequestSchema: z$1.ZodObject<{
|
|
635
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
636
|
+
name: z$1.ZodString;
|
|
637
|
+
}, z$1.core.$strip>;
|
|
638
|
+
type NewContactRequest = z$1.infer<typeof newContactRequestSchema>;
|
|
639
|
+
declare const getContactsRequestSchema: z$1.ZodObject<{
|
|
640
|
+
perPage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
641
|
+
page: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
642
|
+
}, z$1.core.$strip>;
|
|
643
|
+
type GetContactsRequest = z$1.infer<typeof getContactsRequestSchema>;
|
|
644
|
+
declare const contactSchema: z$1.ZodObject<{
|
|
645
|
+
userId: z$1.ZodString;
|
|
646
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
647
|
+
name: z$1.ZodString;
|
|
648
|
+
createdAt: z$1.ZodString;
|
|
649
|
+
updatedAt: z$1.ZodString;
|
|
650
|
+
}, z$1.core.$strip>;
|
|
651
|
+
declare const getContactsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
652
|
+
userId: z$1.ZodString;
|
|
653
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
654
|
+
name: z$1.ZodString;
|
|
655
|
+
createdAt: z$1.ZodString;
|
|
656
|
+
updatedAt: z$1.ZodString;
|
|
657
|
+
}, z$1.core.$strip>>;
|
|
658
|
+
type GetContactsResponse = z$1.infer<typeof getContactsResponseSchema>;
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region src/api/schemas/instruction.d.ts
|
|
661
|
+
declare const actionArgumentsSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
662
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
663
|
+
fee: z$1.ZodObject<{
|
|
664
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
665
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
666
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
667
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
668
|
+
}, z$1.core.$strip>;
|
|
669
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
670
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
671
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
672
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
673
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
674
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
675
|
+
fee: z$1.ZodObject<{
|
|
676
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
677
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
678
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
679
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
680
|
+
}, z$1.core.$strip>;
|
|
681
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
682
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
683
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
684
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
685
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
686
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
687
|
+
fee: z$1.ZodObject<{
|
|
688
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
689
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
690
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
691
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
692
|
+
}, z$1.core.$strip>;
|
|
693
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
694
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
695
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
696
|
+
schedule: z$1.ZodObject<{
|
|
697
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
698
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
699
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
700
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
701
|
+
}, z$1.core.$strip>;
|
|
702
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
703
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
704
|
+
fee: z$1.ZodObject<{
|
|
705
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
706
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
707
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
708
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
709
|
+
}, z$1.core.$strip>;
|
|
710
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
711
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
712
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
713
|
+
schedule: z$1.ZodObject<{
|
|
714
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
715
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
716
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
717
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
718
|
+
}, z$1.core.$strip>;
|
|
719
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
720
|
+
tokenIn: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
721
|
+
tokenOut: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
722
|
+
amountIn: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
723
|
+
floorAmountOut: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
724
|
+
feeTier: z$1.ZodString;
|
|
725
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
726
|
+
meanPriceLookBack: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
727
|
+
maxPriceDeviationBps: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
728
|
+
fee: z$1.ZodObject<{
|
|
729
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
730
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
731
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
732
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
733
|
+
}, z$1.core.$strip>;
|
|
734
|
+
schedule: z$1.ZodObject<{
|
|
735
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
736
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
737
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
738
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
739
|
+
}, z$1.core.$strip>;
|
|
740
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
741
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
742
|
+
fee: z$1.ZodObject<{
|
|
743
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
744
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
745
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
746
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
747
|
+
}, z$1.core.$strip>;
|
|
748
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
749
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
750
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
751
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
752
|
+
minDeposit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
753
|
+
minTotalShares: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
754
|
+
schedule: z$1.ZodObject<{
|
|
755
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
756
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
757
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
758
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
759
|
+
}, z$1.core.$strip>;
|
|
760
|
+
fee: z$1.ZodObject<{
|
|
761
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
762
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
763
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
764
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
765
|
+
}, z$1.core.$strip>;
|
|
766
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
767
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
768
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
769
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
770
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
771
|
+
minDeposit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
772
|
+
minTotalShares: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
773
|
+
fee: z$1.ZodObject<{
|
|
774
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
775
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
776
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
777
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
778
|
+
}, z$1.core.$strip>;
|
|
779
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
780
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
781
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
782
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
783
|
+
minWithdraw: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
784
|
+
schedule: z$1.ZodObject<{
|
|
785
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
786
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
787
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
788
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
789
|
+
}, z$1.core.$strip>;
|
|
790
|
+
fee: z$1.ZodObject<{
|
|
791
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
792
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
793
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
794
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
795
|
+
}, z$1.core.$strip>;
|
|
796
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
797
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
798
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
799
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
800
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
801
|
+
minWithdraw: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
802
|
+
fee: z$1.ZodObject<{
|
|
803
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
804
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
805
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
806
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
807
|
+
}, z$1.core.$strip>;
|
|
808
|
+
}, z$1.core.$strip>]>;
|
|
809
|
+
type ActionArguments = z$1.infer<typeof actionArgumentsSchema>;
|
|
810
|
+
declare const feeResponseSchema$1: z$1.ZodObject<{
|
|
811
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
812
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
813
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
814
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
815
|
+
}, z$1.core.$strip>;
|
|
816
|
+
type FeeResponse = z$1.infer<typeof feeResponseSchema$1>;
|
|
817
|
+
declare const scheduleResponseSchema: z$1.ZodObject<{
|
|
818
|
+
startAt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
819
|
+
startBy: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
820
|
+
interval: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
821
|
+
timeout: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
822
|
+
}, z$1.core.$strip>;
|
|
823
|
+
type ScheduleResponse = z$1.infer<typeof scheduleResponseSchema>;
|
|
824
|
+
declare const actionArgumentsResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
825
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
826
|
+
threshold: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
827
|
+
endBalance: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
828
|
+
gasLimit: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
829
|
+
fee: z$1.ZodObject<{
|
|
830
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
831
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
832
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
833
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
834
|
+
}, z$1.core.$strip>;
|
|
835
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
836
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
837
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
838
|
+
gasLimit: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
839
|
+
schedule: z$1.ZodObject<{
|
|
840
|
+
startAt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
841
|
+
startBy: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
842
|
+
interval: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
843
|
+
timeout: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
844
|
+
}, z$1.core.$strip>;
|
|
845
|
+
fee: z$1.ZodObject<{
|
|
846
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
847
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
848
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
849
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
850
|
+
}, z$1.core.$strip>;
|
|
851
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
852
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
853
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
854
|
+
threshold: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
855
|
+
endBalance: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
856
|
+
fee: z$1.ZodObject<{
|
|
857
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
858
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
859
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
860
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
861
|
+
}, z$1.core.$strip>;
|
|
862
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
863
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
864
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
865
|
+
value: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
866
|
+
schedule: z$1.ZodObject<{
|
|
867
|
+
startAt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
868
|
+
startBy: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
869
|
+
interval: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
870
|
+
timeout: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
871
|
+
}, z$1.core.$strip>;
|
|
872
|
+
fee: z$1.ZodObject<{
|
|
873
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
874
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
875
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
876
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
877
|
+
}, z$1.core.$strip>;
|
|
878
|
+
}, z$1.core.$strip>]>;
|
|
879
|
+
type ActionArgumentsResponse = z$1.infer<typeof actionArgumentsResponseSchema>;
|
|
880
|
+
declare const instructionBuildSchema: z$1.ZodObject<{
|
|
881
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
882
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
883
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
884
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
885
|
+
nickname: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
886
|
+
}, z$1.core.$strip>;
|
|
887
|
+
type InstructionBuild = z$1.infer<typeof instructionBuildSchema>;
|
|
888
|
+
type Instruction = InstructionBuild;
|
|
889
|
+
declare const instructionGetAllRequestSchema: z$1.ZodObject<{
|
|
890
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
891
|
+
chainId: z$1.ZodNumber;
|
|
892
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
893
|
+
page: z$1.ZodOptional<z$1.ZodNumber>;
|
|
894
|
+
perPage: z$1.ZodOptional<z$1.ZodNumber>;
|
|
895
|
+
}, z$1.core.$strip>;
|
|
896
|
+
type InstructionGetAllRequest = z$1.infer<typeof instructionGetAllRequestSchema>;
|
|
897
|
+
declare const instructionGetAllResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
898
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
899
|
+
createdAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
900
|
+
startAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
901
|
+
interval: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
902
|
+
timeout: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
903
|
+
maxExecutions: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
904
|
+
executionState: z$1.ZodPipe<z$1.ZodObject<{
|
|
905
|
+
execution_status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
906
|
+
PendingActivation: "PendingActivation";
|
|
907
|
+
Active: "Active";
|
|
908
|
+
PendingDeactivation: "PendingDeactivation";
|
|
909
|
+
Deactivated: "Deactivated";
|
|
910
|
+
Errored: "Errored";
|
|
911
|
+
Completed: "Completed";
|
|
912
|
+
UserNotDelegated: "UserNotDelegated";
|
|
913
|
+
InFlight: "InFlight";
|
|
914
|
+
NotifyUser: "NotifyUser";
|
|
915
|
+
}>>;
|
|
916
|
+
execution_counter: z$1.ZodOptional<z$1.ZodNumber>;
|
|
917
|
+
last_executed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
918
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
919
|
+
executionStatus: "PendingActivation" | "Active" | "PendingDeactivation" | "Deactivated" | "Errored" | "Completed" | "UserNotDelegated" | "InFlight" | "NotifyUser" | undefined;
|
|
920
|
+
executionCounter: number | undefined;
|
|
921
|
+
lastExecuted: number | undefined;
|
|
922
|
+
}, {
|
|
923
|
+
execution_status?: "PendingActivation" | "Active" | "PendingDeactivation" | "Deactivated" | "Errored" | "Completed" | "UserNotDelegated" | "InFlight" | "NotifyUser" | undefined;
|
|
924
|
+
execution_counter?: number | undefined;
|
|
925
|
+
last_executed?: number | undefined;
|
|
926
|
+
}>>;
|
|
927
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
928
|
+
arguments: z$1.ZodAny;
|
|
929
|
+
nickname: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
930
|
+
lastInstructedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
931
|
+
lastErrorCode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
932
|
+
lastErrorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
933
|
+
totalInstructedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
934
|
+
instructedTokenAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
935
|
+
chainId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
936
|
+
chain: z$1.ZodOptional<z$1.ZodString>;
|
|
937
|
+
}, z$1.core.$strip>>;
|
|
938
|
+
type InstructionGetAllResponse = z$1.infer<typeof instructionGetAllResponseSchema>;
|
|
939
|
+
declare const instructionBuildRequestSchema: z$1.ZodObject<{
|
|
940
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
941
|
+
chainId: z$1.ZodNumber;
|
|
942
|
+
salt: z$1.ZodNumber;
|
|
943
|
+
maxExecutions: z$1.ZodNumber;
|
|
944
|
+
actionArguments: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
945
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
946
|
+
fee: z$1.ZodObject<{
|
|
947
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
948
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
949
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
950
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
951
|
+
}, z$1.core.$strip>;
|
|
952
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
953
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
954
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
955
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
956
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
957
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
958
|
+
fee: z$1.ZodObject<{
|
|
959
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
960
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
961
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
962
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
963
|
+
}, z$1.core.$strip>;
|
|
964
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
965
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
966
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
967
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
968
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
969
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
970
|
+
fee: z$1.ZodObject<{
|
|
971
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
972
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
973
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
974
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
975
|
+
}, z$1.core.$strip>;
|
|
976
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
977
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
978
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
979
|
+
schedule: z$1.ZodObject<{
|
|
980
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
981
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
982
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
983
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
984
|
+
}, z$1.core.$strip>;
|
|
985
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
986
|
+
target: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
987
|
+
fee: z$1.ZodObject<{
|
|
988
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
989
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
990
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
991
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
992
|
+
}, z$1.core.$strip>;
|
|
993
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
994
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
995
|
+
gasLimit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
996
|
+
schedule: z$1.ZodObject<{
|
|
997
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
998
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
999
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1000
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1001
|
+
}, z$1.core.$strip>;
|
|
1002
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1003
|
+
tokenIn: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1004
|
+
tokenOut: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1005
|
+
amountIn: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1006
|
+
floorAmountOut: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1007
|
+
feeTier: z$1.ZodString;
|
|
1008
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1009
|
+
meanPriceLookBack: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1010
|
+
maxPriceDeviationBps: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1011
|
+
fee: z$1.ZodObject<{
|
|
1012
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1013
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1014
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1015
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1016
|
+
}, z$1.core.$strip>;
|
|
1017
|
+
schedule: z$1.ZodObject<{
|
|
1018
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1019
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1020
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1021
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1022
|
+
}, z$1.core.$strip>;
|
|
1023
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1024
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1025
|
+
fee: z$1.ZodObject<{
|
|
1026
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1027
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1028
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1029
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1030
|
+
}, z$1.core.$strip>;
|
|
1031
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1032
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1033
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1034
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1035
|
+
minDeposit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1036
|
+
minTotalShares: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1037
|
+
schedule: z$1.ZodObject<{
|
|
1038
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1039
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1040
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1041
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1042
|
+
}, z$1.core.$strip>;
|
|
1043
|
+
fee: z$1.ZodObject<{
|
|
1044
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1045
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1046
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1047
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1048
|
+
}, z$1.core.$strip>;
|
|
1049
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1050
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1051
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1052
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1053
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1054
|
+
minDeposit: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1055
|
+
minTotalShares: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1056
|
+
fee: z$1.ZodObject<{
|
|
1057
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1058
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1059
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1060
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1061
|
+
}, z$1.core.$strip>;
|
|
1062
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1063
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1064
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1065
|
+
value: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1066
|
+
minWithdraw: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1067
|
+
schedule: z$1.ZodObject<{
|
|
1068
|
+
startAt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1069
|
+
startBy: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1070
|
+
interval: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1071
|
+
timeout: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1072
|
+
}, z$1.core.$strip>;
|
|
1073
|
+
fee: z$1.ZodObject<{
|
|
1074
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1075
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1076
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1077
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1078
|
+
}, z$1.core.$strip>;
|
|
1079
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1080
|
+
vault: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1081
|
+
recipient: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1082
|
+
threshold: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1083
|
+
endBalance: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1084
|
+
minWithdraw: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1085
|
+
fee: z$1.ZodObject<{
|
|
1086
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1087
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1088
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1089
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1090
|
+
}, z$1.core.$strip>;
|
|
1091
|
+
}, z$1.core.$strip>]>>;
|
|
1092
|
+
}, z$1.core.$strip>;
|
|
1093
|
+
type InstructionBuildRequest = z$1.infer<typeof instructionBuildRequestSchema>;
|
|
1094
|
+
declare const instructionActivateRequestSchema: z$1.ZodObject<{
|
|
1095
|
+
nickname: z$1.ZodOptional<z$1.ZodString>;
|
|
1096
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1097
|
+
chainId: z$1.ZodNumber;
|
|
1098
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1099
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1100
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1101
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1102
|
+
activationSignature: z$1.ZodObject<{
|
|
1103
|
+
yParity: z$1.ZodNumber;
|
|
1104
|
+
r: z$1.ZodString;
|
|
1105
|
+
s: z$1.ZodString;
|
|
1106
|
+
}, z$1.core.$strip>;
|
|
1107
|
+
}, z$1.core.$strip>;
|
|
1108
|
+
type InstructionActivateRequest = z$1.infer<typeof instructionActivateRequestSchema>;
|
|
1109
|
+
declare const instructionActivateResponseSchema: z$1.ZodObject<{
|
|
1110
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1111
|
+
}, z$1.core.$strip>;
|
|
1112
|
+
type InstructionActivateResponse = z$1.infer<typeof instructionActivateResponseSchema>;
|
|
1113
|
+
declare const instructionDeactivateRequestSchema: z$1.ZodObject<{
|
|
1114
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1115
|
+
chainId: z$1.ZodNumber;
|
|
1116
|
+
deactivation: z$1.ZodObject<{
|
|
1117
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1118
|
+
}, z$1.core.$strip>;
|
|
1119
|
+
deactivationSignature: z$1.ZodObject<{
|
|
1120
|
+
yParity: z$1.ZodNumber;
|
|
1121
|
+
r: z$1.ZodString;
|
|
1122
|
+
s: z$1.ZodString;
|
|
1123
|
+
}, z$1.core.$strip>;
|
|
1124
|
+
}, z$1.core.$strip>;
|
|
1125
|
+
type InstructionDeactivateRequest = z$1.infer<typeof instructionDeactivateRequestSchema>;
|
|
1126
|
+
declare const instructionDeactivateResponseSchema: z$1.ZodUnknown;
|
|
1127
|
+
type InstructionDeactivateResponse = z$1.infer<typeof instructionDeactivateResponseSchema>;
|
|
1128
|
+
declare const instructionDetailsRequestSchema: z$1.ZodObject<{
|
|
1129
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1130
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1131
|
+
chainId: z$1.ZodNumber;
|
|
1132
|
+
}, z$1.core.$strip>;
|
|
1133
|
+
type InstructionDetailsRequest = z$1.infer<typeof instructionDetailsRequestSchema>;
|
|
1134
|
+
declare const instructionDetailsResponseSchema: z$1.ZodObject<{
|
|
1135
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1136
|
+
actionArguments: z$1.ZodAny;
|
|
1137
|
+
actionName: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1138
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1139
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1140
|
+
nickname: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1141
|
+
lastErrorCode: z$1.ZodNumber;
|
|
1142
|
+
lastErrorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1143
|
+
}, z$1.core.$strip>;
|
|
1144
|
+
type InstructionDetailsResponse = z$1.infer<typeof instructionDetailsResponseSchema>;
|
|
1145
|
+
declare const instructionGetRulesRequestSchema: z$1.ZodObject<{
|
|
1146
|
+
chainId: z$1.ZodNumber;
|
|
1147
|
+
page: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1148
|
+
perPage: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1149
|
+
}, z$1.core.$strip>;
|
|
1150
|
+
type InstructionGetRulesRequest = z$1.infer<typeof instructionGetRulesRequestSchema>;
|
|
1151
|
+
declare const instructionGetRulesResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
1152
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1153
|
+
createdAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1154
|
+
startAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1155
|
+
interval: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1156
|
+
timeout: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1157
|
+
maxExecutions: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1158
|
+
executionState: z$1.ZodPipe<z$1.ZodObject<{
|
|
1159
|
+
execution_status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1160
|
+
PendingActivation: "PendingActivation";
|
|
1161
|
+
Active: "Active";
|
|
1162
|
+
PendingDeactivation: "PendingDeactivation";
|
|
1163
|
+
Deactivated: "Deactivated";
|
|
1164
|
+
Errored: "Errored";
|
|
1165
|
+
Completed: "Completed";
|
|
1166
|
+
UserNotDelegated: "UserNotDelegated";
|
|
1167
|
+
InFlight: "InFlight";
|
|
1168
|
+
NotifyUser: "NotifyUser";
|
|
1169
|
+
}>>;
|
|
1170
|
+
execution_counter: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1171
|
+
last_executed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1172
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
1173
|
+
executionStatus: "PendingActivation" | "Active" | "PendingDeactivation" | "Deactivated" | "Errored" | "Completed" | "UserNotDelegated" | "InFlight" | "NotifyUser" | undefined;
|
|
1174
|
+
executionCounter: number | undefined;
|
|
1175
|
+
lastExecuted: number | undefined;
|
|
1176
|
+
}, {
|
|
1177
|
+
execution_status?: "PendingActivation" | "Active" | "PendingDeactivation" | "Deactivated" | "Errored" | "Completed" | "UserNotDelegated" | "InFlight" | "NotifyUser" | undefined;
|
|
1178
|
+
execution_counter?: number | undefined;
|
|
1179
|
+
last_executed?: number | undefined;
|
|
1180
|
+
}>>;
|
|
1181
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1182
|
+
arguments: z$1.ZodAny;
|
|
1183
|
+
nickname: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1184
|
+
lastInstructedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
1185
|
+
lastErrorCode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1186
|
+
lastErrorMessage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1187
|
+
totalInstructedValue: z$1.ZodOptional<z$1.ZodString>;
|
|
1188
|
+
instructedTokenAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1189
|
+
chainId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1190
|
+
chain: z$1.ZodOptional<z$1.ZodString>;
|
|
1191
|
+
}, z$1.core.$strip>>;
|
|
1192
|
+
type InstructionGetRulesResponse = z$1.infer<typeof instructionGetRulesResponseSchema>;
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region src/api/schemas/integration.d.ts
|
|
1195
|
+
declare const IntegrationType: {
|
|
1196
|
+
readonly Bank: "Bank";
|
|
1197
|
+
readonly Clio: "Clio";
|
|
1198
|
+
readonly Stripe: "Stripe";
|
|
1199
|
+
readonly QuickBooks: "QuickBooks";
|
|
1200
|
+
readonly Bill: "Bill";
|
|
1201
|
+
readonly Zoho: "Zoho";
|
|
1202
|
+
};
|
|
1203
|
+
type IntegrationType = (typeof IntegrationType)[keyof typeof IntegrationType];
|
|
1204
|
+
declare const integrationTypeValues: readonly ["Bank", "Clio", "Stripe", "QuickBooks", "Bill", "Zoho"];
|
|
1205
|
+
declare const integrationTypeSchema: z$1.ZodEnum<{
|
|
1206
|
+
Bill: "Bill";
|
|
1207
|
+
Stripe: "Stripe";
|
|
1208
|
+
Clio: "Clio";
|
|
1209
|
+
QuickBooks: "QuickBooks";
|
|
1210
|
+
Bank: "Bank";
|
|
1211
|
+
Zoho: "Zoho";
|
|
1212
|
+
}>;
|
|
1213
|
+
type IntegrationTypeEnum = z$1.infer<typeof integrationTypeSchema>;
|
|
1214
|
+
declare const updateIntegrationRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
1215
|
+
integrationType: z$1.ZodLiteral<"QuickBooks">;
|
|
1216
|
+
details: z$1.ZodObject<{
|
|
1217
|
+
accessToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1218
|
+
refreshToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1219
|
+
realmId: z$1.ZodOptional<z$1.ZodString>;
|
|
1220
|
+
tokenType: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
|
+
expiresIn: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1222
|
+
xRefreshTokenExpiresIn: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1223
|
+
}, z$1.core.$strip>;
|
|
1224
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1225
|
+
integrationType: z$1.ZodLiteral<"Bank">;
|
|
1226
|
+
details: z$1.ZodObject<{
|
|
1227
|
+
plaid: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1228
|
+
accessToken: z$1.ZodString;
|
|
1229
|
+
itemId: z$1.ZodString;
|
|
1230
|
+
institutionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1231
|
+
institutionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1232
|
+
accounts: z$1.ZodArray<z$1.ZodObject<{
|
|
1233
|
+
accountId: z$1.ZodString;
|
|
1234
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
1235
|
+
mask: z$1.ZodOptional<z$1.ZodString>;
|
|
1236
|
+
subtype: z$1.ZodOptional<z$1.ZodString>;
|
|
1237
|
+
externalAccountId: z$1.ZodOptional<z$1.ZodString>;
|
|
1238
|
+
liquidationAddress: z$1.ZodOptional<z$1.ZodObject<{
|
|
1239
|
+
liquidationAddressId: z$1.ZodString;
|
|
1240
|
+
address: z$1.ZodString;
|
|
1241
|
+
chain: z$1.ZodString;
|
|
1242
|
+
currency: z$1.ZodString;
|
|
1243
|
+
blockchainMemo: z$1.ZodOptional<z$1.ZodString>;
|
|
1244
|
+
}, z$1.core.$strip>>;
|
|
1245
|
+
}, z$1.core.$strip>>;
|
|
1246
|
+
}, z$1.core.$strip>>>;
|
|
1247
|
+
bridge: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1248
|
+
customerId: z$1.ZodString;
|
|
1249
|
+
kycLinkId: z$1.ZodOptional<z$1.ZodString>;
|
|
1250
|
+
kycLink: z$1.ZodOptional<z$1.ZodString>;
|
|
1251
|
+
tosLink: z$1.ZodOptional<z$1.ZodString>;
|
|
1252
|
+
completedSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1253
|
+
}, z$1.core.$strip>>>;
|
|
1254
|
+
}, z$1.core.$strip>;
|
|
1255
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1256
|
+
integrationType: z$1.ZodLiteral<"Clio">;
|
|
1257
|
+
details: z$1.ZodUnknown;
|
|
1258
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1259
|
+
integrationType: z$1.ZodLiteral<"Stripe">;
|
|
1260
|
+
details: z$1.ZodObject<{
|
|
1261
|
+
clientId: z$1.ZodOptional<z$1.ZodString>;
|
|
1262
|
+
clientSecret: z$1.ZodOptional<z$1.ZodString>;
|
|
1263
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1264
|
+
accessToken: z$1.ZodString;
|
|
1265
|
+
refreshToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1266
|
+
}, z$1.core.$strip>>;
|
|
1267
|
+
}, z$1.core.$strip>;
|
|
1268
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1269
|
+
integrationType: z$1.ZodLiteral<"Bill">;
|
|
1270
|
+
details: z$1.ZodObject<{
|
|
1271
|
+
devKey: z$1.ZodOptional<z$1.ZodString>;
|
|
1272
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1273
|
+
orgId: z$1.ZodOptional<z$1.ZodString>;
|
|
1274
|
+
rememberMeId: z$1.ZodOptional<z$1.ZodString>;
|
|
1275
|
+
}, z$1.core.$strip>;
|
|
1276
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1277
|
+
integrationType: z$1.ZodLiteral<"Zoho">;
|
|
1278
|
+
details: z$1.ZodUnknown;
|
|
1279
|
+
}, z$1.core.$strip>], "integrationType">;
|
|
1280
|
+
type UpdateIntegrationRequest = z$1.infer<typeof updateIntegrationRequestSchema>;
|
|
1281
|
+
declare const getIntegrationRequestSchema: z$1.ZodObject<{
|
|
1282
|
+
integrationType: z$1.ZodEnum<{
|
|
1283
|
+
Bill: "Bill";
|
|
1284
|
+
Stripe: "Stripe";
|
|
1285
|
+
Clio: "Clio";
|
|
1286
|
+
QuickBooks: "QuickBooks";
|
|
1287
|
+
Bank: "Bank";
|
|
1288
|
+
Zoho: "Zoho";
|
|
1289
|
+
}>;
|
|
1290
|
+
}, z$1.core.$strip>;
|
|
1291
|
+
type GetIntegrationRequest = z$1.infer<typeof getIntegrationRequestSchema>;
|
|
1292
|
+
declare const integrationResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
1293
|
+
integrationType: z$1.ZodLiteral<"QuickBooks">;
|
|
1294
|
+
details: z$1.ZodObject<{
|
|
1295
|
+
accessToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1296
|
+
refreshToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1297
|
+
realmId: z$1.ZodOptional<z$1.ZodString>;
|
|
1298
|
+
tokenType: z$1.ZodOptional<z$1.ZodString>;
|
|
1299
|
+
expiresIn: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1300
|
+
xRefreshTokenExpiresIn: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1301
|
+
}, z$1.core.$strip>;
|
|
1302
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1303
|
+
integrationType: z$1.ZodLiteral<"Bank">;
|
|
1304
|
+
details: z$1.ZodObject<{
|
|
1305
|
+
plaid: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1306
|
+
accessToken: z$1.ZodString;
|
|
1307
|
+
itemId: z$1.ZodString;
|
|
1308
|
+
institutionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1309
|
+
institutionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1310
|
+
accounts: z$1.ZodArray<z$1.ZodObject<{
|
|
1311
|
+
accountId: z$1.ZodString;
|
|
1312
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
1313
|
+
mask: z$1.ZodOptional<z$1.ZodString>;
|
|
1314
|
+
subtype: z$1.ZodOptional<z$1.ZodString>;
|
|
1315
|
+
externalAccountId: z$1.ZodOptional<z$1.ZodString>;
|
|
1316
|
+
liquidationAddress: z$1.ZodOptional<z$1.ZodObject<{
|
|
1317
|
+
liquidationAddressId: z$1.ZodString;
|
|
1318
|
+
address: z$1.ZodString;
|
|
1319
|
+
chain: z$1.ZodString;
|
|
1320
|
+
currency: z$1.ZodString;
|
|
1321
|
+
blockchainMemo: z$1.ZodOptional<z$1.ZodString>;
|
|
1322
|
+
}, z$1.core.$strip>>;
|
|
1323
|
+
}, z$1.core.$strip>>;
|
|
1324
|
+
}, z$1.core.$strip>>>;
|
|
1325
|
+
bridge: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1326
|
+
customerId: z$1.ZodString;
|
|
1327
|
+
kycLinkId: z$1.ZodOptional<z$1.ZodString>;
|
|
1328
|
+
kycLink: z$1.ZodOptional<z$1.ZodString>;
|
|
1329
|
+
tosLink: z$1.ZodOptional<z$1.ZodString>;
|
|
1330
|
+
completedSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1331
|
+
}, z$1.core.$strip>>>;
|
|
1332
|
+
}, z$1.core.$strip>;
|
|
1333
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1334
|
+
integrationType: z$1.ZodLiteral<"Clio">;
|
|
1335
|
+
details: z$1.ZodUnknown;
|
|
1336
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1337
|
+
integrationType: z$1.ZodLiteral<"Stripe">;
|
|
1338
|
+
details: z$1.ZodObject<{
|
|
1339
|
+
clientId: z$1.ZodOptional<z$1.ZodString>;
|
|
1340
|
+
clientSecret: z$1.ZodOptional<z$1.ZodString>;
|
|
1341
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1342
|
+
accessToken: z$1.ZodString;
|
|
1343
|
+
refreshToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1344
|
+
}, z$1.core.$strip>>;
|
|
1345
|
+
}, z$1.core.$strip>;
|
|
1346
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1347
|
+
integrationType: z$1.ZodLiteral<"Bill">;
|
|
1348
|
+
details: z$1.ZodObject<{
|
|
1349
|
+
devKey: z$1.ZodOptional<z$1.ZodString>;
|
|
1350
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1351
|
+
orgId: z$1.ZodOptional<z$1.ZodString>;
|
|
1352
|
+
rememberMeId: z$1.ZodOptional<z$1.ZodString>;
|
|
1353
|
+
}, z$1.core.$strip>;
|
|
1354
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1355
|
+
integrationType: z$1.ZodLiteral<"Zoho">;
|
|
1356
|
+
details: z$1.ZodUnknown;
|
|
1357
|
+
}, z$1.core.$strip>], "integrationType">;
|
|
1358
|
+
type IntegrationResponse = z$1.infer<typeof integrationResponseSchema>;
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region src/api/schemas/operating-account.d.ts
|
|
1361
|
+
declare const newOperatingAccountSubOrgResponseSchema: z$1.ZodObject<{
|
|
1362
|
+
subOrganizationId: z$1.ZodString;
|
|
1363
|
+
endUserId: z$1.ZodString;
|
|
1364
|
+
}, z$1.core.$strip>;
|
|
1365
|
+
type NewOperatingAccountSubOrgResponse = z$1.infer<typeof newOperatingAccountSubOrgResponseSchema>;
|
|
1366
|
+
declare const getOperatingAccountSubOrgResponseSchema: z$1.ZodObject<{
|
|
1367
|
+
subOrganizationId: z$1.ZodString;
|
|
1368
|
+
}, z$1.core.$strip>;
|
|
1369
|
+
type GetOperatingAccountSubOrgResponse = z$1.infer<typeof getOperatingAccountSubOrgResponseSchema>;
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/api/schemas/payments.d.ts
|
|
1372
|
+
declare const paymentRequestsDirectionSchema: z$1.ZodEnum<{
|
|
1373
|
+
from: "from";
|
|
1374
|
+
to: "to";
|
|
1375
|
+
}>;
|
|
1376
|
+
declare const orchestrationTypeSchema: z$1.ZodEnum<{
|
|
1377
|
+
PaymentRequest: "PaymentRequest";
|
|
1378
|
+
AutoEarn: "AutoEarn";
|
|
1379
|
+
}>;
|
|
1380
|
+
type OrchestrationType = z$1.infer<typeof orchestrationTypeSchema>;
|
|
1381
|
+
declare const getPaymentRequestsRequestSchema: z$1.ZodObject<{
|
|
1382
|
+
direction: z$1.ZodEnum<{
|
|
1383
|
+
from: "from";
|
|
1384
|
+
to: "to";
|
|
1385
|
+
}>;
|
|
1386
|
+
statuses: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1387
|
+
paid: "paid";
|
|
1388
|
+
pending: "pending";
|
|
1389
|
+
inProgress: "inProgress";
|
|
1390
|
+
cancelled: "cancelled";
|
|
1391
|
+
draft: "draft";
|
|
1392
|
+
}>>>;
|
|
1393
|
+
perPage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
1394
|
+
page: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>>;
|
|
1395
|
+
orchestrationType: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1396
|
+
PaymentRequest: "PaymentRequest";
|
|
1397
|
+
AutoEarn: "AutoEarn";
|
|
1398
|
+
}>>;
|
|
1399
|
+
}, z$1.core.$strip>;
|
|
1400
|
+
type GetPaymentRequestsRequest = z$1.infer<typeof getPaymentRequestsRequestSchema>;
|
|
1401
|
+
declare const paymentRequestStatusSchema: z$1.ZodEnum<{
|
|
1402
|
+
paid: "paid";
|
|
1403
|
+
pending: "pending";
|
|
1404
|
+
inProgress: "inProgress";
|
|
1405
|
+
cancelled: "cancelled";
|
|
1406
|
+
draft: "draft";
|
|
1407
|
+
}>;
|
|
1408
|
+
declare const paymentRequestSchema: z$1.ZodObject<{
|
|
1409
|
+
id: z$1.ZodString;
|
|
1410
|
+
fromUserId: z$1.ZodString;
|
|
1411
|
+
toUserId: z$1.ZodNullable<z$1.ZodString>;
|
|
1412
|
+
payerAddress: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
1413
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1414
|
+
instructions: z$1.ZodObject<{
|
|
1415
|
+
ids: z$1.ZodArray<z$1.ZodString>;
|
|
1416
|
+
completionIds: z$1.ZodArray<z$1.ZodString>;
|
|
1417
|
+
}, z$1.core.$strip>;
|
|
1418
|
+
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1419
|
+
status: z$1.ZodEnum<{
|
|
1420
|
+
paid: "paid";
|
|
1421
|
+
pending: "pending";
|
|
1422
|
+
inProgress: "inProgress";
|
|
1423
|
+
cancelled: "cancelled";
|
|
1424
|
+
draft: "draft";
|
|
1425
|
+
}>;
|
|
1426
|
+
createdAt: z$1.ZodString;
|
|
1427
|
+
updatedAt: z$1.ZodString;
|
|
1428
|
+
}, z$1.core.$strip>;
|
|
1429
|
+
declare const getPaymentRequestsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
1430
|
+
id: z$1.ZodString;
|
|
1431
|
+
fromUserId: z$1.ZodString;
|
|
1432
|
+
toUserId: z$1.ZodNullable<z$1.ZodString>;
|
|
1433
|
+
payerAddress: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
1434
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1435
|
+
instructions: z$1.ZodObject<{
|
|
1436
|
+
ids: z$1.ZodArray<z$1.ZodString>;
|
|
1437
|
+
completionIds: z$1.ZodArray<z$1.ZodString>;
|
|
1438
|
+
}, z$1.core.$strip>;
|
|
1439
|
+
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1440
|
+
status: z$1.ZodEnum<{
|
|
1441
|
+
paid: "paid";
|
|
1442
|
+
pending: "pending";
|
|
1443
|
+
inProgress: "inProgress";
|
|
1444
|
+
cancelled: "cancelled";
|
|
1445
|
+
draft: "draft";
|
|
1446
|
+
}>;
|
|
1447
|
+
createdAt: z$1.ZodString;
|
|
1448
|
+
updatedAt: z$1.ZodString;
|
|
1449
|
+
}, z$1.core.$strip>>;
|
|
1450
|
+
type GetPaymentRequestsResponse = z$1.infer<typeof getPaymentRequestsResponseSchema>;
|
|
1451
|
+
declare const buildEphemeralInstructionSchema: z$1.ZodObject<{
|
|
1452
|
+
chainId: z$1.ZodNumber;
|
|
1453
|
+
salt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1454
|
+
maxExecutions: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1455
|
+
actionArguments: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1456
|
+
setEphemeralTarget: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1457
|
+
}, z$1.core.$strip>;
|
|
1458
|
+
declare const paymentRequestBuildRequestSchema: z$1.ZodObject<{
|
|
1459
|
+
payerAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1460
|
+
completionInstructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1461
|
+
chainId: z$1.ZodNumber;
|
|
1462
|
+
salt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1463
|
+
maxExecutions: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1464
|
+
actionArguments: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1465
|
+
setEphemeralTarget: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1466
|
+
}, z$1.core.$strip>>;
|
|
1467
|
+
instructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1468
|
+
chainId: z$1.ZodNumber;
|
|
1469
|
+
salt: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1470
|
+
maxExecutions: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1471
|
+
actionArguments: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1472
|
+
setEphemeralTarget: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1473
|
+
}, z$1.core.$strip>>;
|
|
1474
|
+
metadata: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
|
|
1475
|
+
maxRuns: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1476
|
+
}, z$1.core.$strip>;
|
|
1477
|
+
type PaymentRequestBuildRequest = z$1.infer<typeof paymentRequestBuildRequestSchema>;
|
|
1478
|
+
declare const feeResponseSchema: z$1.ZodObject<{
|
|
1479
|
+
token: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1480
|
+
executionFee: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1481
|
+
maxBaseFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1482
|
+
maxPriorityFeePerGas: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1483
|
+
}, z$1.core.$strip>;
|
|
1484
|
+
declare const paymentRequestBuildResponseSchema: z$1.ZodObject<{
|
|
1485
|
+
requestId: z$1.ZodString;
|
|
1486
|
+
subOrgId: z$1.ZodString;
|
|
1487
|
+
walletId: z$1.ZodString;
|
|
1488
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1489
|
+
completionInstructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1490
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1491
|
+
chainId: z$1.ZodNumber;
|
|
1492
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1493
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1494
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1495
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1496
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1497
|
+
}, z$1.core.$strip>>;
|
|
1498
|
+
instructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1499
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1500
|
+
chainId: z$1.ZodNumber;
|
|
1501
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1502
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1503
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1504
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1505
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1506
|
+
}, z$1.core.$strip>>;
|
|
1507
|
+
}, z$1.core.$strip>;
|
|
1508
|
+
type PaymentRequestBuildResponse = z$1.infer<typeof paymentRequestBuildResponseSchema>;
|
|
1509
|
+
declare const newInstructionRequestSchema: z$1.ZodObject<{
|
|
1510
|
+
nickname: z$1.ZodOptional<z$1.ZodString>;
|
|
1511
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1512
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1513
|
+
chainId: z$1.ZodNumber;
|
|
1514
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1515
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1516
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1517
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1518
|
+
activationSignature: z$1.ZodObject<{
|
|
1519
|
+
yParity: z$1.ZodNumber;
|
|
1520
|
+
r: z$1.ZodString;
|
|
1521
|
+
s: z$1.ZodString;
|
|
1522
|
+
}, z$1.core.$strip>;
|
|
1523
|
+
}, z$1.core.$strip>;
|
|
1524
|
+
declare const paymentRequestNewRequestSchema: z$1.ZodObject<{
|
|
1525
|
+
requestId: z$1.ZodString;
|
|
1526
|
+
signedAuthorization: z$1.ZodString;
|
|
1527
|
+
completionInstructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1528
|
+
nickname: z$1.ZodOptional<z$1.ZodString>;
|
|
1529
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1530
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1531
|
+
chainId: z$1.ZodNumber;
|
|
1532
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1533
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1534
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1535
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1536
|
+
activationSignature: z$1.ZodObject<{
|
|
1537
|
+
yParity: z$1.ZodNumber;
|
|
1538
|
+
r: z$1.ZodString;
|
|
1539
|
+
s: z$1.ZodString;
|
|
1540
|
+
}, z$1.core.$strip>;
|
|
1541
|
+
}, z$1.core.$strip>>;
|
|
1542
|
+
instructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1543
|
+
nickname: z$1.ZodOptional<z$1.ZodString>;
|
|
1544
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1545
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1546
|
+
chainId: z$1.ZodNumber;
|
|
1547
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1548
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1549
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1550
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1551
|
+
activationSignature: z$1.ZodObject<{
|
|
1552
|
+
yParity: z$1.ZodNumber;
|
|
1553
|
+
r: z$1.ZodString;
|
|
1554
|
+
s: z$1.ZodString;
|
|
1555
|
+
}, z$1.core.$strip>;
|
|
1556
|
+
}, z$1.core.$strip>>;
|
|
1557
|
+
}, z$1.core.$strip>;
|
|
1558
|
+
type PaymentRequestNewRequest = z$1.infer<typeof paymentRequestNewRequestSchema>;
|
|
1559
|
+
declare const paymentRequestDetailsRequestSchema: z$1.ZodObject<{
|
|
1560
|
+
requestId: z$1.ZodString;
|
|
1561
|
+
}, z$1.core.$strip>;
|
|
1562
|
+
type PaymentRequestDetailsRequest = z$1.infer<typeof paymentRequestDetailsRequestSchema>;
|
|
1563
|
+
declare const paymentRequestDetailsResponseSchema: z$1.ZodObject<{
|
|
1564
|
+
requestId: z$1.ZodString;
|
|
1565
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1566
|
+
ephemeralWalletId: z$1.ZodOptional<z$1.ZodString>;
|
|
1567
|
+
status: z$1.ZodEnum<{
|
|
1568
|
+
paid: "paid";
|
|
1569
|
+
pending: "pending";
|
|
1570
|
+
inProgress: "inProgress";
|
|
1571
|
+
cancelled: "cancelled";
|
|
1572
|
+
draft: "draft";
|
|
1573
|
+
}>;
|
|
1574
|
+
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1575
|
+
numRuns: z$1.ZodNumber;
|
|
1576
|
+
maxRuns: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1577
|
+
}, z$1.core.$strip>;
|
|
1578
|
+
type PaymentRequestDetailsResponse = z$1.infer<typeof paymentRequestDetailsResponseSchema>;
|
|
1579
|
+
interface PaymentsListRequest extends PaginatedRequest {
|
|
1580
|
+
tab: "active" | "completed";
|
|
1581
|
+
}
|
|
1582
|
+
declare const settlementParamsSchema: z$1.ZodObject<{
|
|
1583
|
+
acceptedTokens: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1584
|
+
settlementChainId: z$1.ZodNumber;
|
|
1585
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1586
|
+
settlementAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1587
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1588
|
+
}, z$1.core.$strip>;
|
|
1589
|
+
type SettlementParams = z$1.infer<typeof settlementParamsSchema>;
|
|
1590
|
+
declare const vaultWithdrawSettlementParamsSchema: z$1.ZodObject<{
|
|
1591
|
+
vaultAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1592
|
+
vaultUnderlyingToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1593
|
+
vaultChainId: z$1.ZodNumber;
|
|
1594
|
+
settlementChainId: z$1.ZodNumber;
|
|
1595
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1596
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1597
|
+
withdrawAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1598
|
+
}, z$1.core.$strip>;
|
|
1599
|
+
type VaultWithdrawSettlementParams = z$1.infer<typeof vaultWithdrawSettlementParamsSchema>;
|
|
1600
|
+
declare const orchestrationParamsSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
1601
|
+
settlement: z$1.ZodObject<{
|
|
1602
|
+
acceptedTokens: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1603
|
+
settlementChainId: z$1.ZodNumber;
|
|
1604
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1605
|
+
settlementAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1606
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1607
|
+
}, z$1.core.$strip>;
|
|
1608
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1609
|
+
vaultWithdrawSettlement: z$1.ZodObject<{
|
|
1610
|
+
vaultAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1611
|
+
vaultUnderlyingToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1612
|
+
vaultChainId: z$1.ZodNumber;
|
|
1613
|
+
settlementChainId: z$1.ZodNumber;
|
|
1614
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1615
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1616
|
+
withdrawAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1617
|
+
}, z$1.core.$strip>;
|
|
1618
|
+
}, z$1.core.$strip>]>;
|
|
1619
|
+
type OrchestrationParams = z$1.infer<typeof orchestrationParamsSchema>;
|
|
1620
|
+
declare const buildSettlementRequestSchema: z$1.ZodObject<{
|
|
1621
|
+
params: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
1622
|
+
settlement: z$1.ZodObject<{
|
|
1623
|
+
acceptedTokens: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1624
|
+
settlementChainId: z$1.ZodNumber;
|
|
1625
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1626
|
+
settlementAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1627
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1628
|
+
}, z$1.core.$strip>;
|
|
1629
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1630
|
+
vaultWithdrawSettlement: z$1.ZodObject<{
|
|
1631
|
+
vaultAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1632
|
+
vaultUnderlyingToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1633
|
+
vaultChainId: z$1.ZodNumber;
|
|
1634
|
+
settlementChainId: z$1.ZodNumber;
|
|
1635
|
+
settlementToken: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1636
|
+
recipientAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1637
|
+
withdrawAmount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>]>;
|
|
1638
|
+
}, z$1.core.$strip>;
|
|
1639
|
+
}, z$1.core.$strip>]>;
|
|
1640
|
+
payerAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1641
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1642
|
+
dueDate: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1643
|
+
maxRuns: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1644
|
+
}, z$1.core.$strip>;
|
|
1645
|
+
type BuildSettlementRequest = z$1.infer<typeof buildSettlementRequestSchema>;
|
|
1646
|
+
declare const buildSettlementResponseSchema: z$1.ZodObject<{
|
|
1647
|
+
requestId: z$1.ZodString;
|
|
1648
|
+
subOrgId: z$1.ZodString;
|
|
1649
|
+
walletId: z$1.ZodString;
|
|
1650
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1651
|
+
completionInstructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1652
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1653
|
+
chainId: z$1.ZodNumber;
|
|
1654
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1655
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1656
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1657
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1658
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1659
|
+
}, z$1.core.$strip>>;
|
|
1660
|
+
instructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1661
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1662
|
+
chainId: z$1.ZodNumber;
|
|
1663
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1664
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1665
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1666
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1667
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1668
|
+
}, z$1.core.$strip>>;
|
|
1669
|
+
}, z$1.core.$strip>;
|
|
1670
|
+
type BuildSettlementResponse = z$1.infer<typeof buildSettlementResponseSchema>;
|
|
1671
|
+
//#endregion
|
|
1672
|
+
//#region src/api/schemas/transaction.d.ts
|
|
1673
|
+
declare const transactionGetListRequestSchema: z$1.ZodObject<{
|
|
1674
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1675
|
+
chainId: z$1.ZodNumber;
|
|
1676
|
+
instructionIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1677
|
+
from: z$1.ZodOptional<z$1.ZodString>;
|
|
1678
|
+
to: z$1.ZodOptional<z$1.ZodString>;
|
|
1679
|
+
page: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1680
|
+
perPage: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1681
|
+
sort: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1682
|
+
asc: "asc";
|
|
1683
|
+
desc: "desc";
|
|
1684
|
+
}>>;
|
|
1685
|
+
}, z$1.core.$strip>;
|
|
1686
|
+
type TransactionGetListRequest = z$1.infer<typeof transactionGetListRequestSchema>;
|
|
1687
|
+
declare const transactionGetListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
1688
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1689
|
+
transactionHash: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
1690
|
+
blockHash: z$1.ZodNullable<z$1.ZodString>;
|
|
1691
|
+
transactionStatus: z$1.ZodString;
|
|
1692
|
+
error: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1693
|
+
startedAt: z$1.ZodString;
|
|
1694
|
+
startedAtBlock: z$1.ZodNumber;
|
|
1695
|
+
finishedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
1696
|
+
finishedAtBlock: z$1.ZodNullable<z$1.ZodNumber>;
|
|
1697
|
+
amount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
1698
|
+
value: z$1.ZodNumber;
|
|
1699
|
+
token: z$1.ZodString;
|
|
1700
|
+
}, z$1.core.$strip>>>;
|
|
1701
|
+
instructedValue: z$1.ZodString;
|
|
1702
|
+
instructedTokenAddress: z$1.ZodNullable<z$1.ZodString>;
|
|
1703
|
+
executionNum: z$1.ZodNumber;
|
|
1704
|
+
chainId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1705
|
+
chain: z$1.ZodOptional<z$1.ZodString>;
|
|
1706
|
+
}, z$1.core.$strip>>;
|
|
1707
|
+
type TransactionGetListResponse = z$1.infer<typeof transactionGetListResponseSchema>;
|
|
1708
|
+
//#endregion
|
|
1709
|
+
//#region src/api/services/base.d.ts
|
|
1710
|
+
declare class BaseService {
|
|
1711
|
+
protected readonly instance: AxiosInstance;
|
|
1712
|
+
constructor(instance: AxiosInstance);
|
|
1713
|
+
protected makeRequest<TRequest, TResponse, Schema extends ZodType = z$1.ZodType>({
|
|
1714
|
+
url,
|
|
1715
|
+
method,
|
|
1716
|
+
data,
|
|
1717
|
+
schema,
|
|
1718
|
+
validateResponse,
|
|
1719
|
+
...config
|
|
1720
|
+
}: ServiceRequestConfig<TRequest, Schema>): Promise<ServiceResponse<TResponse>>;
|
|
1721
|
+
protected makePaginatedRequest<TRequest extends PaginatedRequest, TResponse, Schema extends ZodType = z$1.ZodType>({
|
|
1722
|
+
url,
|
|
1723
|
+
method,
|
|
1724
|
+
data,
|
|
1725
|
+
schema,
|
|
1726
|
+
validateResponse,
|
|
1727
|
+
...config
|
|
1728
|
+
}: ServiceRequestConfig<TRequest, Schema>): Promise<PaginatedServiceResponse<TResponse>>;
|
|
1729
|
+
}
|
|
1730
|
+
//#endregion
|
|
1731
|
+
//#region src/api/services/account.d.ts
|
|
1732
|
+
declare class AccountService extends BaseService {
|
|
1733
|
+
getDelegationStatus(requestBody: DelegationStatusRequest): Promise<ServiceResponse<DelegationStatusResponse>>;
|
|
1734
|
+
createDelegation(requestBody: DelegationCreateRequest): Promise<ServiceResponse<DelegationCreateResponse>>;
|
|
1735
|
+
}
|
|
1736
|
+
//#endregion
|
|
1737
|
+
//#region src/api/services/activity.d.ts
|
|
1738
|
+
declare class ActivityService extends BaseService {
|
|
1739
|
+
getInstructionActivity(requestBody: GetInstructionActivityRequest): Promise<PaginatedServiceResponse<GetInstructionActivityResponse>>;
|
|
1740
|
+
}
|
|
1741
|
+
//#endregion
|
|
1742
|
+
//#region src/api/services/auth.d.ts
|
|
1743
|
+
declare class AuthService extends BaseService {
|
|
1744
|
+
login(requestBody: AuthLoginRequest): Promise<ServiceResponse<AuthLoginResponse>>;
|
|
1745
|
+
turnkeyVerification(requestBody: TurnkeyVerificationRequest): Promise<ServiceResponse<TurnkeyVerificationResponse>>;
|
|
1746
|
+
turnkeyLogin(requestBody: TurnkeyLoginRequest): Promise<ServiceResponse<TurnkeyLoginResponse>>;
|
|
1747
|
+
me(): Promise<ServiceResponse<User>>;
|
|
1748
|
+
updatePreferences(preferences: UserPreferences): Promise<ServiceResponse<unknown>>;
|
|
1749
|
+
}
|
|
1750
|
+
//#endregion
|
|
1751
|
+
//#region src/api/services/config.d.ts
|
|
1752
|
+
declare class ConfigService extends BaseService {
|
|
1753
|
+
getDelegateAddress(requestBody: GetDelegateAddressRequest): Promise<ServiceResponse<GetDelegateAddressResponse>>;
|
|
1754
|
+
getConfigTokens({
|
|
1755
|
+
chainId
|
|
1756
|
+
}: GetConfigTokensRequestParameters): Promise<ServiceResponse<GetConfigTokensResponse>>;
|
|
1757
|
+
getConfigChains(): Promise<ServiceResponse<GetConfigChainsResponse>>;
|
|
1758
|
+
getMaxPriorityFeePerGasEstimate(requestBody: GetMaxPriorityFeePerGasEstimateRequest): Promise<ServiceResponse<GetMaxPriorityFeePerGasEstimateResponse>>;
|
|
1759
|
+
}
|
|
1760
|
+
//#endregion
|
|
1761
|
+
//#region src/api/services/contacts.d.ts
|
|
1762
|
+
declare class ContactsService extends BaseService {
|
|
1763
|
+
create(request: NewContactRequest): Promise<ServiceResponse<unknown>>;
|
|
1764
|
+
list(request: GetContactsRequest): Promise<PaginatedServiceResponse<GetContactsResponse>>;
|
|
1765
|
+
}
|
|
1766
|
+
//#endregion
|
|
1767
|
+
//#region src/api/services/developer.d.ts
|
|
1768
|
+
declare class DeveloperService extends BaseService {
|
|
1769
|
+
updatePublicKey(developerPublicKey: string): Promise<ServiceResponse<unknown>>;
|
|
1770
|
+
generateApiKey(): Promise<ServiceResponse<unknown>>;
|
|
1771
|
+
}
|
|
1772
|
+
//#endregion
|
|
1773
|
+
//#region src/api/services/instruction.d.ts
|
|
1774
|
+
declare class InstructionService extends BaseService {
|
|
1775
|
+
all(requestBody: InstructionGetAllRequest): Promise<PaginatedServiceResponse<InstructionGetAllResponse>>;
|
|
1776
|
+
build(requestBody: InstructionBuildRequest): Promise<ServiceResponse<InstructionBuild>>;
|
|
1777
|
+
activate(requestBody: InstructionActivateRequest): Promise<ServiceResponse<InstructionActivateResponse>>;
|
|
1778
|
+
deactivate(requestBody: InstructionDeactivateRequest): Promise<ServiceResponse<InstructionDeactivateResponse>>;
|
|
1779
|
+
details(requestBody: InstructionDetailsRequest): Promise<ServiceResponse<InstructionDetailsResponse>>;
|
|
1780
|
+
rules(requestBody: InstructionGetRulesRequest): Promise<PaginatedServiceResponse<InstructionGetRulesResponse>>;
|
|
1781
|
+
}
|
|
1782
|
+
//#endregion
|
|
1783
|
+
//#region src/api/services/transaction.d.ts
|
|
1784
|
+
declare class TransactionService extends BaseService {
|
|
1785
|
+
list(requestBody: TransactionGetListRequest): Promise<PaginatedServiceResponse<Transactions>>;
|
|
1786
|
+
}
|
|
1787
|
+
//#endregion
|
|
1788
|
+
//#region src/api/services/payments.d.ts
|
|
1789
|
+
declare class PaymentsService extends BaseService {
|
|
1790
|
+
getOutgoingPaymentsList(request: PaymentsListRequest): Promise<PaginatedServiceResponse<Payments>>;
|
|
1791
|
+
getIncomingPaymentsList(request: PaymentsListRequest): Promise<PaginatedServiceResponse<Payments>>;
|
|
1792
|
+
buildPaymentRequest(requestBody: PaymentRequestBuildRequest): Promise<ServiceResponse<PaymentRequestBuildResponse>>;
|
|
1793
|
+
newPaymentRequest(requestBody: PaymentRequestNewRequest): Promise<ServiceResponse<unknown>>;
|
|
1794
|
+
getPaymentRequestDetails(requestBody: PaymentRequestDetailsRequest): Promise<ServiceResponse<PaymentRequestDetailsResponse>>;
|
|
1795
|
+
getPaymentRequests(request: GetPaymentRequestsRequest): Promise<PaginatedServiceResponse<GetPaymentRequestsResponse>>;
|
|
1796
|
+
buildSettlementOrchestration(requestBody: BuildSettlementRequest): Promise<ServiceResponse<BuildSettlementResponse>>;
|
|
1797
|
+
}
|
|
1798
|
+
//#endregion
|
|
1799
|
+
//#region src/api/services/integration.d.ts
|
|
1800
|
+
declare class IntegrationService extends BaseService {
|
|
1801
|
+
upsert(request: UpdateIntegrationRequest): Promise<ServiceResponse<IntegrationResponse>>;
|
|
1802
|
+
get(request: GetIntegrationRequest): Promise<ServiceResponse<IntegrationResponse>>;
|
|
1803
|
+
}
|
|
1804
|
+
//#endregion
|
|
1805
|
+
//#region src/api/services/operating-account.d.ts
|
|
1806
|
+
declare class OperatingAccountService extends BaseService {
|
|
1807
|
+
createSubOrganization(): Promise<ServiceResponse<NewOperatingAccountSubOrgResponse>>;
|
|
1808
|
+
getSubOrganization(): Promise<ServiceResponse<GetOperatingAccountSubOrgResponse>>;
|
|
1809
|
+
}
|
|
1810
|
+
//#endregion
|
|
1811
|
+
//#region src/api/api.d.ts
|
|
1812
|
+
type APIClientInitWithEnvironment = (CreateInstanceParameters & {
|
|
1813
|
+
environment?: OtimEnvironment;
|
|
1814
|
+
}) | ({
|
|
1815
|
+
instance: AxiosInstance;
|
|
1816
|
+
} & {
|
|
1817
|
+
environment?: OtimEnvironment;
|
|
1818
|
+
});
|
|
1819
|
+
declare class APIClient {
|
|
1820
|
+
account: AccountService;
|
|
1821
|
+
readonly activity: ActivityService;
|
|
1822
|
+
readonly auth: AuthService;
|
|
1823
|
+
readonly operatingAccount: OperatingAccountService;
|
|
1824
|
+
readonly config: ConfigService;
|
|
1825
|
+
readonly contacts: ContactsService;
|
|
1826
|
+
readonly developer: DeveloperService;
|
|
1827
|
+
readonly instruction: InstructionService;
|
|
1828
|
+
readonly transaction: TransactionService;
|
|
1829
|
+
readonly payments: PaymentsService;
|
|
1830
|
+
readonly integration: IntegrationService;
|
|
1831
|
+
constructor(init?: APIClientInitWithEnvironment);
|
|
1832
|
+
}
|
|
1833
|
+
declare const createAPIClient: (...params: ConstructorParameters<typeof APIClient>) => APIClient;
|
|
1834
|
+
//#endregion
|
|
1835
|
+
//#region src/api/result.d.ts
|
|
1836
|
+
interface Success<T> {
|
|
1837
|
+
success: true;
|
|
1838
|
+
data: T;
|
|
1839
|
+
}
|
|
1840
|
+
interface Failure {
|
|
1841
|
+
success: false;
|
|
1842
|
+
error: string;
|
|
1843
|
+
code?: string;
|
|
1844
|
+
}
|
|
1845
|
+
type Result<T> = Success<T> | Failure;
|
|
1846
|
+
declare function success<T>(data: T): Success<T>;
|
|
1847
|
+
declare function failure(error: string, code?: string): Failure;
|
|
1848
|
+
declare function isSuccess<T>(result: Result<T>): result is Success<T>;
|
|
1849
|
+
declare function isFailure<T>(result: Result<T>): result is Failure;
|
|
1850
|
+
declare const ErrorCode: {
|
|
1851
|
+
readonly NetworkError: "NETWORK_ERROR";
|
|
1852
|
+
readonly Unauthorized: "UNAUTHORIZED";
|
|
1853
|
+
readonly AuthenticationFailed: "AUTH_FAILED";
|
|
1854
|
+
readonly MissingParameter: "MISSING_PARAMETER";
|
|
1855
|
+
readonly Forbidden: "FORBIDDEN";
|
|
1856
|
+
readonly SessionExpired: "SESSION_EXPIRED";
|
|
1857
|
+
readonly InvalidInput: "INVALID_INPUT";
|
|
1858
|
+
readonly UnknownError: "UNKNOWN_ERROR";
|
|
1859
|
+
};
|
|
1860
|
+
type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
1861
|
+
//#endregion
|
|
1862
|
+
//#region src/api/utils/backoff.d.ts
|
|
1863
|
+
interface BackoffOptions {
|
|
1864
|
+
initialInterval?: number;
|
|
1865
|
+
maxInterval?: number;
|
|
1866
|
+
multiplier?: number;
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Calculates an exponential backoff interval based on the failure count.
|
|
1870
|
+
*
|
|
1871
|
+
* @param failureCount - Number of consecutive failures
|
|
1872
|
+
* @param options - Configuration options for the backoff calculation
|
|
1873
|
+
* @returns The calculated interval in milliseconds, capped at maxInterval
|
|
1874
|
+
*/
|
|
1875
|
+
declare const calculateBackoffInterval: (failureCount: number, options?: BackoffOptions) => number;
|
|
1876
|
+
//#endregion
|
|
1877
|
+
//#region src/api/utils/pagination.d.ts
|
|
1878
|
+
/**
|
|
1879
|
+
* Determine if additional pages are likely available based on the number of
|
|
1880
|
+
* items received and the requested page size.
|
|
1881
|
+
*
|
|
1882
|
+
* Returns true when the current page contains at least `requestedPageSize`
|
|
1883
|
+
* items, implying there may be more data to fetch.
|
|
1884
|
+
*
|
|
1885
|
+
* @param items Array of items returned for the current page.
|
|
1886
|
+
* @param requestedPageSize The `perPage` value requested for this fetch.
|
|
1887
|
+
* @returns Whether another page may be available.
|
|
1888
|
+
*/
|
|
1889
|
+
declare function calculateHasMore<T>(items: T[], requestedPageSize: number): boolean;
|
|
1890
|
+
/**
|
|
1891
|
+
* Extract pagination-related fields from a request object and return them
|
|
1892
|
+
* separately from the remaining parameters.
|
|
1893
|
+
*
|
|
1894
|
+
* @param request Request object containing `page`, `perPage`, and other fields.
|
|
1895
|
+
* @returns Object with `paginationParams` and `restParams` split for
|
|
1896
|
+
* convenience.
|
|
1897
|
+
*/
|
|
1898
|
+
declare function extractPaginationParams<T extends PaginatedRequest>(request: T): {
|
|
1899
|
+
paginationParams: PaginatedRequest;
|
|
1900
|
+
restParams: Omit<T, keyof PaginatedRequest>;
|
|
1901
|
+
};
|
|
1902
|
+
/**
|
|
1903
|
+
* Provide a standard default for pagination parameters.
|
|
1904
|
+
*
|
|
1905
|
+
* @returns Default pagination with `page: 0` and `perPage: 100`.
|
|
1906
|
+
*/
|
|
1907
|
+
declare function getDefaultPagination(): Required<PaginatedRequest>;
|
|
1908
|
+
//#endregion
|
|
1909
|
+
export { APIClient, APIClientInit, APIClientInitWithEnvironment, AccountService, ActionArguments, ActionArgumentsResponse, ActionName, ActivityCCTPBurnData, ActivityData, ActivityERC4626DepositData, ActivityERC4626WithdrawData, ActivityRecord, ActivityService, ActivitySwapData, ActivityTransferData, AddressWhitelistCheckRequest, AddressWhitelistCheckResponse, ApiErrorPayload, Attestation, AuthLoginRequest, AuthLoginResponse, AuthService, BackoffOptions, BuildSettlementRequest, BuildSettlementResponse, ChainIdResponse, ChainSuccessResponse, ConfigService, ContactsService, CreateInstanceParameters, DelegationCreateRequest, DelegationCreateResponse, DelegationStatus, DelegationStatusRequest, DelegationStatusResponse, DeveloperService, ErrorCode, ErrorMessageWithCode, ErrorResponsePayload, Failure, FeeResponse, GetConfigChainsResponse, GetConfigTokensRequestParameters, GetConfigTokensResponse, GetContactsRequest, GetContactsResponse, GetDelegateAddressRequest, GetDelegateAddressResponse, GetInstructionActivityRequest, GetInstructionActivityResponse, GetIntegrationRequest, GetMaxPriorityFeePerGasEstimateRequest, GetMaxPriorityFeePerGasEstimateResponse, GetOperatingAccountSubOrgResponse, GetPaymentRequestsRequest, GetPaymentRequestsResponse, HttpMethod, Instruction, InstructionActivateRequest, InstructionActivateResponse, InstructionActivityRequest, InstructionBuild, InstructionBuildRequest, InstructionDeactivateRequest, InstructionDeactivateResponse, InstructionDetailsRequest, InstructionDetailsResponse, InstructionGetAllRequest, InstructionGetAllResponse, InstructionGetRulesRequest, InstructionGetRulesResponse, InstructionService, IntegrationResponse, IntegrationService, IntegrationType, IntegrationTypeEnum, MeResponse, NewContactRequest, NewOperatingAccountSubOrgResponse, OperatingAccountService, OrchestrationParams, OrchestrationType, PaginatedRequest, PaginatedServiceResponse, PaymentRequestBuildRequest, PaymentRequestBuildResponse, PaymentRequestDetailsRequest, PaymentRequestDetailsResponse, PaymentRequestNewRequest, PaymentsListRequest, PaymentsService, Result, ScheduleResponse, ServiceError, ServiceRequestConfig, ServiceResponse, SessionTokenRequest, SessionTokenResponse, SessionVerifyResponse, SetChainIdRequest, SettlementParams, Success, TransactionGetListRequest, TransactionGetListResponse, TransactionService, TurnkeyLoginRequest, TurnkeyLoginResponse, TurnkeyVerificationRequest, TurnkeyVerificationResponse, UpdateIntegrationRequest, VaultWithdrawSettlementParams, WhitelistCheckRequest, WhitelistCheckResponse, actionArgumentsResponseSchema, actionArgumentsSchema, actionNameSchema, activityDataSchema, activityRecordSchema, addressWhitelistCheckRequestSchema, addressWhitelistCheckResponseSchema, apiErrorSchema, attestationSchema, authLoginRequestSchema, authLoginResponseSchema, buildEphemeralInstructionSchema, buildSettlementRequestSchema, buildSettlementResponseSchema, calculateBackoffInterval, calculateHasMore, chainIdSchema, chainSuccessResponseSchema, contactSchema, createAPIClient, createAbortController, createInstance, delegationCreateRequestSchema, delegationCreateResponseSchema, delegationStatusRequestSchema, delegationStatusResponseSchema, delegationStatusSchema, delegationStatusValues, errorResponseSchema, extractPaginationParams, failure, feeResponseSchema, formatActionName, formatPaymentRail, getConfigChainsResponseSchema, getConfigTokensRequestParametersSchema, getConfigTokensResponseSchema, getContactsRequestSchema, getContactsResponseSchema, getDefaultPagination, getDelegateAddressResponseSchema, getDelegateAddressSchema, getErrorMessage, getErrorMessageWithCode, getInstructionActivityRequestSchema, getInstructionActivityResponseSchema, getIntegrationRequestSchema, getMaxPriorityFeePerGasEstimateResponseSchema, getMaxPriorityFeePerGasEstimateSchema, getOperatingAccountSubOrgResponseSchema, getPaymentRequestsRequestSchema, getPaymentRequestsResponseSchema, getUserFriendlyErrorMessage, instructionActivateRequestSchema, instructionActivateResponseSchema, instructionBuildRequestSchema, instructionBuildSchema, instructionDeactivateRequestSchema, instructionDeactivateResponseSchema, instructionDetailsRequestSchema, instructionDetailsResponseSchema, instructionGetAllRequestSchema, instructionGetAllResponseSchema, instructionGetRulesRequestSchema, instructionGetRulesResponseSchema, integrationResponseSchema, integrationTypeSchema, integrationTypeValues, isFailure, isInstanceInit, isSuccess, isTechnicalError, isUserAddressableError, isUserRejectionError, meResponseSchema, newContactRequestSchema, newInstructionRequestSchema, newOperatingAccountSubOrgResponseSchema, orchestrationParamsSchema, orchestrationTypeSchema, paymentRequestBuildRequestSchema, paymentRequestBuildResponseSchema, paymentRequestDetailsRequestSchema, paymentRequestDetailsResponseSchema, paymentRequestNewRequestSchema, paymentRequestSchema, paymentRequestStatusSchema, paymentRequestsDirectionSchema, sessionTokenRequestSchema, sessionTokenResponseSchema, sessionVerifyResponseSchema, setChainIdSchema, settlementParamsSchema, success, transactionGetListRequestSchema, transactionGetListResponseSchema, turnkeyLoginRequestSchema, turnkeyLoginResponseSchema, turnkeyVerificationRequestSchema, turnkeyVerificationResponseSchema, updateIntegrationRequestSchema, vaultWithdrawSettlementParamsSchema, whitelistCheckRequestSchema, whitelistCheckResponseSchema };
|
|
1910
|
+
//# sourceMappingURL=index.d.mts.map
|