@otim/utils 0.0.5 → 0.0.6
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 +1858 -7
- package/dist/api/index.d.mts.map +1 -0
- package/dist/api/index.d.ts +1857 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1514 -1996
- package/dist/api/index.js.map +1 -7
- package/dist/api/index.mjs +1394 -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-Bv0kUz4w.d.ts +540 -0
- package/dist/index-Bv0kUz4w.d.ts.map +1 -0
- package/dist/index-DartTKk2.d.mts +540 -0
- package/dist/index-DartTKk2.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,1858 @@
|
|
|
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
|
+
Refuel: "Refuel";
|
|
176
|
+
RefuelERC20: "RefuelERC20";
|
|
177
|
+
Transfer: "Transfer";
|
|
178
|
+
TransferERC20: "TransferERC20";
|
|
179
|
+
TransferCCTP: "TransferCCTP";
|
|
180
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
181
|
+
Sweep: "Sweep";
|
|
182
|
+
SweepERC20: "SweepERC20";
|
|
183
|
+
SweepCCTP: "SweepCCTP";
|
|
184
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
185
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
186
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
187
|
+
DepositERC4626: "DepositERC4626";
|
|
188
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
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
|
+
Refuel: "Refuel";
|
|
297
|
+
RefuelERC20: "RefuelERC20";
|
|
298
|
+
Transfer: "Transfer";
|
|
299
|
+
TransferERC20: "TransferERC20";
|
|
300
|
+
TransferCCTP: "TransferCCTP";
|
|
301
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
302
|
+
Sweep: "Sweep";
|
|
303
|
+
SweepERC20: "SweepERC20";
|
|
304
|
+
SweepCCTP: "SweepCCTP";
|
|
305
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
306
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
307
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
308
|
+
DepositERC4626: "DepositERC4626";
|
|
309
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
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
|
+
Refuel: "Refuel";
|
|
370
|
+
RefuelERC20: "RefuelERC20";
|
|
371
|
+
Transfer: "Transfer";
|
|
372
|
+
TransferERC20: "TransferERC20";
|
|
373
|
+
TransferCCTP: "TransferCCTP";
|
|
374
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
375
|
+
Sweep: "Sweep";
|
|
376
|
+
SweepERC20: "SweepERC20";
|
|
377
|
+
SweepCCTP: "SweepCCTP";
|
|
378
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
379
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
380
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
381
|
+
DepositERC4626: "DepositERC4626";
|
|
382
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
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
|
+
Refuel: "Refuel";
|
|
396
|
+
RefuelERC20: "RefuelERC20";
|
|
397
|
+
Transfer: "Transfer";
|
|
398
|
+
TransferERC20: "TransferERC20";
|
|
399
|
+
TransferCCTP: "TransferCCTP";
|
|
400
|
+
UniswapV3ExactInput: "UniswapV3ExactInput";
|
|
401
|
+
Sweep: "Sweep";
|
|
402
|
+
SweepERC20: "SweepERC20";
|
|
403
|
+
SweepCCTP: "SweepCCTP";
|
|
404
|
+
SweepUniswapV3: "SweepUniswapV3";
|
|
405
|
+
DeactivateInstruction: "DeactivateInstruction";
|
|
406
|
+
SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount";
|
|
407
|
+
DepositERC4626: "DepositERC4626";
|
|
408
|
+
SweepDepositERC4626: "SweepDepositERC4626";
|
|
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
|
+
to: "to";
|
|
1374
|
+
from: "from";
|
|
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
|
+
to: "to";
|
|
1384
|
+
from: "from";
|
|
1385
|
+
}>;
|
|
1386
|
+
statuses: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1387
|
+
pending: "pending";
|
|
1388
|
+
paid: "paid";
|
|
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
|
+
pending: "pending";
|
|
1403
|
+
paid: "paid";
|
|
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
|
+
pending: "pending";
|
|
1421
|
+
paid: "paid";
|
|
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
|
+
pending: "pending";
|
|
1442
|
+
paid: "paid";
|
|
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
|
+
pending: "pending";
|
|
1569
|
+
paid: "paid";
|
|
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.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 buildSettlementRequestSchema: 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
|
+
settlementChain: 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
|
+
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1589
|
+
payerAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>;
|
|
1590
|
+
dueDate: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1591
|
+
maxRuns: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1592
|
+
}, z$1.core.$strip>;
|
|
1593
|
+
type BuildSettlementRequest = z$1.infer<typeof buildSettlementRequestSchema>;
|
|
1594
|
+
declare const buildSettlementResponseSchema: z$1.ZodObject<{
|
|
1595
|
+
requestId: z$1.ZodString;
|
|
1596
|
+
subOrgId: z$1.ZodString;
|
|
1597
|
+
walletId: z$1.ZodString;
|
|
1598
|
+
ephemeralWalletAddress: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1599
|
+
completionInstructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1600
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1601
|
+
chainId: z$1.ZodNumber;
|
|
1602
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1603
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1604
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1605
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1606
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1607
|
+
}, z$1.core.$strip>>;
|
|
1608
|
+
instructions: z$1.ZodArray<z$1.ZodObject<{
|
|
1609
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1610
|
+
chainId: z$1.ZodNumber;
|
|
1611
|
+
salt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1612
|
+
maxExecutions: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1613
|
+
action: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1614
|
+
actionName: z$1.ZodOptional<z$1.ZodString>;
|
|
1615
|
+
arguments: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1616
|
+
}, z$1.core.$strip>>;
|
|
1617
|
+
}, z$1.core.$strip>;
|
|
1618
|
+
type BuildSettlementResponse = z$1.infer<typeof buildSettlementResponseSchema>;
|
|
1619
|
+
//#endregion
|
|
1620
|
+
//#region src/api/schemas/transaction.d.ts
|
|
1621
|
+
declare const transactionGetListRequestSchema: z$1.ZodObject<{
|
|
1622
|
+
address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1623
|
+
chainId: z$1.ZodNumber;
|
|
1624
|
+
instructionIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1625
|
+
from: z$1.ZodOptional<z$1.ZodString>;
|
|
1626
|
+
to: z$1.ZodOptional<z$1.ZodString>;
|
|
1627
|
+
page: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1628
|
+
perPage: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1629
|
+
sort: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1630
|
+
asc: "asc";
|
|
1631
|
+
desc: "desc";
|
|
1632
|
+
}>>;
|
|
1633
|
+
}, z$1.core.$strip>;
|
|
1634
|
+
type TransactionGetListRequest = z$1.infer<typeof transactionGetListRequestSchema>;
|
|
1635
|
+
declare const transactionGetListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
1636
|
+
instructionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
|
|
1637
|
+
transactionHash: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
|
|
1638
|
+
blockHash: z$1.ZodNullable<z$1.ZodString>;
|
|
1639
|
+
transactionStatus: z$1.ZodString;
|
|
1640
|
+
error: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1641
|
+
startedAt: z$1.ZodString;
|
|
1642
|
+
startedAtBlock: z$1.ZodNumber;
|
|
1643
|
+
finishedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
1644
|
+
finishedAtBlock: z$1.ZodNullable<z$1.ZodNumber>;
|
|
1645
|
+
amount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
1646
|
+
value: z$1.ZodNumber;
|
|
1647
|
+
token: z$1.ZodString;
|
|
1648
|
+
}, z$1.core.$strip>>>;
|
|
1649
|
+
instructedValue: z$1.ZodString;
|
|
1650
|
+
instructedTokenAddress: z$1.ZodNullable<z$1.ZodString>;
|
|
1651
|
+
executionNum: z$1.ZodNumber;
|
|
1652
|
+
chainId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
1653
|
+
chain: z$1.ZodOptional<z$1.ZodString>;
|
|
1654
|
+
}, z$1.core.$strip>>;
|
|
1655
|
+
type TransactionGetListResponse = z$1.infer<typeof transactionGetListResponseSchema>;
|
|
1656
|
+
//#endregion
|
|
1657
|
+
//#region src/api/services/base.d.ts
|
|
1658
|
+
declare class BaseService {
|
|
1659
|
+
protected readonly instance: AxiosInstance;
|
|
1660
|
+
constructor(instance: AxiosInstance);
|
|
1661
|
+
protected makeRequest<TRequest, TResponse, Schema extends ZodType = z$1.ZodType>({
|
|
1662
|
+
url,
|
|
1663
|
+
method,
|
|
1664
|
+
data,
|
|
1665
|
+
schema,
|
|
1666
|
+
validateResponse,
|
|
1667
|
+
...config
|
|
1668
|
+
}: ServiceRequestConfig<TRequest, Schema>): Promise<ServiceResponse<TResponse>>;
|
|
1669
|
+
protected makePaginatedRequest<TRequest extends PaginatedRequest, TResponse, Schema extends ZodType = z$1.ZodType>({
|
|
1670
|
+
url,
|
|
1671
|
+
method,
|
|
1672
|
+
data,
|
|
1673
|
+
schema,
|
|
1674
|
+
validateResponse,
|
|
1675
|
+
...config
|
|
1676
|
+
}: ServiceRequestConfig<TRequest, Schema>): Promise<PaginatedServiceResponse<TResponse>>;
|
|
1677
|
+
}
|
|
1678
|
+
//#endregion
|
|
1679
|
+
//#region src/api/services/account.d.ts
|
|
1680
|
+
declare class AccountService extends BaseService {
|
|
1681
|
+
getDelegationStatus(requestBody: DelegationStatusRequest): Promise<ServiceResponse<DelegationStatusResponse>>;
|
|
1682
|
+
createDelegation(requestBody: DelegationCreateRequest): Promise<ServiceResponse<DelegationCreateResponse>>;
|
|
1683
|
+
}
|
|
1684
|
+
//#endregion
|
|
1685
|
+
//#region src/api/services/activity.d.ts
|
|
1686
|
+
declare class ActivityService extends BaseService {
|
|
1687
|
+
getInstructionActivity(requestBody: GetInstructionActivityRequest): Promise<PaginatedServiceResponse<GetInstructionActivityResponse>>;
|
|
1688
|
+
}
|
|
1689
|
+
//#endregion
|
|
1690
|
+
//#region src/api/services/auth.d.ts
|
|
1691
|
+
declare class AuthService extends BaseService {
|
|
1692
|
+
login(requestBody: AuthLoginRequest): Promise<ServiceResponse<AuthLoginResponse>>;
|
|
1693
|
+
turnkeyVerification(requestBody: TurnkeyVerificationRequest): Promise<ServiceResponse<TurnkeyVerificationResponse>>;
|
|
1694
|
+
turnkeyLogin(requestBody: TurnkeyLoginRequest): Promise<ServiceResponse<TurnkeyLoginResponse>>;
|
|
1695
|
+
me(): Promise<ServiceResponse<User>>;
|
|
1696
|
+
updatePreferences(preferences: UserPreferences): Promise<ServiceResponse<unknown>>;
|
|
1697
|
+
}
|
|
1698
|
+
//#endregion
|
|
1699
|
+
//#region src/api/services/config.d.ts
|
|
1700
|
+
declare class ConfigService extends BaseService {
|
|
1701
|
+
getDelegateAddress(requestBody: GetDelegateAddressRequest): Promise<ServiceResponse<GetDelegateAddressResponse>>;
|
|
1702
|
+
getConfigTokens({
|
|
1703
|
+
chainId
|
|
1704
|
+
}: GetConfigTokensRequestParameters): Promise<ServiceResponse<GetConfigTokensResponse>>;
|
|
1705
|
+
getConfigChains(): Promise<ServiceResponse<GetConfigChainsResponse>>;
|
|
1706
|
+
getMaxPriorityFeePerGasEstimate(requestBody: GetMaxPriorityFeePerGasEstimateRequest): Promise<ServiceResponse<GetMaxPriorityFeePerGasEstimateResponse>>;
|
|
1707
|
+
}
|
|
1708
|
+
//#endregion
|
|
1709
|
+
//#region src/api/services/contacts.d.ts
|
|
1710
|
+
declare class ContactsService extends BaseService {
|
|
1711
|
+
create(request: NewContactRequest): Promise<ServiceResponse<unknown>>;
|
|
1712
|
+
list(request: GetContactsRequest): Promise<PaginatedServiceResponse<GetContactsResponse>>;
|
|
1713
|
+
}
|
|
1714
|
+
//#endregion
|
|
1715
|
+
//#region src/api/services/developer.d.ts
|
|
1716
|
+
declare class DeveloperService extends BaseService {
|
|
1717
|
+
updatePublicKey(developerPublicKey: string): Promise<ServiceResponse<unknown>>;
|
|
1718
|
+
generateApiKey(): Promise<ServiceResponse<unknown>>;
|
|
1719
|
+
}
|
|
1720
|
+
//#endregion
|
|
1721
|
+
//#region src/api/services/instruction.d.ts
|
|
1722
|
+
declare class InstructionService extends BaseService {
|
|
1723
|
+
all(requestBody: InstructionGetAllRequest): Promise<PaginatedServiceResponse<InstructionGetAllResponse>>;
|
|
1724
|
+
build(requestBody: InstructionBuildRequest): Promise<ServiceResponse<InstructionBuild>>;
|
|
1725
|
+
activate(requestBody: InstructionActivateRequest): Promise<ServiceResponse<InstructionActivateResponse>>;
|
|
1726
|
+
deactivate(requestBody: InstructionDeactivateRequest): Promise<ServiceResponse<InstructionDeactivateResponse>>;
|
|
1727
|
+
details(requestBody: InstructionDetailsRequest): Promise<ServiceResponse<InstructionDetailsResponse>>;
|
|
1728
|
+
rules(requestBody: InstructionGetRulesRequest): Promise<PaginatedServiceResponse<InstructionGetRulesResponse>>;
|
|
1729
|
+
}
|
|
1730
|
+
//#endregion
|
|
1731
|
+
//#region src/api/services/transaction.d.ts
|
|
1732
|
+
declare class TransactionService extends BaseService {
|
|
1733
|
+
list(requestBody: TransactionGetListRequest): Promise<PaginatedServiceResponse<Transactions>>;
|
|
1734
|
+
}
|
|
1735
|
+
//#endregion
|
|
1736
|
+
//#region src/api/services/payments.d.ts
|
|
1737
|
+
declare class PaymentsService extends BaseService {
|
|
1738
|
+
getOutgoingPaymentsList(request: PaymentsListRequest): Promise<PaginatedServiceResponse<Payments>>;
|
|
1739
|
+
getIncomingPaymentsList(request: PaymentsListRequest): Promise<PaginatedServiceResponse<Payments>>;
|
|
1740
|
+
buildPaymentRequest(requestBody: PaymentRequestBuildRequest): Promise<ServiceResponse<PaymentRequestBuildResponse>>;
|
|
1741
|
+
newPaymentRequest(requestBody: PaymentRequestNewRequest): Promise<ServiceResponse<unknown>>;
|
|
1742
|
+
getPaymentRequestDetails(requestBody: PaymentRequestDetailsRequest): Promise<ServiceResponse<PaymentRequestDetailsResponse>>;
|
|
1743
|
+
getPaymentRequests(request: GetPaymentRequestsRequest): Promise<PaginatedServiceResponse<GetPaymentRequestsResponse>>;
|
|
1744
|
+
buildSettlementOrchestration(requestBody: BuildSettlementRequest): Promise<ServiceResponse<BuildSettlementResponse>>;
|
|
1745
|
+
}
|
|
1746
|
+
//#endregion
|
|
1747
|
+
//#region src/api/services/integration.d.ts
|
|
1748
|
+
declare class IntegrationService extends BaseService {
|
|
1749
|
+
upsert(request: UpdateIntegrationRequest): Promise<ServiceResponse<IntegrationResponse>>;
|
|
1750
|
+
get(request: GetIntegrationRequest): Promise<ServiceResponse<IntegrationResponse>>;
|
|
1751
|
+
}
|
|
1752
|
+
//#endregion
|
|
1753
|
+
//#region src/api/services/operating-account.d.ts
|
|
1754
|
+
declare class OperatingAccountService extends BaseService {
|
|
1755
|
+
createSubOrganization(): Promise<ServiceResponse<NewOperatingAccountSubOrgResponse>>;
|
|
1756
|
+
getSubOrganization(): Promise<ServiceResponse<GetOperatingAccountSubOrgResponse>>;
|
|
1757
|
+
}
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region src/api/api.d.ts
|
|
1760
|
+
type APIClientInitWithEnvironment = (CreateInstanceParameters & {
|
|
1761
|
+
environment?: OtimEnvironment;
|
|
1762
|
+
}) | ({
|
|
1763
|
+
instance: AxiosInstance;
|
|
1764
|
+
} & {
|
|
1765
|
+
environment?: OtimEnvironment;
|
|
1766
|
+
});
|
|
1767
|
+
declare class APIClient {
|
|
1768
|
+
account: AccountService;
|
|
1769
|
+
readonly activity: ActivityService;
|
|
1770
|
+
readonly auth: AuthService;
|
|
1771
|
+
readonly operatingAccount: OperatingAccountService;
|
|
1772
|
+
readonly config: ConfigService;
|
|
1773
|
+
readonly contacts: ContactsService;
|
|
1774
|
+
readonly developer: DeveloperService;
|
|
1775
|
+
readonly instruction: InstructionService;
|
|
1776
|
+
readonly transaction: TransactionService;
|
|
1777
|
+
readonly payments: PaymentsService;
|
|
1778
|
+
readonly integration: IntegrationService;
|
|
1779
|
+
constructor(init?: APIClientInitWithEnvironment);
|
|
1780
|
+
}
|
|
1781
|
+
declare const createAPIClient: (...params: ConstructorParameters<typeof APIClient>) => APIClient;
|
|
1782
|
+
//#endregion
|
|
1783
|
+
//#region src/api/result.d.ts
|
|
1784
|
+
interface Success<T> {
|
|
1785
|
+
success: true;
|
|
1786
|
+
data: T;
|
|
1787
|
+
}
|
|
1788
|
+
interface Failure {
|
|
1789
|
+
success: false;
|
|
1790
|
+
error: string;
|
|
1791
|
+
code?: string;
|
|
1792
|
+
}
|
|
1793
|
+
type Result<T> = Success<T> | Failure;
|
|
1794
|
+
declare function success<T>(data: T): Success<T>;
|
|
1795
|
+
declare function failure(error: string, code?: string): Failure;
|
|
1796
|
+
declare function isSuccess<T>(result: Result<T>): result is Success<T>;
|
|
1797
|
+
declare function isFailure<T>(result: Result<T>): result is Failure;
|
|
1798
|
+
declare const ErrorCode: {
|
|
1799
|
+
readonly NetworkError: "NETWORK_ERROR";
|
|
1800
|
+
readonly Unauthorized: "UNAUTHORIZED";
|
|
1801
|
+
readonly AuthenticationFailed: "AUTH_FAILED";
|
|
1802
|
+
readonly MissingParameter: "MISSING_PARAMETER";
|
|
1803
|
+
readonly Forbidden: "FORBIDDEN";
|
|
1804
|
+
readonly SessionExpired: "SESSION_EXPIRED";
|
|
1805
|
+
readonly InvalidInput: "INVALID_INPUT";
|
|
1806
|
+
readonly UnknownError: "UNKNOWN_ERROR";
|
|
1807
|
+
};
|
|
1808
|
+
type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
1809
|
+
//#endregion
|
|
1810
|
+
//#region src/api/utils/backoff.d.ts
|
|
1811
|
+
interface BackoffOptions {
|
|
1812
|
+
initialInterval?: number;
|
|
1813
|
+
maxInterval?: number;
|
|
1814
|
+
multiplier?: number;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Calculates an exponential backoff interval based on the failure count.
|
|
1818
|
+
*
|
|
1819
|
+
* @param failureCount - Number of consecutive failures
|
|
1820
|
+
* @param options - Configuration options for the backoff calculation
|
|
1821
|
+
* @returns The calculated interval in milliseconds, capped at maxInterval
|
|
1822
|
+
*/
|
|
1823
|
+
declare const calculateBackoffInterval: (failureCount: number, options?: BackoffOptions) => number;
|
|
1824
|
+
//#endregion
|
|
1825
|
+
//#region src/api/utils/pagination.d.ts
|
|
1826
|
+
/**
|
|
1827
|
+
* Determine if additional pages are likely available based on the number of
|
|
1828
|
+
* items received and the requested page size.
|
|
1829
|
+
*
|
|
1830
|
+
* Returns true when the current page contains at least `requestedPageSize`
|
|
1831
|
+
* items, implying there may be more data to fetch.
|
|
1832
|
+
*
|
|
1833
|
+
* @param items Array of items returned for the current page.
|
|
1834
|
+
* @param requestedPageSize The `perPage` value requested for this fetch.
|
|
1835
|
+
* @returns Whether another page may be available.
|
|
1836
|
+
*/
|
|
1837
|
+
declare function calculateHasMore<T>(items: T[], requestedPageSize: number): boolean;
|
|
1838
|
+
/**
|
|
1839
|
+
* Extract pagination-related fields from a request object and return them
|
|
1840
|
+
* separately from the remaining parameters.
|
|
1841
|
+
*
|
|
1842
|
+
* @param request Request object containing `page`, `perPage`, and other fields.
|
|
1843
|
+
* @returns Object with `paginationParams` and `restParams` split for
|
|
1844
|
+
* convenience.
|
|
1845
|
+
*/
|
|
1846
|
+
declare function extractPaginationParams<T extends PaginatedRequest>(request: T): {
|
|
1847
|
+
paginationParams: PaginatedRequest;
|
|
1848
|
+
restParams: Omit<T, keyof PaginatedRequest>;
|
|
1849
|
+
};
|
|
1850
|
+
/**
|
|
1851
|
+
* Provide a standard default for pagination parameters.
|
|
1852
|
+
*
|
|
1853
|
+
* @returns Default pagination with `page: 0` and `perPage: 100`.
|
|
1854
|
+
*/
|
|
1855
|
+
declare function getDefaultPagination(): Required<PaginatedRequest>;
|
|
1856
|
+
//#endregion
|
|
1857
|
+
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, OrchestrationType, PaginatedRequest, PaginatedServiceResponse, PaymentRequestBuildRequest, PaymentRequestBuildResponse, PaymentRequestDetailsRequest, PaymentRequestDetailsResponse, PaymentRequestNewRequest, PaymentsListRequest, PaymentsService, Result, ScheduleResponse, ServiceError, ServiceRequestConfig, ServiceResponse, SessionTokenRequest, SessionTokenResponse, SessionVerifyResponse, SetChainIdRequest, Success, TransactionGetListRequest, TransactionGetListResponse, TransactionService, TurnkeyLoginRequest, TurnkeyLoginResponse, TurnkeyVerificationRequest, TurnkeyVerificationResponse, UpdateIntegrationRequest, 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, orchestrationTypeSchema, paymentRequestBuildRequestSchema, paymentRequestBuildResponseSchema, paymentRequestDetailsRequestSchema, paymentRequestDetailsResponseSchema, paymentRequestNewRequestSchema, paymentRequestSchema, paymentRequestStatusSchema, paymentRequestsDirectionSchema, sessionTokenRequestSchema, sessionTokenResponseSchema, sessionVerifyResponseSchema, setChainIdSchema, success, transactionGetListRequestSchema, transactionGetListResponseSchema, turnkeyLoginRequestSchema, turnkeyLoginResponseSchema, turnkeyVerificationRequestSchema, turnkeyVerificationResponseSchema, updateIntegrationRequestSchema, whitelistCheckRequestSchema, whitelistCheckResponseSchema };
|
|
1858
|
+
//# sourceMappingURL=index.d.mts.map
|