@distilled.cloud/coinbase 0.26.1 → 0.28.0
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/operations/addEndUserEvmAccount.d.ts +13 -20
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmAccount.js +1 -3
- package/lib/operations/addEndUserEvmAccount.js.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +15 -24
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +1 -3
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +14 -21
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.js +2 -4
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/createDelegationForEndUserAccount.js +44 -0
- package/lib/operations/createDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/createDepositDestination.d.ts +34 -0
- package/lib/operations/createDepositDestination.d.ts.map +1 -0
- package/lib/operations/createDepositDestination.js +50 -0
- package/lib/operations/createDepositDestination.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +99 -84
- package/lib/operations/createEndUser.d.ts.map +1 -1
- package/lib/operations/createEndUser.js +71 -5
- package/lib/operations/createEndUser.js.map +1 -1
- package/lib/operations/createEvmAccount.d.ts +15 -24
- package/lib/operations/createEvmAccount.d.ts.map +1 -1
- package/lib/operations/createEvmAccount.js +1 -3
- package/lib/operations/createEvmAccount.js.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +11 -17
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -2
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +14 -23
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -2
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -1
- package/lib/operations/createEvmSmartAccount.d.ts +16 -26
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/createEvmSmartAccount.js +1 -3
- package/lib/operations/createEvmSmartAccount.js.map +1 -1
- package/lib/operations/createEvmSwapQuote.d.ts +69 -24
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -1
- package/lib/operations/createEvmSwapQuote.js +59 -4
- package/lib/operations/createEvmSwapQuote.js.map +1 -1
- package/lib/operations/createFoundationAccount.d.ts +26 -0
- package/lib/operations/createFoundationAccount.d.ts.map +1 -0
- package/lib/operations/createFoundationAccount.js +32 -0
- package/lib/operations/createFoundationAccount.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +51 -93
- package/lib/operations/createOnrampOrder.d.ts.map +1 -1
- package/lib/operations/createOnrampOrder.js +2 -2
- package/lib/operations/createOnrampOrder.js.map +1 -1
- package/lib/operations/createOnrampSession.d.ts +36 -67
- package/lib/operations/createOnrampSession.d.ts.map +1 -1
- package/lib/operations/createOnrampSession.js +0 -2
- package/lib/operations/createOnrampSession.js.map +1 -1
- package/lib/operations/createPolicy.d.ts +17 -28
- package/lib/operations/createPolicy.d.ts.map +1 -1
- package/lib/operations/createPolicy.js +1 -3
- package/lib/operations/createPolicy.js.map +1 -1
- package/lib/operations/createSolanaAccount.d.ts +15 -24
- package/lib/operations/createSolanaAccount.d.ts.map +1 -1
- package/lib/operations/createSolanaAccount.js +1 -3
- package/lib/operations/createSolanaAccount.js.map +1 -1
- package/lib/operations/createSpendPermission.d.ts +40 -72
- package/lib/operations/createSpendPermission.d.ts.map +1 -1
- package/lib/operations/createSpendPermission.js +2 -3
- package/lib/operations/createSpendPermission.js.map +1 -1
- package/lib/operations/createTransfer.d.ts +178 -0
- package/lib/operations/createTransfer.d.ts.map +1 -0
- package/lib/operations/createTransfer.js +244 -0
- package/lib/operations/createTransfer.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +46 -105
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/createWebhookSubscription.js +68 -45
- package/lib/operations/createWebhookSubscription.js.map +1 -1
- package/lib/operations/deletePolicy.d.ts +8 -10
- package/lib/operations/deletePolicy.d.ts.map +1 -1
- package/lib/operations/deletePolicy.js +3 -4
- package/lib/operations/deletePolicy.js.map +1 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +7 -9
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -2
- package/lib/operations/deleteWebhookSubscription.js.map +1 -1
- package/lib/operations/executeFundTransfer.d.ts +103 -0
- package/lib/operations/executeFundTransfer.d.ts.map +1 -0
- package/lib/operations/executeFundTransfer.js +152 -0
- package/lib/operations/executeFundTransfer.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +11 -16
- package/lib/operations/exportEvmAccount.d.ts.map +1 -1
- package/lib/operations/exportEvmAccount.js +1 -3
- package/lib/operations/exportEvmAccount.js.map +1 -1
- package/lib/operations/exportEvmAccountByName.d.ts +11 -16
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/exportEvmAccountByName.js +1 -3
- package/lib/operations/exportEvmAccountByName.js.map +1 -1
- package/lib/operations/exportSolanaAccount.d.ts +11 -16
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccount.js +1 -3
- package/lib/operations/exportSolanaAccount.js.map +1 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +11 -16
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccountByName.js +1 -3
- package/lib/operations/exportSolanaAccountByName.js.map +1 -1
- package/lib/operations/getBalanceByAsset.d.ts +29 -0
- package/lib/operations/getBalanceByAsset.d.ts.map +1 -0
- package/lib/operations/getBalanceByAsset.js +34 -0
- package/lib/operations/getBalanceByAsset.js.map +1 -0
- package/lib/operations/getDelegationForEndUser.d.ts +10 -15
- package/lib/operations/getDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/getDelegationForEndUser.js +0 -2
- package/lib/operations/getDelegationForEndUser.js.map +1 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +23 -0
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/getDelegationForEndUserAccount.js +33 -0
- package/lib/operations/getDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/getDepositDestinationById.d.ts +32 -0
- package/lib/operations/getDepositDestinationById.d.ts.map +1 -0
- package/lib/operations/getDepositDestinationById.js +52 -0
- package/lib/operations/getDepositDestinationById.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +64 -68
- package/lib/operations/getEndUser.d.ts.map +1 -1
- package/lib/operations/getEndUser.js +36 -4
- package/lib/operations/getEndUser.js.map +1 -1
- package/lib/operations/getEvmAccount.d.ts +14 -22
- package/lib/operations/getEvmAccount.d.ts.map +1 -1
- package/lib/operations/getEvmAccount.js +1 -3
- package/lib/operations/getEvmAccount.js.map +1 -1
- package/lib/operations/getEvmAccountByName.d.ts +14 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmAccountByName.js +1 -3
- package/lib/operations/getEvmAccountByName.js.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +14 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +1 -3
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -1
- package/lib/operations/getEvmSmartAccount.d.ts +15 -24
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccount.js +1 -3
- package/lib/operations/getEvmSmartAccount.js.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +15 -24
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.js +1 -3
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -1
- package/lib/operations/getEvmSwapPrice.d.ts +49 -24
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -1
- package/lib/operations/getEvmSwapPrice.js +39 -4
- package/lib/operations/getEvmSwapPrice.js.map +1 -1
- package/lib/operations/getFoundationAccountById.d.ts +23 -0
- package/lib/operations/getFoundationAccountById.d.ts.map +1 -0
- package/lib/operations/getFoundationAccountById.js +29 -0
- package/lib/operations/getFoundationAccountById.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +30 -55
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -1
- package/lib/operations/getOnrampOrderById.js +0 -2
- package/lib/operations/getOnrampOrderById.js.map +1 -1
- package/lib/operations/getOnrampUserLimits.d.ts +16 -27
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -1
- package/lib/operations/getOnrampUserLimits.js +0 -2
- package/lib/operations/getOnrampUserLimits.js.map +1 -1
- package/lib/operations/getPaymentMethod.d.ts +53 -0
- package/lib/operations/getPaymentMethod.d.ts.map +1 -0
- package/lib/operations/getPaymentMethod.js +61 -0
- package/lib/operations/getPaymentMethod.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +15 -24
- package/lib/operations/getPolicyById.d.ts.map +1 -1
- package/lib/operations/getPolicyById.js +1 -3
- package/lib/operations/getPolicyById.js.map +1 -1
- package/lib/operations/getSQLGrammar.d.ts +6 -5
- package/lib/operations/getSQLGrammar.d.ts.map +1 -1
- package/lib/operations/getSQLGrammar.js +2 -3
- package/lib/operations/getSQLGrammar.js.map +1 -1
- package/lib/operations/getSQLSchema.d.ts +21 -36
- package/lib/operations/getSQLSchema.d.ts.map +1 -1
- package/lib/operations/getSQLSchema.js +2 -4
- package/lib/operations/getSQLSchema.js.map +1 -1
- package/lib/operations/getSolanaAccount.d.ts +14 -22
- package/lib/operations/getSolanaAccount.d.ts.map +1 -1
- package/lib/operations/getSolanaAccount.js +1 -3
- package/lib/operations/getSolanaAccount.js.map +1 -1
- package/lib/operations/getSolanaAccountByName.d.ts +14 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/getSolanaAccountByName.js +1 -3
- package/lib/operations/getSolanaAccountByName.js.map +1 -1
- package/lib/operations/getTransferById.d.ts +99 -0
- package/lib/operations/getTransferById.d.ts.map +1 -0
- package/lib/operations/getTransferById.js +146 -0
- package/lib/operations/getTransferById.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +31 -54
- package/lib/operations/getUserOperation.d.ts.map +1 -1
- package/lib/operations/getUserOperation.js +2 -3
- package/lib/operations/getUserOperation.js.map +1 -1
- package/lib/operations/getWebhookSubscription.d.ts +25 -46
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/getWebhookSubscription.js +30 -7
- package/lib/operations/getWebhookSubscription.js.map +1 -1
- package/lib/operations/importEndUser.d.ts +94 -74
- package/lib/operations/importEndUser.d.ts.map +1 -1
- package/lib/operations/importEndUser.js +71 -5
- package/lib/operations/importEndUser.js.map +1 -1
- package/lib/operations/importEvmAccount.d.ts +16 -26
- package/lib/operations/importEvmAccount.d.ts.map +1 -1
- package/lib/operations/importEvmAccount.js +1 -3
- package/lib/operations/importEvmAccount.js.map +1 -1
- package/lib/operations/importSolanaAccount.d.ts +15 -24
- package/lib/operations/importSolanaAccount.d.ts.map +1 -1
- package/lib/operations/importSolanaAccount.js +1 -3
- package/lib/operations/importSolanaAccount.js.map +1 -1
- package/lib/operations/index.d.ts +40 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +40 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/initiateOnrampVerification.d.ts +24 -0
- package/lib/operations/initiateOnrampVerification.d.ts.map +1 -0
- package/lib/operations/initiateOnrampVerification.js +30 -0
- package/lib/operations/initiateOnrampVerification.js.map +1 -0
- package/lib/operations/listBalances.d.ts +34 -0
- package/lib/operations/listBalances.d.ts.map +1 -0
- package/lib/operations/listBalances.js +38 -0
- package/lib/operations/listBalances.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +24 -43
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -1
- package/lib/operations/listDataTokenBalances.js +0 -2
- package/lib/operations/listDataTokenBalances.js.map +1 -1
- package/lib/operations/listDepositDestinations.d.ts +45 -0
- package/lib/operations/listDepositDestinations.d.ts.map +1 -0
- package/lib/operations/listDepositDestinations.js +62 -0
- package/lib/operations/listDepositDestinations.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +68 -77
- package/lib/operations/listEndUsers.d.ts.map +1 -1
- package/lib/operations/listEndUsers.js +47 -3
- package/lib/operations/listEndUsers.js.map +1 -1
- package/lib/operations/listEvmAccounts.d.ts +17 -29
- package/lib/operations/listEvmAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmAccounts.js +0 -2
- package/lib/operations/listEvmAccounts.js.map +1 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +18 -31
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -2
- package/lib/operations/listEvmSmartAccounts.js.map +1 -1
- package/lib/operations/listEvmTokenBalances.d.ts +24 -43
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -1
- package/lib/operations/listEvmTokenBalances.js +0 -2
- package/lib/operations/listEvmTokenBalances.js.map +1 -1
- package/lib/operations/listFoundationAccounts.d.ts +30 -0
- package/lib/operations/listFoundationAccounts.d.ts.map +1 -0
- package/lib/operations/listFoundationAccounts.js +36 -0
- package/lib/operations/listFoundationAccounts.js.map +1 -0
- package/lib/operations/listPaymentMethods.d.ts +63 -0
- package/lib/operations/listPaymentMethods.d.ts.map +1 -0
- package/lib/operations/listPaymentMethods.js +73 -0
- package/lib/operations/listPaymentMethods.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +19 -33
- package/lib/operations/listPolicies.d.ts.map +1 -1
- package/lib/operations/listPolicies.js +0 -2
- package/lib/operations/listPolicies.js.map +1 -1
- package/lib/operations/listSolanaAccounts.d.ts +18 -30
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -1
- package/lib/operations/listSolanaAccounts.js +1 -3
- package/lib/operations/listSolanaAccounts.js.map +1 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +23 -41
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -2
- package/lib/operations/listSolanaTokenBalances.js.map +1 -1
- package/lib/operations/listSpendPermissions.d.ts +29 -53
- package/lib/operations/listSpendPermissions.d.ts.map +1 -1
- package/lib/operations/listSpendPermissions.js +0 -2
- package/lib/operations/listSpendPermissions.js.map +1 -1
- package/lib/operations/listTokensForAccount.d.ts +12 -19
- package/lib/operations/listTokensForAccount.d.ts.map +1 -1
- package/lib/operations/listTokensForAccount.js +0 -2
- package/lib/operations/listTokensForAccount.js.map +1 -1
- package/lib/operations/listTransfers.d.ts +153 -0
- package/lib/operations/listTransfers.d.ts.map +1 -0
- package/lib/operations/listTransfers.js +205 -0
- package/lib/operations/listTransfers.js.map +1 -0
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +26 -47
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -2
- package/lib/operations/listWebhookSubscriptionEvents.js.map +1 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +28 -53
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptions.js +29 -6
- package/lib/operations/listWebhookSubscriptions.js.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +69 -0
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryMerchant.js +92 -0
- package/lib/operations/listX402DiscoveryMerchant.js.map +1 -0
- package/lib/operations/listX402DiscoveryResources.d.ts +67 -0
- package/lib/operations/listX402DiscoveryResources.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryResources.js +90 -0
- package/lib/operations/listX402DiscoveryResources.js.map +1 -0
- package/lib/operations/lookupEndUser.d.ts +93 -0
- package/lib/operations/lookupEndUser.d.ts.map +1 -0
- package/lib/operations/lookupEndUser.js +116 -0
- package/lib/operations/lookupEndUser.js.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts +26 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.js +32 -0
- package/lib/operations/postX402DiscoveryMcp.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +39 -68
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareAndSendUserOperation.js +3 -3
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -1
- package/lib/operations/prepareUserOperation.d.ts +40 -70
- package/lib/operations/prepareUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareUserOperation.js +3 -3
- package/lib/operations/prepareUserOperation.js.map +1 -1
- package/lib/operations/requestEvmFaucet.d.ts +11 -17
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -1
- package/lib/operations/requestEvmFaucet.js +0 -2
- package/lib/operations/requestEvmFaucet.js.map +1 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +29 -0
- package/lib/operations/requestLimitsUpgrade.d.ts.map +1 -0
- package/lib/operations/requestLimitsUpgrade.js +35 -0
- package/lib/operations/requestLimitsUpgrade.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +10 -15
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -1
- package/lib/operations/requestSolanaFaucet.js +0 -2
- package/lib/operations/requestSolanaFaucet.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +10 -11
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.js +2 -2
- package/lib/operations/revokeDelegationForEndUser.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js +44 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +33 -58
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -1
- package/lib/operations/revokeSpendPermission.js +2 -3
- package/lib/operations/revokeSpendPermission.js.map +1 -1
- package/lib/operations/runSQLQuery.d.ts +30 -53
- package/lib/operations/runSQLQuery.d.ts.map +1 -1
- package/lib/operations/runSQLQuery.js +6 -10
- package/lib/operations/runSQLQuery.js.map +1 -1
- package/lib/operations/searchX402Resources.d.ts +83 -0
- package/lib/operations/searchX402Resources.d.ts.map +1 -0
- package/lib/operations/searchX402Resources.js +106 -0
- package/lib/operations/searchX402Resources.js.map +1 -0
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +20 -33
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +1 -2
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendEvmTransaction.d.ts +12 -18
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -1
- package/lib/operations/sendEvmTransaction.js +4 -3
- package/lib/operations/sendEvmTransaction.js.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +15 -24
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +18 -31
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -2
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaTransaction.d.ts +12 -18
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransaction.js +1 -3
- package/lib/operations/sendSolanaTransaction.js.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +16 -26
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendUserOperation.d.ts +32 -56
- package/lib/operations/sendUserOperation.d.ts.map +1 -1
- package/lib/operations/sendUserOperation.js +2 -3
- package/lib/operations/sendUserOperation.js.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +44 -78
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +3 -3
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -1
- package/lib/operations/settleX402Payment.d.ts +239 -30
- package/lib/operations/settleX402Payment.d.ts.map +1 -1
- package/lib/operations/settleX402Payment.js +280 -5
- package/lib/operations/settleX402Payment.js.map +1 -1
- package/lib/operations/signEvmHash.d.ts +11 -16
- package/lib/operations/signEvmHash.d.ts.map +1 -1
- package/lib/operations/signEvmHash.js +1 -3
- package/lib/operations/signEvmHash.js.map +1 -1
- package/lib/operations/signEvmMessage.d.ts +11 -16
- package/lib/operations/signEvmMessage.d.ts.map +1 -1
- package/lib/operations/signEvmMessage.js +1 -3
- package/lib/operations/signEvmMessage.js.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTransaction.d.ts +11 -16
- package/lib/operations/signEvmTransaction.d.ts.map +1 -1
- package/lib/operations/signEvmTransaction.js +1 -3
- package/lib/operations/signEvmTransaction.js.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTypedData.d.ts +19 -33
- package/lib/operations/signEvmTypedData.d.ts.map +1 -1
- package/lib/operations/signEvmTypedData.js +0 -2
- package/lib/operations/signEvmTypedData.js.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +25 -44
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaMessage.d.ts +11 -16
- package/lib/operations/signSolanaMessage.d.ts.map +1 -1
- package/lib/operations/signSolanaMessage.js +1 -3
- package/lib/operations/signSolanaMessage.js.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaTransaction.d.ts +11 -16
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/signSolanaTransaction.js +1 -3
- package/lib/operations/signSolanaTransaction.js.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/submitDepositTravelRule.d.ts +52 -0
- package/lib/operations/submitDepositTravelRule.d.ts.map +1 -0
- package/lib/operations/submitDepositTravelRule.js +58 -0
- package/lib/operations/submitDepositTravelRule.js.map +1 -0
- package/lib/operations/submitOnrampVerification.d.ts +26 -0
- package/lib/operations/submitOnrampVerification.d.ts.map +1 -0
- package/lib/operations/submitOnrampVerification.js +35 -0
- package/lib/operations/submitOnrampVerification.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +15 -27
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.js +4 -4
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -1
- package/lib/operations/updateEvmAccount.d.ts +16 -26
- package/lib/operations/updateEvmAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmAccount.js +1 -3
- package/lib/operations/updateEvmAccount.js.map +1 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +16 -26
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmSmartAccount.js +1 -3
- package/lib/operations/updateEvmSmartAccount.js.map +1 -1
- package/lib/operations/updatePolicy.d.ts +17 -28
- package/lib/operations/updatePolicy.d.ts.map +1 -1
- package/lib/operations/updatePolicy.js +1 -3
- package/lib/operations/updatePolicy.js.map +1 -1
- package/lib/operations/updateSolanaAccount.d.ts +16 -26
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -1
- package/lib/operations/updateSolanaAccount.js +1 -3
- package/lib/operations/updateSolanaAccount.js.map +1 -1
- package/lib/operations/updateWebhookSubscription.d.ts +33 -69
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/updateWebhookSubscription.js +54 -7
- package/lib/operations/updateWebhookSubscription.js.map +1 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +64 -67
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -1
- package/lib/operations/validateEndUserAccessToken.js +36 -3
- package/lib/operations/validateEndUserAccessToken.js.map +1 -1
- package/lib/operations/validateX402Resource.d.ts +64 -0
- package/lib/operations/validateX402Resource.d.ts.map +1 -0
- package/lib/operations/validateX402Resource.js +92 -0
- package/lib/operations/validateX402Resource.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +236 -24
- package/lib/operations/verifyX402Payment.d.ts.map +1 -1
- package/lib/operations/verifyX402Payment.js +266 -5
- package/lib/operations/verifyX402Payment.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addEndUserEvmAccount.ts +11 -5
- package/src/operations/addEndUserEvmSmartAccount.ts +14 -7
- package/src/operations/addEndUserSolanaAccount.ts +12 -8
- package/src/operations/createDelegationForEndUserAccount.ts +60 -0
- package/src/operations/createDepositDestination.ts +85 -0
- package/src/operations/createEndUser.ts +150 -7
- package/src/operations/createEvmAccount.ts +16 -5
- package/src/operations/createEvmEip7702Delegation.ts +17 -6
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +20 -6
- package/src/operations/createEvmSmartAccount.ts +17 -6
- package/src/operations/createEvmSwapQuote.ts +128 -5
- package/src/operations/createFoundationAccount.ts +51 -0
- package/src/operations/createOnrampOrder.ts +59 -4
- package/src/operations/createOnrampSession.ts +41 -4
- package/src/operations/createPolicy.ts +18 -5
- package/src/operations/createSolanaAccount.ts +16 -5
- package/src/operations/createSpendPermission.ts +61 -6
- package/src/operations/createTransfer.ts +461 -0
- package/src/operations/createWebhookSubscription.ts +144 -49
- package/src/operations/deletePolicy.ts +8 -5
- package/src/operations/deleteWebhookSubscription.ts +6 -6
- package/src/operations/executeFundTransfer.ts +282 -0
- package/src/operations/exportEvmAccount.ts +12 -5
- package/src/operations/exportEvmAccountByName.ts +10 -7
- package/src/operations/exportSolanaAccount.ts +10 -5
- package/src/operations/exportSolanaAccountByName.ts +10 -7
- package/src/operations/getBalanceByAsset.ts +58 -0
- package/src/operations/getDelegationForEndUser.ts +9 -6
- package/src/operations/getDelegationForEndUserAccount.ts +47 -0
- package/src/operations/getDepositDestinationById.ts +89 -0
- package/src/operations/getEndUser.ts +86 -6
- package/src/operations/getEvmAccount.ts +15 -5
- package/src/operations/getEvmAccountByName.ts +15 -5
- package/src/operations/getEvmEip7702DelegationOperationById.ts +20 -7
- package/src/operations/getEvmSmartAccount.ts +16 -5
- package/src/operations/getEvmSmartAccountByName.ts +14 -7
- package/src/operations/getEvmSwapPrice.ts +86 -5
- package/src/operations/getFoundationAccountById.ts +48 -0
- package/src/operations/getOnrampOrderById.ts +36 -4
- package/src/operations/getOnrampUserLimits.ts +17 -4
- package/src/operations/getPaymentMethod.ts +106 -0
- package/src/operations/getPolicyById.ts +14 -5
- package/src/operations/getSQLGrammar.ts +7 -4
- package/src/operations/getSQLSchema.ts +25 -6
- package/src/operations/getSolanaAccount.ts +15 -5
- package/src/operations/getSolanaAccountByName.ts +13 -7
- package/src/operations/getTransferById.ts +274 -0
- package/src/operations/getUserOperation.ts +44 -5
- package/src/operations/getWebhookSubscription.ts +73 -11
- package/src/operations/importEndUser.ts +147 -7
- package/src/operations/importEvmAccount.ts +17 -5
- package/src/operations/importSolanaAccount.ts +16 -5
- package/src/operations/index.ts +40 -0
- package/src/operations/initiateOnrampVerification.ts +46 -0
- package/src/operations/listBalances.ts +66 -0
- package/src/operations/listDataTokenBalances.ts +20 -5
- package/src/operations/listDepositDestinations.ts +109 -0
- package/src/operations/listEndUsers.ts +102 -5
- package/src/operations/listEvmAccounts.ts +18 -4
- package/src/operations/listEvmSmartAccounts.ts +19 -4
- package/src/operations/listEvmTokenBalances.ts +20 -4
- package/src/operations/listFoundationAccounts.ts +62 -0
- package/src/operations/listPaymentMethods.ts +130 -0
- package/src/operations/listPolicies.ts +20 -4
- package/src/operations/listSolanaAccounts.ts +19 -5
- package/src/operations/listSolanaTokenBalances.ts +15 -6
- package/src/operations/listSpendPermissions.ts +36 -4
- package/src/operations/listTokensForAccount.ts +11 -4
- package/src/operations/listTransfers.ts +355 -0
- package/src/operations/listWebhookSubscriptionEvents.ts +25 -6
- package/src/operations/listWebhookSubscriptions.ts +78 -10
- package/src/operations/listX402DiscoveryMerchant.ts +174 -0
- package/src/operations/listX402DiscoveryResources.ts +171 -0
- package/src/operations/lookupEndUser.ts +188 -0
- package/src/operations/postX402DiscoveryMcp.ts +56 -0
- package/src/operations/prepareAndSendUserOperation.ts +65 -7
- package/src/operations/prepareUserOperation.ts +66 -5
- package/src/operations/requestEvmFaucet.ts +12 -4
- package/src/operations/requestLimitsUpgrade.ts +56 -0
- package/src/operations/requestSolanaFaucet.ts +11 -4
- package/src/operations/revokeDelegationForEndUser.ts +10 -6
- package/src/operations/revokeDelegationForEndUserAccount.ts +57 -0
- package/src/operations/revokeSpendPermission.ts +54 -6
- package/src/operations/runSQLQuery.ts +49 -12
- package/src/operations/searchX402Resources.ts +194 -0
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +33 -6
- package/src/operations/sendEvmTransaction.ts +25 -5
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +25 -7
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +17 -6
- package/src/operations/sendSolanaTransaction.ts +11 -6
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +15 -7
- package/src/operations/sendUserOperation.ts +45 -5
- package/src/operations/sendUserOperationWithEndUserAccount.ts +70 -7
- package/src/operations/settleX402Payment.ts +742 -7
- package/src/operations/signEvmHash.ts +12 -5
- package/src/operations/signEvmMessage.ts +10 -5
- package/src/operations/signEvmMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTransaction.ts +10 -5
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTypedData.ts +18 -4
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +24 -7
- package/src/operations/signSolanaMessage.ts +10 -5
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signSolanaTransaction.ts +10 -6
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/submitDepositTravelRule.ts +103 -0
- package/src/operations/submitOnrampVerification.ts +51 -0
- package/src/operations/supportedX402PaymentKinds.ts +29 -8
- package/src/operations/updateEvmAccount.ts +17 -5
- package/src/operations/updateEvmSmartAccount.ts +17 -6
- package/src/operations/updatePolicy.ts +16 -5
- package/src/operations/updateSolanaAccount.ts +17 -5
- package/src/operations/updateWebhookSubscription.ts +129 -11
- package/src/operations/validateEndUserAccessToken.ts +84 -7
- package/src/operations/validateX402Resource.ts +172 -0
- package/src/operations/verifyX402Payment.ts +706 -7
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
export const CreateTransferInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5
|
+
source: Schema.Union([
|
|
6
|
+
Schema.Struct({
|
|
7
|
+
accountId: Schema.String,
|
|
8
|
+
asset: Schema.String,
|
|
9
|
+
}),
|
|
10
|
+
Schema.Struct({
|
|
11
|
+
paymentMethodId: Schema.String,
|
|
12
|
+
asset: Schema.String,
|
|
13
|
+
}),
|
|
14
|
+
]),
|
|
15
|
+
target: Schema.Union([
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
accountId: Schema.String,
|
|
18
|
+
asset: Schema.String,
|
|
19
|
+
}),
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
paymentMethodId: Schema.String,
|
|
22
|
+
asset: Schema.String,
|
|
23
|
+
}),
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
address: Schema.String,
|
|
26
|
+
network: Schema.Literals([
|
|
27
|
+
"base",
|
|
28
|
+
"ethereum",
|
|
29
|
+
"solana",
|
|
30
|
+
"aptos",
|
|
31
|
+
"arbitrum",
|
|
32
|
+
"arbitrum-sepolia",
|
|
33
|
+
"optimism",
|
|
34
|
+
"polygon",
|
|
35
|
+
"world",
|
|
36
|
+
"world-sepolia",
|
|
37
|
+
]),
|
|
38
|
+
destinationTag: Schema.optional(Schema.String),
|
|
39
|
+
asset: Schema.String,
|
|
40
|
+
}),
|
|
41
|
+
Schema.Struct({
|
|
42
|
+
email: Schema.String,
|
|
43
|
+
asset: Schema.String,
|
|
44
|
+
}),
|
|
45
|
+
]),
|
|
46
|
+
amount: Schema.String,
|
|
47
|
+
asset: Schema.String,
|
|
48
|
+
amountType: Schema.optional(Schema.Literals(["target", "source"])),
|
|
49
|
+
validateOnly: Schema.optional(Schema.Boolean),
|
|
50
|
+
execute: Schema.Boolean,
|
|
51
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
52
|
+
travelRule: Schema.optional(Schema.Struct({
|
|
53
|
+
isSelf: Schema.optional(Schema.Boolean),
|
|
54
|
+
isIntermediary: Schema.optional(Schema.Boolean),
|
|
55
|
+
originator: Schema.optional(Schema.Struct({
|
|
56
|
+
financialInstitution: Schema.optional(Schema.String),
|
|
57
|
+
name: Schema.optional(Schema.String),
|
|
58
|
+
address: Schema.optional(Schema.Struct({
|
|
59
|
+
line1: Schema.optional(Schema.String),
|
|
60
|
+
line2: Schema.optional(Schema.String),
|
|
61
|
+
city: Schema.optional(Schema.String),
|
|
62
|
+
state: Schema.optional(Schema.String),
|
|
63
|
+
postCode: Schema.optional(Schema.String),
|
|
64
|
+
countryCode: Schema.optional(Schema.String),
|
|
65
|
+
})),
|
|
66
|
+
virtualAssetServiceProvider: Schema.optional(Schema.Struct({
|
|
67
|
+
name: Schema.optional(Schema.String),
|
|
68
|
+
address: Schema.optional(Schema.Struct({
|
|
69
|
+
line1: Schema.optional(Schema.String),
|
|
70
|
+
line2: Schema.optional(Schema.String),
|
|
71
|
+
city: Schema.optional(Schema.String),
|
|
72
|
+
state: Schema.optional(Schema.String),
|
|
73
|
+
postCode: Schema.optional(Schema.String),
|
|
74
|
+
countryCode: Schema.optional(Schema.String),
|
|
75
|
+
})),
|
|
76
|
+
identifier: Schema.optional(Schema.String),
|
|
77
|
+
})),
|
|
78
|
+
personalId: Schema.optional(Schema.String),
|
|
79
|
+
dateOfBirth: Schema.optional(Schema.Struct({
|
|
80
|
+
day: Schema.optional(Schema.String),
|
|
81
|
+
month: Schema.optional(Schema.String),
|
|
82
|
+
year: Schema.optional(Schema.String),
|
|
83
|
+
})),
|
|
84
|
+
})),
|
|
85
|
+
beneficiary: Schema.optional(Schema.Struct({
|
|
86
|
+
financialInstitution: Schema.optional(Schema.String),
|
|
87
|
+
name: Schema.optional(Schema.String),
|
|
88
|
+
address: Schema.optional(Schema.Struct({
|
|
89
|
+
line1: Schema.optional(Schema.String),
|
|
90
|
+
line2: Schema.optional(Schema.String),
|
|
91
|
+
city: Schema.optional(Schema.String),
|
|
92
|
+
state: Schema.optional(Schema.String),
|
|
93
|
+
postCode: Schema.optional(Schema.String),
|
|
94
|
+
countryCode: Schema.optional(Schema.String),
|
|
95
|
+
})),
|
|
96
|
+
walletType: Schema.optional(Schema.Literals(["custodial", "self_custody"])),
|
|
97
|
+
})),
|
|
98
|
+
})),
|
|
99
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/transfers" }));
|
|
100
|
+
export const CreateTransferOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
101
|
+
transferId: Schema.optional(Schema.String),
|
|
102
|
+
status: Schema.optional(Schema.Literals(["quoted", "processing", "completed", "failed"])),
|
|
103
|
+
source: Schema.Union([
|
|
104
|
+
Schema.Struct({
|
|
105
|
+
accountId: Schema.String,
|
|
106
|
+
asset: Schema.String,
|
|
107
|
+
}),
|
|
108
|
+
Schema.Struct({
|
|
109
|
+
paymentMethodId: Schema.String,
|
|
110
|
+
asset: Schema.String,
|
|
111
|
+
}),
|
|
112
|
+
Schema.Struct({
|
|
113
|
+
address: Schema.String,
|
|
114
|
+
network: Schema.Literals([
|
|
115
|
+
"base",
|
|
116
|
+
"ethereum",
|
|
117
|
+
"solana",
|
|
118
|
+
"aptos",
|
|
119
|
+
"arbitrum",
|
|
120
|
+
"arbitrum-sepolia",
|
|
121
|
+
"optimism",
|
|
122
|
+
"polygon",
|
|
123
|
+
"world",
|
|
124
|
+
"world-sepolia",
|
|
125
|
+
]),
|
|
126
|
+
destinationTag: Schema.optional(Schema.String),
|
|
127
|
+
asset: Schema.String,
|
|
128
|
+
}),
|
|
129
|
+
Schema.Struct({
|
|
130
|
+
bankName: Schema.String,
|
|
131
|
+
accountLast4: Schema.String,
|
|
132
|
+
currency: Schema.String,
|
|
133
|
+
}),
|
|
134
|
+
]),
|
|
135
|
+
target: Schema.Union([
|
|
136
|
+
Schema.Struct({
|
|
137
|
+
accountId: Schema.String,
|
|
138
|
+
asset: Schema.String,
|
|
139
|
+
}),
|
|
140
|
+
Schema.Struct({
|
|
141
|
+
paymentMethodId: Schema.String,
|
|
142
|
+
asset: Schema.String,
|
|
143
|
+
}),
|
|
144
|
+
Schema.Struct({
|
|
145
|
+
address: Schema.String,
|
|
146
|
+
network: Schema.Literals([
|
|
147
|
+
"base",
|
|
148
|
+
"ethereum",
|
|
149
|
+
"solana",
|
|
150
|
+
"aptos",
|
|
151
|
+
"arbitrum",
|
|
152
|
+
"arbitrum-sepolia",
|
|
153
|
+
"optimism",
|
|
154
|
+
"polygon",
|
|
155
|
+
"world",
|
|
156
|
+
"world-sepolia",
|
|
157
|
+
]),
|
|
158
|
+
destinationTag: Schema.optional(Schema.String),
|
|
159
|
+
asset: Schema.String,
|
|
160
|
+
}),
|
|
161
|
+
Schema.Struct({
|
|
162
|
+
email: Schema.String,
|
|
163
|
+
asset: Schema.String,
|
|
164
|
+
}),
|
|
165
|
+
]),
|
|
166
|
+
sourceAmount: Schema.optional(Schema.String),
|
|
167
|
+
sourceAsset: Schema.optional(Schema.String),
|
|
168
|
+
targetAmount: Schema.optional(Schema.String),
|
|
169
|
+
targetAsset: Schema.optional(Schema.String),
|
|
170
|
+
exchangeRate: Schema.optional(Schema.Struct({
|
|
171
|
+
sourceAsset: Schema.String,
|
|
172
|
+
targetAsset: Schema.String,
|
|
173
|
+
rate: Schema.String,
|
|
174
|
+
})),
|
|
175
|
+
fees: Schema.optional(Schema.Array(Schema.Struct({
|
|
176
|
+
type: Schema.Literals(["bank", "conversion", "network", "other"]),
|
|
177
|
+
amount: Schema.String,
|
|
178
|
+
asset: Schema.String,
|
|
179
|
+
}))),
|
|
180
|
+
estimate: Schema.optional(Schema.Struct({
|
|
181
|
+
exchangeRate: Schema.optional(Schema.Struct({
|
|
182
|
+
sourceAsset: Schema.String,
|
|
183
|
+
targetAsset: Schema.String,
|
|
184
|
+
rate: Schema.String,
|
|
185
|
+
})),
|
|
186
|
+
targetAmount: Schema.optional(Schema.String),
|
|
187
|
+
targetAsset: Schema.optional(Schema.String),
|
|
188
|
+
fees: Schema.optional(Schema.Array(Schema.Struct({
|
|
189
|
+
type: Schema.Literals(["bank", "conversion", "network", "other"]),
|
|
190
|
+
amount: Schema.String,
|
|
191
|
+
asset: Schema.String,
|
|
192
|
+
}))),
|
|
193
|
+
estimatedAt: Schema.String,
|
|
194
|
+
})),
|
|
195
|
+
completedAt: Schema.optional(Schema.String),
|
|
196
|
+
failureReason: Schema.optional(Schema.String),
|
|
197
|
+
expiresAt: Schema.optional(Schema.String),
|
|
198
|
+
executedAt: Schema.optional(Schema.String),
|
|
199
|
+
createdAt: Schema.optional(Schema.String),
|
|
200
|
+
updatedAt: Schema.optional(Schema.String),
|
|
201
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
202
|
+
details: Schema.optional(Schema.Struct({
|
|
203
|
+
depositDestination: Schema.optional(Schema.Struct({
|
|
204
|
+
id: Schema.String,
|
|
205
|
+
})),
|
|
206
|
+
onchainTransactions: Schema.optional(Schema.Array(Schema.Struct({
|
|
207
|
+
transactionHash: Schema.String,
|
|
208
|
+
network: Schema.Literals([
|
|
209
|
+
"base",
|
|
210
|
+
"ethereum",
|
|
211
|
+
"solana",
|
|
212
|
+
"aptos",
|
|
213
|
+
"arbitrum",
|
|
214
|
+
"arbitrum-sepolia",
|
|
215
|
+
"optimism",
|
|
216
|
+
"polygon",
|
|
217
|
+
"world",
|
|
218
|
+
"world-sepolia",
|
|
219
|
+
]),
|
|
220
|
+
}))),
|
|
221
|
+
travelRule: Schema.optional(Schema.Struct({
|
|
222
|
+
status: Schema.optional(Schema.Literals(["incomplete", "completed"])),
|
|
223
|
+
statusMessage: Schema.optional(Schema.String),
|
|
224
|
+
})),
|
|
225
|
+
})),
|
|
226
|
+
});
|
|
227
|
+
// The operation
|
|
228
|
+
/**
|
|
229
|
+
* Create transfer
|
|
230
|
+
*
|
|
231
|
+
* Create a new transfer to move funds from a source to a target.
|
|
232
|
+
* All transfers first transition to `quoted`. If `execute: false`, the transfer stays quoted until you call `/v2/transfers/{transferId}/execute`.
|
|
233
|
+
* If `execute: true`, quoted status emits momentarily before the transfer moves to `processing`, where execution proceeds. Subscribe to the transfers webhook to follow progress in real time instead of polling.
|
|
234
|
+
*
|
|
235
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
236
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
237
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
238
|
+
|
|
239
|
+
*/
|
|
240
|
+
export const createTransfer = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
241
|
+
inputSchema: CreateTransferInput,
|
|
242
|
+
outputSchema: CreateTransferOutput,
|
|
243
|
+
}));
|
|
244
|
+
//# sourceMappingURL=createTransfer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTransfer.js","sourceRoot":"","sources":["../../src/operations/createTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AA6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+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
export interface CreateWebhookSubscriptionInput {
|
|
4
|
+
description?: string;
|
|
5
|
+
eventTypes: ("onchain.activity.detected" | "wallet.activity.detected" | "wallet.activity.multi" | "wallet.transaction.created" | "wallet.transaction.signed" | "wallet.transaction.broadcast" | "wallet.transaction.replaced" | "wallet.transaction.pending" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.delegation.created" | "wallet.delegation.revoked" | "wallet.typed_data.signed" | "wallet.message.signed" | "wallet.hash.signed" | "onramp.transaction.created" | "onramp.transaction.updated" | "onramp.transaction.success" | "onramp.transaction.failed" | "offramp.transaction.created" | "offramp.transaction.updated" | "offramp.transaction.success" | "offramp.transaction.failed")[];
|
|
6
|
+
isEnabled: boolean;
|
|
7
|
+
target: {
|
|
8
|
+
url: string;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
metadata?: Record<string, string>;
|
|
12
|
+
labels?: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
export declare const CreateWebhookSubscriptionInput: Schema.Codec<CreateWebhookSubscriptionInput>;
|
|
15
|
+
export interface CreateWebhookSubscriptionOutput {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
eventTypes: ("onchain.activity.detected" | "wallet.activity.detected" | "wallet.activity.multi" | "wallet.transaction.created" | "wallet.transaction.signed" | "wallet.transaction.broadcast" | "wallet.transaction.replaced" | "wallet.transaction.pending" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.delegation.created" | "wallet.delegation.revoked" | "wallet.typed_data.signed" | "wallet.message.signed" | "wallet.hash.signed" | "onramp.transaction.created" | "onramp.transaction.updated" | "onramp.transaction.success" | "onramp.transaction.failed" | "offramp.transaction.created" | "offramp.transaction.updated" | "offramp.transaction.success" | "offramp.transaction.failed")[];
|
|
20
|
+
isEnabled: boolean;
|
|
21
|
+
metadata?: {
|
|
22
|
+
secret?: Redacted.Redacted<string>;
|
|
23
|
+
};
|
|
24
|
+
secret: Redacted.Redacted<string>;
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
target: {
|
|
27
|
+
url: string;
|
|
28
|
+
headers?: Record<string, string>;
|
|
29
|
+
};
|
|
30
|
+
labels?: Record<string, string>;
|
|
31
|
+
}
|
|
32
|
+
export declare const CreateWebhookSubscriptionOutput: Schema.Codec<CreateWebhookSubscriptionOutput>;
|
|
32
33
|
/**
|
|
33
34
|
* Create webhook subscription
|
|
34
35
|
*
|
|
35
|
-
* Subscribe to real-time events across CDP products
|
|
36
|
-
* ###
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* -
|
|
40
|
-
*
|
|
41
|
-
* - `
|
|
42
|
-
* - `
|
|
43
|
-
* - `
|
|
44
|
-
* - `
|
|
45
|
-
* -
|
|
46
|
-
*
|
|
47
|
-
* - `payments.transfers.quoted`
|
|
48
|
-
* - `payments.transfers.processing`
|
|
49
|
-
* - `payments.transfers.completed`
|
|
50
|
-
* - `payments.transfers.failed`
|
|
51
|
-
* - `payments.transfers.travel_rule_incomplete`
|
|
52
|
-
* - `payments.transfers.travel_rule_completed`
|
|
53
|
-
* - **No labels required** - enable the transfers webhook to monitor status transitions
|
|
54
|
-
* **Wallet Events** - Wallet activity notifications:
|
|
55
|
-
* - `wallet.activity.detected`
|
|
36
|
+
* Subscribe to real-time events across CDP products.
|
|
37
|
+
* ### Filtering
|
|
38
|
+
* Onchain events can utilize multi-label filtering to only receive events that match all the specified labels.
|
|
39
|
+
* Allows labels are:
|
|
40
|
+
* - `network` (required) — Blockchain network
|
|
41
|
+
* - `contract_address` — Smart contract address
|
|
42
|
+
* - `event_name` — Event name (e.g., "Transfer", "Burn")
|
|
43
|
+
* - `event_signature` — Event signature (e.g., "Transfer(address,address,uint256)")
|
|
44
|
+
* - `transaction_from` — Transaction sender address
|
|
45
|
+
* - `transaction_to` — Transaction recipient address
|
|
46
|
+
* - `params.*` — Any event parameter from the log event (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
47
|
+
* For webhook types that aren't `onchain.*`, labels are ignored.
|
|
56
48
|
* ### Webhook Signature Verification
|
|
57
|
-
* All webhooks include
|
|
58
|
-
*
|
|
59
|
-
* **Note:** Webhooks are in beta and this interface is subject to change.
|
|
49
|
+
* All webhooks include an HMAC-SHA256 signed header for security. The signature is signed with the secret that is returned in the `secret` field when creating a subscription.
|
|
50
|
+
* Do not lose the secret, as you will not be able to recreate it. If you lose the secret, you will need to create a new subscription.
|
|
60
51
|
* See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details.
|
|
61
|
-
* ### Onchain Label Filtering
|
|
62
|
-
* For `onchain.activity.detected` events, use `labels` for precise filtering with AND logic (max 20 labels per webhook).
|
|
63
|
-
* **Allowed labels** (all in snake_case format):
|
|
64
|
-
* - `network` (required) - Blockchain network
|
|
65
|
-
* - `contract_address` - Smart contract address
|
|
66
|
-
* - `event_name` - Event name (e.g., "Transfer", "Burn")
|
|
67
|
-
* - `event_signature` - Event signature hash
|
|
68
|
-
* - `transaction_from` - Transaction sender address
|
|
69
|
-
* - `transaction_to` - Transaction recipient address
|
|
70
|
-
* - `params.*` - Any event parameter (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
71
|
-
* **Examples**:
|
|
72
|
-
* - **Liquidity Pool Monitor**: `{"network": "base-mainnet", "contract_address": "0xcd1f9777571493aeacb7eae45cd30a226d3e612d", "event_name": "Burn"}`
|
|
73
|
-
* - **Price Oracle Tracker**: `{"network": "base-mainnet", "contract_address": "0xbac4a9428ea707c51f171ed9890c3c2fa810305d", "event_name": "PriceUpdated"}`
|
|
74
|
-
* - **DeFi Protocol Activity**: `{"network": "base-mainnet", "contract_address": "0x45c6e6a47a711b14d8357d5243f46704904578e3", "event_name": "Deposit"}`
|
|
75
52
|
*/
|
|
76
|
-
export declare const createWebhookSubscription: import("@distilled.cloud/core/client").OperationMethod<
|
|
77
|
-
readonly description?: string | undefined;
|
|
78
|
-
readonly eventTypes: readonly string[];
|
|
79
|
-
readonly isEnabled: boolean;
|
|
80
|
-
readonly target: {
|
|
81
|
-
readonly url: string;
|
|
82
|
-
readonly headers?: {
|
|
83
|
-
readonly [x: string]: string;
|
|
84
|
-
} | undefined;
|
|
85
|
-
};
|
|
86
|
-
readonly metadata?: {
|
|
87
|
-
readonly [x: string]: string;
|
|
88
|
-
} | undefined;
|
|
89
|
-
readonly labels?: {
|
|
90
|
-
readonly [x: string]: string;
|
|
91
|
-
} | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
readonly createdAt: string;
|
|
94
|
-
readonly updatedAt?: string | undefined;
|
|
95
|
-
readonly description?: string | undefined;
|
|
96
|
-
readonly eventTypes: readonly string[];
|
|
97
|
-
readonly isEnabled: boolean;
|
|
98
|
-
readonly metadata?: {
|
|
99
|
-
readonly secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
readonly secret: string | import("effect/Redacted").Redacted<string>;
|
|
102
|
-
readonly subscriptionId: string;
|
|
103
|
-
readonly target: {
|
|
104
|
-
readonly url: string;
|
|
105
|
-
readonly headers?: {
|
|
106
|
-
readonly [x: string]: string;
|
|
107
|
-
} | undefined;
|
|
108
|
-
};
|
|
109
|
-
readonly labels?: {
|
|
110
|
-
readonly [x: string]: string;
|
|
111
|
-
} | undefined;
|
|
112
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
53
|
+
export declare const createWebhookSubscription: import("@distilled.cloud/core/client").OperationMethod<CreateWebhookSubscriptionInput, CreateWebhookSubscriptionOutput, never, import("../credentials.ts").Credentials, never>;
|
|
113
54
|
//# sourceMappingURL=createWebhookSubscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWebhookSubscription.d.ts","sourceRoot":"","sources":["../../src/operations/createWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MA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,GACvB,4BAA4B,GAC5B,2BAA2B,GAC3B,8BAA8B,GAC9B,6BAA6B,GAC7B,4BAA4B,GAC5B,8BAA8B,GAC9B,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,0BAA0B,GAC1B,uBAAuB,GACvB,oBAAoB,GACpB,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,2BAA2B,GAC3B,6BAA6B,GAC7B,6BAA6B,GAC7B,6BAA6B,GAC7B,4BAA4B,CAC/B,EAAE,CAAC;IACJ,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IAClD,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AACD,eAAO,MAAM,+BAA+B,EA6CzB,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAGjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB,gLAKrC,CAAC"}
|
|
@@ -1,12 +1,36 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { SensitiveOutputString } from "../sensitive.js";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
6
|
export const CreateWebhookSubscriptionInput =
|
|
7
7
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
8
|
description: Schema.optional(Schema.String),
|
|
9
|
-
eventTypes: Schema.Array(Schema.
|
|
9
|
+
eventTypes: Schema.Array(Schema.Literals([
|
|
10
|
+
"onchain.activity.detected",
|
|
11
|
+
"wallet.activity.detected",
|
|
12
|
+
"wallet.activity.multi",
|
|
13
|
+
"wallet.transaction.created",
|
|
14
|
+
"wallet.transaction.signed",
|
|
15
|
+
"wallet.transaction.broadcast",
|
|
16
|
+
"wallet.transaction.replaced",
|
|
17
|
+
"wallet.transaction.pending",
|
|
18
|
+
"wallet.transaction.confirmed",
|
|
19
|
+
"wallet.transaction.failed",
|
|
20
|
+
"wallet.delegation.created",
|
|
21
|
+
"wallet.delegation.revoked",
|
|
22
|
+
"wallet.typed_data.signed",
|
|
23
|
+
"wallet.message.signed",
|
|
24
|
+
"wallet.hash.signed",
|
|
25
|
+
"onramp.transaction.created",
|
|
26
|
+
"onramp.transaction.updated",
|
|
27
|
+
"onramp.transaction.success",
|
|
28
|
+
"onramp.transaction.failed",
|
|
29
|
+
"offramp.transaction.created",
|
|
30
|
+
"offramp.transaction.updated",
|
|
31
|
+
"offramp.transaction.success",
|
|
32
|
+
"offramp.transaction.failed",
|
|
33
|
+
])),
|
|
10
34
|
isEnabled: Schema.Boolean,
|
|
11
35
|
target: Schema.Struct({
|
|
12
36
|
url: Schema.String,
|
|
@@ -15,18 +39,41 @@ export const CreateWebhookSubscriptionInput =
|
|
|
15
39
|
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
16
40
|
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
17
41
|
}).pipe(T.Http({ method: "POST", path: "/v2/data/webhooks/subscriptions" }));
|
|
18
|
-
// Output Schema
|
|
19
42
|
export const CreateWebhookSubscriptionOutput =
|
|
20
43
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
44
|
createdAt: Schema.String,
|
|
22
45
|
updatedAt: Schema.optional(Schema.String),
|
|
23
46
|
description: Schema.optional(Schema.String),
|
|
24
|
-
eventTypes: Schema.Array(Schema.
|
|
47
|
+
eventTypes: Schema.Array(Schema.Literals([
|
|
48
|
+
"onchain.activity.detected",
|
|
49
|
+
"wallet.activity.detected",
|
|
50
|
+
"wallet.activity.multi",
|
|
51
|
+
"wallet.transaction.created",
|
|
52
|
+
"wallet.transaction.signed",
|
|
53
|
+
"wallet.transaction.broadcast",
|
|
54
|
+
"wallet.transaction.replaced",
|
|
55
|
+
"wallet.transaction.pending",
|
|
56
|
+
"wallet.transaction.confirmed",
|
|
57
|
+
"wallet.transaction.failed",
|
|
58
|
+
"wallet.delegation.created",
|
|
59
|
+
"wallet.delegation.revoked",
|
|
60
|
+
"wallet.typed_data.signed",
|
|
61
|
+
"wallet.message.signed",
|
|
62
|
+
"wallet.hash.signed",
|
|
63
|
+
"onramp.transaction.created",
|
|
64
|
+
"onramp.transaction.updated",
|
|
65
|
+
"onramp.transaction.success",
|
|
66
|
+
"onramp.transaction.failed",
|
|
67
|
+
"offramp.transaction.created",
|
|
68
|
+
"offramp.transaction.updated",
|
|
69
|
+
"offramp.transaction.success",
|
|
70
|
+
"offramp.transaction.failed",
|
|
71
|
+
])),
|
|
25
72
|
isEnabled: Schema.Boolean,
|
|
26
73
|
metadata: Schema.optional(Schema.Struct({
|
|
27
|
-
secret: Schema.optional(
|
|
74
|
+
secret: Schema.optional(SensitiveOutputString),
|
|
28
75
|
})),
|
|
29
|
-
secret:
|
|
76
|
+
secret: SensitiveOutputString,
|
|
30
77
|
subscriptionId: Schema.String,
|
|
31
78
|
target: Schema.Struct({
|
|
32
79
|
url: Schema.String,
|
|
@@ -38,46 +85,22 @@ export const CreateWebhookSubscriptionOutput =
|
|
|
38
85
|
/**
|
|
39
86
|
* Create webhook subscription
|
|
40
87
|
*
|
|
41
|
-
* Subscribe to real-time events across CDP products
|
|
42
|
-
* ###
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* -
|
|
46
|
-
*
|
|
47
|
-
* - `
|
|
48
|
-
* - `
|
|
49
|
-
* - `
|
|
50
|
-
* - `
|
|
51
|
-
* -
|
|
52
|
-
*
|
|
53
|
-
* - `payments.transfers.quoted`
|
|
54
|
-
* - `payments.transfers.processing`
|
|
55
|
-
* - `payments.transfers.completed`
|
|
56
|
-
* - `payments.transfers.failed`
|
|
57
|
-
* - `payments.transfers.travel_rule_incomplete`
|
|
58
|
-
* - `payments.transfers.travel_rule_completed`
|
|
59
|
-
* - **No labels required** - enable the transfers webhook to monitor status transitions
|
|
60
|
-
* **Wallet Events** - Wallet activity notifications:
|
|
61
|
-
* - `wallet.activity.detected`
|
|
88
|
+
* Subscribe to real-time events across CDP products.
|
|
89
|
+
* ### Filtering
|
|
90
|
+
* Onchain events can utilize multi-label filtering to only receive events that match all the specified labels.
|
|
91
|
+
* Allows labels are:
|
|
92
|
+
* - `network` (required) — Blockchain network
|
|
93
|
+
* - `contract_address` — Smart contract address
|
|
94
|
+
* - `event_name` — Event name (e.g., "Transfer", "Burn")
|
|
95
|
+
* - `event_signature` — Event signature (e.g., "Transfer(address,address,uint256)")
|
|
96
|
+
* - `transaction_from` — Transaction sender address
|
|
97
|
+
* - `transaction_to` — Transaction recipient address
|
|
98
|
+
* - `params.*` — Any event parameter from the log event (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
99
|
+
* For webhook types that aren't `onchain.*`, labels are ignored.
|
|
62
100
|
* ### Webhook Signature Verification
|
|
63
|
-
* All webhooks include
|
|
64
|
-
*
|
|
65
|
-
* **Note:** Webhooks are in beta and this interface is subject to change.
|
|
101
|
+
* All webhooks include an HMAC-SHA256 signed header for security. The signature is signed with the secret that is returned in the `secret` field when creating a subscription.
|
|
102
|
+
* Do not lose the secret, as you will not be able to recreate it. If you lose the secret, you will need to create a new subscription.
|
|
66
103
|
* See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details.
|
|
67
|
-
* ### Onchain Label Filtering
|
|
68
|
-
* For `onchain.activity.detected` events, use `labels` for precise filtering with AND logic (max 20 labels per webhook).
|
|
69
|
-
* **Allowed labels** (all in snake_case format):
|
|
70
|
-
* - `network` (required) - Blockchain network
|
|
71
|
-
* - `contract_address` - Smart contract address
|
|
72
|
-
* - `event_name` - Event name (e.g., "Transfer", "Burn")
|
|
73
|
-
* - `event_signature` - Event signature hash
|
|
74
|
-
* - `transaction_from` - Transaction sender address
|
|
75
|
-
* - `transaction_to` - Transaction recipient address
|
|
76
|
-
* - `params.*` - Any event parameter (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
77
|
-
* **Examples**:
|
|
78
|
-
* - **Liquidity Pool Monitor**: `{"network": "base-mainnet", "contract_address": "0xcd1f9777571493aeacb7eae45cd30a226d3e612d", "event_name": "Burn"}`
|
|
79
|
-
* - **Price Oracle Tracker**: `{"network": "base-mainnet", "contract_address": "0xbac4a9428ea707c51f171ed9890c3c2fa810305d", "event_name": "PriceUpdated"}`
|
|
80
|
-
* - **DeFi Protocol Activity**: `{"network": "base-mainnet", "contract_address": "0x45c6e6a47a711b14d8357d5243f46704904578e3", "event_name": "Deposit"}`
|
|
81
104
|
*/
|
|
82
105
|
export const createWebhookSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
83
106
|
inputSchema: CreateWebhookSubscriptionInput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/createWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/createWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,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AC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACtE,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACrE,CAA6D,CAAC;AAEjE,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC3E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CACH,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export interface DeletePolicyInput {
|
|
3
|
+
policyId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DeletePolicyInput: Schema.Codec<DeletePolicyInput>;
|
|
6
|
+
export type DeletePolicyOutput = void;
|
|
7
|
+
export declare const DeletePolicyOutput: Schema.Codec<DeletePolicyOutput>;
|
|
8
8
|
/**
|
|
9
|
-
* Delete
|
|
9
|
+
* Delete policy
|
|
10
10
|
*
|
|
11
11
|
* Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it.
|
|
12
12
|
*
|
|
@@ -16,7 +16,5 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
16
16
|
|
|
17
17
|
* @param policyId - The ID of the policy to delete.
|
|
18
18
|
*/
|
|
19
|
-
export declare const deletePolicy: import("@distilled.cloud/core/client").OperationMethod<
|
|
20
|
-
readonly policyId: string;
|
|
21
|
-
}, void, never, import("../credentials.ts").Credentials, never>;
|
|
19
|
+
export declare const deletePolicy: import("@distilled.cloud/core/client").OperationMethod<DeletePolicyInput, void, never, import("../credentials.ts").Credentials, never>;
|
|
22
20
|
//# sourceMappingURL=deletePolicy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletePolicy.d.ts","sourceRoot":"","sources":["../../src/operations/deletePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,
|
|
1
|
+
{"version":3,"file":"deletePolicy.d.ts","sourceRoot":"","sources":["../../src/operations/deletePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,iBAAiB,EAId,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAGhD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACtC,eAAO,MAAM,kBAAkB,EACyB,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAGzF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,wIAGtB,CAAC"}
|