@otim/utils 0.0.4 → 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 -1994
- package/dist/api/index.js.map +1 -7
- package/dist/api/index.mjs +1394 -1962
- 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 +39 -28
- 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 -234
- package/dist/api/schemas/payments.d.ts +0 -234
- 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
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/schemas/account.ts", "../../src/schemas/contact.ts", "../../src/schemas/instruction.ts", "../../src/schemas/misc.ts", "../../src/schemas/payment.ts", "../../src/schemas/token.ts", "../../src/schemas/transaction.ts", "../../src/schemas/user.ts"],
|
|
4
|
-
"sourcesContent": ["export const AccountType = {\n Otim: \"otim\",\n Bank: \"bank\",\n Ephemeral: \"ephemeral\",\n Custodian: \"custodian\",\n Wallet: \"wallet\",\n} as const;\n\nexport type AccountType = (typeof AccountType)[keyof typeof AccountType];\n", "import { z } from \"zod\";\n\nexport const ContactSchema = z.object({\n userId: z.string(),\n name: z.string(),\n address: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ContactsSchema = z.array(ContactSchema);\n\nexport type Contact = z.infer<typeof ContactSchema>;\nexport type Contacts = z.infer<typeof ContactsSchema>;\n", "import { z } from \"zod\";\n\nimport { dateStandardSchema, hexStringSchema, numberSchema } from \"./misc\";\n\nexport const instructionIdSchema = hexStringSchema;\nexport type InstructionId = z.infer<typeof instructionIdSchema>;\n\nexport const InstructionState = {\n PendingActivation: \"PendingActivation\",\n Active: \"Active\",\n PendingDeactivation: \"PendingDeactivation\",\n Deactivated: \"Deactivated\",\n Errored: \"Errored\",\n Completed: \"Completed\",\n UserNotDelegated: \"UserNotDelegated\",\n InFlight: \"InFlight\",\n NotifyUser: \"NotifyUser\",\n} as const;\nexport type InstructionState =\n (typeof InstructionState)[keyof typeof InstructionState];\nexport const instructionStateValues = Object.values(InstructionState) as [\n InstructionState,\n ...InstructionState[],\n];\nexport const instructionStateSchema = z.enum(instructionStateValues);\n\nexport const InstructionAction = {\n RefuelERC20: \"refuelERC20\",\n Refuel: \"refuel\",\n Transfer: \"transfer\",\n TransferERC20: \"transferERC20\",\n UniswapV3ExactInput: \"uniswapV3ExactInput\",\n Sweep: \"sweep\",\n SweepERC20: \"sweepERC20\",\n SweepCCTP: \"sweepCCTP\",\n SweepUniswapV3: \"sweepUniswapV3\",\n SweepDepositAccount: \"sweepDepositAccount\",\n SweepDepositAccountERC20: \"sweepDepositAccountERC20\",\n DeactivateInstruction: \"deactivateInstruction\",\n SweepSkipCCTPDepositAccount: \"sweepSkipCCTPDepositAccount\",\n} as const;\nexport type InstructionAction =\n (typeof InstructionAction)[keyof typeof InstructionAction];\nexport const instructionActionValues = Object.values(InstructionAction) as [\n InstructionAction,\n ...InstructionAction[],\n];\nexport const instructionActionSchema = z.enum(instructionActionValues);\n\nexport const InstructionScheduleStartType = {\n Now: \"now\",\n DateTime: \"datetime\",\n} as const;\nexport type InstructionScheduleStartType =\n (typeof InstructionScheduleStartType)[keyof typeof InstructionScheduleStartType];\nexport const instructionScheduleStartValues = Object.values(\n InstructionScheduleStartType,\n) as [InstructionScheduleStartType, ...InstructionScheduleStartType[]];\nconst baseStartSchema = z.object({\n type: z.enum(instructionScheduleStartValues),\n});\nconst nowStartSchema = baseStartSchema.extend({\n type: z.literal(InstructionScheduleStartType.Now),\n});\nconst dateTimeStartSchema = baseStartSchema.extend({\n type: z.literal(InstructionScheduleStartType.DateTime),\n startDate: dateStandardSchema,\n startTime: z.string(),\n});\nexport const instructionScheduleStartSchema = z.discriminatedUnion(\"type\", [\n nowStartSchema,\n dateTimeStartSchema,\n]);\nexport type InstructionScheduleStart = z.infer<\n typeof instructionScheduleStartSchema\n>;\n\nexport const InstructionScheduleRepeatType = {\n UntilDeactivated: \"until-deactivated\",\n MaxExecutions: \"max-executions\",\n} as const;\nexport type InstructionScheduleRepeatType =\n (typeof InstructionScheduleRepeatType)[keyof typeof InstructionScheduleRepeatType];\nexport const instructionScheduleRepeatValues = Object.values(\n InstructionScheduleRepeatType,\n) as [InstructionScheduleRepeatType, ...InstructionScheduleRepeatType[]];\nconst baseRepeatSchema = z.object({});\nconst untilDeactivatedRepeatSchema = baseRepeatSchema.extend({\n type: z.literal(InstructionScheduleRepeatType.UntilDeactivated),\n});\nconst maxExecutionsRepeatSchema = baseRepeatSchema.extend({\n type: z.literal(InstructionScheduleRepeatType.MaxExecutions),\n maxExecutions: numberSchema,\n});\nexport const instructionScheduleRepeatSchema = z.discriminatedUnion(\"type\", [\n untilDeactivatedRepeatSchema,\n maxExecutionsRepeatSchema,\n]);\nexport type InstructionScheduleRepeat = z.infer<\n typeof instructionScheduleRepeatSchema\n>;\n\nexport const InstructionScheduleRetryType = {\n UntilDeactivated: \"until-deactivated\",\n TimeLimited: \"time-limited\",\n} as const;\nexport type InstructionScheduleRetryType =\n (typeof InstructionScheduleRetryType)[keyof typeof InstructionScheduleRetryType];\nexport const instructionScheduleRetryValues = Object.values(\n InstructionScheduleRetryType,\n) as [InstructionScheduleRetryType, ...InstructionScheduleRetryType[]];\nconst baseRetrySchema = z.object({});\nconst untilDeactivatedRetrySchema = baseRetrySchema.extend({\n type: z.literal(InstructionScheduleRetryType.UntilDeactivated),\n});\nconst timeLimitedRetrySchema = baseRetrySchema.extend({\n type: z.literal(InstructionScheduleRetryType.TimeLimited),\n retryCount: numberSchema,\n});\nexport const instructionScheduleRetrySchema = z.discriminatedUnion(\"type\", [\n untilDeactivatedRetrySchema,\n timeLimitedRetrySchema,\n]);\nexport type InstructionScheduleRetry = z.infer<\n typeof instructionScheduleRetrySchema\n>;\n\nexport const TimeUnit = {\n None: \"none\",\n Second: \"second\",\n Minute: \"minute\",\n Hour: \"hour\",\n Day: \"day\",\n Week: \"week\",\n Month: \"month\",\n} as const;\nexport type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];\nexport const timeUnitValues = Object.values(TimeUnit) as [\n TimeUnit,\n ...TimeUnit[],\n];\nexport const timeUnitSchema = z.enum(timeUnitValues);\n\nexport const instructionExecutionStateSchema = z.object({\n executionStatus: instructionStateSchema.optional(),\n executionCounter: z.number().int().optional(),\n lastExecuted: z.number().int().optional(),\n});\n\nexport const instructionSchema = z.object({\n instructionId: hexStringSchema,\n createdAt: z.number().optional(),\n startAt: z.string().nullish(),\n interval: z.number().nullish(),\n timeout: z.number().nullish(),\n maxExecutions: z.number().nullish(),\n executionState: instructionExecutionStateSchema.optional(),\n actionName: z.string().optional(),\n arguments: z.any(),\n nickname: z.string().nullish(),\n lastInstructedValue: z.string().optional(),\n lastErrorCode: z.number().nullish(),\n lastErrorMessage: z.string().nullish(),\n totalInstructedValue: z.string().optional(),\n instructedTokenAddress: hexStringSchema.nullish(),\n chainId: z.number().nullish(),\n chain: z.string().optional(),\n});\nexport type Instruction = z.infer<typeof instructionSchema>;\n\nexport const instructionsSchema = z.array(instructionSchema);\nexport type Instructions = z.infer<typeof instructionsSchema>;\n\nexport const instructionSummarySchema = z.object({\n instructionId: hexStringSchema,\n chainId: z.number().int(),\n executionCount: z.number().int(),\n onTimeCount: z.number().int(),\n lateCount: z.number().int(),\n wasActivatedDuring: z.boolean(),\n amount: z.number().default(0),\n instructedValue: z.string().nullish().default(\"0\"),\n instructedTokenAddress: z.string().nullish().default(null),\n});\nexport type InstructionSummary = z.infer<typeof instructionSummarySchema>;\n\nexport const instructionSummariesSchema = z.array(instructionSummarySchema);\nexport type InstructionSummaries = z.infer<typeof instructionSummariesSchema>;\n\nexport const instructionSummariesByDateSchema = z.record(\n z.string(),\n instructionSummariesSchema,\n);\nexport type InstructionSummariesByDate = z.infer<\n typeof instructionSummariesByDateSchema\n>;\n\nexport const InstructionViewTimescale = {\n Days: \"days\",\n Hours: \"hours\",\n Minutes: \"minutes\",\n Seconds: \"seconds\",\n} as const;\nexport type InstructionViewTimescale =\n (typeof InstructionViewTimescale)[keyof typeof InstructionViewTimescale];\nexport const instructionViewTimescaleValues = Object.values(\n InstructionViewTimescale,\n) as [InstructionViewTimescale, ...InstructionViewTimescale[]];\n\nexport function assertInstructionAction(\n action: unknown,\n): asserts action is InstructionAction {\n if (!instructionActionValues.includes(action as InstructionAction)) {\n throw new Error(`Invalid instruction action: ${action}`);\n }\n}\n", "import { z } from \"zod\";\n\nexport const DATE_REGEX =\n /^(19|20)\\d{2}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\nexport const DATE_ISO_8601_REGEX =\n /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$/;\nexport const DATE_STANDARD_REGEX =\n /^(0[1-9]|1[0-2])\\/(0[1-9]|[12][0-9]|3[01])\\/(19|20)\\d{2}$/;\nexport const TIME_REGEX = /^(0[1-9]|1[0-2]):[0-5][0-9]:[0-5][0-9] (AM|PM)$/;\n\nexport const regexSchema = (regex: RegExp, message?: string) =>\n z.string().regex(regex, message);\n\nexport const nonEmptyStringSchema = z.string().min(1);\n\nexport const numberSchema = z.union([\n z.number().finite(),\n z\n .string()\n .regex(/^-?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$/)\n .transform(Number),\n]);\n\nexport const decimalStringSchema = z\n .string()\n .regex(/^-?\\d*\\.?\\d+$/)\n .refine((val) => !isNaN(parseFloat(val)), {\n message: \"Must be a valid decimal number\",\n });\n\nexport const bigintSchema = z.union([\n z.bigint(),\n z\n .string()\n .regex(/^-?\\d+$/)\n .transform(BigInt),\n]);\n\nexport const hexStringSchema = z\n .string()\n .startsWith(\"0x\")\n .transform((val): `0x${string}` => val as `0x${string}`);\n\nexport const dateSchema = regexSchema(DATE_REGEX);\nexport const dateISO8601Schema = regexSchema(DATE_ISO_8601_REGEX);\nexport const dateStandardSchema = regexSchema(DATE_STANDARD_REGEX);\n\nexport const timeSchema = regexSchema(TIME_REGEX);\n\nexport const Sort = {\n Asc: \"asc\",\n Desc: \"desc\",\n} as const;\nexport type Sort = (typeof Sort)[keyof typeof Sort];\nexport const sortValues = Object.values(Sort) as [Sort, ...Sort[]];\n\nexport const vrsSchema = z.object({\n v: z.number(),\n r: z.string(),\n s: z.string(),\n});\n\nexport const eip2098SignatureSchema = z.object({\n yParity: z.number(),\n r: z.string(),\n s: z.string(),\n});\n\nexport type HexString = z.infer<typeof hexStringSchema>;\nexport type Address = z.infer<typeof hexStringSchema>;\nexport type VRS = z.infer<typeof vrsSchema>;\nexport type EIP2098Signature = z.infer<typeof eip2098SignatureSchema>;\n", "import { z } from \"zod\";\n\nexport const PaymentStatus = {\n Due: \"due\",\n NotDue: \"not-due\",\n Paid: \"paid\",\n} as const;\nexport type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];\n\nexport const PaymentSource = {\n Bill: \"Bill\",\n Stripe: \"Stripe\",\n Clio: \"Clio\",\n QuickBooks: \"QuickBooks\",\n} as const;\nexport type PaymentSource = (typeof PaymentSource)[keyof typeof PaymentSource];\n\nexport const paymentRequestSourceValues = [\n PaymentSource.Bill,\n PaymentSource.Stripe,\n PaymentSource.Clio,\n PaymentSource.QuickBooks,\n] satisfies ReadonlyArray<PaymentSource>;\n\nexport const paymentSchema = z.object({\n id: z.string(),\n fromUserId: z.string().nullable().optional(),\n toUserId: z.string().nullable().optional(),\n payerAddress: z.string().nullable().optional(),\n ephemeralWalletAddress: z.string(),\n ephemeralWalletId: z.string().optional(),\n instructions: z\n .object({\n ids: z.array(z.string()),\n completionIds: z.array(z.string()),\n })\n .optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n // UI-derived fields\n status: z.union([\n z.literal(PaymentStatus.Due),\n z.literal(PaymentStatus.NotDue),\n z.literal(PaymentStatus.Paid),\n ]),\n dueDate: z.string(),\n amountDue: z.number(),\n note: z.string().nullable().optional(),\n address: z.string().nullable().optional(),\n addedOn: z.string(),\n source: z\n .union([\n z.literal(PaymentSource.Bill),\n z.literal(PaymentSource.Stripe),\n z.literal(PaymentSource.Clio),\n z.literal(PaymentSource.QuickBooks),\n ])\n .nullish(),\n attachmentUrl: z.string().url().nullable().optional(),\n attachmentName: z.string().nullable().optional(),\n fromAccountAddress: z.string().nullable().optional(),\n});\n\nexport type Payment = z.infer<typeof paymentSchema>;\n\nexport const PaymentsSchema = z.array(paymentSchema);\nexport type Payments = z.infer<typeof PaymentsSchema>;\n", "import type { Optional } from \"@otim/utils/helpers\";\n\nimport { z } from \"zod\";\n\nexport const Token = {\n ETH: \"ETH\",\n USDC: \"USDC\",\n USDT: \"USDT\",\n} as const;\nexport type Token = (typeof Token)[keyof typeof Token];\nexport const TokenValues = Object.values(Token) as [Token, ...Token[]];\n\nexport const tokenSchema = z.enum(TokenValues);\n\nexport function assertToken(token: unknown): asserts token is Token {\n if (!TokenValues.includes(token as Token)) {\n throw new Error(`Invalid token: ${token}`);\n }\n}\n\nexport function assertsOptionalToken(\n token: unknown,\n): asserts token is Optional<Token> {\n if (token !== undefined) {\n assertToken(token);\n }\n}\n", "import { z } from \"zod\";\n\nimport { instructionIdSchema } from \"./instruction\";\nimport { hexStringSchema } from \"./misc\";\n\nexport type Transaction = z.infer<typeof transactionSchema>;\nexport type TransactionWithValidAmount = z.infer<\n typeof transactionWithValidAmountSchema\n>;\nexport type Transactions = z.infer<typeof transactionsSchema>;\n\nexport const transactionSchema = z.object({\n instructionId: instructionIdSchema,\n transactionHash: hexStringSchema.optional(),\n blockHash: z.string().nullable(),\n transactionStatus: z.string(),\n error: z.string().nullish(),\n startedAt: z.string(),\n startedAtBlock: z.number(),\n finishedAt: z.string().nullable(),\n finishedAtBlock: z.number().nullable(),\n amount: z.object({ value: z.number(), token: z.string() }).nullish(),\n instructedValue: z.string(),\n instructedTokenAddress: z.string().nullable(),\n executionNum: z.number(),\n chainId: z.number().nullish(),\n chain: z.string().optional(),\n});\nexport const transactionWithValidAmountSchema = transactionSchema.extend({\n amount: z.object({\n value: z.number(),\n token: z.string(),\n }),\n});\nexport const transactionsSchema = z.array(transactionSchema);\n", "import { z } from \"zod\";\n\nexport const entityIdSchema = z.string().uuid();\n\nexport const addressSchema = z\n .string()\n .regex(/^0x[a-fA-F0-9]{40}$/)\n .transform((v) => v.toLowerCase());\n\nexport const userPreferencesSchema = z.object({\n chainId: z.number().optional(),\n tokenSymbol: z.string().optional(),\n localCurrency: z.string().optional(),\n});\n\nexport const userSchema = z.object({\n id: entityIdSchema,\n address: addressSchema,\n createdAt: z.string(),\n updatedAt: z.string(),\n preferences: userPreferencesSchema.optional(),\n isDeveloper: z.boolean(),\n developerPublicKey: z.string().nullable().optional(),\n});\n\nexport type UserPreferences = z.infer<typeof userPreferencesSchema>;\nexport type User = z.infer<typeof userSchema>;\n"],
|
|
5
|
-
"mappings": ";AAAO,IAAM,cAAc;AAAA,EACzB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACV;;;ACNA,SAAS,SAAS;AAEX,IAAM,gBAAgB,EAAE,OAAO;AAAA,EACpC,QAAQ,EAAE,OAAO;AAAA,EACjB,MAAM,EAAE,OAAO;AAAA,EACf,SAAS,EAAE,OAAO;AAAA,EAClB,WAAW,EAAE,OAAO;AAAA,EACpB,WAAW,EAAE,OAAO;AACtB,CAAC;AAEM,IAAM,iBAAiB,EAAE,MAAM,aAAa;;;ACVnD,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,KAAAC,UAAS;AAEX,IAAM,aACX;AACK,IAAM,sBACX;AACK,IAAM,sBACX;AACK,IA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J,SAAS;AAAA,EACT,WAAWA,GAAE,OAAO;AAAA,EACpB,WAAWA,GAAE,OAAO;AAAA,EACpB,aAAa,sBAAsB,SAAS;AAAA,EAC5C,aAAaA,GAAE,QAAQ;AAAA,EACvB,oBAAoBA,GAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AACrD,CAAC;",
|
|
6
|
-
"names": ["z", "z", "z", "z", "z", "z", "z", "z"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["z","z","z","z","z","z","z"],"sources":["../../src/schemas/account.ts","../../src/schemas/contact.ts","../../src/schemas/misc.ts","../../src/schemas/instruction.ts","../../src/schemas/payment.ts","../../src/schemas/token.ts","../../src/schemas/transaction.ts","../../src/schemas/user.ts"],"sourcesContent":["export const AccountType = {\n Otim: \"otim\",\n Bank: \"bank\",\n Ephemeral: \"ephemeral\",\n Custodian: \"custodian\",\n Wallet: \"wallet\",\n} as const;\nexport type AccountType = (typeof AccountType)[keyof typeof AccountType];\n\nexport const AccountConnectionStatus = {\n Connected: \"connected\",\n Disconnected: \"disconnected\",\n Connecting: \"connecting\",\n Reconnecting: \"reconnecting\",\n} as const;\nexport type AccountConnectionStatus =\n (typeof AccountConnectionStatus)[keyof typeof AccountConnectionStatus];\n","import { z } from \"zod\";\n\nexport const ContactSchema = z.object({\n userId: z.string(),\n name: z.string(),\n address: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ContactsSchema = z.array(ContactSchema);\n\nexport type Contact = z.infer<typeof ContactSchema>;\nexport type Contacts = z.infer<typeof ContactsSchema>;\n","import { z } from \"zod\";\n\nexport const DATE_REGEX =\n /^(19|20)\\d{2}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\nexport const DATE_ISO_8601_REGEX =\n /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$/;\nexport const DATE_STANDARD_REGEX =\n /^(0[1-9]|1[0-2])\\/(0[1-9]|[12][0-9]|3[01])\\/(19|20)\\d{2}$/;\nexport const TIME_REGEX = /^(0[1-9]|1[0-2]):[0-5][0-9]:[0-5][0-9] (AM|PM)$/;\n\nexport const regexSchema = (regex: RegExp, message?: string) =>\n z.string().regex(regex, message);\n\nexport const nonEmptyStringSchema = z.string().min(1);\n\nexport const numberSchema = z.union([\n z.number().finite(),\n z\n .string()\n .regex(/^-?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$/)\n .transform(Number),\n]);\n\nexport const decimalStringSchema = z\n .string()\n .regex(/^-?\\d*\\.?\\d+$/)\n .refine((val) => !isNaN(parseFloat(val)), {\n message: \"Must be a valid decimal number\",\n });\n\nexport const bigintSchema = z.union([\n z.bigint(),\n z\n .string()\n .regex(/^-?\\d+$/)\n .transform(BigInt),\n]);\n\nexport const hexStringSchema = z\n .string()\n .startsWith(\"0x\")\n .transform((val): `0x${string}` => val as `0x${string}`);\n\nexport const chainIdSchema = z.number().positive();\n\nexport const dateSchema = regexSchema(DATE_REGEX);\nexport const dateISO8601Schema = regexSchema(DATE_ISO_8601_REGEX);\nexport const dateStandardSchema = regexSchema(DATE_STANDARD_REGEX);\n\nexport const timeSchema = regexSchema(TIME_REGEX);\n\nexport const Sort = {\n Asc: \"asc\",\n Desc: \"desc\",\n} as const;\nexport type Sort = (typeof Sort)[keyof typeof Sort];\nexport const sortValues = Object.values(Sort) as [Sort, ...Sort[]];\n\nexport const vrsSchema = z.object({\n v: z.number(),\n r: z.string(),\n s: z.string(),\n});\n\nexport const eip2098SignatureSchema = z.object({\n yParity: z.number(),\n r: z.string(),\n s: z.string(),\n});\n\nexport type HexString = z.infer<typeof hexStringSchema>;\nexport type Address = z.infer<typeof hexStringSchema>;\nexport type VRS = z.infer<typeof vrsSchema>;\nexport type EIP2098Signature = z.infer<typeof eip2098SignatureSchema>;\nexport type ChainId = z.infer<typeof chainIdSchema>;\n","import { z } from \"zod\";\n\nimport { dateStandardSchema, hexStringSchema, numberSchema } from \"./misc\";\n\nexport const instructionIdSchema = hexStringSchema;\nexport type InstructionId = z.infer<typeof instructionIdSchema>;\n\nexport const InstructionState = {\n PendingActivation: \"PendingActivation\",\n Active: \"Active\",\n PendingDeactivation: \"PendingDeactivation\",\n Deactivated: \"Deactivated\",\n Errored: \"Errored\",\n Completed: \"Completed\",\n UserNotDelegated: \"UserNotDelegated\",\n InFlight: \"InFlight\",\n NotifyUser: \"NotifyUser\",\n} as const;\nexport type InstructionState =\n (typeof InstructionState)[keyof typeof InstructionState];\nexport const instructionStateValues = Object.values(InstructionState) as [\n InstructionState,\n ...InstructionState[],\n];\nexport const instructionStateSchema = z.enum(instructionStateValues);\n\nexport const InstructionAction = {\n Refuel: \"Refuel\",\n RefuelERC20: \"RefuelERC20\",\n Transfer: \"Transfer\",\n TransferERC20: \"TransferERC20\",\n TransferCCTP: \"TransferCCTP\",\n UniswapV3ExactInput: \"UniswapV3ExactInput\",\n Sweep: \"Sweep\",\n SweepERC20: \"SweepERC20\",\n SweepCCTP: \"SweepCCTP\",\n SweepUniswapV3: \"SweepUniswapV3\",\n DeactivateInstruction: \"DeactivateInstruction\",\n SweepSkipCCTPDepositAccount: \"SweepSkipCCTPDepositAccount\",\n DepositERC4626: \"DepositERC4626\",\n SweepDepositERC4626: \"SweepDepositERC4626\",\n WithdrawERC4626: \"WithdrawERC4626\",\n SweepWithdrawERC4626: \"SweepWithdrawERC4626\",\n SweepDepositAccount: \"SweepDepositAccount\",\n SweepDepositAccountERC20: \"SweepDepositAccountERC20\",\n CallOnce: \"CallOnce\",\n} as const;\nexport type InstructionAction =\n (typeof InstructionAction)[keyof typeof InstructionAction];\nexport const instructionActionValues = Object.values(InstructionAction) as [\n InstructionAction,\n ...InstructionAction[],\n];\nexport const instructionActionSchema = z.enum(instructionActionValues);\n\nexport const InstructionScheduleStartType = {\n Now: \"now\",\n DateTime: \"datetime\",\n} as const;\nexport type InstructionScheduleStartType =\n (typeof InstructionScheduleStartType)[keyof typeof InstructionScheduleStartType];\nexport const instructionScheduleStartValues = Object.values(\n InstructionScheduleStartType,\n) as [InstructionScheduleStartType, ...InstructionScheduleStartType[]];\nconst baseStartSchema = z.object({\n type: z.enum(instructionScheduleStartValues),\n});\nconst nowStartSchema = baseStartSchema.extend({\n type: z.literal(InstructionScheduleStartType.Now),\n});\nconst dateTimeStartSchema = baseStartSchema.extend({\n type: z.literal(InstructionScheduleStartType.DateTime),\n startDate: dateStandardSchema,\n startTime: z.string(),\n});\nexport const instructionScheduleStartSchema = z.discriminatedUnion(\"type\", [\n nowStartSchema,\n dateTimeStartSchema,\n]);\nexport type InstructionScheduleStart = z.infer<\n typeof instructionScheduleStartSchema\n>;\n\nexport const InstructionScheduleRepeatType = {\n UntilDeactivated: \"until-deactivated\",\n MaxExecutions: \"max-executions\",\n} as const;\nexport type InstructionScheduleRepeatType =\n (typeof InstructionScheduleRepeatType)[keyof typeof InstructionScheduleRepeatType];\nexport const instructionScheduleRepeatValues = Object.values(\n InstructionScheduleRepeatType,\n) as [InstructionScheduleRepeatType, ...InstructionScheduleRepeatType[]];\nconst baseRepeatSchema = z.object({});\nconst untilDeactivatedRepeatSchema = baseRepeatSchema.extend({\n type: z.literal(InstructionScheduleRepeatType.UntilDeactivated),\n});\nconst maxExecutionsRepeatSchema = baseRepeatSchema.extend({\n type: z.literal(InstructionScheduleRepeatType.MaxExecutions),\n maxExecutions: numberSchema,\n});\nexport const instructionScheduleRepeatSchema = z.discriminatedUnion(\"type\", [\n untilDeactivatedRepeatSchema,\n maxExecutionsRepeatSchema,\n]);\nexport type InstructionScheduleRepeat = z.infer<\n typeof instructionScheduleRepeatSchema\n>;\n\nexport const InstructionScheduleRetryType = {\n UntilDeactivated: \"until-deactivated\",\n TimeLimited: \"time-limited\",\n} as const;\nexport type InstructionScheduleRetryType =\n (typeof InstructionScheduleRetryType)[keyof typeof InstructionScheduleRetryType];\nexport const instructionScheduleRetryValues = Object.values(\n InstructionScheduleRetryType,\n) as [InstructionScheduleRetryType, ...InstructionScheduleRetryType[]];\nconst baseRetrySchema = z.object({});\nconst untilDeactivatedRetrySchema = baseRetrySchema.extend({\n type: z.literal(InstructionScheduleRetryType.UntilDeactivated),\n});\nconst timeLimitedRetrySchema = baseRetrySchema.extend({\n type: z.literal(InstructionScheduleRetryType.TimeLimited),\n retryCount: numberSchema,\n});\nexport const instructionScheduleRetrySchema = z.discriminatedUnion(\"type\", [\n untilDeactivatedRetrySchema,\n timeLimitedRetrySchema,\n]);\nexport type InstructionScheduleRetry = z.infer<\n typeof instructionScheduleRetrySchema\n>;\n\nexport const TimeUnit = {\n None: \"none\",\n Second: \"second\",\n Minute: \"minute\",\n Hour: \"hour\",\n Day: \"day\",\n Week: \"week\",\n Month: \"month\",\n} as const;\nexport type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];\nexport const timeUnitValues = Object.values(TimeUnit) as [\n TimeUnit,\n ...TimeUnit[],\n];\nexport const timeUnitSchema = z.enum(timeUnitValues);\n\nconst instructionExecutionStateRawSchema = z.object({\n execution_status: instructionStateSchema.optional(),\n execution_counter: z.number().int().optional(),\n last_executed: z.number().int().optional(),\n});\n\nexport const instructionExecutionStateSchema =\n instructionExecutionStateRawSchema.transform((data) => ({\n executionStatus: data.execution_status,\n executionCounter: data.execution_counter,\n lastExecuted: data.last_executed,\n }));\n\nexport type InstructionExecutionState = z.infer<\n typeof instructionExecutionStateSchema\n>;\n\nexport const instructionSchema = z.object({\n instructionId: hexStringSchema,\n createdAt: z.number().optional(),\n startAt: z.string().nullish(),\n interval: z.number().nullish(),\n timeout: z.number().nullish(),\n maxExecutions: z.number().nullish(),\n executionState: instructionExecutionStateSchema,\n actionName: z.string().optional(),\n arguments: z.any(),\n nickname: z.string().nullish(),\n lastInstructedValue: z.string().optional(),\n lastErrorCode: z.number().nullish(),\n lastErrorMessage: z.string().nullish(),\n totalInstructedValue: z.string().optional(),\n instructedTokenAddress: hexStringSchema.nullish(),\n chainId: z.number().nullish(),\n chain: z.string().optional(),\n});\nexport type Instruction = z.infer<typeof instructionSchema>;\n\nexport const instructionsSchema = z.array(instructionSchema);\nexport type Instructions = z.infer<typeof instructionsSchema>;\n\nexport const instructionSummarySchema = z.object({\n instructionId: hexStringSchema,\n chainId: z.number().int(),\n executionCount: z.number().int(),\n onTimeCount: z.number().int(),\n lateCount: z.number().int(),\n wasActivatedDuring: z.boolean(),\n amount: z.number().default(0),\n instructedValue: z.string().nullish().default(\"0\"),\n instructedTokenAddress: z.string().nullish().default(null),\n});\nexport type InstructionSummary = z.infer<typeof instructionSummarySchema>;\n\nexport const instructionSummariesSchema = z.array(instructionSummarySchema);\nexport type InstructionSummaries = z.infer<typeof instructionSummariesSchema>;\n\nexport const instructionSummariesByDateSchema = z.record(\n z.string(),\n instructionSummariesSchema,\n);\nexport type InstructionSummariesByDate = z.infer<\n typeof instructionSummariesByDateSchema\n>;\n\nexport const InstructionViewTimescale = {\n Days: \"days\",\n Hours: \"hours\",\n Minutes: \"minutes\",\n Seconds: \"seconds\",\n} as const;\nexport type InstructionViewTimescale =\n (typeof InstructionViewTimescale)[keyof typeof InstructionViewTimescale];\nexport const instructionViewTimescaleValues = Object.values(\n InstructionViewTimescale,\n) as [InstructionViewTimescale, ...InstructionViewTimescale[]];\n\nexport function assertInstructionAction(\n action: unknown,\n): asserts action is InstructionAction {\n if (!instructionActionValues.includes(action as InstructionAction)) {\n throw new Error(`Invalid instruction action: ${action}`);\n }\n}\n","import { z } from \"zod\";\n\nexport const PaymentStatus = {\n Due: \"due\",\n NotDue: \"not-due\",\n Paid: \"paid\",\n} as const;\nexport type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];\n\nexport const PaymentSource = {\n Bill: \"Bill\",\n Stripe: \"Stripe\",\n Clio: \"Clio\",\n QuickBooks: \"QuickBooks\",\n} as const;\nexport type PaymentSource = (typeof PaymentSource)[keyof typeof PaymentSource];\n\nexport const paymentRequestSourceValues = [\n PaymentSource.Bill,\n PaymentSource.Stripe,\n PaymentSource.Clio,\n PaymentSource.QuickBooks,\n] satisfies ReadonlyArray<PaymentSource>;\n\nexport const paymentSchema = z.object({\n id: z.string(),\n fromUserId: z.string().nullable().optional(),\n toUserId: z.string().nullable().optional(),\n payerAddress: z.string().nullable().optional(),\n ephemeralWalletAddress: z.string(),\n ephemeralWalletId: z.string().optional(),\n instructions: z\n .object({\n ids: z.array(z.string()),\n completionIds: z.array(z.string()),\n })\n .optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n // UI-derived fields\n status: z.union([\n z.literal(PaymentStatus.Due),\n z.literal(PaymentStatus.NotDue),\n z.literal(PaymentStatus.Paid),\n ]),\n dueDate: z.string(),\n amountDue: z.number(),\n note: z.string().nullable().optional(),\n address: z.string().nullable().optional(),\n addedOn: z.string(),\n source: z\n .union([\n z.literal(PaymentSource.Bill),\n z.literal(PaymentSource.Stripe),\n z.literal(PaymentSource.Clio),\n z.literal(PaymentSource.QuickBooks),\n ])\n .nullish(),\n attachmentUrl: z.string().url().nullable().optional(),\n attachmentName: z.string().nullable().optional(),\n fromAccountAddress: z.string().nullable().optional(),\n});\n\nexport type Payment = z.infer<typeof paymentSchema>;\n\nexport const PaymentsSchema = z.array(paymentSchema);\nexport type Payments = z.infer<typeof PaymentsSchema>;\n","import type { Optional } from \"@otim/utils/helpers\";\n\nimport { z } from \"zod\";\n\nexport const Token = {\n ETH: \"ETH\",\n USDC: \"USDC\",\n USDT: \"USDT\",\n} as const;\nexport type Token = (typeof Token)[keyof typeof Token];\nexport const TokenValues = Object.values(Token) as [Token, ...Token[]];\n\nexport const tokenSchema = z.enum(TokenValues);\n\nexport function assertToken(token: unknown): asserts token is Token {\n if (!TokenValues.includes(token as Token)) {\n throw new Error(`Invalid token: ${token}`);\n }\n}\n\nexport function assertsOptionalToken(\n token: unknown,\n): asserts token is Optional<Token> {\n if (token !== undefined) {\n assertToken(token);\n }\n}\n","import { z } from \"zod\";\n\nimport { instructionIdSchema } from \"./instruction\";\nimport { hexStringSchema } from \"./misc\";\n\nexport type Transaction = z.infer<typeof transactionSchema>;\nexport type TransactionWithValidAmount = z.infer<\n typeof transactionWithValidAmountSchema\n>;\nexport type Transactions = z.infer<typeof transactionsSchema>;\n\nexport const transactionSchema = z.object({\n instructionId: instructionIdSchema,\n transactionHash: hexStringSchema.optional(),\n blockHash: z.string().nullable(),\n transactionStatus: z.string(),\n error: z.string().nullish(),\n startedAt: z.string(),\n startedAtBlock: z.number(),\n finishedAt: z.string().nullable(),\n finishedAtBlock: z.number().nullable(),\n amount: z.object({ value: z.number(), token: z.string() }).nullish(),\n instructedValue: z.string(),\n instructedTokenAddress: z.string().nullable(),\n executionNum: z.number(),\n chainId: z.number().nullish(),\n chain: z.string().optional(),\n});\nexport const transactionWithValidAmountSchema = transactionSchema.extend({\n amount: z.object({\n value: z.number(),\n token: z.string(),\n }),\n});\nexport const transactionsSchema = z.array(transactionSchema);\n","import { z } from \"zod\";\n\nexport const entityIdSchema = z.string().uuid();\n\nexport const addressSchema = z\n .string()\n .regex(/^0x[a-fA-F0-9]{40}$/)\n .transform((v) => v.toLowerCase());\n\nexport const userPreferencesSchema = z.object({\n chainId: z.number().optional(),\n tokenSymbol: z.string().optional(),\n localCurrency: z.string().optional(),\n});\n\nexport const userSchema = z.object({\n id: entityIdSchema,\n address: addressSchema,\n email: z.string().email().nullable().optional(),\n createdAt: z.string(),\n updatedAt: z.string(),\n preferences: userPreferencesSchema.optional(),\n isDeveloper: z.boolean(),\n developerPublicKey: z.string().nullable().optional(),\n});\n\nexport type UserPreferences = z.infer<typeof userPreferencesSchema>;\nexport type User = z.infer<typeof userSchema>;\n"],"mappings":";;;AAAA,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,WAAW;CACX,WAAW;CACX,QAAQ;CACT;AAGD,MAAa,0BAA0B;CACrC,WAAW;CACX,cAAc;CACd,YAAY;CACZ,cAAc;CACf;;;;ACZD,MAAa,gBAAgBA,IAAE,OAAO;CACpC,QAAQA,IAAE,QAAQ;CAClB,M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kBAAkB,OAAO,EACvE,QAAQA,IAAE,OAAO;CACf,OAAOA,IAAE,QAAQ;CACjB,OAAOA,IAAE,QAAQ;CAClB,CAAC,EACH,CAAC;AACF,MAAa,qBAAqBA,IAAE,MAAM,kBAAkB;;;;AChC5D,MAAa,iBAAiBC,IAAE,QAAQ,CAAC,MAAM;AAE/C,MAAa,gBAAgBA,IAC1B,QAAQ,CACR,MAAM,sBAAsB,CAC5B,WAAW,MAAM,EAAE,aAAa,CAAC;AAEpC,MAAa,wBAAwBA,IAAE,OAAO;CAC5C,SAASA,IAAE,QAAQ,CAAC,UAAU;CAC9B,aAAaA,IAAE,QAAQ,CAAC,UAAU;CAClC,eAAeA,IAAE,QAAQ,CAAC,UAAU;CACrC,CAAC;AAEF,MAAa,aAAaA,IAAE,OAAO;CACjC,IAAI;CACJ,SAAS;CACT,OAAOA,IAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU;CAC/C,WAAWA,IAAE,QAAQ;CACrB,WAAWA,IAAE,QAAQ;CACrB,aAAa,sBAAsB,UAAU;CAC7C,aAAaA,IAAE,SAAS;CACxB,oBAAoBA,IAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CACrD,CAAC"}
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,3 +1,354 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { a as getPlatformApiUrl, i as getOffchainApiUrl, n as getAppId, o as getWalletConnectProjectId, r as getAppUrl, t as OtimEnvironment } from "../api-urls-B-GTEiT3.mjs";
|
|
2
|
+
import { n as ApiClientConfig, r as createApiClient, t as ApiClient } from "../client-factory-DOL0ZTWy.mjs";
|
|
3
|
+
import { AxiosInstance } from "axios";
|
|
4
|
+
import { User, UserPreferences } from "@otim/utils/schemas";
|
|
5
|
+
import { AddressWhitelistCheckRequest, AddressWhitelistCheckResponse, AuthLoginRequest, AuthLoginResponse, BuildSettlementRequest, BuildSettlementResponse, ChainIdResponse, ChainSuccessResponse, DelegationCreateRequest, DelegationCreateResponse, DelegationStatusRequest, DelegationStatusResponse, GetDelegateAddressRequest, GetDelegateAddressResponse, GetIntegrationRequest, InstructionActivateRequest, InstructionActivateResponse, InstructionBuild, InstructionBuildRequest, IntegrationResponse, PaymentRequestBuildRequest, PaymentRequestBuildResponse, PaymentRequestNewRequest, SessionTokenRequest, SessionTokenResponse, SessionVerifyResponse, SetChainIdRequest, TurnkeyLoginRequest, TurnkeyLoginResponse, TurnkeyVerificationRequest, TurnkeyVerificationResponse, UpdateIntegrationRequest, WhitelistCheckRequest, WhitelistCheckResponse } from "@otim/utils/api";
|
|
6
|
+
|
|
7
|
+
//#region src/server/server-client.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Sets the global auth token getter function.
|
|
11
|
+
* This should be called once at app initialization.
|
|
12
|
+
*
|
|
13
|
+
* @param getter - Function that returns the current auth token
|
|
14
|
+
*/
|
|
15
|
+
declare function setAuthTokenGetter(getter: () => Promise<string | undefined>): void;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the current global auth token getter function.
|
|
18
|
+
*
|
|
19
|
+
* @returns The global auth token getter, or undefined if not set
|
|
20
|
+
*/
|
|
21
|
+
declare function getAuthTokenGetter(): (() => Promise<string | undefined>) | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Gets or creates a cached API client for the specified environment.
|
|
24
|
+
*
|
|
25
|
+
* This function is designed for server-side use (Next.js server actions, API routes).
|
|
26
|
+
* It maintains a singleton client per environment to avoid creating multiple
|
|
27
|
+
* instances for the same environment.
|
|
28
|
+
*
|
|
29
|
+
* @param environment - The environment to get a client for
|
|
30
|
+
* @param authTokenGetter - Optional auth token getter for this client
|
|
31
|
+
* @returns A cached or new API client instance
|
|
32
|
+
*/
|
|
33
|
+
declare function getServerApiClient(environment: OtimEnvironment, authTokenGetter?: () => Promise<string | undefined>): ApiClient;
|
|
34
|
+
/**
|
|
35
|
+
* Clears the server-side client cache.
|
|
36
|
+
* Useful for testing or when you need to force recreation of clients.
|
|
37
|
+
*
|
|
38
|
+
* @param environment - Optional environment to clear. If not provided, clears all.
|
|
39
|
+
*/
|
|
40
|
+
declare function clearServerClientCache(environment?: OtimEnvironment): void;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/server/routes/account.d.ts
|
|
43
|
+
declare const createDelegation: (client: AxiosInstance, request: DelegationCreateRequest) => Promise<DelegationCreateResponse>;
|
|
44
|
+
declare const getDelegationStatus: (client: AxiosInstance, request: DelegationStatusRequest) => Promise<DelegationStatusResponse>;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/server/routes/auth.d.ts
|
|
47
|
+
declare const postLogin: (client: AxiosInstance, request: AuthLoginRequest) => Promise<AuthLoginResponse>;
|
|
48
|
+
declare const turnkeyVerification: (client: AxiosInstance, request: TurnkeyVerificationRequest) => Promise<TurnkeyVerificationResponse>;
|
|
49
|
+
declare const turnkeyLogin: (client: AxiosInstance, request: TurnkeyLoginRequest) => Promise<TurnkeyLoginResponse>;
|
|
50
|
+
declare function getNonce(client: AxiosInstance): Promise<string>;
|
|
51
|
+
declare function verifyAuthentication(client: AxiosInstance, params: {
|
|
52
|
+
message: string;
|
|
53
|
+
signature: string;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
authorization: string;
|
|
56
|
+
user: User;
|
|
57
|
+
}>;
|
|
58
|
+
declare function destroySessionToken(client: AxiosInstance): Promise<{
|
|
59
|
+
success: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
declare const getChainId: (client: AxiosInstance) => Promise<ChainIdResponse>;
|
|
62
|
+
declare const postChainId: (client: AxiosInstance, request: SetChainIdRequest) => Promise<ChainSuccessResponse>;
|
|
63
|
+
declare const deleteChainId: (client: AxiosInstance) => Promise<ChainSuccessResponse>;
|
|
64
|
+
declare const postSessionToken: (client: AxiosInstance, request: SessionTokenRequest) => Promise<SessionTokenResponse>;
|
|
65
|
+
declare const getSessionVerify: (client: AxiosInstance) => Promise<SessionVerifyResponse>;
|
|
66
|
+
declare const getCurrentUser: (client: AxiosInstance) => Promise<User>;
|
|
67
|
+
declare const postCheckEmailInWhitelist: (client: AxiosInstance, request: WhitelistCheckRequest) => Promise<WhitelistCheckResponse>;
|
|
68
|
+
declare const postCheckAddressInWhitelist: (client: AxiosInstance, request: AddressWhitelistCheckRequest) => Promise<AddressWhitelistCheckResponse>;
|
|
69
|
+
declare const updateUserPreferences: (client: AxiosInstance, request: UserPreferences) => Promise<unknown>;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/server/routes/bridge.d.ts
|
|
72
|
+
type BridgeCustomerType = "individual" | "business";
|
|
73
|
+
interface GetBridgeCustomerResult {
|
|
74
|
+
id: string;
|
|
75
|
+
email?: string;
|
|
76
|
+
status?: string;
|
|
77
|
+
type?: BridgeCustomerType;
|
|
78
|
+
hasAcceptedTermsOfService?: boolean;
|
|
79
|
+
kycStatus?: "pending" | "approved" | "rejected" | "unknown" | "incomplete" | "awaiting_ubo" | "under_review";
|
|
80
|
+
endorsements?: Array<{
|
|
81
|
+
name: string;
|
|
82
|
+
status: string;
|
|
83
|
+
requirements?: {
|
|
84
|
+
complete: Array<string>;
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
87
|
+
externalAccounts?: Array<{
|
|
88
|
+
id: string;
|
|
89
|
+
accountName: string;
|
|
90
|
+
accountType: string;
|
|
91
|
+
currency: string;
|
|
92
|
+
bankName?: string;
|
|
93
|
+
last_4?: string;
|
|
94
|
+
active: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
97
|
+
interface GenerateBridgeKycLinksParams {
|
|
98
|
+
email: string;
|
|
99
|
+
type: BridgeCustomerType;
|
|
100
|
+
fullName?: string;
|
|
101
|
+
businessName?: string;
|
|
102
|
+
}
|
|
103
|
+
interface BridgeKycLink {
|
|
104
|
+
kycLinkId: string;
|
|
105
|
+
kycLink: string;
|
|
106
|
+
kycStatus?: "pending" | "approved" | "rejected" | "unknown" | "incomplete" | "awaiting_ubo" | "under_review";
|
|
107
|
+
tosLink: string;
|
|
108
|
+
tosStatus?: string;
|
|
109
|
+
customerId: string;
|
|
110
|
+
}
|
|
111
|
+
interface CreateBridgePlaidLinkTokenParams {
|
|
112
|
+
customerId: string;
|
|
113
|
+
products?: string[];
|
|
114
|
+
redirectUri?: string;
|
|
115
|
+
}
|
|
116
|
+
interface CreateBridgePlaidLinkTokenResult {
|
|
117
|
+
linkToken: string;
|
|
118
|
+
linkTokenExpiresAt?: string;
|
|
119
|
+
callbackUrl?: string;
|
|
120
|
+
}
|
|
121
|
+
interface BridgeExchangePlaidPublicTokenParams {
|
|
122
|
+
publicToken: string;
|
|
123
|
+
linkToken: string;
|
|
124
|
+
}
|
|
125
|
+
interface BridgeExchangePlaidPublicTokenResult {
|
|
126
|
+
success: boolean;
|
|
127
|
+
message: string;
|
|
128
|
+
}
|
|
129
|
+
interface GetBridgeExternalAccountsResult {
|
|
130
|
+
externalAccounts: Array<{
|
|
131
|
+
id: string;
|
|
132
|
+
accountName: string;
|
|
133
|
+
accountType: string;
|
|
134
|
+
currency: string;
|
|
135
|
+
bankName?: string;
|
|
136
|
+
last_4?: string;
|
|
137
|
+
status: string;
|
|
138
|
+
address?: {
|
|
139
|
+
streetLine1?: string;
|
|
140
|
+
streetLine2?: string;
|
|
141
|
+
city?: string;
|
|
142
|
+
state?: string;
|
|
143
|
+
postalCode?: string;
|
|
144
|
+
country?: string;
|
|
145
|
+
};
|
|
146
|
+
}>;
|
|
147
|
+
}
|
|
148
|
+
interface GetBridgeLiquidationAddressesResult {
|
|
149
|
+
liquidationAddresses: Array<{
|
|
150
|
+
id: string;
|
|
151
|
+
address: string;
|
|
152
|
+
externalAccountId?: string;
|
|
153
|
+
chain?: string;
|
|
154
|
+
currency?: string;
|
|
155
|
+
blockchainMemo?: string;
|
|
156
|
+
}>;
|
|
157
|
+
}
|
|
158
|
+
interface CreateBridgeLiquidationAddressParams {
|
|
159
|
+
customerId: string;
|
|
160
|
+
chain: string;
|
|
161
|
+
currency: string;
|
|
162
|
+
externalAccountId?: string;
|
|
163
|
+
externalAccountAddress?: {
|
|
164
|
+
streetLine1?: string;
|
|
165
|
+
streetLine2?: string;
|
|
166
|
+
city?: string;
|
|
167
|
+
state?: string;
|
|
168
|
+
postalCode?: string;
|
|
169
|
+
country?: string;
|
|
170
|
+
};
|
|
171
|
+
destinationPaymentRail?: string;
|
|
172
|
+
destinationCurrency?: string;
|
|
173
|
+
destinationWireMessage?: string;
|
|
174
|
+
destinationAddress?: string;
|
|
175
|
+
customDeveloperFeePercent?: string;
|
|
176
|
+
}
|
|
177
|
+
interface CreateBridgeLiquidationAddressResult {
|
|
178
|
+
id: string;
|
|
179
|
+
address: string;
|
|
180
|
+
chain?: string;
|
|
181
|
+
currency?: string;
|
|
182
|
+
blockchainMemo?: string;
|
|
183
|
+
}
|
|
184
|
+
interface CreateBridgeTransferParams {
|
|
185
|
+
customerId: string;
|
|
186
|
+
amount: string;
|
|
187
|
+
sourceExternalAccountId: string;
|
|
188
|
+
destinationWalletAddress: string;
|
|
189
|
+
chainId: number;
|
|
190
|
+
developerFee?: string;
|
|
191
|
+
}
|
|
192
|
+
interface CreateBridgeTransferResult {
|
|
193
|
+
id: string;
|
|
194
|
+
state: string;
|
|
195
|
+
amount: string | null;
|
|
196
|
+
source: {
|
|
197
|
+
payment_rail: string;
|
|
198
|
+
currency: string;
|
|
199
|
+
external_account_id?: string;
|
|
200
|
+
description?: string;
|
|
201
|
+
};
|
|
202
|
+
destination: {
|
|
203
|
+
payment_rail: string;
|
|
204
|
+
currency: string;
|
|
205
|
+
to_address?: string;
|
|
206
|
+
};
|
|
207
|
+
source_deposit_instructions?: {
|
|
208
|
+
payment_rail: string;
|
|
209
|
+
amount: string;
|
|
210
|
+
currency: string;
|
|
211
|
+
deposit_message: string;
|
|
212
|
+
bank_name: string;
|
|
213
|
+
bank_address?: string;
|
|
214
|
+
bank_routing_number?: string;
|
|
215
|
+
bank_account_number?: string;
|
|
216
|
+
bank_beneficiary_name?: string;
|
|
217
|
+
bank_beneficiary_address?: string;
|
|
218
|
+
iban?: string;
|
|
219
|
+
bic?: string;
|
|
220
|
+
account_holder_name?: string;
|
|
221
|
+
};
|
|
222
|
+
receipt: {
|
|
223
|
+
initial_amount: string;
|
|
224
|
+
developer_fee: string;
|
|
225
|
+
exchange_fee: string;
|
|
226
|
+
subtotal_amount: string;
|
|
227
|
+
gas_fee: string;
|
|
228
|
+
final_amount: string;
|
|
229
|
+
url: string;
|
|
230
|
+
};
|
|
231
|
+
created_at: string;
|
|
232
|
+
updated_at: string;
|
|
233
|
+
}
|
|
234
|
+
declare const getBridgeCustomer: (client: AxiosInstance, customerId: string) => Promise<GetBridgeCustomerResult>;
|
|
235
|
+
declare const generateBridgeKycLinks: (client: AxiosInstance, request: GenerateBridgeKycLinksParams) => Promise<BridgeKycLink>;
|
|
236
|
+
declare const getBridgeKycLinkStatus: (client: AxiosInstance, kycLinkId: string) => Promise<BridgeKycLink>;
|
|
237
|
+
declare const createBridgePlaidLinkToken: (client: AxiosInstance, request: CreateBridgePlaidLinkTokenParams) => Promise<CreateBridgePlaidLinkTokenResult>;
|
|
238
|
+
declare const bridgeExchangePlaidPublicToken: (client: AxiosInstance, request: BridgeExchangePlaidPublicTokenParams) => Promise<BridgeExchangePlaidPublicTokenResult>;
|
|
239
|
+
declare const getBridgeExternalAccounts: (client: AxiosInstance, customerId: string) => Promise<GetBridgeExternalAccountsResult>;
|
|
240
|
+
declare const getBridgeLiquidationAddresses: (client: AxiosInstance, customerId: string) => Promise<GetBridgeLiquidationAddressesResult>;
|
|
241
|
+
declare const createBridgeLiquidationAddress: (client: AxiosInstance, request: CreateBridgeLiquidationAddressParams) => Promise<CreateBridgeLiquidationAddressResult>;
|
|
242
|
+
declare const createBridgeTransfer: (client: AxiosInstance, request: CreateBridgeTransferParams) => Promise<CreateBridgeTransferResult>;
|
|
243
|
+
interface UpdateBridgeExternalAccountAddressParams {
|
|
244
|
+
customerId: string;
|
|
245
|
+
externalAccountId: string;
|
|
246
|
+
address: {
|
|
247
|
+
streetLine1: string;
|
|
248
|
+
streetLine2?: string;
|
|
249
|
+
city: string;
|
|
250
|
+
state: string;
|
|
251
|
+
postalCode: string;
|
|
252
|
+
country: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
declare const updateBridgeExternalAccountAddress: (client: AxiosInstance, customerId: string, externalAccountId: string, address: {
|
|
256
|
+
streetLine1: string;
|
|
257
|
+
streetLine2?: string;
|
|
258
|
+
city: string;
|
|
259
|
+
state: string;
|
|
260
|
+
postalCode: string;
|
|
261
|
+
country: string;
|
|
262
|
+
}) => Promise<{
|
|
263
|
+
success: boolean;
|
|
264
|
+
}>;
|
|
265
|
+
interface CreateBridgeIbanExternalAccountParams {
|
|
266
|
+
customerId: string;
|
|
267
|
+
currency: "eur";
|
|
268
|
+
accountOwnerName: string;
|
|
269
|
+
bankName?: string;
|
|
270
|
+
accountOwnerType: "individual" | "business";
|
|
271
|
+
iban: {
|
|
272
|
+
accountNumber: string;
|
|
273
|
+
bic: string;
|
|
274
|
+
country: string;
|
|
275
|
+
};
|
|
276
|
+
firstName?: string;
|
|
277
|
+
lastName?: string;
|
|
278
|
+
businessName?: string;
|
|
279
|
+
address: {
|
|
280
|
+
streetLine1: string;
|
|
281
|
+
streetLine2?: string;
|
|
282
|
+
city: string;
|
|
283
|
+
postalCode: string;
|
|
284
|
+
country: string;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
interface CreateBridgeIbanExternalAccountResult {
|
|
288
|
+
id: string;
|
|
289
|
+
customerId: string;
|
|
290
|
+
accountType: "iban";
|
|
291
|
+
currency: "eur";
|
|
292
|
+
accountOwnerName: string;
|
|
293
|
+
bankName?: string;
|
|
294
|
+
active: boolean;
|
|
295
|
+
iban: {
|
|
296
|
+
last4: string;
|
|
297
|
+
bic: string;
|
|
298
|
+
country: string;
|
|
299
|
+
};
|
|
300
|
+
accountOwnerType: "individual" | "business";
|
|
301
|
+
firstName?: string;
|
|
302
|
+
lastName?: string;
|
|
303
|
+
businessName?: string;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
updatedAt: string;
|
|
306
|
+
}
|
|
307
|
+
declare const createBridgeIbanExternalAccount: (client: AxiosInstance, request: CreateBridgeIbanExternalAccountParams) => Promise<CreateBridgeIbanExternalAccountResult>;
|
|
308
|
+
interface EnsureOnrampRouteParams {
|
|
309
|
+
customerId: string;
|
|
310
|
+
externalAccountId: string;
|
|
311
|
+
chainId: number;
|
|
312
|
+
walletAddress: string;
|
|
313
|
+
destinationCurrency?: string;
|
|
314
|
+
}
|
|
315
|
+
interface EnsureOfframpRouteParams {
|
|
316
|
+
customerId: string;
|
|
317
|
+
externalAccountId: string;
|
|
318
|
+
chainId: number;
|
|
319
|
+
currency?: string;
|
|
320
|
+
}
|
|
321
|
+
declare const ensureOnrampRoute: (client: AxiosInstance, params: EnsureOnrampRouteParams) => Promise<{
|
|
322
|
+
success: boolean;
|
|
323
|
+
}>;
|
|
324
|
+
declare const ensureOfframpRoute: (client: AxiosInstance, params: EnsureOfframpRouteParams) => Promise<{
|
|
325
|
+
success: boolean;
|
|
326
|
+
}>;
|
|
327
|
+
interface GetBridgeLiquidationAddressDrainsParams {
|
|
328
|
+
liquidationAddressId: string;
|
|
329
|
+
customerId: string;
|
|
330
|
+
limit?: number;
|
|
331
|
+
}
|
|
332
|
+
interface GetBridgeLiquidationAddressDrainsResult {
|
|
333
|
+
drains: Array<unknown>;
|
|
334
|
+
}
|
|
335
|
+
declare const getBridgeLiquidationAddressDrains: (client: AxiosInstance, params: GetBridgeLiquidationAddressDrainsParams) => Promise<GetBridgeLiquidationAddressDrainsResult>;
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region src/server/routes/config.d.ts
|
|
338
|
+
declare const getDelegateAddress: (client: AxiosInstance, request: GetDelegateAddressRequest) => Promise<GetDelegateAddressResponse>;
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/server/routes/instruction.d.ts
|
|
341
|
+
declare const buildInstruction: (client: AxiosInstance, request: InstructionBuildRequest) => Promise<InstructionBuild>;
|
|
342
|
+
declare const activateInstruction: (client: AxiosInstance, request: InstructionActivateRequest) => Promise<InstructionActivateResponse>;
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region src/server/routes/integration.d.ts
|
|
345
|
+
declare const getIntegration: (client: AxiosInstance, request: GetIntegrationRequest) => Promise<IntegrationResponse>;
|
|
346
|
+
declare const upsertIntegration: (client: AxiosInstance, request: UpdateIntegrationRequest) => Promise<IntegrationResponse>;
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region src/server/routes/payments.d.ts
|
|
349
|
+
declare const buildPaymentRequest: (client: AxiosInstance, request: PaymentRequestBuildRequest) => Promise<PaymentRequestBuildResponse>;
|
|
350
|
+
declare const newPaymentRequest: (client: AxiosInstance, request: PaymentRequestNewRequest) => Promise<unknown>;
|
|
351
|
+
declare const buildSettlementOrchestration: (client: AxiosInstance, request: BuildSettlementRequest) => Promise<BuildSettlementResponse>;
|
|
352
|
+
//#endregion
|
|
353
|
+
export { type ApiClient, type ApiClientConfig, BridgeExchangePlaidPublicTokenParams, BridgeExchangePlaidPublicTokenResult, BridgeKycLink, CreateBridgeIbanExternalAccountParams, CreateBridgeIbanExternalAccountResult, CreateBridgeLiquidationAddressParams, CreateBridgeLiquidationAddressResult, CreateBridgePlaidLinkTokenParams, CreateBridgePlaidLinkTokenResult, CreateBridgeTransferParams, CreateBridgeTransferResult, EnsureOfframpRouteParams, EnsureOnrampRouteParams, GenerateBridgeKycLinksParams, GetBridgeCustomerResult, GetBridgeExternalAccountsResult, GetBridgeLiquidationAddressDrainsParams, GetBridgeLiquidationAddressDrainsResult, GetBridgeLiquidationAddressesResult, OtimEnvironment, type OtimEnvironment as OtimEnvironmentType, UpdateBridgeExternalAccountAddressParams, activateInstruction, bridgeExchangePlaidPublicToken, buildInstruction, buildPaymentRequest, buildSettlementOrchestration, clearServerClientCache, createApiClient, createBridgeIbanExternalAccount, createBridgeLiquidationAddress, createBridgePlaidLinkToken, createBridgeTransfer, createDelegation, deleteChainId, destroySessionToken, ensureOfframpRoute, ensureOnrampRoute, generateBridgeKycLinks, getAppId, getAppUrl, getAuthTokenGetter, getBridgeCustomer, getBridgeExternalAccounts, getBridgeKycLinkStatus, getBridgeLiquidationAddressDrains, getBridgeLiquidationAddresses, getChainId, getCurrentUser, getDelegateAddress, getDelegationStatus, getIntegration, getNonce, getOffchainApiUrl, getPlatformApiUrl, getServerApiClient, getSessionVerify, getWalletConnectProjectId, newPaymentRequest, postChainId, postCheckAddressInWhitelist, postCheckEmailInWhitelist, postLogin, postSessionToken, setAuthTokenGetter, turnkeyLogin, turnkeyVerification, updateBridgeExternalAccountAddress, updateUserPreferences, upsertIntegration, verifyAuthentication };
|
|
354
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/server/server-client.ts","../../src/server/routes/account.ts","../../src/server/routes/auth.ts","../../src/server/routes/bridge.ts","../../src/server/routes/config.ts","../../src/server/routes/instruction.ts","../../src/server/routes/integration.ts","../../src/server/routes/payments.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AAuBA;AAWgB,iBAXA,kBAAA,CAYL,MAAO,EAAA,GAAA,GAXF,OAWE,CAAA,MAAA,GAAA,SAAA,CAAA,CAAA,EAAA,IAAA;AAgBlB;;;;;AA+BgB,iBAhDA,kBAAA,CAAA,CAgDqC,EAAA,CAAA,GAAA,GA/C1C,OA+CyD,CAAA,MAAA,GAAA,SAAA,CAAA,CAAA,GAAA,SAAA;;;;ACxEpE;;;;;;AAYA;;AAEW,iBD2BK,kBAAA,CC3BL,WAAA,ED4BI,eC5BJ,EAAA,eAAA,CAAA,EAAA,GAAA,GD6Be,OC7Bf,CAAA,MAAA,GAAA,SAAA,CAAA,CAAA,ED8BR,SC9BQ;;;;;;;ACDE,iBF2DG,sBAAA,CEpDf,WAAA,CAAA,EFoDoD,eEpDpD,CAAA,E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