@distilled.cloud/coinbase 0.30.3 → 1.0.0-rc.2
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/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +8 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +17 -2
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +8 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +24 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/{client.js → protocol.js} +107 -46
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/cdp.d.ts +5054 -0
- package/lib/services/cdp.d.ts.map +1 -0
- package/lib/services/cdp.js +4331 -0
- package/lib/services/cdp.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +29 -42
- package/src/credentials.ts +8 -0
- package/src/errors.ts +92 -2
- package/src/index.ts +12 -6
- package/src/{client.ts → protocol.ts} +163 -52
- package/src/retry.ts +4 -4
- package/src/services/cdp.ts +11912 -0
- package/src/services/index.ts +2 -0
- package/src/traits.ts +42 -2
- package/README.md +0 -78
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -13
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js.map +0 -1
- package/lib/operations/addEndUserEvmAccount.d.ts +0 -30
- package/lib/operations/addEndUserEvmAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserEvmAccount.js +0 -36
- package/lib/operations/addEndUserEvmAccount.js.map +0 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +0 -32
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +0 -41
- package/lib/operations/addEndUserEvmSmartAccount.js.map +0 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +0 -30
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserSolanaAccount.js +0 -36
- package/lib/operations/addEndUserSolanaAccount.js.map +0 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +0 -34
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/createDelegationForEndUserAccount.js +0 -44
- package/lib/operations/createDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/createDepositDestination.d.ts +0 -34
- package/lib/operations/createDepositDestination.d.ts.map +0 -1
- package/lib/operations/createDepositDestination.js +0 -50
- package/lib/operations/createDepositDestination.js.map +0 -1
- package/lib/operations/createEndUser.d.ts +0 -115
- package/lib/operations/createEndUser.d.ts.map +0 -1
- package/lib/operations/createEndUser.js +0 -133
- package/lib/operations/createEndUser.js.map +0 -1
- package/lib/operations/createEvmAccount.d.ts +0 -30
- package/lib/operations/createEvmAccount.d.ts.map +0 -1
- package/lib/operations/createEvmAccount.js +0 -34
- package/lib/operations/createEvmAccount.js.map +0 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +0 -34
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +0 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -51
- package/lib/operations/createEvmEip7702Delegation.js.map +0 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +0 -42
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -60
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +0 -1
- package/lib/operations/createEvmSmartAccount.d.ts +0 -27
- package/lib/operations/createEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/createEvmSmartAccount.js +0 -33
- package/lib/operations/createEvmSmartAccount.js.map +0 -1
- package/lib/operations/createEvmSwapQuote.d.ts +0 -80
- package/lib/operations/createEvmSwapQuote.d.ts.map +0 -1
- package/lib/operations/createEvmSwapQuote.js +0 -95
- package/lib/operations/createEvmSwapQuote.js.map +0 -1
- package/lib/operations/createFoundationAccount.d.ts +0 -26
- package/lib/operations/createFoundationAccount.d.ts.map +0 -1
- package/lib/operations/createFoundationAccount.js +0 -32
- package/lib/operations/createFoundationAccount.js.map +0 -1
- package/lib/operations/createOnrampOrder.d.ts +0 -60
- package/lib/operations/createOnrampOrder.d.ts.map +0 -1
- package/lib/operations/createOnrampOrder.js +0 -79
- package/lib/operations/createOnrampOrder.js.map +0 -1
- package/lib/operations/createOnrampSession.d.ts +0 -55
- package/lib/operations/createOnrampSession.d.ts.map +0 -1
- package/lib/operations/createOnrampSession.js +0 -68
- package/lib/operations/createOnrampSession.js.map +0 -1
- package/lib/operations/createPolicy.d.ts +0 -28
- package/lib/operations/createPolicy.d.ts.map +0 -1
- package/lib/operations/createPolicy.js +0 -32
- package/lib/operations/createPolicy.js.map +0 -1
- package/lib/operations/createSolanaAccount.d.ts +0 -30
- package/lib/operations/createSolanaAccount.d.ts.map +0 -1
- package/lib/operations/createSolanaAccount.js +0 -36
- package/lib/operations/createSolanaAccount.js.map +0 -1
- package/lib/operations/createSpendPermission.d.ts +0 -56
- package/lib/operations/createSpendPermission.d.ts.map +0 -1
- package/lib/operations/createSpendPermission.js +0 -92
- package/lib/operations/createSpendPermission.js.map +0 -1
- package/lib/operations/createTransfer.d.ts +0 -178
- package/lib/operations/createTransfer.d.ts.map +0 -1
- package/lib/operations/createTransfer.js +0 -244
- package/lib/operations/createTransfer.js.map +0 -1
- package/lib/operations/createWebhookSubscription.d.ts +0 -54
- package/lib/operations/createWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/createWebhookSubscription.js +0 -109
- package/lib/operations/createWebhookSubscription.js.map +0 -1
- package/lib/operations/deletePolicy.d.ts +0 -20
- package/lib/operations/deletePolicy.d.ts.map +0 -1
- package/lib/operations/deletePolicy.js +0 -25
- package/lib/operations/deletePolicy.js.map +0 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +0 -21
- package/lib/operations/deleteWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -30
- package/lib/operations/deleteWebhookSubscription.js.map +0 -1
- package/lib/operations/executeFundTransfer.d.ts +0 -103
- package/lib/operations/executeFundTransfer.d.ts.map +0 -1
- package/lib/operations/executeFundTransfer.js +0 -152
- package/lib/operations/executeFundTransfer.js.map +0 -1
- package/lib/operations/exportEvmAccount.d.ts +0 -27
- package/lib/operations/exportEvmAccount.d.ts.map +0 -1
- package/lib/operations/exportEvmAccount.js +0 -31
- package/lib/operations/exportEvmAccount.js.map +0 -1
- package/lib/operations/exportEvmAccountByName.d.ts +0 -27
- package/lib/operations/exportEvmAccountByName.d.ts.map +0 -1
- package/lib/operations/exportEvmAccountByName.js +0 -33
- package/lib/operations/exportEvmAccountByName.js.map +0 -1
- package/lib/operations/exportSolanaAccount.d.ts +0 -27
- package/lib/operations/exportSolanaAccount.d.ts.map +0 -1
- package/lib/operations/exportSolanaAccount.js +0 -33
- package/lib/operations/exportSolanaAccount.js.map +0 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +0 -27
- package/lib/operations/exportSolanaAccountByName.d.ts.map +0 -1
- package/lib/operations/exportSolanaAccountByName.js +0 -36
- package/lib/operations/exportSolanaAccountByName.js.map +0 -1
- package/lib/operations/getBalanceByAsset.d.ts +0 -29
- package/lib/operations/getBalanceByAsset.d.ts.map +0 -1
- package/lib/operations/getBalanceByAsset.js +0 -34
- package/lib/operations/getBalanceByAsset.js.map +0 -1
- package/lib/operations/getDelegationForEndUser.d.ts +0 -20
- package/lib/operations/getDelegationForEndUser.d.ts.map +0 -1
- package/lib/operations/getDelegationForEndUser.js +0 -29
- package/lib/operations/getDelegationForEndUser.js.map +0 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +0 -23
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/getDelegationForEndUserAccount.js +0 -33
- package/lib/operations/getDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/getDepositDestinationById.d.ts +0 -32
- package/lib/operations/getDepositDestinationById.d.ts.map +0 -1
- package/lib/operations/getDepositDestinationById.js +0 -52
- package/lib/operations/getDepositDestinationById.js.map +0 -1
- package/lib/operations/getEndUser.d.ts +0 -73
- package/lib/operations/getEndUser.d.ts.map +0 -1
- package/lib/operations/getEndUser.js +0 -84
- package/lib/operations/getEndUser.js.map +0 -1
- package/lib/operations/getEvmAccount.d.ts +0 -22
- package/lib/operations/getEvmAccount.d.ts.map +0 -1
- package/lib/operations/getEvmAccount.js +0 -26
- package/lib/operations/getEvmAccount.js.map +0 -1
- package/lib/operations/getEvmAccountByName.d.ts +0 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +0 -1
- package/lib/operations/getEvmAccountByName.js +0 -28
- package/lib/operations/getEvmAccountByName.js.map +0 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +0 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +0 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +0 -46
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +0 -1
- package/lib/operations/getEvmSmartAccount.d.ts +0 -23
- package/lib/operations/getEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/getEvmSmartAccount.js +0 -29
- package/lib/operations/getEvmSmartAccount.js.map +0 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +0 -23
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +0 -1
- package/lib/operations/getEvmSmartAccountByName.js +0 -29
- package/lib/operations/getEvmSmartAccountByName.js.map +0 -1
- package/lib/operations/getEvmSwapPrice.d.ts +0 -55
- package/lib/operations/getEvmSwapPrice.d.ts.map +0 -1
- package/lib/operations/getEvmSwapPrice.js +0 -62
- package/lib/operations/getEvmSwapPrice.js.map +0 -1
- package/lib/operations/getFoundationAccountById.d.ts +0 -23
- package/lib/operations/getFoundationAccountById.d.ts.map +0 -1
- package/lib/operations/getFoundationAccountById.js +0 -29
- package/lib/operations/getFoundationAccountById.js.map +0 -1
- package/lib/operations/getOnrampOrderById.d.ts +0 -39
- package/lib/operations/getOnrampOrderById.d.ts.map +0 -1
- package/lib/operations/getOnrampOrderById.js +0 -54
- package/lib/operations/getOnrampOrderById.js.map +0 -1
- package/lib/operations/getOnrampUserLimits.d.ts +0 -24
- package/lib/operations/getOnrampUserLimits.d.ts.map +0 -1
- package/lib/operations/getOnrampUserLimits.js +0 -36
- package/lib/operations/getOnrampUserLimits.js.map +0 -1
- package/lib/operations/getPaymentMethod.d.ts +0 -53
- package/lib/operations/getPaymentMethod.d.ts.map +0 -1
- package/lib/operations/getPaymentMethod.js +0 -61
- package/lib/operations/getPaymentMethod.js.map +0 -1
- package/lib/operations/getPolicyById.d.ts +0 -23
- package/lib/operations/getPolicyById.d.ts.map +0 -1
- package/lib/operations/getPolicyById.js +0 -27
- package/lib/operations/getPolicyById.js.map +0 -1
- package/lib/operations/getSQLGrammar.d.ts +0 -16
- package/lib/operations/getSQLGrammar.d.ts.map +0 -1
- package/lib/operations/getSQLGrammar.js +0 -20
- package/lib/operations/getSQLGrammar.js.map +0 -1
- package/lib/operations/getSQLSchema.d.ts +0 -31
- package/lib/operations/getSQLSchema.d.ts.map +0 -1
- package/lib/operations/getSQLSchema.js +0 -35
- package/lib/operations/getSQLSchema.js.map +0 -1
- package/lib/operations/getSolanaAccount.d.ts +0 -22
- package/lib/operations/getSolanaAccount.d.ts.map +0 -1
- package/lib/operations/getSolanaAccount.js +0 -26
- package/lib/operations/getSolanaAccount.js.map +0 -1
- package/lib/operations/getSolanaAccountByName.d.ts +0 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +0 -1
- package/lib/operations/getSolanaAccountByName.js +0 -28
- package/lib/operations/getSolanaAccountByName.js.map +0 -1
- package/lib/operations/getTransferById.d.ts +0 -99
- package/lib/operations/getTransferById.d.ts.map +0 -1
- package/lib/operations/getTransferById.js +0 -146
- package/lib/operations/getTransferById.js.map +0 -1
- package/lib/operations/getUserOperation.d.ts +0 -40
- package/lib/operations/getUserOperation.d.ts.map +0 -1
- package/lib/operations/getUserOperation.js +0 -65
- package/lib/operations/getUserOperation.js.map +0 -1
- package/lib/operations/getWebhookSubscription.d.ts +0 -39
- package/lib/operations/getWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/getWebhookSubscription.js +0 -73
- package/lib/operations/getWebhookSubscription.js.map +0 -1
- package/lib/operations/importEndUser.d.ts +0 -110
- package/lib/operations/importEndUser.d.ts.map +0 -1
- package/lib/operations/importEndUser.js +0 -128
- package/lib/operations/importEndUser.js.map +0 -1
- package/lib/operations/importEvmAccount.d.ts +0 -31
- package/lib/operations/importEvmAccount.d.ts.map +0 -1
- package/lib/operations/importEvmAccount.js +0 -35
- package/lib/operations/importEvmAccount.js.map +0 -1
- package/lib/operations/importSolanaAccount.d.ts +0 -30
- package/lib/operations/importSolanaAccount.d.ts.map +0 -1
- package/lib/operations/importSolanaAccount.js +0 -36
- package/lib/operations/importSolanaAccount.js.map +0 -1
- package/lib/operations/index.d.ts +0 -116
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -116
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/initiateOnrampVerification.d.ts +0 -24
- package/lib/operations/initiateOnrampVerification.d.ts.map +0 -1
- package/lib/operations/initiateOnrampVerification.js +0 -30
- package/lib/operations/initiateOnrampVerification.js.map +0 -1
- package/lib/operations/listBalances.d.ts +0 -34
- package/lib/operations/listBalances.d.ts.map +0 -1
- package/lib/operations/listBalances.js +0 -38
- package/lib/operations/listBalances.js.map +0 -1
- package/lib/operations/listDataTokenBalances.d.ts +0 -37
- package/lib/operations/listDataTokenBalances.d.ts.map +0 -1
- package/lib/operations/listDataTokenBalances.js +0 -46
- package/lib/operations/listDataTokenBalances.js.map +0 -1
- package/lib/operations/listDepositDestinations.d.ts +0 -45
- package/lib/operations/listDepositDestinations.d.ts.map +0 -1
- package/lib/operations/listDepositDestinations.js +0 -62
- package/lib/operations/listDepositDestinations.js.map +0 -1
- package/lib/operations/listEndUsers.d.ts +0 -80
- package/lib/operations/listEndUsers.d.ts.map +0 -1
- package/lib/operations/listEndUsers.js +0 -103
- package/lib/operations/listEndUsers.js.map +0 -1
- package/lib/operations/listEvmAccounts.d.ts +0 -28
- package/lib/operations/listEvmAccounts.d.ts.map +0 -1
- package/lib/operations/listEvmAccounts.js +0 -32
- package/lib/operations/listEvmAccounts.js.map +0 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +0 -29
- package/lib/operations/listEvmSmartAccounts.d.ts.map +0 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -35
- package/lib/operations/listEvmSmartAccounts.js.map +0 -1
- package/lib/operations/listEvmTokenBalances.d.ts +0 -37
- package/lib/operations/listEvmTokenBalances.d.ts.map +0 -1
- package/lib/operations/listEvmTokenBalances.js +0 -46
- package/lib/operations/listEvmTokenBalances.js.map +0 -1
- package/lib/operations/listFoundationAccounts.d.ts +0 -30
- package/lib/operations/listFoundationAccounts.d.ts.map +0 -1
- package/lib/operations/listFoundationAccounts.js +0 -36
- package/lib/operations/listFoundationAccounts.js.map +0 -1
- package/lib/operations/listPaymentMethods.d.ts +0 -63
- package/lib/operations/listPaymentMethods.d.ts.map +0 -1
- package/lib/operations/listPaymentMethods.js +0 -73
- package/lib/operations/listPaymentMethods.js.map +0 -1
- package/lib/operations/listPolicies.d.ts +0 -31
- package/lib/operations/listPolicies.d.ts.map +0 -1
- package/lib/operations/listPolicies.js +0 -35
- package/lib/operations/listPolicies.js.map +0 -1
- package/lib/operations/listSolanaAccounts.d.ts +0 -29
- package/lib/operations/listSolanaAccounts.d.ts.map +0 -1
- package/lib/operations/listSolanaAccounts.js +0 -35
- package/lib/operations/listSolanaAccounts.js.map +0 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +0 -36
- package/lib/operations/listSolanaTokenBalances.d.ts.map +0 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -45
- package/lib/operations/listSolanaTokenBalances.js.map +0 -1
- package/lib/operations/listSpendPermissions.d.ts +0 -40
- package/lib/operations/listSpendPermissions.d.ts.map +0 -1
- package/lib/operations/listSpendPermissions.js +0 -58
- package/lib/operations/listSpendPermissions.js.map +0 -1
- package/lib/operations/listTokensForAccount.d.ts +0 -23
- package/lib/operations/listTokensForAccount.d.ts.map +0 -1
- package/lib/operations/listTokensForAccount.js +0 -32
- package/lib/operations/listTokensForAccount.js.map +0 -1
- package/lib/operations/listTransfers.d.ts +0 -153
- package/lib/operations/listTransfers.d.ts.map +0 -1
- package/lib/operations/listTransfers.js +0 -205
- package/lib/operations/listTransfers.js.map +0 -1
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +0 -52
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +0 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -68
- package/lib/operations/listWebhookSubscriptionEvents.js.map +0 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +0 -44
- package/lib/operations/listWebhookSubscriptions.d.ts.map +0 -1
- package/lib/operations/listWebhookSubscriptions.js +0 -75
- package/lib/operations/listWebhookSubscriptions.js.map +0 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +0 -69
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +0 -1
- package/lib/operations/listX402DiscoveryMerchant.js +0 -92
- package/lib/operations/listX402DiscoveryMerchant.js.map +0 -1
- package/lib/operations/listX402DiscoveryResources.d.ts +0 -67
- package/lib/operations/listX402DiscoveryResources.d.ts.map +0 -1
- package/lib/operations/listX402DiscoveryResources.js +0 -90
- package/lib/operations/listX402DiscoveryResources.js.map +0 -1
- package/lib/operations/lookupEndUser.d.ts +0 -93
- package/lib/operations/lookupEndUser.d.ts.map +0 -1
- package/lib/operations/lookupEndUser.js +0 -116
- package/lib/operations/lookupEndUser.js.map +0 -1
- package/lib/operations/postX402DiscoveryMcp.d.ts +0 -26
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +0 -1
- package/lib/operations/postX402DiscoveryMcp.js +0 -32
- package/lib/operations/postX402DiscoveryMcp.js.map +0 -1
- package/lib/operations/prepareAndSendUserOperation.d.ts +0 -55
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +0 -1
- package/lib/operations/prepareAndSendUserOperation.js +0 -93
- package/lib/operations/prepareAndSendUserOperation.js.map +0 -1
- package/lib/operations/prepareUserOperation.d.ts +0 -48
- package/lib/operations/prepareUserOperation.d.ts.map +0 -1
- package/lib/operations/prepareUserOperation.js +0 -86
- package/lib/operations/prepareUserOperation.js.map +0 -1
- package/lib/operations/requestEvmFaucet.d.ts +0 -22
- package/lib/operations/requestEvmFaucet.d.ts.map +0 -1
- package/lib/operations/requestEvmFaucet.js +0 -30
- package/lib/operations/requestEvmFaucet.js.map +0 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +0 -29
- package/lib/operations/requestLimitsUpgrade.d.ts.map +0 -1
- package/lib/operations/requestLimitsUpgrade.js +0 -35
- package/lib/operations/requestLimitsUpgrade.js.map +0 -1
- package/lib/operations/requestSolanaFaucet.d.ts +0 -21
- package/lib/operations/requestSolanaFaucet.d.ts.map +0 -1
- package/lib/operations/requestSolanaFaucet.js +0 -27
- package/lib/operations/requestSolanaFaucet.js.map +0 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +0 -31
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +0 -1
- package/lib/operations/revokeDelegationForEndUser.js +0 -40
- package/lib/operations/revokeDelegationForEndUser.js.map +0 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +0 -34
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/revokeDelegationForEndUserAccount.js +0 -44
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/revokeSpendPermission.d.ts +0 -49
- package/lib/operations/revokeSpendPermission.d.ts.map +0 -1
- package/lib/operations/revokeSpendPermission.js +0 -85
- package/lib/operations/revokeSpendPermission.js.map +0 -1
- package/lib/operations/runSQLQuery.d.ts +0 -57
- package/lib/operations/runSQLQuery.d.ts.map +0 -1
- package/lib/operations/runSQLQuery.js +0 -82
- package/lib/operations/runSQLQuery.js.map +0 -1
- package/lib/operations/searchX402Resources.d.ts +0 -83
- package/lib/operations/searchX402Resources.d.ts.map +0 -1
- package/lib/operations/searchX402Resources.js +0 -106
- package/lib/operations/searchX402Resources.js.map +0 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +0 -45
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +0 -67
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendEvmTransaction.d.ts +0 -44
- package/lib/operations/sendEvmTransaction.d.ts.map +0 -1
- package/lib/operations/sendEvmTransaction.js +0 -65
- package/lib/operations/sendEvmTransaction.js.map +0 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +0 -52
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +0 -74
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +0 -44
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -54
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendSolanaTransaction.d.ts +0 -39
- package/lib/operations/sendSolanaTransaction.d.ts.map +0 -1
- package/lib/operations/sendSolanaTransaction.js +0 -45
- package/lib/operations/sendSolanaTransaction.js.map +0 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +0 -50
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +0 -60
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendUserOperation.d.ts +0 -44
- package/lib/operations/sendUserOperation.d.ts.map +0 -1
- package/lib/operations/sendUserOperation.js +0 -70
- package/lib/operations/sendUserOperation.js.map +0 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +0 -66
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +0 -105
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +0 -1
- package/lib/operations/settleX402Payment.d.ts +0 -245
- package/lib/operations/settleX402Payment.d.ts.map +0 -1
- package/lib/operations/settleX402Payment.js +0 -355
- package/lib/operations/settleX402Payment.js.map +0 -1
- package/lib/operations/signEvmHash.d.ts +0 -27
- package/lib/operations/signEvmHash.d.ts.map +0 -1
- package/lib/operations/signEvmHash.js +0 -31
- package/lib/operations/signEvmHash.js.map +0 -1
- package/lib/operations/signEvmMessage.d.ts +0 -28
- package/lib/operations/signEvmMessage.d.ts.map +0 -1
- package/lib/operations/signEvmMessage.js +0 -32
- package/lib/operations/signEvmMessage.js.map +0 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +0 -36
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +0 -46
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +0 -1
- package/lib/operations/signEvmTransaction.d.ts +0 -29
- package/lib/operations/signEvmTransaction.d.ts.map +0 -1
- package/lib/operations/signEvmTransaction.js +0 -38
- package/lib/operations/signEvmTransaction.js.map +0 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +0 -37
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +0 -47
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/signEvmTypedData.d.ts +0 -36
- package/lib/operations/signEvmTypedData.d.ts.map +0 -1
- package/lib/operations/signEvmTypedData.js +0 -43
- package/lib/operations/signEvmTypedData.js.map +0 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +0 -46
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +0 -56
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +0 -1
- package/lib/operations/signSolanaMessage.d.ts +0 -28
- package/lib/operations/signSolanaMessage.d.ts.map +0 -1
- package/lib/operations/signSolanaMessage.js +0 -36
- package/lib/operations/signSolanaMessage.js.map +0 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +0 -36
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +0 -46
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +0 -1
- package/lib/operations/signSolanaTransaction.d.ts +0 -33
- package/lib/operations/signSolanaTransaction.d.ts.map +0 -1
- package/lib/operations/signSolanaTransaction.js +0 -42
- package/lib/operations/signSolanaTransaction.js.map +0 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +0 -41
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +0 -51
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/submitDepositTravelRule.d.ts +0 -52
- package/lib/operations/submitDepositTravelRule.d.ts.map +0 -1
- package/lib/operations/submitDepositTravelRule.js +0 -58
- package/lib/operations/submitDepositTravelRule.js.map +0 -1
- package/lib/operations/submitOnrampVerification.d.ts +0 -26
- package/lib/operations/submitOnrampVerification.d.ts.map +0 -1
- package/lib/operations/submitOnrampVerification.js +0 -35
- package/lib/operations/submitOnrampVerification.js.map +0 -1
- package/lib/operations/supportedX402PaymentKinds.d.ts +0 -22
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +0 -1
- package/lib/operations/supportedX402PaymentKinds.js +0 -40
- package/lib/operations/supportedX402PaymentKinds.js.map +0 -1
- package/lib/operations/updateEvmAccount.d.ts +0 -28
- package/lib/operations/updateEvmAccount.d.ts.map +0 -1
- package/lib/operations/updateEvmAccount.js +0 -32
- package/lib/operations/updateEvmAccount.js.map +0 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +0 -24
- package/lib/operations/updateEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/updateEvmSmartAccount.js +0 -30
- package/lib/operations/updateEvmSmartAccount.js.map +0 -1
- package/lib/operations/updatePolicy.d.ts +0 -29
- package/lib/operations/updatePolicy.d.ts.map +0 -1
- package/lib/operations/updatePolicy.js +0 -33
- package/lib/operations/updatePolicy.js.map +0 -1
- package/lib/operations/updateSolanaAccount.d.ts +0 -28
- package/lib/operations/updateSolanaAccount.d.ts.map +0 -1
- package/lib/operations/updateSolanaAccount.js +0 -34
- package/lib/operations/updateSolanaAccount.js.map +0 -1
- package/lib/operations/updateWebhookSubscription.d.ts +0 -49
- package/lib/operations/updateWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/updateWebhookSubscription.js +0 -107
- package/lib/operations/updateWebhookSubscription.js.map +0 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +0 -72
- package/lib/operations/validateEndUserAccessToken.d.ts.map +0 -1
- package/lib/operations/validateEndUserAccessToken.js +0 -86
- package/lib/operations/validateEndUserAccessToken.js.map +0 -1
- package/lib/operations/validateX402Resource.d.ts +0 -64
- package/lib/operations/validateX402Resource.d.ts.map +0 -1
- package/lib/operations/validateX402Resource.js +0 -92
- package/lib/operations/validateX402Resource.js.map +0 -1
- package/lib/operations/verifyX402Payment.d.ts +0 -242
- package/lib/operations/verifyX402Payment.d.ts.map +0 -1
- package/lib/operations/verifyX402Payment.js +0 -333
- package/lib/operations/verifyX402Payment.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/operations/addEndUserEvmAccount.ts +0 -48
- package/src/operations/addEndUserEvmSmartAccount.ts +0 -58
- package/src/operations/addEndUserSolanaAccount.ts +0 -48
- package/src/operations/createDelegationForEndUserAccount.ts +0 -60
- package/src/operations/createDepositDestination.ts +0 -83
- package/src/operations/createEndUser.ts +0 -230
- package/src/operations/createEvmAccount.ts +0 -51
- package/src/operations/createEvmEip7702Delegation.ts +0 -72
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +0 -84
- package/src/operations/createEvmSmartAccount.ts +0 -51
- package/src/operations/createEvmSwapQuote.ts +0 -167
- package/src/operations/createFoundationAccount.ts +0 -49
- package/src/operations/createOnrampOrder.ts +0 -142
- package/src/operations/createOnrampSession.ts +0 -117
- package/src/operations/createPolicy.ts +0 -51
- package/src/operations/createSolanaAccount.ts +0 -53
- package/src/operations/createSpendPermission.ts +0 -163
- package/src/operations/createTransfer.ts +0 -461
- package/src/operations/createWebhookSubscription.ts +0 -189
- package/src/operations/deletePolicy.ts +0 -35
- package/src/operations/deleteWebhookSubscription.ts +0 -40
- package/src/operations/executeFundTransfer.ts +0 -282
- package/src/operations/exportEvmAccount.ts +0 -44
- package/src/operations/exportEvmAccountByName.ts +0 -46
- package/src/operations/exportSolanaAccount.ts +0 -46
- package/src/operations/exportSolanaAccountByName.ts +0 -49
- package/src/operations/getBalanceByAsset.ts +0 -56
- package/src/operations/getDelegationForEndUser.ts +0 -42
- package/src/operations/getDelegationForEndUserAccount.ts +0 -47
- package/src/operations/getDepositDestinationById.ts +0 -87
- package/src/operations/getEndUser.ts +0 -148
- package/src/operations/getEvmAccount.ts +0 -42
- package/src/operations/getEvmAccountByName.ts +0 -44
- package/src/operations/getEvmEip7702DelegationOperationById.ts +0 -69
- package/src/operations/getEvmSmartAccount.ts +0 -46
- package/src/operations/getEvmSmartAccountByName.ts +0 -46
- package/src/operations/getEvmSwapPrice.ts +0 -112
- package/src/operations/getFoundationAccountById.ts +0 -46
- package/src/operations/getOnrampOrderById.ts +0 -94
- package/src/operations/getOnrampUserLimits.ts +0 -57
- package/src/operations/getPaymentMethod.ts +0 -106
- package/src/operations/getPolicyById.ts +0 -44
- package/src/operations/getSQLGrammar.ts +0 -28
- package/src/operations/getSQLSchema.ts +0 -68
- package/src/operations/getSolanaAccount.ts +0 -42
- package/src/operations/getSolanaAccountByName.ts +0 -44
- package/src/operations/getTransferById.ts +0 -274
- package/src/operations/getUserOperation.ts +0 -119
- package/src/operations/getWebhookSubscription.ts +0 -122
- package/src/operations/importEndUser.ts +0 -218
- package/src/operations/importEvmAccount.ts +0 -53
- package/src/operations/importSolanaAccount.ts +0 -53
- package/src/operations/index.ts +0 -115
- package/src/operations/initiateOnrampVerification.ts +0 -44
- package/src/operations/listBalances.ts +0 -66
- package/src/operations/listDataTokenBalances.ts +0 -72
- package/src/operations/listDepositDestinations.ts +0 -107
- package/src/operations/listEndUsers.ts +0 -174
- package/src/operations/listEvmAccounts.ts +0 -54
- package/src/operations/listEvmSmartAccounts.ts +0 -58
- package/src/operations/listEvmTokenBalances.ts +0 -72
- package/src/operations/listFoundationAccounts.ts +0 -60
- package/src/operations/listPaymentMethods.ts +0 -130
- package/src/operations/listPolicies.ts +0 -59
- package/src/operations/listSolanaAccounts.ts +0 -57
- package/src/operations/listSolanaTokenBalances.ts +0 -66
- package/src/operations/listSpendPermissions.ts +0 -100
- package/src/operations/listTokensForAccount.ts +0 -47
- package/src/operations/listTransfers.ts +0 -355
- package/src/operations/listWebhookSubscriptionEvents.ts +0 -101
- package/src/operations/listWebhookSubscriptions.ts +0 -130
- package/src/operations/listX402DiscoveryMerchant.ts +0 -172
- package/src/operations/listX402DiscoveryResources.ts +0 -169
- package/src/operations/lookupEndUser.ts +0 -188
- package/src/operations/postX402DiscoveryMcp.ts +0 -54
- package/src/operations/prepareAndSendUserOperation.ts +0 -169
- package/src/operations/prepareUserOperation.ts +0 -163
- package/src/operations/requestEvmFaucet.ts +0 -44
- package/src/operations/requestLimitsUpgrade.ts +0 -54
- package/src/operations/requestSolanaFaucet.ts +0 -40
- package/src/operations/revokeDelegationForEndUser.ts +0 -52
- package/src/operations/revokeDelegationForEndUserAccount.ts +0 -57
- package/src/operations/revokeSpendPermission.ts +0 -149
- package/src/operations/runSQLQuery.ts +0 -141
- package/src/operations/searchX402Resources.ts +0 -194
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +0 -103
- package/src/operations/sendEvmTransaction.ts +0 -90
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +0 -102
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +0 -75
- package/src/operations/sendSolanaTransaction.ts +0 -59
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +0 -78
- package/src/operations/sendUserOperation.ts +0 -125
- package/src/operations/sendUserOperationWithEndUserAccount.ts +0 -186
- package/src/operations/settleX402Payment.ts +0 -819
- package/src/operations/signEvmHash.ts +0 -44
- package/src/operations/signEvmMessage.ts +0 -45
- package/src/operations/signEvmMessageWithEndUserAccount.ts +0 -62
- package/src/operations/signEvmTransaction.ts +0 -51
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +0 -63
- package/src/operations/signEvmTypedData.ts +0 -65
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +0 -83
- package/src/operations/signSolanaMessage.ts +0 -49
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +0 -62
- package/src/operations/signSolanaTransaction.ts +0 -55
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +0 -67
- package/src/operations/submitDepositTravelRule.ts +0 -101
- package/src/operations/submitOnrampVerification.ts +0 -49
- package/src/operations/supportedX402PaymentKinds.ts +0 -71
- package/src/operations/updateEvmAccount.ts +0 -50
- package/src/operations/updateEvmSmartAccount.ts +0 -48
- package/src/operations/updatePolicy.ts +0 -52
- package/src/operations/updateSolanaAccount.ts +0 -52
- package/src/operations/updateWebhookSubscription.ts +0 -188
- package/src/operations/validateEndUserAccessToken.ts +0 -150
- package/src/operations/validateX402Resource.ts +0 -170
- package/src/operations/verifyX402Payment.ts +0 -775
- package/src/sensitive.ts +0 -4
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListPoliciesInput {
|
|
7
|
-
pageSize?: number;
|
|
8
|
-
pageToken?: string;
|
|
9
|
-
scope?: "project" | "account";
|
|
10
|
-
}
|
|
11
|
-
export const ListPoliciesInput = /*@__PURE__*/ Schema.Struct({
|
|
12
|
-
pageSize: Schema.optional(Schema.Number),
|
|
13
|
-
pageToken: Schema.optional(Schema.String),
|
|
14
|
-
scope: Schema.optional(Schema.Literals(["project", "account"])),
|
|
15
|
-
}).pipe(
|
|
16
|
-
T.Http({ method: "GET", path: "/v2/policy-engine/policies" }),
|
|
17
|
-
) as unknown as Schema.Codec<ListPoliciesInput>;
|
|
18
|
-
|
|
19
|
-
// Output Schema
|
|
20
|
-
export interface ListPoliciesOutput {
|
|
21
|
-
policies: {
|
|
22
|
-
id: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
scope: "project" | "account";
|
|
25
|
-
rules: unknown[];
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
}[];
|
|
29
|
-
nextPageToken?: string;
|
|
30
|
-
}
|
|
31
|
-
export const ListPoliciesOutput = /*@__PURE__*/ Schema.Struct({
|
|
32
|
-
policies: Schema.Array(
|
|
33
|
-
Schema.Struct({
|
|
34
|
-
id: Schema.String,
|
|
35
|
-
description: Schema.optional(Schema.String),
|
|
36
|
-
scope: Schema.Literals(["project", "account"]),
|
|
37
|
-
rules: Schema.Array(Schema.Unknown),
|
|
38
|
-
createdAt: Schema.String,
|
|
39
|
-
updatedAt: Schema.String,
|
|
40
|
-
}),
|
|
41
|
-
),
|
|
42
|
-
nextPageToken: Schema.optional(Schema.String),
|
|
43
|
-
}) as unknown as Schema.Codec<ListPoliciesOutput>;
|
|
44
|
-
|
|
45
|
-
// The operation
|
|
46
|
-
/**
|
|
47
|
-
* List policies
|
|
48
|
-
*
|
|
49
|
-
* Lists the policies belonging to the developer's CDP Project. Use the `scope` parameter to filter the policies by scope.
|
|
50
|
-
* The response is paginated, and by default, returns 20 policies per page.
|
|
51
|
-
*
|
|
52
|
-
* @param pageSize - The number of resources to return per page.
|
|
53
|
-
* @param pageToken - The token for the next page of resources, if any.
|
|
54
|
-
* @param scope - The scope of the policies to return. If `project`, the response will include exactly one policy, which is the project-level policy. If `account`, the response will include all account-level policies for the developer's CDP Project.
|
|
55
|
-
*/
|
|
56
|
-
export const listPolicies = /*@__PURE__*/ API.make(() => ({
|
|
57
|
-
inputSchema: ListPoliciesInput,
|
|
58
|
-
outputSchema: ListPoliciesOutput,
|
|
59
|
-
}));
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListSolanaAccountsInput {
|
|
7
|
-
pageSize?: number;
|
|
8
|
-
pageToken?: string;
|
|
9
|
-
}
|
|
10
|
-
export const ListSolanaAccountsInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
pageSize: Schema.optional(Schema.Number),
|
|
13
|
-
pageToken: Schema.optional(Schema.String),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({ method: "GET", path: "/v2/solana/accounts" }),
|
|
16
|
-
) as unknown as Schema.Codec<ListSolanaAccountsInput>;
|
|
17
|
-
|
|
18
|
-
// Output Schema
|
|
19
|
-
export interface ListSolanaAccountsOutput {
|
|
20
|
-
accounts: {
|
|
21
|
-
address: string;
|
|
22
|
-
name?: string;
|
|
23
|
-
policies?: string[];
|
|
24
|
-
createdAt?: string;
|
|
25
|
-
updatedAt?: string;
|
|
26
|
-
}[];
|
|
27
|
-
nextPageToken?: string;
|
|
28
|
-
}
|
|
29
|
-
export const ListSolanaAccountsOutput =
|
|
30
|
-
/*@__PURE__*/ Schema.Struct({
|
|
31
|
-
accounts: Schema.Array(
|
|
32
|
-
Schema.Struct({
|
|
33
|
-
address: Schema.String,
|
|
34
|
-
name: Schema.optional(Schema.String),
|
|
35
|
-
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
36
|
-
createdAt: Schema.optional(Schema.String),
|
|
37
|
-
updatedAt: Schema.optional(Schema.String),
|
|
38
|
-
}),
|
|
39
|
-
),
|
|
40
|
-
nextPageToken: Schema.optional(Schema.String),
|
|
41
|
-
}) as unknown as Schema.Codec<ListSolanaAccountsOutput>;
|
|
42
|
-
|
|
43
|
-
// The operation
|
|
44
|
-
/**
|
|
45
|
-
* List Solana accounts
|
|
46
|
-
*
|
|
47
|
-
* Lists the Solana accounts belonging to the developer.
|
|
48
|
-
* The response is paginated, and by default, returns 20 accounts per page.
|
|
49
|
-
* If a name is provided, the response will contain only the account with that name.
|
|
50
|
-
*
|
|
51
|
-
* @param pageSize - The number of resources to return per page.
|
|
52
|
-
* @param pageToken - The token for the next page of resources, if any.
|
|
53
|
-
*/
|
|
54
|
-
export const listSolanaAccounts = /*@__PURE__*/ API.make(() => ({
|
|
55
|
-
inputSchema: ListSolanaAccountsInput,
|
|
56
|
-
outputSchema: ListSolanaAccountsOutput,
|
|
57
|
-
}));
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListSolanaTokenBalancesInput {
|
|
7
|
-
address: string;
|
|
8
|
-
network: string;
|
|
9
|
-
pageSize?: number;
|
|
10
|
-
pageToken?: string;
|
|
11
|
-
}
|
|
12
|
-
export const ListSolanaTokenBalancesInput =
|
|
13
|
-
/*@__PURE__*/ Schema.Struct({
|
|
14
|
-
address: Schema.String.pipe(T.PathParam()),
|
|
15
|
-
network: Schema.String.pipe(T.PathParam()),
|
|
16
|
-
pageSize: Schema.optional(Schema.Number),
|
|
17
|
-
pageToken: Schema.optional(Schema.String),
|
|
18
|
-
}).pipe(
|
|
19
|
-
T.Http({
|
|
20
|
-
method: "GET",
|
|
21
|
-
path: "/v2/solana/token-balances/{network}/{address}",
|
|
22
|
-
}),
|
|
23
|
-
) as unknown as Schema.Codec<ListSolanaTokenBalancesInput>;
|
|
24
|
-
|
|
25
|
-
// Output Schema
|
|
26
|
-
export interface ListSolanaTokenBalancesOutput {
|
|
27
|
-
balances: {
|
|
28
|
-
amount: { amount: string; decimals: number };
|
|
29
|
-
token: { symbol?: string; name?: string; mintAddress: string };
|
|
30
|
-
}[];
|
|
31
|
-
nextPageToken?: string;
|
|
32
|
-
}
|
|
33
|
-
export const ListSolanaTokenBalancesOutput =
|
|
34
|
-
/*@__PURE__*/ Schema.Struct({
|
|
35
|
-
balances: Schema.Array(
|
|
36
|
-
Schema.Struct({
|
|
37
|
-
amount: Schema.Struct({
|
|
38
|
-
amount: Schema.String,
|
|
39
|
-
decimals: Schema.Number,
|
|
40
|
-
}),
|
|
41
|
-
token: Schema.Struct({
|
|
42
|
-
symbol: Schema.optional(Schema.String),
|
|
43
|
-
name: Schema.optional(Schema.String),
|
|
44
|
-
mintAddress: Schema.String,
|
|
45
|
-
}),
|
|
46
|
-
}),
|
|
47
|
-
),
|
|
48
|
-
nextPageToken: Schema.optional(Schema.String),
|
|
49
|
-
}) as unknown as Schema.Codec<ListSolanaTokenBalancesOutput>;
|
|
50
|
-
|
|
51
|
-
// The operation
|
|
52
|
-
/**
|
|
53
|
-
* List Solana token balances
|
|
54
|
-
*
|
|
55
|
-
* Lists the token balances of a Solana address on a given network. The balances include SPL tokens and the native SOL token. The response is paginated, and by default, returns 20 balances per page.
|
|
56
|
-
* **Note:** This endpoint is still under development and does not yet provide strong availability or freshness guarantees. Freshness and availability of new token balances will improve over the coming weeks.
|
|
57
|
-
*
|
|
58
|
-
* @param address - The base58 encoded Solana address to get balances for.
|
|
59
|
-
* @param network - The human-readable network name to get the balances for.
|
|
60
|
-
* @param pageSize - The number of balances to return per page.
|
|
61
|
-
* @param pageToken - The token for the next page of balances. Will be empty if there are no more balances to fetch.
|
|
62
|
-
*/
|
|
63
|
-
export const listSolanaTokenBalances = /*@__PURE__*/ API.make(() => ({
|
|
64
|
-
inputSchema: ListSolanaTokenBalancesInput,
|
|
65
|
-
outputSchema: ListSolanaTokenBalancesOutput,
|
|
66
|
-
}));
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListSpendPermissionsInput {
|
|
7
|
-
address: string;
|
|
8
|
-
pageSize?: number;
|
|
9
|
-
pageToken?: string;
|
|
10
|
-
}
|
|
11
|
-
export const ListSpendPermissionsInput =
|
|
12
|
-
/*@__PURE__*/ Schema.Struct({
|
|
13
|
-
address: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
pageSize: Schema.optional(Schema.Number),
|
|
15
|
-
pageToken: Schema.optional(Schema.String),
|
|
16
|
-
}).pipe(
|
|
17
|
-
T.Http({
|
|
18
|
-
method: "GET",
|
|
19
|
-
path: "/v2/evm/smart-accounts/{address}/spend-permissions/list",
|
|
20
|
-
}),
|
|
21
|
-
) as unknown as Schema.Codec<ListSpendPermissionsInput>;
|
|
22
|
-
|
|
23
|
-
// Output Schema
|
|
24
|
-
export interface ListSpendPermissionsOutput {
|
|
25
|
-
spendPermissions: {
|
|
26
|
-
permission: {
|
|
27
|
-
account: string;
|
|
28
|
-
spender: string;
|
|
29
|
-
token: string;
|
|
30
|
-
allowance: string;
|
|
31
|
-
period: string;
|
|
32
|
-
start: string;
|
|
33
|
-
end: string;
|
|
34
|
-
salt: string;
|
|
35
|
-
extraData: string;
|
|
36
|
-
};
|
|
37
|
-
permissionHash: string;
|
|
38
|
-
revoked: boolean;
|
|
39
|
-
revokedAt?: string;
|
|
40
|
-
createdAt: string;
|
|
41
|
-
network:
|
|
42
|
-
| "base"
|
|
43
|
-
| "base-sepolia"
|
|
44
|
-
| "ethereum"
|
|
45
|
-
| "ethereum-sepolia"
|
|
46
|
-
| "optimism"
|
|
47
|
-
| "arbitrum"
|
|
48
|
-
| "avalanche"
|
|
49
|
-
| "polygon";
|
|
50
|
-
}[];
|
|
51
|
-
nextPageToken?: string;
|
|
52
|
-
}
|
|
53
|
-
export const ListSpendPermissionsOutput =
|
|
54
|
-
/*@__PURE__*/ Schema.Struct({
|
|
55
|
-
spendPermissions: Schema.Array(
|
|
56
|
-
Schema.Struct({
|
|
57
|
-
permission: Schema.Struct({
|
|
58
|
-
account: Schema.String,
|
|
59
|
-
spender: Schema.String,
|
|
60
|
-
token: Schema.String,
|
|
61
|
-
allowance: Schema.String,
|
|
62
|
-
period: Schema.String,
|
|
63
|
-
start: Schema.String,
|
|
64
|
-
end: Schema.String,
|
|
65
|
-
salt: Schema.String,
|
|
66
|
-
extraData: Schema.String,
|
|
67
|
-
}),
|
|
68
|
-
permissionHash: Schema.String,
|
|
69
|
-
revoked: Schema.Boolean,
|
|
70
|
-
revokedAt: Schema.optional(Schema.String),
|
|
71
|
-
createdAt: Schema.String,
|
|
72
|
-
network: Schema.Literals([
|
|
73
|
-
"base",
|
|
74
|
-
"base-sepolia",
|
|
75
|
-
"ethereum",
|
|
76
|
-
"ethereum-sepolia",
|
|
77
|
-
"optimism",
|
|
78
|
-
"arbitrum",
|
|
79
|
-
"avalanche",
|
|
80
|
-
"polygon",
|
|
81
|
-
]),
|
|
82
|
-
}),
|
|
83
|
-
),
|
|
84
|
-
nextPageToken: Schema.optional(Schema.String),
|
|
85
|
-
}) as unknown as Schema.Codec<ListSpendPermissionsOutput>;
|
|
86
|
-
|
|
87
|
-
// The operation
|
|
88
|
-
/**
|
|
89
|
-
* List spend permissions
|
|
90
|
-
*
|
|
91
|
-
* Lists spend permission for the given smart account address.
|
|
92
|
-
*
|
|
93
|
-
* @param address - The address of the Smart account to list spend permissions for.
|
|
94
|
-
* @param pageSize - The number of spend permissions to return per page.
|
|
95
|
-
* @param pageToken - The token for the next page of spend permissions. Will be empty if there are no more spend permissions to fetch.
|
|
96
|
-
*/
|
|
97
|
-
export const listSpendPermissions = /*@__PURE__*/ API.make(() => ({
|
|
98
|
-
inputSchema: ListSpendPermissionsInput,
|
|
99
|
-
outputSchema: ListSpendPermissionsOutput,
|
|
100
|
-
}));
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListTokensForAccountInput {
|
|
7
|
-
network: "base" | "base-sepolia";
|
|
8
|
-
address: string;
|
|
9
|
-
}
|
|
10
|
-
export const ListTokensForAccountInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
network: Schema.Literals(["base", "base-sepolia"]).pipe(T.PathParam()),
|
|
13
|
-
address: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({
|
|
16
|
-
method: "GET",
|
|
17
|
-
path: "/v2/data/evm/token-ownership/{network}/{address}",
|
|
18
|
-
}),
|
|
19
|
-
) as unknown as Schema.Codec<ListTokensForAccountInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export interface ListTokensForAccountOutput {
|
|
23
|
-
accountAddress?: string;
|
|
24
|
-
tokenAddresses?: string[];
|
|
25
|
-
totalCount?: number;
|
|
26
|
-
}
|
|
27
|
-
export const ListTokensForAccountOutput =
|
|
28
|
-
/*@__PURE__*/ Schema.Struct({
|
|
29
|
-
accountAddress: Schema.optional(Schema.String),
|
|
30
|
-
tokenAddresses: Schema.optional(Schema.Array(Schema.String)),
|
|
31
|
-
totalCount: Schema.optional(Schema.Number),
|
|
32
|
-
}) as unknown as Schema.Codec<ListTokensForAccountOutput>;
|
|
33
|
-
|
|
34
|
-
// The operation
|
|
35
|
-
/**
|
|
36
|
-
* List token addresses for account
|
|
37
|
-
*
|
|
38
|
-
* Retrieve all ERC-20 token contract addresses that an account has ever received tokens from.
|
|
39
|
-
* Analyzes transaction history to discover token interactions.
|
|
40
|
-
*
|
|
41
|
-
* @param network - The blockchain network to query.
|
|
42
|
-
* @param address - The account address to analyze for token interactions.
|
|
43
|
-
*/
|
|
44
|
-
export const listTokensForAccount = /*@__PURE__*/ API.make(() => ({
|
|
45
|
-
inputSchema: ListTokensForAccountInput,
|
|
46
|
-
outputSchema: ListTokensForAccountOutput,
|
|
47
|
-
}));
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListTransfersInput {
|
|
7
|
-
status?: string;
|
|
8
|
-
accountId?: string;
|
|
9
|
-
sourceAccountId?: string;
|
|
10
|
-
targetAccountId?: string;
|
|
11
|
-
createdAfter?: string;
|
|
12
|
-
createdBefore?: string;
|
|
13
|
-
updatedAfter?: string;
|
|
14
|
-
updatedBefore?: string;
|
|
15
|
-
sourceAsset?: string;
|
|
16
|
-
targetAsset?: string;
|
|
17
|
-
sourceAddress?: string;
|
|
18
|
-
targetAddress?: string;
|
|
19
|
-
targetEmail?: string;
|
|
20
|
-
transferId?: string;
|
|
21
|
-
pageSize?: number;
|
|
22
|
-
pageToken?: string;
|
|
23
|
-
}
|
|
24
|
-
export const ListTransfersInput = /*@__PURE__*/ Schema.Struct({
|
|
25
|
-
status: Schema.optional(Schema.String),
|
|
26
|
-
accountId: Schema.optional(Schema.String),
|
|
27
|
-
sourceAccountId: Schema.optional(Schema.String),
|
|
28
|
-
targetAccountId: Schema.optional(Schema.String),
|
|
29
|
-
createdAfter: Schema.optional(Schema.String),
|
|
30
|
-
createdBefore: Schema.optional(Schema.String),
|
|
31
|
-
updatedAfter: Schema.optional(Schema.String),
|
|
32
|
-
updatedBefore: Schema.optional(Schema.String),
|
|
33
|
-
sourceAsset: Schema.optional(Schema.String),
|
|
34
|
-
targetAsset: Schema.optional(Schema.String),
|
|
35
|
-
sourceAddress: Schema.optional(Schema.String),
|
|
36
|
-
targetAddress: Schema.optional(Schema.String),
|
|
37
|
-
targetEmail: Schema.optional(Schema.String),
|
|
38
|
-
transferId: Schema.optional(Schema.String),
|
|
39
|
-
pageSize: Schema.optional(Schema.Number),
|
|
40
|
-
pageToken: Schema.optional(Schema.String),
|
|
41
|
-
}).pipe(
|
|
42
|
-
T.Http({ method: "GET", path: "/v2/transfers" }),
|
|
43
|
-
) as unknown as Schema.Codec<ListTransfersInput>;
|
|
44
|
-
|
|
45
|
-
// Output Schema
|
|
46
|
-
export interface ListTransfersOutput {
|
|
47
|
-
transfers: {
|
|
48
|
-
transferId?: string;
|
|
49
|
-
status?: "quoted" | "processing" | "completed" | "failed";
|
|
50
|
-
source:
|
|
51
|
-
| { accountId: string; asset: string }
|
|
52
|
-
| { paymentMethodId: string; asset: string }
|
|
53
|
-
| {
|
|
54
|
-
address: string;
|
|
55
|
-
network:
|
|
56
|
-
| "base"
|
|
57
|
-
| "ethereum"
|
|
58
|
-
| "solana"
|
|
59
|
-
| "aptos"
|
|
60
|
-
| "arbitrum"
|
|
61
|
-
| "arbitrum-sepolia"
|
|
62
|
-
| "optimism"
|
|
63
|
-
| "polygon"
|
|
64
|
-
| "world"
|
|
65
|
-
| "world-sepolia";
|
|
66
|
-
destinationTag?: string;
|
|
67
|
-
asset: string;
|
|
68
|
-
}
|
|
69
|
-
| { bankName: string; accountLast4: string; currency: string };
|
|
70
|
-
target:
|
|
71
|
-
| { accountId: string; asset: string }
|
|
72
|
-
| { paymentMethodId: string; asset: string }
|
|
73
|
-
| {
|
|
74
|
-
address: string;
|
|
75
|
-
network:
|
|
76
|
-
| "base"
|
|
77
|
-
| "ethereum"
|
|
78
|
-
| "solana"
|
|
79
|
-
| "aptos"
|
|
80
|
-
| "arbitrum"
|
|
81
|
-
| "arbitrum-sepolia"
|
|
82
|
-
| "optimism"
|
|
83
|
-
| "polygon"
|
|
84
|
-
| "world"
|
|
85
|
-
| "world-sepolia";
|
|
86
|
-
destinationTag?: string;
|
|
87
|
-
asset: string;
|
|
88
|
-
}
|
|
89
|
-
| { email: string; asset: string };
|
|
90
|
-
sourceAmount?: string;
|
|
91
|
-
sourceAsset?: string;
|
|
92
|
-
targetAmount?: string;
|
|
93
|
-
targetAsset?: string;
|
|
94
|
-
exchangeRate?: { sourceAsset: string; targetAsset: string; rate: string };
|
|
95
|
-
fees?: {
|
|
96
|
-
type: "bank" | "conversion" | "network" | "other";
|
|
97
|
-
amount: string;
|
|
98
|
-
asset: string;
|
|
99
|
-
}[];
|
|
100
|
-
estimate?: {
|
|
101
|
-
exchangeRate?: { sourceAsset: string; targetAsset: string; rate: string };
|
|
102
|
-
targetAmount?: string;
|
|
103
|
-
targetAsset?: string;
|
|
104
|
-
fees?: {
|
|
105
|
-
type: "bank" | "conversion" | "network" | "other";
|
|
106
|
-
amount: string;
|
|
107
|
-
asset: string;
|
|
108
|
-
}[];
|
|
109
|
-
estimatedAt: string;
|
|
110
|
-
};
|
|
111
|
-
completedAt?: string;
|
|
112
|
-
failureReason?: string;
|
|
113
|
-
expiresAt?: string;
|
|
114
|
-
executedAt?: string;
|
|
115
|
-
createdAt?: string;
|
|
116
|
-
updatedAt?: string;
|
|
117
|
-
metadata?: Record<string, string>;
|
|
118
|
-
details?: {
|
|
119
|
-
depositDestination?: { id: string };
|
|
120
|
-
onchainTransactions?: {
|
|
121
|
-
transactionHash: string;
|
|
122
|
-
network:
|
|
123
|
-
| "base"
|
|
124
|
-
| "ethereum"
|
|
125
|
-
| "solana"
|
|
126
|
-
| "aptos"
|
|
127
|
-
| "arbitrum"
|
|
128
|
-
| "arbitrum-sepolia"
|
|
129
|
-
| "optimism"
|
|
130
|
-
| "polygon"
|
|
131
|
-
| "world"
|
|
132
|
-
| "world-sepolia";
|
|
133
|
-
}[];
|
|
134
|
-
travelRule?: {
|
|
135
|
-
status?: "incomplete" | "completed";
|
|
136
|
-
statusMessage?: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
}[];
|
|
140
|
-
nextPageToken?: string;
|
|
141
|
-
}
|
|
142
|
-
export const ListTransfersOutput = /*@__PURE__*/ Schema.Struct({
|
|
143
|
-
transfers: Schema.Array(
|
|
144
|
-
Schema.Struct({
|
|
145
|
-
transferId: Schema.optional(Schema.String),
|
|
146
|
-
status: Schema.optional(
|
|
147
|
-
Schema.Literals(["quoted", "processing", "completed", "failed"]),
|
|
148
|
-
),
|
|
149
|
-
source: Schema.Union([
|
|
150
|
-
Schema.Struct({
|
|
151
|
-
accountId: Schema.String,
|
|
152
|
-
asset: Schema.String,
|
|
153
|
-
}),
|
|
154
|
-
Schema.Struct({
|
|
155
|
-
paymentMethodId: Schema.String,
|
|
156
|
-
asset: Schema.String,
|
|
157
|
-
}),
|
|
158
|
-
Schema.Struct({
|
|
159
|
-
address: Schema.String,
|
|
160
|
-
network: Schema.Literals([
|
|
161
|
-
"base",
|
|
162
|
-
"ethereum",
|
|
163
|
-
"solana",
|
|
164
|
-
"aptos",
|
|
165
|
-
"arbitrum",
|
|
166
|
-
"arbitrum-sepolia",
|
|
167
|
-
"optimism",
|
|
168
|
-
"polygon",
|
|
169
|
-
"world",
|
|
170
|
-
"world-sepolia",
|
|
171
|
-
]),
|
|
172
|
-
destinationTag: Schema.optional(Schema.String),
|
|
173
|
-
asset: Schema.String,
|
|
174
|
-
}),
|
|
175
|
-
Schema.Struct({
|
|
176
|
-
bankName: Schema.String,
|
|
177
|
-
accountLast4: Schema.String,
|
|
178
|
-
currency: Schema.String,
|
|
179
|
-
}),
|
|
180
|
-
]),
|
|
181
|
-
target: Schema.Union([
|
|
182
|
-
Schema.Struct({
|
|
183
|
-
accountId: Schema.String,
|
|
184
|
-
asset: Schema.String,
|
|
185
|
-
}),
|
|
186
|
-
Schema.Struct({
|
|
187
|
-
paymentMethodId: Schema.String,
|
|
188
|
-
asset: Schema.String,
|
|
189
|
-
}),
|
|
190
|
-
Schema.Struct({
|
|
191
|
-
address: Schema.String,
|
|
192
|
-
network: Schema.Literals([
|
|
193
|
-
"base",
|
|
194
|
-
"ethereum",
|
|
195
|
-
"solana",
|
|
196
|
-
"aptos",
|
|
197
|
-
"arbitrum",
|
|
198
|
-
"arbitrum-sepolia",
|
|
199
|
-
"optimism",
|
|
200
|
-
"polygon",
|
|
201
|
-
"world",
|
|
202
|
-
"world-sepolia",
|
|
203
|
-
]),
|
|
204
|
-
destinationTag: Schema.optional(Schema.String),
|
|
205
|
-
asset: Schema.String,
|
|
206
|
-
}),
|
|
207
|
-
Schema.Struct({
|
|
208
|
-
email: Schema.String,
|
|
209
|
-
asset: Schema.String,
|
|
210
|
-
}),
|
|
211
|
-
]),
|
|
212
|
-
sourceAmount: Schema.optional(Schema.String),
|
|
213
|
-
sourceAsset: Schema.optional(Schema.String),
|
|
214
|
-
targetAmount: Schema.optional(Schema.String),
|
|
215
|
-
targetAsset: Schema.optional(Schema.String),
|
|
216
|
-
exchangeRate: Schema.optional(
|
|
217
|
-
Schema.Struct({
|
|
218
|
-
sourceAsset: Schema.String,
|
|
219
|
-
targetAsset: Schema.String,
|
|
220
|
-
rate: Schema.String,
|
|
221
|
-
}),
|
|
222
|
-
),
|
|
223
|
-
fees: Schema.optional(
|
|
224
|
-
Schema.Array(
|
|
225
|
-
Schema.Struct({
|
|
226
|
-
type: Schema.Literals(["bank", "conversion", "network", "other"]),
|
|
227
|
-
amount: Schema.String,
|
|
228
|
-
asset: Schema.String,
|
|
229
|
-
}),
|
|
230
|
-
),
|
|
231
|
-
),
|
|
232
|
-
estimate: Schema.optional(
|
|
233
|
-
Schema.Struct({
|
|
234
|
-
exchangeRate: Schema.optional(
|
|
235
|
-
Schema.Struct({
|
|
236
|
-
sourceAsset: Schema.String,
|
|
237
|
-
targetAsset: Schema.String,
|
|
238
|
-
rate: Schema.String,
|
|
239
|
-
}),
|
|
240
|
-
),
|
|
241
|
-
targetAmount: Schema.optional(Schema.String),
|
|
242
|
-
targetAsset: Schema.optional(Schema.String),
|
|
243
|
-
fees: Schema.optional(
|
|
244
|
-
Schema.Array(
|
|
245
|
-
Schema.Struct({
|
|
246
|
-
type: Schema.Literals([
|
|
247
|
-
"bank",
|
|
248
|
-
"conversion",
|
|
249
|
-
"network",
|
|
250
|
-
"other",
|
|
251
|
-
]),
|
|
252
|
-
amount: Schema.String,
|
|
253
|
-
asset: Schema.String,
|
|
254
|
-
}),
|
|
255
|
-
),
|
|
256
|
-
),
|
|
257
|
-
estimatedAt: Schema.String,
|
|
258
|
-
}),
|
|
259
|
-
),
|
|
260
|
-
completedAt: Schema.optional(Schema.String),
|
|
261
|
-
failureReason: Schema.optional(Schema.String),
|
|
262
|
-
expiresAt: Schema.optional(Schema.String),
|
|
263
|
-
executedAt: Schema.optional(Schema.String),
|
|
264
|
-
createdAt: Schema.optional(Schema.String),
|
|
265
|
-
updatedAt: Schema.optional(Schema.String),
|
|
266
|
-
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
267
|
-
details: Schema.optional(
|
|
268
|
-
Schema.Struct({
|
|
269
|
-
depositDestination: Schema.optional(
|
|
270
|
-
Schema.Struct({
|
|
271
|
-
id: Schema.String,
|
|
272
|
-
}),
|
|
273
|
-
),
|
|
274
|
-
onchainTransactions: Schema.optional(
|
|
275
|
-
Schema.Array(
|
|
276
|
-
Schema.Struct({
|
|
277
|
-
transactionHash: Schema.String,
|
|
278
|
-
network: Schema.Literals([
|
|
279
|
-
"base",
|
|
280
|
-
"ethereum",
|
|
281
|
-
"solana",
|
|
282
|
-
"aptos",
|
|
283
|
-
"arbitrum",
|
|
284
|
-
"arbitrum-sepolia",
|
|
285
|
-
"optimism",
|
|
286
|
-
"polygon",
|
|
287
|
-
"world",
|
|
288
|
-
"world-sepolia",
|
|
289
|
-
]),
|
|
290
|
-
}),
|
|
291
|
-
),
|
|
292
|
-
),
|
|
293
|
-
travelRule: Schema.optional(
|
|
294
|
-
Schema.Struct({
|
|
295
|
-
status: Schema.optional(
|
|
296
|
-
Schema.Literals(["incomplete", "completed"]),
|
|
297
|
-
),
|
|
298
|
-
statusMessage: Schema.optional(Schema.String),
|
|
299
|
-
}),
|
|
300
|
-
),
|
|
301
|
-
}),
|
|
302
|
-
),
|
|
303
|
-
}),
|
|
304
|
-
),
|
|
305
|
-
nextPageToken: Schema.optional(Schema.String),
|
|
306
|
-
}) as unknown as Schema.Codec<ListTransfersOutput>;
|
|
307
|
-
|
|
308
|
-
// The operation
|
|
309
|
-
/**
|
|
310
|
-
* List transfers
|
|
311
|
-
*
|
|
312
|
-
* List transfers for your organization. Use this to view and monitor your transfer activity.
|
|
313
|
-
* **Status Filtering**: Filter by specific status to efficiently manage transfers:
|
|
314
|
-
* * `?status=processing` - Monitor active transfers.
|
|
315
|
-
* * `?status=quoted` - Find transfers awaiting execution.
|
|
316
|
-
* * `?status=failed` - Review failed transfers for troubleshooting.
|
|
317
|
-
* * `?status=completed` - Find completed transfers.
|
|
318
|
-
* **Account Filtering**: Filter by account ID to find transfers involving a specific account:
|
|
319
|
-
* * `?accountId=<ID>` - All transfers where the account is either source or target (OR semantics).
|
|
320
|
-
* * `?sourceAccountId=<ID>` - Only transfers where the account is the source (outbound).
|
|
321
|
-
* * `?targetAccountId=<ID>` - Only transfers where the account is the target (inbound).
|
|
322
|
-
* Providing `accountId` together with `sourceAccountId` or `targetAccountId` is a validation error and returns HTTP 400.
|
|
323
|
-
* **Date Range Filtering**: Filter by creation or last-updated time for reconciliation:
|
|
324
|
-
* * `?createdAfter=2026-01-01T00:00:00Z&createdBefore=2026-01-31T23:59:59Z` - Transfers created within a date range.
|
|
325
|
-
* * `?updatedAfter=2026-01-01T00:00:00Z` - Transfers updated since a given time. Useful for incremental sync.
|
|
326
|
-
* **Asset Filtering**: Filter by source or target asset symbol:
|
|
327
|
-
* * `?sourceAsset=usd` - Transfers funded from a USD account.
|
|
328
|
-
* * `?targetAsset=usdc` - Transfers delivering USDC to the target.
|
|
329
|
-
* **Other Filters**:
|
|
330
|
-
* * `?sourceAddress=0x...` - Transfers from a specific on-chain source address.
|
|
331
|
-
* * `?targetAddress=0x...` - Transfers to a specific on-chain destination address.
|
|
332
|
-
* * `?targetEmail=user@example.com` - Transfers to a specific email recipient.
|
|
333
|
-
* * `?transferId=transfer_...` - Look up a single transfer by ID; bypasses pagination.
|
|
334
|
-
*
|
|
335
|
-
* @param status - Filter transfers by status. Useful for building dashboards, monitoring active transfers, or finding transfers needing action.
|
|
336
|
-
* @param accountId - Filter transfers by account ID. Returns transfers where the specified account is either the source or target (OR semantics). Cannot be combined with `sourceAccountId` or `targetAccountId`.
|
|
337
|
-
* @param sourceAccountId - Filter transfers by source account ID. Returns only transfers where the specified account is the source. Cannot be combined with `accountId`.
|
|
338
|
-
* @param targetAccountId - Filter transfers by target account ID. Returns only transfers where the specified account is the target. Cannot be combined with `accountId`.
|
|
339
|
-
* @param createdAfter - Filter transfers to those created at or after this datetime (inclusive). ISO 8601 format.
|
|
340
|
-
* @param createdBefore - Filter transfers to those created at or before this datetime (inclusive). ISO 8601 format.
|
|
341
|
-
* @param updatedAfter - Filter transfers to those updated at or after this datetime (inclusive). ISO 8601 format. Useful for incremental sync — poll for transfers that changed state since your last check.
|
|
342
|
-
* @param updatedBefore - Filter transfers to those updated at or before this datetime (inclusive). ISO 8601 format.
|
|
343
|
-
* @param sourceAsset - Filter transfers by source asset symbol (e.g., `usd`, `usdc`).
|
|
344
|
-
* @param targetAsset - Filter transfers by target asset symbol (e.g., `usdc`, `eth`).
|
|
345
|
-
* @param sourceAddress - Filter transfers by the on-chain address of the source.
|
|
346
|
-
* @param targetAddress - Filter transfers by the on-chain destination address of the target.
|
|
347
|
-
* @param targetEmail - Filter transfers by the email address of the target recipient.
|
|
348
|
-
* @param transferId - Filter to a specific transfer by ID. When provided, returns only the matching transfer and bypasses pagination.
|
|
349
|
-
* @param pageSize - The number of resources to return per page.
|
|
350
|
-
* @param pageToken - The token for the next page of resources, if any.
|
|
351
|
-
*/
|
|
352
|
-
export const listTransfers = /*@__PURE__*/ API.make(() => ({
|
|
353
|
-
inputSchema: ListTransfersInput,
|
|
354
|
-
outputSchema: ListTransfersOutput,
|
|
355
|
-
}));
|