@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,40 +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 RequestSolanaFaucetInput {
|
|
7
|
-
address: string;
|
|
8
|
-
token: "sol" | "usdc" | "cbtusd";
|
|
9
|
-
}
|
|
10
|
-
export const RequestSolanaFaucetInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
address: Schema.String,
|
|
13
|
-
token: Schema.Literals(["sol", "usdc", "cbtusd"]),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({ method: "POST", path: "/v2/solana/faucet" }),
|
|
16
|
-
) as unknown as Schema.Codec<RequestSolanaFaucetInput>;
|
|
17
|
-
|
|
18
|
-
// Output Schema
|
|
19
|
-
export interface RequestSolanaFaucetOutput {
|
|
20
|
-
transactionSignature: string;
|
|
21
|
-
}
|
|
22
|
-
export const RequestSolanaFaucetOutput =
|
|
23
|
-
/*@__PURE__*/ Schema.Struct({
|
|
24
|
-
transactionSignature: Schema.String,
|
|
25
|
-
}) as unknown as Schema.Codec<RequestSolanaFaucetOutput>;
|
|
26
|
-
|
|
27
|
-
// The operation
|
|
28
|
-
/**
|
|
29
|
-
* Request funds on Solana devnet
|
|
30
|
-
*
|
|
31
|
-
* Request funds from the CDP Faucet on Solana devnet.
|
|
32
|
-
* Faucets are available for SOL, USDC, and CBTUSD.
|
|
33
|
-
* To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
34
|
-
* These limits are applied at both the CDP Project level and the blockchain address level.
|
|
35
|
-
* A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
36
|
-
*/
|
|
37
|
-
export const requestSolanaFaucet = /*@__PURE__*/ API.make(() => ({
|
|
38
|
-
inputSchema: RequestSolanaFaucetInput,
|
|
39
|
-
outputSchema: RequestSolanaFaucetOutput,
|
|
40
|
-
}));
|
|
@@ -1,52 +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 RevokeDelegationForEndUserInput {
|
|
7
|
-
userId: string;
|
|
8
|
-
projectID?: string;
|
|
9
|
-
walletSecretId?: string;
|
|
10
|
-
}
|
|
11
|
-
export const RevokeDelegationForEndUserInput =
|
|
12
|
-
/*@__PURE__*/ Schema.Struct({
|
|
13
|
-
userId: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
projectID: Schema.optional(Schema.String),
|
|
15
|
-
walletSecretId: Schema.optional(Schema.String),
|
|
16
|
-
}).pipe(
|
|
17
|
-
T.Http({
|
|
18
|
-
method: "DELETE",
|
|
19
|
-
path: "/v2/embedded-wallet-api/end-users/{userId}/delegation",
|
|
20
|
-
}),
|
|
21
|
-
) as unknown as Schema.Codec<RevokeDelegationForEndUserInput>;
|
|
22
|
-
|
|
23
|
-
// Output Schema
|
|
24
|
-
export type RevokeDelegationForEndUserOutput = void;
|
|
25
|
-
export const RevokeDelegationForEndUserOutput =
|
|
26
|
-
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<RevokeDelegationForEndUserOutput>;
|
|
27
|
-
|
|
28
|
-
// The operation
|
|
29
|
-
/**
|
|
30
|
-
* Revoke delegation for end user
|
|
31
|
-
*
|
|
32
|
-
* Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
33
|
-
*
|
|
34
|
-
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
35
|
-
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
36
|
-
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
37
|
-
|
|
38
|
-
* @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
39
|
-
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
40
|
-
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
41
|
-
|
|
42
|
-
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
43
|
-
When included, duplicate requests with the same key will return identical responses.
|
|
44
|
-
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
45
|
-
|
|
46
|
-
* @param userId - The ID of the end user.
|
|
47
|
-
* @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
48
|
-
*/
|
|
49
|
-
export const revokeDelegationForEndUser = /*@__PURE__*/ API.make(() => ({
|
|
50
|
-
inputSchema: RevokeDelegationForEndUserInput,
|
|
51
|
-
outputSchema: RevokeDelegationForEndUserOutput,
|
|
52
|
-
}));
|
|
@@ -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 RevokeDelegationForEndUserAccountInput {
|
|
7
|
-
userId: string;
|
|
8
|
-
address: string;
|
|
9
|
-
projectID?: string;
|
|
10
|
-
walletSecretId?: string;
|
|
11
|
-
}
|
|
12
|
-
export const RevokeDelegationForEndUserAccountInput =
|
|
13
|
-
/*@__PURE__*/ Schema.Struct({
|
|
14
|
-
userId: Schema.String.pipe(T.PathParam()),
|
|
15
|
-
address: Schema.String.pipe(T.PathParam()),
|
|
16
|
-
projectID: Schema.optional(Schema.String),
|
|
17
|
-
walletSecretId: Schema.optional(Schema.String),
|
|
18
|
-
}).pipe(
|
|
19
|
-
T.Http({
|
|
20
|
-
method: "DELETE",
|
|
21
|
-
path: "/v2/embedded-wallet-api/end-users/{userId}/address/{address}/delegation",
|
|
22
|
-
}),
|
|
23
|
-
) as unknown as Schema.Codec<RevokeDelegationForEndUserAccountInput>;
|
|
24
|
-
|
|
25
|
-
// Output Schema
|
|
26
|
-
export type RevokeDelegationForEndUserAccountOutput = void;
|
|
27
|
-
export const RevokeDelegationForEndUserAccountOutput =
|
|
28
|
-
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<RevokeDelegationForEndUserAccountOutput>;
|
|
29
|
-
|
|
30
|
-
// The operation
|
|
31
|
-
/**
|
|
32
|
-
* Revoke account-scoped delegation for end user
|
|
33
|
-
*
|
|
34
|
-
* Revokes the active account-scoped delegation for the specified end user account. Other account-scoped delegations for the same user are unaffected. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
35
|
-
* When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
|
|
36
|
-
*
|
|
37
|
-
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
38
|
-
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
39
|
-
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
40
|
-
|
|
41
|
-
* @param X-Developer-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
42
|
-
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
43
|
-
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
44
|
-
|
|
45
|
-
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
46
|
-
When included, duplicate requests with the same key will return identical responses.
|
|
47
|
-
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
48
|
-
|
|
49
|
-
* @param userId - The ID of the end user.
|
|
50
|
-
* @param address - The blockchain address of the end user account whose delegation should be revoked. For EVM addresses, matching is case-insensitive.
|
|
51
|
-
* @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
52
|
-
*/
|
|
53
|
-
export const revokeDelegationForEndUserAccount =
|
|
54
|
-
/*@__PURE__*/ API.make(() => ({
|
|
55
|
-
inputSchema: RevokeDelegationForEndUserAccountInput,
|
|
56
|
-
outputSchema: RevokeDelegationForEndUserAccountOutput,
|
|
57
|
-
}));
|
|
@@ -1,149 +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 RevokeSpendPermissionInput {
|
|
7
|
-
address: string;
|
|
8
|
-
network:
|
|
9
|
-
| "base"
|
|
10
|
-
| "base-sepolia"
|
|
11
|
-
| "ethereum"
|
|
12
|
-
| "ethereum-sepolia"
|
|
13
|
-
| "optimism"
|
|
14
|
-
| "arbitrum"
|
|
15
|
-
| "avalanche"
|
|
16
|
-
| "polygon";
|
|
17
|
-
permissionHash: string;
|
|
18
|
-
paymasterUrl?: string;
|
|
19
|
-
}
|
|
20
|
-
export const RevokeSpendPermissionInput =
|
|
21
|
-
/*@__PURE__*/ Schema.Struct({
|
|
22
|
-
address: Schema.String.pipe(T.PathParam()),
|
|
23
|
-
network: Schema.Literals([
|
|
24
|
-
"base",
|
|
25
|
-
"base-sepolia",
|
|
26
|
-
"ethereum",
|
|
27
|
-
"ethereum-sepolia",
|
|
28
|
-
"optimism",
|
|
29
|
-
"arbitrum",
|
|
30
|
-
"avalanche",
|
|
31
|
-
"polygon",
|
|
32
|
-
]),
|
|
33
|
-
permissionHash: Schema.String,
|
|
34
|
-
paymasterUrl: Schema.optional(Schema.String),
|
|
35
|
-
}).pipe(
|
|
36
|
-
T.Http({
|
|
37
|
-
method: "POST",
|
|
38
|
-
path: "/v2/evm/smart-accounts/{address}/spend-permissions/revoke",
|
|
39
|
-
}),
|
|
40
|
-
) as unknown as Schema.Codec<RevokeSpendPermissionInput>;
|
|
41
|
-
|
|
42
|
-
// Output Schema
|
|
43
|
-
export interface RevokeSpendPermissionOutput {
|
|
44
|
-
network:
|
|
45
|
-
| "base-sepolia"
|
|
46
|
-
| "base"
|
|
47
|
-
| "arbitrum"
|
|
48
|
-
| "optimism"
|
|
49
|
-
| "zora"
|
|
50
|
-
| "polygon"
|
|
51
|
-
| "bnb"
|
|
52
|
-
| "avalanche"
|
|
53
|
-
| "ethereum"
|
|
54
|
-
| "ethereum-sepolia";
|
|
55
|
-
userOpHash: string;
|
|
56
|
-
calls: {
|
|
57
|
-
to: string;
|
|
58
|
-
value: string;
|
|
59
|
-
data: string;
|
|
60
|
-
overrideGasLimit?: string;
|
|
61
|
-
}[];
|
|
62
|
-
status:
|
|
63
|
-
| "pending"
|
|
64
|
-
| "signed"
|
|
65
|
-
| "broadcast"
|
|
66
|
-
| "complete"
|
|
67
|
-
| "dropped"
|
|
68
|
-
| "failed";
|
|
69
|
-
transactionHash?: string;
|
|
70
|
-
receipts?: {
|
|
71
|
-
revert?: { data: string; message: string };
|
|
72
|
-
transactionHash?: string;
|
|
73
|
-
blockHash?: string;
|
|
74
|
-
blockNumber?: number;
|
|
75
|
-
gasUsed?: string;
|
|
76
|
-
}[];
|
|
77
|
-
expiresAt?: string;
|
|
78
|
-
}
|
|
79
|
-
export const RevokeSpendPermissionOutput =
|
|
80
|
-
/*@__PURE__*/ Schema.Struct({
|
|
81
|
-
network: Schema.Literals([
|
|
82
|
-
"base-sepolia",
|
|
83
|
-
"base",
|
|
84
|
-
"arbitrum",
|
|
85
|
-
"optimism",
|
|
86
|
-
"zora",
|
|
87
|
-
"polygon",
|
|
88
|
-
"bnb",
|
|
89
|
-
"avalanche",
|
|
90
|
-
"ethereum",
|
|
91
|
-
"ethereum-sepolia",
|
|
92
|
-
]),
|
|
93
|
-
userOpHash: Schema.String,
|
|
94
|
-
calls: Schema.Array(
|
|
95
|
-
Schema.Struct({
|
|
96
|
-
to: Schema.String,
|
|
97
|
-
value: Schema.String,
|
|
98
|
-
data: Schema.String,
|
|
99
|
-
overrideGasLimit: Schema.optional(Schema.String),
|
|
100
|
-
}),
|
|
101
|
-
),
|
|
102
|
-
status: Schema.Literals([
|
|
103
|
-
"pending",
|
|
104
|
-
"signed",
|
|
105
|
-
"broadcast",
|
|
106
|
-
"complete",
|
|
107
|
-
"dropped",
|
|
108
|
-
"failed",
|
|
109
|
-
]),
|
|
110
|
-
transactionHash: Schema.optional(Schema.String),
|
|
111
|
-
receipts: Schema.optional(
|
|
112
|
-
Schema.Array(
|
|
113
|
-
Schema.Struct({
|
|
114
|
-
revert: Schema.optional(
|
|
115
|
-
Schema.Struct({
|
|
116
|
-
data: Schema.String,
|
|
117
|
-
message: Schema.String,
|
|
118
|
-
}),
|
|
119
|
-
),
|
|
120
|
-
transactionHash: Schema.optional(Schema.String),
|
|
121
|
-
blockHash: Schema.optional(Schema.String),
|
|
122
|
-
blockNumber: Schema.optional(Schema.Number),
|
|
123
|
-
gasUsed: Schema.optional(Schema.String),
|
|
124
|
-
}),
|
|
125
|
-
),
|
|
126
|
-
),
|
|
127
|
-
expiresAt: Schema.optional(Schema.String),
|
|
128
|
-
}) as unknown as Schema.Codec<RevokeSpendPermissionOutput>;
|
|
129
|
-
|
|
130
|
-
// The operation
|
|
131
|
-
/**
|
|
132
|
-
* Revoke spend permission
|
|
133
|
-
*
|
|
134
|
-
* Revokes an existing spend permission.
|
|
135
|
-
*
|
|
136
|
-
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
137
|
-
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
138
|
-
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
139
|
-
|
|
140
|
-
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
141
|
-
When included, duplicate requests with the same key will return identical responses.
|
|
142
|
-
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
143
|
-
|
|
144
|
-
* @param address - The address of the Smart account this spend permission is valid for.
|
|
145
|
-
*/
|
|
146
|
-
export const revokeSpendPermission = /*@__PURE__*/ API.make(() => ({
|
|
147
|
-
inputSchema: RevokeSpendPermissionInput,
|
|
148
|
-
outputSchema: RevokeSpendPermissionOutput,
|
|
149
|
-
}));
|
|
@@ -1,141 +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 RunSQLQueryInput {
|
|
7
|
-
sql: string;
|
|
8
|
-
cache?: { maxAgeMs?: number };
|
|
9
|
-
}
|
|
10
|
-
export const RunSQLQueryInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
-
sql: Schema.String,
|
|
12
|
-
cache: Schema.optional(
|
|
13
|
-
Schema.Struct({
|
|
14
|
-
maxAgeMs: Schema.optional(Schema.Number),
|
|
15
|
-
}),
|
|
16
|
-
),
|
|
17
|
-
}).pipe(
|
|
18
|
-
T.Http({ method: "POST", path: "/v2/data/query/run" }),
|
|
19
|
-
) as unknown as Schema.Codec<RunSQLQueryInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export interface RunSQLQueryOutput {
|
|
23
|
-
result?: Record<string, unknown>[];
|
|
24
|
-
schema?: {
|
|
25
|
-
columns?: {
|
|
26
|
-
name?: string;
|
|
27
|
-
type?:
|
|
28
|
-
| "String"
|
|
29
|
-
| "UInt8"
|
|
30
|
-
| "UInt16"
|
|
31
|
-
| "UInt32"
|
|
32
|
-
| "UInt64"
|
|
33
|
-
| "UInt128"
|
|
34
|
-
| "UInt256"
|
|
35
|
-
| "Int8"
|
|
36
|
-
| "Int16"
|
|
37
|
-
| "Int32"
|
|
38
|
-
| "Int64"
|
|
39
|
-
| "Int128"
|
|
40
|
-
| "Int256"
|
|
41
|
-
| "Float32"
|
|
42
|
-
| "Float64"
|
|
43
|
-
| "Bool"
|
|
44
|
-
| "Date"
|
|
45
|
-
| "DateTime"
|
|
46
|
-
| "DateTime64"
|
|
47
|
-
| "UUID";
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
metadata?: {
|
|
51
|
-
cached?: boolean;
|
|
52
|
-
executionTimestamp?: string;
|
|
53
|
-
executionTimeMs?: number;
|
|
54
|
-
rowCount?: number;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export const RunSQLQueryOutput = /*@__PURE__*/ Schema.Struct({
|
|
58
|
-
result: Schema.optional(
|
|
59
|
-
Schema.Array(Schema.Record(Schema.String, Schema.Unknown)),
|
|
60
|
-
),
|
|
61
|
-
schema: Schema.optional(
|
|
62
|
-
Schema.Struct({
|
|
63
|
-
columns: Schema.optional(
|
|
64
|
-
Schema.Array(
|
|
65
|
-
Schema.Struct({
|
|
66
|
-
name: Schema.optional(Schema.String),
|
|
67
|
-
type: Schema.optional(
|
|
68
|
-
Schema.Literals([
|
|
69
|
-
"String",
|
|
70
|
-
"UInt8",
|
|
71
|
-
"UInt16",
|
|
72
|
-
"UInt32",
|
|
73
|
-
"UInt64",
|
|
74
|
-
"UInt128",
|
|
75
|
-
"UInt256",
|
|
76
|
-
"Int8",
|
|
77
|
-
"Int16",
|
|
78
|
-
"Int32",
|
|
79
|
-
"Int64",
|
|
80
|
-
"Int128",
|
|
81
|
-
"Int256",
|
|
82
|
-
"Float32",
|
|
83
|
-
"Float64",
|
|
84
|
-
"Bool",
|
|
85
|
-
"Date",
|
|
86
|
-
"DateTime",
|
|
87
|
-
"DateTime64",
|
|
88
|
-
"UUID",
|
|
89
|
-
]),
|
|
90
|
-
),
|
|
91
|
-
}),
|
|
92
|
-
),
|
|
93
|
-
),
|
|
94
|
-
}),
|
|
95
|
-
),
|
|
96
|
-
metadata: Schema.optional(
|
|
97
|
-
Schema.Struct({
|
|
98
|
-
cached: Schema.optional(Schema.Boolean),
|
|
99
|
-
executionTimestamp: Schema.optional(Schema.String),
|
|
100
|
-
executionTimeMs: Schema.optional(Schema.Number),
|
|
101
|
-
rowCount: Schema.optional(Schema.Number),
|
|
102
|
-
}),
|
|
103
|
-
),
|
|
104
|
-
}) as unknown as Schema.Codec<RunSQLQueryOutput>;
|
|
105
|
-
|
|
106
|
-
// The operation
|
|
107
|
-
/**
|
|
108
|
-
* Run SQL Query
|
|
109
|
-
*
|
|
110
|
-
* Run a read-only SQL query against indexed blockchain data including transactions, events, and decoded logs.
|
|
111
|
-
* This endpoint provides direct SQL access to comprehensive blockchain data across supported networks.
|
|
112
|
-
* Queries are executed against optimized data structures for high-performance analytics.
|
|
113
|
-
* ### Allowed Queries
|
|
114
|
-
* - Standard SQL syntax (CoinbaSeQL dialect, based on ClickHouse dialect)
|
|
115
|
-
* - Read-only queries (SELECT statements)
|
|
116
|
-
* - No DDL or DML operations
|
|
117
|
-
* - Query that follow limits (defined below)
|
|
118
|
-
* ### Supported Networks
|
|
119
|
-
* - Base Mainnet: `base`
|
|
120
|
-
* - Base Sepolia: `base_sepolia`
|
|
121
|
-
* - Solana Mainnet: `solana`
|
|
122
|
-
* - Hyperevm Mainnet: `hyperevm`
|
|
123
|
-
* ### Supported Tables
|
|
124
|
-
* The below tables are supported for `base` and `base_sepolia` networks.
|
|
125
|
-
* Following the above, the valid tables on Base Mainnet are `base.events`, `base.transactions`, `base.blocks`, `base.encoded_logs`, `base.decoded_user_operations`, and `base.transaction_attributions`.
|
|
126
|
-
* Separately, there is a limited set of tables supported for `solana` and `hyperevm` networks:
|
|
127
|
-
* ### Query Limits
|
|
128
|
-
* - Maximum result set: 50,000 rows
|
|
129
|
-
* - Maximum query length: 10,000 characters
|
|
130
|
-
* - Maximum on-disk data to read: 100GB
|
|
131
|
-
* - Maximum memory usage: 15GB
|
|
132
|
-
* - Query timeout: 30 seconds
|
|
133
|
-
* - Maximum JOINs: 12
|
|
134
|
-
* ### Query Caching
|
|
135
|
-
* By default, each query result is returned from cache so long as the result is from an identical query and less than 750ms old. This freshness tolerance can be modified upwards, to a maximum of 900000ms (i.e. 900s, 15m).
|
|
136
|
-
* This can be helpful for users who wish to reduce expensive calls to the SQL API by reusing cached results.
|
|
137
|
-
*/
|
|
138
|
-
export const runSQLQuery = /*@__PURE__*/ API.make(() => ({
|
|
139
|
-
inputSchema: RunSQLQueryInput,
|
|
140
|
-
outputSchema: RunSQLQueryOutput,
|
|
141
|
-
}));
|
|
@@ -1,194 +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 SearchX402ResourcesInput {
|
|
7
|
-
query?: string;
|
|
8
|
-
network?: string;
|
|
9
|
-
asset?: string;
|
|
10
|
-
scheme?: string;
|
|
11
|
-
payTo?: string;
|
|
12
|
-
urlSubstring?: string;
|
|
13
|
-
maxUsdPrice?: string;
|
|
14
|
-
extensions?: string;
|
|
15
|
-
limit?: number;
|
|
16
|
-
}
|
|
17
|
-
export const SearchX402ResourcesInput =
|
|
18
|
-
/*@__PURE__*/ Schema.Struct({
|
|
19
|
-
query: Schema.optional(Schema.String),
|
|
20
|
-
network: Schema.optional(Schema.String),
|
|
21
|
-
asset: Schema.optional(Schema.String),
|
|
22
|
-
scheme: Schema.optional(Schema.String),
|
|
23
|
-
payTo: Schema.optional(Schema.String),
|
|
24
|
-
urlSubstring: Schema.optional(Schema.String),
|
|
25
|
-
maxUsdPrice: Schema.optional(Schema.String),
|
|
26
|
-
extensions: Schema.optional(Schema.String),
|
|
27
|
-
limit: Schema.optional(Schema.Number),
|
|
28
|
-
}).pipe(
|
|
29
|
-
T.Http({ method: "GET", path: "/v2/x402/discovery/search" }),
|
|
30
|
-
) as unknown as Schema.Codec<SearchX402ResourcesInput>;
|
|
31
|
-
|
|
32
|
-
// Output Schema
|
|
33
|
-
export interface SearchX402ResourcesOutput {
|
|
34
|
-
resources: {
|
|
35
|
-
resource: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
type: "http" | "mcp";
|
|
38
|
-
x402Version: 1 | 2;
|
|
39
|
-
lastUpdated?: string;
|
|
40
|
-
accepts?: (
|
|
41
|
-
| {
|
|
42
|
-
scheme: "exact" | "upto" | "batch-settlement";
|
|
43
|
-
network:
|
|
44
|
-
| "eip155:8453"
|
|
45
|
-
| "eip155:84532"
|
|
46
|
-
| "eip155:137"
|
|
47
|
-
| "eip155:42161"
|
|
48
|
-
| "eip155:480"
|
|
49
|
-
| "eip155:4801"
|
|
50
|
-
| "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
|
|
51
|
-
| "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
52
|
-
asset: string;
|
|
53
|
-
amount: string;
|
|
54
|
-
payTo: string;
|
|
55
|
-
maxTimeoutSeconds: number;
|
|
56
|
-
extra?: Record<string, unknown>;
|
|
57
|
-
}
|
|
58
|
-
| {
|
|
59
|
-
scheme: "exact";
|
|
60
|
-
network: "base" | "base-sepolia" | "solana" | "solana-devnet";
|
|
61
|
-
maxAmountRequired: string;
|
|
62
|
-
resource: string;
|
|
63
|
-
description: string;
|
|
64
|
-
mimeType: string;
|
|
65
|
-
outputSchema?: Record<string, unknown>;
|
|
66
|
-
payTo: string;
|
|
67
|
-
maxTimeoutSeconds: number;
|
|
68
|
-
asset: string;
|
|
69
|
-
extra?: Record<string, unknown>;
|
|
70
|
-
}
|
|
71
|
-
)[];
|
|
72
|
-
extensions?: Record<string, unknown>;
|
|
73
|
-
quality?: {
|
|
74
|
-
l30DaysTotalCalls?: number;
|
|
75
|
-
l30DaysUniquePayers?: number;
|
|
76
|
-
lastCalledAt?: string;
|
|
77
|
-
};
|
|
78
|
-
serviceName?: string;
|
|
79
|
-
tags?: string[];
|
|
80
|
-
iconUrl?: string;
|
|
81
|
-
}[];
|
|
82
|
-
partialResults: boolean;
|
|
83
|
-
searchMethod?: "text" | "vector" | "hybrid";
|
|
84
|
-
x402Version: 1 | 2;
|
|
85
|
-
}
|
|
86
|
-
export const SearchX402ResourcesOutput =
|
|
87
|
-
/*@__PURE__*/ Schema.Struct({
|
|
88
|
-
resources: Schema.Array(
|
|
89
|
-
Schema.Struct({
|
|
90
|
-
resource: Schema.String,
|
|
91
|
-
description: Schema.optional(Schema.String),
|
|
92
|
-
type: Schema.Literals(["http", "mcp"]),
|
|
93
|
-
x402Version: Schema.Literals([1, 2]),
|
|
94
|
-
lastUpdated: Schema.optional(Schema.String),
|
|
95
|
-
accepts: Schema.optional(
|
|
96
|
-
Schema.Array(
|
|
97
|
-
Schema.Union([
|
|
98
|
-
Schema.Struct({
|
|
99
|
-
scheme: Schema.Literals(["exact", "upto", "batch-settlement"]),
|
|
100
|
-
network: Schema.Literals([
|
|
101
|
-
"eip155:8453",
|
|
102
|
-
"eip155:84532",
|
|
103
|
-
"eip155:137",
|
|
104
|
-
"eip155:42161",
|
|
105
|
-
"eip155:480",
|
|
106
|
-
"eip155:4801",
|
|
107
|
-
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
108
|
-
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
109
|
-
]),
|
|
110
|
-
asset: Schema.String,
|
|
111
|
-
amount: Schema.String,
|
|
112
|
-
payTo: Schema.String,
|
|
113
|
-
maxTimeoutSeconds: Schema.Number,
|
|
114
|
-
extra: Schema.optional(
|
|
115
|
-
Schema.Record(Schema.String, Schema.Unknown),
|
|
116
|
-
),
|
|
117
|
-
}),
|
|
118
|
-
Schema.Struct({
|
|
119
|
-
scheme: Schema.Literals(["exact"]),
|
|
120
|
-
network: Schema.Literals([
|
|
121
|
-
"base",
|
|
122
|
-
"base-sepolia",
|
|
123
|
-
"solana",
|
|
124
|
-
"solana-devnet",
|
|
125
|
-
]),
|
|
126
|
-
maxAmountRequired: Schema.String,
|
|
127
|
-
resource: Schema.String,
|
|
128
|
-
description: Schema.String,
|
|
129
|
-
mimeType: Schema.String,
|
|
130
|
-
outputSchema: Schema.optional(
|
|
131
|
-
Schema.Record(Schema.String, Schema.Unknown),
|
|
132
|
-
),
|
|
133
|
-
payTo: Schema.String,
|
|
134
|
-
maxTimeoutSeconds: Schema.Number,
|
|
135
|
-
asset: Schema.String,
|
|
136
|
-
extra: Schema.optional(
|
|
137
|
-
Schema.Record(Schema.String, Schema.Unknown),
|
|
138
|
-
),
|
|
139
|
-
}),
|
|
140
|
-
]),
|
|
141
|
-
),
|
|
142
|
-
),
|
|
143
|
-
extensions: Schema.optional(
|
|
144
|
-
Schema.Record(Schema.String, Schema.Unknown),
|
|
145
|
-
),
|
|
146
|
-
quality: Schema.optional(
|
|
147
|
-
Schema.Struct({
|
|
148
|
-
l30DaysTotalCalls: Schema.optional(Schema.Number),
|
|
149
|
-
l30DaysUniquePayers: Schema.optional(Schema.Number),
|
|
150
|
-
lastCalledAt: Schema.optional(Schema.String),
|
|
151
|
-
}),
|
|
152
|
-
),
|
|
153
|
-
serviceName: Schema.optional(Schema.String),
|
|
154
|
-
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
155
|
-
iconUrl: Schema.optional(Schema.String),
|
|
156
|
-
}),
|
|
157
|
-
),
|
|
158
|
-
partialResults: Schema.Boolean,
|
|
159
|
-
searchMethod: Schema.optional(
|
|
160
|
-
Schema.Literals(["text", "vector", "hybrid"]),
|
|
161
|
-
),
|
|
162
|
-
x402Version: Schema.Literals([1, 2]),
|
|
163
|
-
}) as unknown as Schema.Codec<SearchX402ResourcesOutput>;
|
|
164
|
-
|
|
165
|
-
// The operation
|
|
166
|
-
/**
|
|
167
|
-
* Search x402 resources
|
|
168
|
-
*
|
|
169
|
-
* Searches for active x402 resources using a text query and optional filters.
|
|
170
|
-
* Supports both text-based and vector-based search depending on availability. Results are sorted by relevance and quality score.
|
|
171
|
-
* Legacy network names (e.g., `base`, `base-sepolia`, `solana`) are automatically normalized to their CAIP-2 equivalents.
|
|
172
|
-
* The response is limited to 20 items per request. If more results exist, `partialResults` will be `true`.
|
|
173
|
-
*
|
|
174
|
-
* @param query - Full-text or semantic search query to find matching resources.
|
|
175
|
-
* @param network - Filter results by network in CAIP-2 format (e.g., `eip155:8453`) or legacy name (e.g., `base`, `base-sepolia`, `solana`).
|
|
176
|
-
Legacy names are normalized to their CAIP-2 equivalents before filtering.
|
|
177
|
-
* @param asset - Filter results by asset address.
|
|
178
|
-
For EVM networks, provide a 0x-prefixed EVM address. For Solana networks, provide a base58-encoded address.
|
|
179
|
-
Matching is case-insensitive.
|
|
180
|
-
* @param scheme - Filter results by payment scheme (e.g., `exact`).
|
|
181
|
-
* @param payTo - Filter results by the merchant's payment address.
|
|
182
|
-
For EVM networks, provide a 0x-prefixed EVM address. For Solana networks, provide a base58-encoded address.
|
|
183
|
-
* @param urlSubstring - Filter results to resources whose URL contains this value (case-insensitive substring match against the resource URL).
|
|
184
|
-
Useful for narrowing results to a specific domain, subdomain, or path segment. Combine with `query` to perform semantic search restricted to a URL subset.
|
|
185
|
-
Tip: include enough of the URL to disambiguate (e.g. `api.example.com` rather than `example`) — a short substring may also match resources whose path contains the same string.
|
|
186
|
-
* @param maxUsdPrice - Filter results to resources with a USD price at or below this value.
|
|
187
|
-
* @param extensions - Filter results to resources that support the specified protocol extensions. Can be specified multiple times to filter by multiple extensions.
|
|
188
|
-
* @param limit - Maximum number of resources to return. Must be a positive integer no greater than 20.
|
|
189
|
-
Defaults to 20.
|
|
190
|
-
*/
|
|
191
|
-
export const searchX402Resources = /*@__PURE__*/ API.make(() => ({
|
|
192
|
-
inputSchema: SearchX402ResourcesInput,
|
|
193
|
-
outputSchema: SearchX402ResourcesOutput,
|
|
194
|
-
}));
|