@distilled.cloud/coinbase 0.29.0 → 0.29.1
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.map +1 -1
- package/lib/operations/addEndUserEvmAccount.js +3 -3
- package/lib/operations/addEndUserEvmAccount.js.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +3 -3
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.js +3 -3
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -1
- package/lib/operations/createDelegationForEndUserAccount.js +3 -3
- package/lib/operations/createDelegationForEndUserAccount.js.map +1 -1
- package/lib/operations/createDepositDestination.d.ts.map +1 -1
- package/lib/operations/createDepositDestination.js +3 -3
- package/lib/operations/createDepositDestination.js.map +1 -1
- package/lib/operations/createEndUser.js +3 -3
- package/lib/operations/createEndUser.js.map +1 -1
- package/lib/operations/createEvmAccount.d.ts.map +1 -1
- package/lib/operations/createEvmAccount.js +3 -3
- package/lib/operations/createEvmAccount.js.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.js +3 -3
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +3 -3
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -1
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/createEvmSmartAccount.js +3 -3
- package/lib/operations/createEvmSmartAccount.js.map +1 -1
- package/lib/operations/createEvmSwapQuote.js +3 -3
- package/lib/operations/createEvmSwapQuote.js.map +1 -1
- package/lib/operations/createFoundationAccount.d.ts.map +1 -1
- package/lib/operations/createFoundationAccount.js +3 -3
- package/lib/operations/createFoundationAccount.js.map +1 -1
- package/lib/operations/createOnrampOrder.d.ts.map +1 -1
- package/lib/operations/createOnrampOrder.js +3 -3
- package/lib/operations/createOnrampOrder.js.map +1 -1
- package/lib/operations/createOnrampSession.js +3 -3
- package/lib/operations/createOnrampSession.js.map +1 -1
- package/lib/operations/createPolicy.js +3 -3
- package/lib/operations/createPolicy.js.map +1 -1
- package/lib/operations/createSolanaAccount.js +3 -3
- package/lib/operations/createSolanaAccount.js.map +1 -1
- package/lib/operations/createSpendPermission.d.ts.map +1 -1
- package/lib/operations/createSpendPermission.js +3 -3
- package/lib/operations/createSpendPermission.js.map +1 -1
- package/lib/operations/createTransfer.js +3 -3
- package/lib/operations/createTransfer.js.map +1 -1
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/createWebhookSubscription.js +3 -3
- package/lib/operations/createWebhookSubscription.js.map +1 -1
- package/lib/operations/deletePolicy.d.ts.map +1 -1
- package/lib/operations/deletePolicy.js +3 -3
- package/lib/operations/deletePolicy.js.map +1 -1
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/deleteWebhookSubscription.js +3 -3
- package/lib/operations/deleteWebhookSubscription.js.map +1 -1
- package/lib/operations/executeFundTransfer.js +3 -3
- package/lib/operations/executeFundTransfer.js.map +1 -1
- package/lib/operations/exportEvmAccount.d.ts.map +1 -1
- package/lib/operations/exportEvmAccount.js +3 -3
- package/lib/operations/exportEvmAccount.js.map +1 -1
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/exportEvmAccountByName.js +3 -3
- package/lib/operations/exportEvmAccountByName.js.map +1 -1
- package/lib/operations/exportSolanaAccount.js +3 -3
- package/lib/operations/exportSolanaAccount.js.map +1 -1
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccountByName.js +3 -3
- package/lib/operations/exportSolanaAccountByName.js.map +1 -1
- package/lib/operations/getBalanceByAsset.d.ts.map +1 -1
- package/lib/operations/getBalanceByAsset.js +3 -3
- package/lib/operations/getBalanceByAsset.js.map +1 -1
- package/lib/operations/getDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/getDelegationForEndUser.js +3 -3
- package/lib/operations/getDelegationForEndUser.js.map +1 -1
- package/lib/operations/getDelegationForEndUserAccount.js +3 -3
- package/lib/operations/getDelegationForEndUserAccount.js.map +1 -1
- package/lib/operations/getDepositDestinationById.d.ts.map +1 -1
- package/lib/operations/getDepositDestinationById.js +3 -3
- package/lib/operations/getDepositDestinationById.js.map +1 -1
- package/lib/operations/getEndUser.js +3 -3
- package/lib/operations/getEndUser.js.map +1 -1
- package/lib/operations/getEvmAccount.js +3 -3
- package/lib/operations/getEvmAccount.js.map +1 -1
- package/lib/operations/getEvmAccountByName.js +3 -3
- package/lib/operations/getEvmAccountByName.js.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +3 -3
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -1
- package/lib/operations/getEvmSmartAccount.js +3 -3
- package/lib/operations/getEvmSmartAccount.js.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.js +3 -3
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -1
- package/lib/operations/getEvmSwapPrice.js +3 -3
- package/lib/operations/getEvmSwapPrice.js.map +1 -1
- package/lib/operations/getFoundationAccountById.d.ts.map +1 -1
- package/lib/operations/getFoundationAccountById.js +3 -3
- package/lib/operations/getFoundationAccountById.js.map +1 -1
- package/lib/operations/getOnrampOrderById.js +3 -3
- package/lib/operations/getOnrampOrderById.js.map +1 -1
- package/lib/operations/getOnrampUserLimits.js +3 -3
- package/lib/operations/getOnrampUserLimits.js.map +1 -1
- package/lib/operations/getPaymentMethod.js +3 -3
- package/lib/operations/getPaymentMethod.js.map +1 -1
- package/lib/operations/getPolicyById.js +3 -3
- package/lib/operations/getPolicyById.js.map +1 -1
- package/lib/operations/getSQLGrammar.d.ts.map +1 -1
- package/lib/operations/getSQLGrammar.js +3 -3
- package/lib/operations/getSQLGrammar.js.map +1 -1
- package/lib/operations/getSQLSchema.js +3 -3
- package/lib/operations/getSQLSchema.js.map +1 -1
- package/lib/operations/getSolanaAccount.d.ts.map +1 -1
- package/lib/operations/getSolanaAccount.js +3 -3
- package/lib/operations/getSolanaAccount.js.map +1 -1
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/getSolanaAccountByName.js +3 -3
- package/lib/operations/getSolanaAccountByName.js.map +1 -1
- package/lib/operations/getTransferById.js +3 -3
- package/lib/operations/getTransferById.js.map +1 -1
- package/lib/operations/getUserOperation.d.ts.map +1 -1
- package/lib/operations/getUserOperation.js +3 -3
- package/lib/operations/getUserOperation.js.map +1 -1
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/getWebhookSubscription.js +3 -3
- package/lib/operations/getWebhookSubscription.js.map +1 -1
- package/lib/operations/importEndUser.js +3 -3
- package/lib/operations/importEndUser.js.map +1 -1
- package/lib/operations/importEvmAccount.d.ts.map +1 -1
- package/lib/operations/importEvmAccount.js +3 -3
- package/lib/operations/importEvmAccount.js.map +1 -1
- package/lib/operations/importSolanaAccount.js +3 -3
- package/lib/operations/importSolanaAccount.js.map +1 -1
- package/lib/operations/initiateOnrampVerification.d.ts.map +1 -1
- package/lib/operations/initiateOnrampVerification.js +3 -3
- package/lib/operations/initiateOnrampVerification.js.map +1 -1
- package/lib/operations/listBalances.js +3 -3
- package/lib/operations/listBalances.js.map +1 -1
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -1
- package/lib/operations/listDataTokenBalances.js +3 -3
- package/lib/operations/listDataTokenBalances.js.map +1 -1
- package/lib/operations/listDepositDestinations.d.ts.map +1 -1
- package/lib/operations/listDepositDestinations.js +3 -3
- package/lib/operations/listDepositDestinations.js.map +1 -1
- package/lib/operations/listEndUsers.js +3 -3
- package/lib/operations/listEndUsers.js.map +1 -1
- package/lib/operations/listEvmAccounts.js +3 -3
- package/lib/operations/listEvmAccounts.js.map +1 -1
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmSmartAccounts.js +3 -3
- package/lib/operations/listEvmSmartAccounts.js.map +1 -1
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -1
- package/lib/operations/listEvmTokenBalances.js +3 -3
- package/lib/operations/listEvmTokenBalances.js.map +1 -1
- package/lib/operations/listFoundationAccounts.d.ts.map +1 -1
- package/lib/operations/listFoundationAccounts.js +3 -3
- package/lib/operations/listFoundationAccounts.js.map +1 -1
- package/lib/operations/listPaymentMethods.js +3 -3
- package/lib/operations/listPaymentMethods.js.map +1 -1
- package/lib/operations/listPolicies.js +3 -3
- package/lib/operations/listPolicies.js.map +1 -1
- package/lib/operations/listSolanaAccounts.js +3 -3
- package/lib/operations/listSolanaAccounts.js.map +1 -1
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -1
- package/lib/operations/listSolanaTokenBalances.js +3 -3
- package/lib/operations/listSolanaTokenBalances.js.map +1 -1
- package/lib/operations/listSpendPermissions.d.ts.map +1 -1
- package/lib/operations/listSpendPermissions.js +3 -3
- package/lib/operations/listSpendPermissions.js.map +1 -1
- package/lib/operations/listTokensForAccount.d.ts.map +1 -1
- package/lib/operations/listTokensForAccount.js +3 -3
- package/lib/operations/listTokensForAccount.js.map +1 -1
- package/lib/operations/listTransfers.js +3 -3
- package/lib/operations/listTransfers.js.map +1 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +3 -3
- package/lib/operations/listWebhookSubscriptionEvents.js.map +1 -1
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptions.js +3 -3
- package/lib/operations/listWebhookSubscriptions.js.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.js +3 -3
- package/lib/operations/listX402DiscoveryMerchant.js.map +1 -1
- package/lib/operations/listX402DiscoveryResources.d.ts.map +1 -1
- package/lib/operations/listX402DiscoveryResources.js +3 -3
- package/lib/operations/listX402DiscoveryResources.js.map +1 -1
- package/lib/operations/lookupEndUser.js +3 -3
- package/lib/operations/lookupEndUser.js.map +1 -1
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +1 -1
- package/lib/operations/postX402DiscoveryMcp.js +3 -3
- package/lib/operations/postX402DiscoveryMcp.js.map +1 -1
- 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.map +1 -1
- package/lib/operations/prepareUserOperation.js +3 -3
- package/lib/operations/prepareUserOperation.js.map +1 -1
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -1
- package/lib/operations/requestEvmFaucet.js +3 -3
- package/lib/operations/requestEvmFaucet.js.map +1 -1
- package/lib/operations/requestLimitsUpgrade.d.ts.map +1 -1
- package/lib/operations/requestLimitsUpgrade.js +3 -3
- package/lib/operations/requestLimitsUpgrade.js.map +1 -1
- package/lib/operations/requestSolanaFaucet.js +3 -3
- package/lib/operations/requestSolanaFaucet.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.js +3 -3
- package/lib/operations/revokeDelegationForEndUser.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.js +3 -3
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +1 -1
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -1
- package/lib/operations/revokeSpendPermission.js +3 -3
- package/lib/operations/revokeSpendPermission.js.map +1 -1
- package/lib/operations/runSQLQuery.js +3 -3
- package/lib/operations/runSQLQuery.js.map +1 -1
- package/lib/operations/searchX402Resources.js +3 -3
- package/lib/operations/searchX402Resources.js.map +1 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +3 -3
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendEvmTransaction.js +3 -3
- package/lib/operations/sendEvmTransaction.js.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +3 -3
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +3 -3
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransaction.js +3 -3
- package/lib/operations/sendSolanaTransaction.js.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +3 -3
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendUserOperation.d.ts.map +1 -1
- package/lib/operations/sendUserOperation.js +3 -3
- package/lib/operations/sendUserOperation.js.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +3 -3
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -1
- package/lib/operations/settleX402Payment.d.ts.map +1 -1
- package/lib/operations/settleX402Payment.js +3 -3
- package/lib/operations/settleX402Payment.js.map +1 -1
- package/lib/operations/signEvmHash.js +3 -3
- package/lib/operations/signEvmHash.js.map +1 -1
- package/lib/operations/signEvmMessage.js +3 -3
- package/lib/operations/signEvmMessage.js.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +3 -3
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTransaction.js +3 -3
- package/lib/operations/signEvmTransaction.js.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +3 -3
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTypedData.d.ts.map +1 -1
- package/lib/operations/signEvmTypedData.js +3 -3
- package/lib/operations/signEvmTypedData.js.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +3 -3
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaMessage.d.ts.map +1 -1
- package/lib/operations/signSolanaMessage.js +3 -3
- package/lib/operations/signSolanaMessage.js.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +3 -3
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/signSolanaTransaction.js +3 -3
- package/lib/operations/signSolanaTransaction.js.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +3 -3
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/submitDepositTravelRule.d.ts.map +1 -1
- package/lib/operations/submitDepositTravelRule.js +3 -3
- package/lib/operations/submitDepositTravelRule.js.map +1 -1
- package/lib/operations/submitOnrampVerification.d.ts.map +1 -1
- package/lib/operations/submitOnrampVerification.js +3 -3
- package/lib/operations/submitOnrampVerification.js.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.js +3 -3
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -1
- package/lib/operations/updateEvmAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmAccount.js +3 -3
- package/lib/operations/updateEvmAccount.js.map +1 -1
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmSmartAccount.js +3 -3
- package/lib/operations/updateEvmSmartAccount.js.map +1 -1
- package/lib/operations/updatePolicy.js +3 -3
- package/lib/operations/updatePolicy.js.map +1 -1
- package/lib/operations/updateSolanaAccount.js +3 -3
- package/lib/operations/updateSolanaAccount.js.map +1 -1
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/updateWebhookSubscription.js +3 -3
- package/lib/operations/updateWebhookSubscription.js.map +1 -1
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -1
- package/lib/operations/validateEndUserAccessToken.js +3 -3
- package/lib/operations/validateEndUserAccessToken.js.map +1 -1
- package/lib/operations/validateX402Resource.d.ts.map +1 -1
- package/lib/operations/validateX402Resource.js +3 -3
- package/lib/operations/validateX402Resource.js.map +1 -1
- package/lib/operations/verifyX402Payment.d.ts.map +1 -1
- package/lib/operations/verifyX402Payment.js +3 -3
- package/lib/operations/verifyX402Payment.js.map +1 -1
- package/package.json +3 -2
- package/src/operations/addEndUserEvmAccount.ts +6 -8
- package/src/operations/addEndUserEvmSmartAccount.ts +6 -8
- package/src/operations/addEndUserSolanaAccount.ts +6 -8
- package/src/operations/createDelegationForEndUserAccount.ts +3 -3
- package/src/operations/createDepositDestination.ts +6 -8
- package/src/operations/createEndUser.ts +3 -3
- package/src/operations/createEvmAccount.ts +9 -11
- package/src/operations/createEvmEip7702Delegation.ts +6 -8
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +3 -3
- package/src/operations/createEvmSmartAccount.ts +6 -8
- package/src/operations/createEvmSwapQuote.ts +3 -3
- package/src/operations/createFoundationAccount.ts +6 -8
- package/src/operations/createOnrampOrder.ts +25 -27
- package/src/operations/createOnrampSession.ts +3 -3
- package/src/operations/createPolicy.ts +3 -3
- package/src/operations/createSolanaAccount.ts +3 -3
- package/src/operations/createSpendPermission.ts +6 -8
- package/src/operations/createTransfer.ts +3 -3
- package/src/operations/createWebhookSubscription.ts +6 -8
- package/src/operations/deletePolicy.ts +3 -3
- package/src/operations/deleteWebhookSubscription.ts +6 -8
- package/src/operations/executeFundTransfer.ts +3 -3
- package/src/operations/exportEvmAccount.ts +5 -7
- package/src/operations/exportEvmAccountByName.ts +6 -8
- package/src/operations/exportSolanaAccount.ts +3 -3
- package/src/operations/exportSolanaAccountByName.ts +6 -8
- package/src/operations/getBalanceByAsset.ts +6 -8
- package/src/operations/getDelegationForEndUser.ts +6 -8
- package/src/operations/getDelegationForEndUserAccount.ts +3 -3
- package/src/operations/getDepositDestinationById.ts +6 -8
- package/src/operations/getEndUser.ts +3 -3
- package/src/operations/getEvmAccount.ts +3 -3
- package/src/operations/getEvmAccountByName.ts +3 -3
- package/src/operations/getEvmEip7702DelegationOperationById.ts +3 -3
- package/src/operations/getEvmSmartAccount.ts +3 -3
- package/src/operations/getEvmSmartAccountByName.ts +6 -8
- package/src/operations/getEvmSwapPrice.ts +3 -3
- package/src/operations/getFoundationAccountById.ts +6 -8
- package/src/operations/getOnrampOrderById.ts +3 -3
- package/src/operations/getOnrampUserLimits.ts +3 -3
- package/src/operations/getPaymentMethod.ts +3 -3
- package/src/operations/getPolicyById.ts +3 -3
- package/src/operations/getSQLGrammar.ts +3 -5
- package/src/operations/getSQLSchema.ts +3 -3
- package/src/operations/getSolanaAccount.ts +9 -11
- package/src/operations/getSolanaAccountByName.ts +6 -8
- package/src/operations/getTransferById.ts +3 -3
- package/src/operations/getUserOperation.ts +48 -50
- package/src/operations/getWebhookSubscription.ts +6 -8
- package/src/operations/importEndUser.ts +3 -3
- package/src/operations/importEvmAccount.ts +9 -11
- package/src/operations/importSolanaAccount.ts +3 -3
- package/src/operations/initiateOnrampVerification.ts +6 -8
- package/src/operations/listBalances.ts +3 -3
- package/src/operations/listDataTokenBalances.ts +6 -8
- package/src/operations/listDepositDestinations.ts +6 -8
- package/src/operations/listEndUsers.ts +3 -3
- package/src/operations/listEvmAccounts.ts +3 -3
- package/src/operations/listEvmSmartAccounts.ts +6 -8
- package/src/operations/listEvmTokenBalances.ts +6 -8
- package/src/operations/listFoundationAccounts.ts +6 -8
- package/src/operations/listPaymentMethods.ts +3 -3
- package/src/operations/listPolicies.ts +3 -3
- package/src/operations/listSolanaAccounts.ts +3 -3
- package/src/operations/listSolanaTokenBalances.ts +6 -8
- package/src/operations/listSpendPermissions.ts +6 -8
- package/src/operations/listTokensForAccount.ts +6 -8
- package/src/operations/listTransfers.ts +3 -3
- package/src/operations/listWebhookSubscriptionEvents.ts +3 -3
- package/src/operations/listWebhookSubscriptions.ts +6 -8
- package/src/operations/listX402DiscoveryMerchant.ts +6 -8
- package/src/operations/listX402DiscoveryResources.ts +6 -8
- package/src/operations/lookupEndUser.ts +3 -3
- package/src/operations/postX402DiscoveryMcp.ts +6 -8
- package/src/operations/prepareAndSendUserOperation.ts +6 -8
- package/src/operations/prepareUserOperation.ts +6 -8
- package/src/operations/requestEvmFaucet.ts +5 -7
- package/src/operations/requestLimitsUpgrade.ts +6 -8
- package/src/operations/requestSolanaFaucet.ts +3 -3
- package/src/operations/revokeDelegationForEndUser.ts +6 -8
- package/src/operations/revokeDelegationForEndUserAccount.ts +3 -3
- package/src/operations/revokeSpendPermission.ts +6 -8
- package/src/operations/runSQLQuery.ts +3 -3
- package/src/operations/searchX402Resources.ts +3 -3
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +3 -3
- package/src/operations/sendEvmTransaction.ts +3 -3
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +3 -3
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +3 -3
- package/src/operations/sendSolanaTransaction.ts +6 -8
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +3 -3
- package/src/operations/sendUserOperation.ts +7 -9
- package/src/operations/sendUserOperationWithEndUserAccount.ts +3 -3
- package/src/operations/settleX402Payment.ts +104 -108
- package/src/operations/signEvmHash.ts +3 -3
- package/src/operations/signEvmMessage.ts +3 -3
- package/src/operations/signEvmMessageWithEndUserAccount.ts +3 -3
- package/src/operations/signEvmTransaction.ts +3 -3
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +3 -3
- package/src/operations/signEvmTypedData.ts +5 -7
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +3 -3
- package/src/operations/signSolanaMessage.ts +6 -8
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +3 -3
- package/src/operations/signSolanaTransaction.ts +6 -8
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +3 -3
- package/src/operations/submitDepositTravelRule.ts +6 -8
- package/src/operations/submitOnrampVerification.ts +6 -8
- package/src/operations/supportedX402PaymentKinds.ts +6 -8
- package/src/operations/updateEvmAccount.ts +9 -11
- package/src/operations/updateEvmSmartAccount.ts +6 -8
- package/src/operations/updatePolicy.ts +3 -3
- package/src/operations/updateSolanaAccount.ts +3 -3
- package/src/operations/updateWebhookSubscription.ts +6 -8
- package/src/operations/validateEndUserAccessToken.ts +6 -8
- package/src/operations/validateX402Resource.ts +6 -8
- package/src/operations/verifyX402Payment.ts +104 -108
|
@@ -23,31 +23,29 @@ export interface CreateOnrampOrderInput {
|
|
|
23
23
|
clientIp?: string;
|
|
24
24
|
domain?: string;
|
|
25
25
|
}
|
|
26
|
-
export const CreateOnrampOrderInput = /*@__PURE__*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
).pipe(
|
|
26
|
+
export const CreateOnrampOrderInput = /*@__PURE__*/ Schema.Struct({
|
|
27
|
+
agreementAcceptedAt: Schema.String,
|
|
28
|
+
destinationAddress: Schema.String,
|
|
29
|
+
destinationNetwork: Schema.String,
|
|
30
|
+
email: Schema.String,
|
|
31
|
+
isQuote: Schema.optional(Schema.Boolean),
|
|
32
|
+
partnerOrderRef: Schema.optional(Schema.String),
|
|
33
|
+
partnerUserRef: Schema.String,
|
|
34
|
+
paymentAmount: Schema.optional(Schema.String),
|
|
35
|
+
paymentCurrency: Schema.String,
|
|
36
|
+
paymentMethod: Schema.Literals([
|
|
37
|
+
"GUEST_CHECKOUT_APPLE_PAY",
|
|
38
|
+
"GUEST_CHECKOUT_GOOGLE_PAY",
|
|
39
|
+
]),
|
|
40
|
+
phoneNumber: Schema.String,
|
|
41
|
+
phoneNumberVerifiedAt: Schema.String,
|
|
42
|
+
smsVerificationId: Schema.optional(Schema.String),
|
|
43
|
+
emailVerificationId: Schema.optional(Schema.String),
|
|
44
|
+
purchaseAmount: Schema.optional(Schema.String),
|
|
45
|
+
purchaseCurrency: Schema.String,
|
|
46
|
+
clientIp: Schema.optional(Schema.String),
|
|
47
|
+
domain: Schema.optional(Schema.String),
|
|
48
|
+
}).pipe(
|
|
51
49
|
T.Http({ method: "POST", path: "/v2/onramp/orders" }),
|
|
52
50
|
) as unknown as Schema.Codec<CreateOnrampOrderInput>;
|
|
53
51
|
|
|
@@ -86,7 +84,7 @@ export interface CreateOnrampOrderOutput {
|
|
|
86
84
|
};
|
|
87
85
|
}
|
|
88
86
|
export const CreateOnrampOrderOutput =
|
|
89
|
-
/*@__PURE__*/
|
|
87
|
+
/*@__PURE__*/ Schema.Struct({
|
|
90
88
|
order: Schema.Struct({
|
|
91
89
|
orderId: Schema.String,
|
|
92
90
|
paymentTotal: Schema.String,
|
|
@@ -138,7 +136,7 @@ export const CreateOnrampOrderOutput =
|
|
|
138
136
|
* This API currently only supports the payment method `GUEST_CHECKOUT_APPLE_PAY`.
|
|
139
137
|
* For detailed integration instructions and to get access to this API, refer to the [Apple Pay Onramp API docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api).
|
|
140
138
|
*/
|
|
141
|
-
export const createOnrampOrder = /*@__PURE__*/
|
|
139
|
+
export const createOnrampOrder = /*@__PURE__*/ API.make(() => ({
|
|
142
140
|
inputSchema: CreateOnrampOrderInput,
|
|
143
141
|
outputSchema: CreateOnrampOrderOutput,
|
|
144
142
|
}));
|
|
@@ -24,7 +24,7 @@ export interface CreateOnrampSessionInput {
|
|
|
24
24
|
partnerUserRef?: string;
|
|
25
25
|
}
|
|
26
26
|
export const CreateOnrampSessionInput =
|
|
27
|
-
/*@__PURE__*/
|
|
27
|
+
/*@__PURE__*/ Schema.Struct({
|
|
28
28
|
purchaseCurrency: Schema.String,
|
|
29
29
|
destinationNetwork: Schema.String,
|
|
30
30
|
destinationAddress: Schema.String,
|
|
@@ -69,7 +69,7 @@ export interface CreateOnrampSessionOutput {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export const CreateOnrampSessionOutput =
|
|
72
|
-
/*@__PURE__*/
|
|
72
|
+
/*@__PURE__*/ Schema.Struct({
|
|
73
73
|
session: Schema.Struct({
|
|
74
74
|
onrampUrl: Schema.String,
|
|
75
75
|
}),
|
|
@@ -111,7 +111,7 @@ export const CreateOnrampSessionOutput =
|
|
|
111
111
|
* **Returns**: Complete pricing quote and one-click onramp URL. Both `session` and `quote` objects will be included in the response.
|
|
112
112
|
* **Note**: Only one of `paymentAmount` or `purchaseAmount` should be provided, not both. Providing both will result in an error. When `paymentAmount` is provided, the quote shows how much crypto the user will receive for the specified fiat amount (fee-inclusive). When `purchaseAmount` is provided, the quote shows how much fiat the user needs to pay for the specified crypto amount (fee-exclusive).
|
|
113
113
|
*/
|
|
114
|
-
export const createOnrampSession = /*@__PURE__*/
|
|
114
|
+
export const createOnrampSession = /*@__PURE__*/ API.make(() => ({
|
|
115
115
|
inputSchema: CreateOnrampSessionInput,
|
|
116
116
|
outputSchema: CreateOnrampSessionOutput,
|
|
117
117
|
}));
|
|
@@ -8,7 +8,7 @@ export interface CreatePolicyInput {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
rules: unknown[];
|
|
10
10
|
}
|
|
11
|
-
export const CreatePolicyInput = /*@__PURE__*/
|
|
11
|
+
export const CreatePolicyInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
scope: Schema.Literals(["project", "account"]),
|
|
13
13
|
description: Schema.optional(Schema.String),
|
|
14
14
|
rules: Schema.Array(Schema.Unknown),
|
|
@@ -25,7 +25,7 @@ export interface CreatePolicyOutput {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
}
|
|
28
|
-
export const CreatePolicyOutput = /*@__PURE__*/
|
|
28
|
+
export const CreatePolicyOutput = /*@__PURE__*/ Schema.Struct({
|
|
29
29
|
id: Schema.String,
|
|
30
30
|
description: Schema.optional(Schema.String),
|
|
31
31
|
scope: Schema.Literals(["project", "account"]),
|
|
@@ -45,7 +45,7 @@ When included, duplicate requests with the same key will return identical respon
|
|
|
45
45
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
46
46
|
|
|
47
47
|
*/
|
|
48
|
-
export const createPolicy = /*@__PURE__*/
|
|
48
|
+
export const createPolicy = /*@__PURE__*/ API.make(() => ({
|
|
49
49
|
inputSchema: CreatePolicyInput,
|
|
50
50
|
outputSchema: CreatePolicyOutput,
|
|
51
51
|
}));
|
|
@@ -8,7 +8,7 @@ export interface CreateSolanaAccountInput {
|
|
|
8
8
|
accountPolicy?: string;
|
|
9
9
|
}
|
|
10
10
|
export const CreateSolanaAccountInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
name: Schema.optional(Schema.String),
|
|
13
13
|
accountPolicy: Schema.optional(Schema.String),
|
|
14
14
|
}).pipe(
|
|
@@ -24,7 +24,7 @@ export interface CreateSolanaAccountOutput {
|
|
|
24
24
|
updatedAt?: string;
|
|
25
25
|
}
|
|
26
26
|
export const CreateSolanaAccountOutput =
|
|
27
|
-
/*@__PURE__*/
|
|
27
|
+
/*@__PURE__*/ Schema.Struct({
|
|
28
28
|
address: Schema.String,
|
|
29
29
|
name: Schema.optional(Schema.String),
|
|
30
30
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -47,7 +47,7 @@ When included, duplicate requests with the same key will return identical respon
|
|
|
47
47
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
48
48
|
|
|
49
49
|
*/
|
|
50
|
-
export const createSolanaAccount = /*@__PURE__*/
|
|
50
|
+
export const createSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
51
51
|
inputSchema: CreateSolanaAccountInput,
|
|
52
52
|
outputSchema: CreateSolanaAccountOutput,
|
|
53
53
|
}));
|
|
@@ -25,7 +25,7 @@ export interface CreateSpendPermissionInput {
|
|
|
25
25
|
paymasterUrl?: string;
|
|
26
26
|
}
|
|
27
27
|
export const CreateSpendPermissionInput =
|
|
28
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ Schema.Struct({
|
|
29
29
|
address: Schema.String.pipe(T.PathParam()),
|
|
30
30
|
network: Schema.Literals([
|
|
31
31
|
"base",
|
|
@@ -91,7 +91,7 @@ export interface CreateSpendPermissionOutput {
|
|
|
91
91
|
expiresAt?: string;
|
|
92
92
|
}
|
|
93
93
|
export const CreateSpendPermissionOutput =
|
|
94
|
-
/*@__PURE__*/
|
|
94
|
+
/*@__PURE__*/ Schema.Struct({
|
|
95
95
|
network: Schema.Literals([
|
|
96
96
|
"base-sepolia",
|
|
97
97
|
"base",
|
|
@@ -157,9 +157,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
157
157
|
|
|
158
158
|
* @param address - The address of the Smart Account to create the spend permission for.
|
|
159
159
|
*/
|
|
160
|
-
export const createSpendPermission = /*@__PURE__*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
);
|
|
160
|
+
export const createSpendPermission = /*@__PURE__*/ API.make(() => ({
|
|
161
|
+
inputSchema: CreateSpendPermissionInput,
|
|
162
|
+
outputSchema: CreateSpendPermissionOutput,
|
|
163
|
+
}));
|
|
@@ -77,7 +77,7 @@ export interface CreateTransferInput {
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
export const CreateTransferInput = /*@__PURE__*/
|
|
80
|
+
export const CreateTransferInput = /*@__PURE__*/ Schema.Struct({
|
|
81
81
|
source: Schema.Union([
|
|
82
82
|
Schema.Struct({
|
|
83
83
|
accountId: Schema.String,
|
|
@@ -288,7 +288,7 @@ export interface CreateTransferOutput {
|
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
export const CreateTransferOutput = /*@__PURE__*/
|
|
291
|
+
export const CreateTransferOutput = /*@__PURE__*/ Schema.Struct({
|
|
292
292
|
transferId: Schema.optional(Schema.String),
|
|
293
293
|
status: Schema.optional(
|
|
294
294
|
Schema.Literals(["quoted", "processing", "completed", "failed"]),
|
|
@@ -455,7 +455,7 @@ When included, duplicate requests with the same key will return identical respon
|
|
|
455
455
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
456
456
|
|
|
457
457
|
*/
|
|
458
|
-
export const createTransfer = /*@__PURE__*/
|
|
458
|
+
export const createTransfer = /*@__PURE__*/ API.make(() => ({
|
|
459
459
|
inputSchema: CreateTransferInput,
|
|
460
460
|
outputSchema: CreateTransferOutput,
|
|
461
461
|
}));
|
|
@@ -38,7 +38,7 @@ export interface CreateWebhookSubscriptionInput {
|
|
|
38
38
|
labels?: Record<string, string>;
|
|
39
39
|
}
|
|
40
40
|
export const CreateWebhookSubscriptionInput =
|
|
41
|
-
/*@__PURE__*/
|
|
41
|
+
/*@__PURE__*/ Schema.Struct({
|
|
42
42
|
description: Schema.optional(Schema.String),
|
|
43
43
|
eventTypes: Schema.Array(
|
|
44
44
|
Schema.Literals([
|
|
@@ -116,7 +116,7 @@ export interface CreateWebhookSubscriptionOutput {
|
|
|
116
116
|
labels?: Record<string, string>;
|
|
117
117
|
}
|
|
118
118
|
export const CreateWebhookSubscriptionOutput =
|
|
119
|
-
/*@__PURE__*/
|
|
119
|
+
/*@__PURE__*/ Schema.Struct({
|
|
120
120
|
createdAt: Schema.String,
|
|
121
121
|
updatedAt: Schema.optional(Schema.String),
|
|
122
122
|
description: Schema.optional(Schema.String),
|
|
@@ -183,9 +183,7 @@ export const CreateWebhookSubscriptionOutput =
|
|
|
183
183
|
* 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.
|
|
184
184
|
* See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details.
|
|
185
185
|
*/
|
|
186
|
-
export const createWebhookSubscription = /*@__PURE__*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}),
|
|
191
|
-
);
|
|
186
|
+
export const createWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
187
|
+
inputSchema: CreateWebhookSubscriptionInput,
|
|
188
|
+
outputSchema: CreateWebhookSubscriptionOutput,
|
|
189
|
+
}));
|
|
@@ -6,7 +6,7 @@ import * as T from "../traits.ts";
|
|
|
6
6
|
export interface DeletePolicyInput {
|
|
7
7
|
policyId: string;
|
|
8
8
|
}
|
|
9
|
-
export const DeletePolicyInput = /*@__PURE__*/
|
|
9
|
+
export const DeletePolicyInput = /*@__PURE__*/ Schema.Struct({
|
|
10
10
|
policyId: Schema.String.pipe(T.PathParam()),
|
|
11
11
|
}).pipe(
|
|
12
12
|
T.Http({ method: "DELETE", path: "/v2/policy-engine/policies/{policyId}" }),
|
|
@@ -15,7 +15,7 @@ export const DeletePolicyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
15
|
// Output Schema
|
|
16
16
|
export type DeletePolicyOutput = void;
|
|
17
17
|
export const DeletePolicyOutput =
|
|
18
|
-
/*@__PURE__*/
|
|
18
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeletePolicyOutput>;
|
|
19
19
|
|
|
20
20
|
// The operation
|
|
21
21
|
/**
|
|
@@ -29,7 +29,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
29
29
|
|
|
30
30
|
* @param policyId - The ID of the policy to delete.
|
|
31
31
|
*/
|
|
32
|
-
export const deletePolicy = /*@__PURE__*/
|
|
32
|
+
export const deletePolicy = /*@__PURE__*/ API.make(() => ({
|
|
33
33
|
inputSchema: DeletePolicyInput,
|
|
34
34
|
outputSchema: DeletePolicyOutput,
|
|
35
35
|
}));
|
|
@@ -7,7 +7,7 @@ export interface DeleteWebhookSubscriptionInput {
|
|
|
7
7
|
subscriptionId: string;
|
|
8
8
|
}
|
|
9
9
|
export const DeleteWebhookSubscriptionInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -19,7 +19,7 @@ export const DeleteWebhookSubscriptionInput =
|
|
|
19
19
|
// Output Schema
|
|
20
20
|
export type DeleteWebhookSubscriptionOutput = void;
|
|
21
21
|
export const DeleteWebhookSubscriptionOutput =
|
|
22
|
-
/*@__PURE__*/
|
|
22
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteWebhookSubscriptionOutput>;
|
|
23
23
|
|
|
24
24
|
// The operation
|
|
25
25
|
/**
|
|
@@ -34,9 +34,7 @@ export const DeleteWebhookSubscriptionOutput =
|
|
|
34
34
|
*
|
|
35
35
|
* @param subscriptionId - Unique identifier for the webhook subscription.
|
|
36
36
|
*/
|
|
37
|
-
export const deleteWebhookSubscription = /*@__PURE__*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
);
|
|
37
|
+
export const deleteWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
38
|
+
inputSchema: DeleteWebhookSubscriptionInput,
|
|
39
|
+
outputSchema: DeleteWebhookSubscriptionOutput,
|
|
40
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface ExecuteFundTransferInput {
|
|
|
7
7
|
transferId: string;
|
|
8
8
|
}
|
|
9
9
|
export const ExecuteFundTransferInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
transferId: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "POST", path: "/v2/transfers/{transferId}/execute" }),
|
|
@@ -108,7 +108,7 @@ export interface ExecuteFundTransferOutput {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
export const ExecuteFundTransferOutput =
|
|
111
|
-
/*@__PURE__*/
|
|
111
|
+
/*@__PURE__*/ Schema.Struct({
|
|
112
112
|
transferId: Schema.optional(Schema.String),
|
|
113
113
|
status: Schema.optional(
|
|
114
114
|
Schema.Literals(["quoted", "processing", "completed", "failed"]),
|
|
@@ -276,7 +276,7 @@ When included, duplicate requests with the same key will return identical respon
|
|
|
276
276
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
277
277
|
|
|
278
278
|
*/
|
|
279
|
-
export const executeFundTransfer = /*@__PURE__*/
|
|
279
|
+
export const executeFundTransfer = /*@__PURE__*/ API.make(() => ({
|
|
280
280
|
inputSchema: ExecuteFundTransferInput,
|
|
281
281
|
outputSchema: ExecuteFundTransferOutput,
|
|
282
282
|
}));
|
|
@@ -7,7 +7,7 @@ export interface ExportEvmAccountInput {
|
|
|
7
7
|
address: string;
|
|
8
8
|
exportEncryptionKey: string;
|
|
9
9
|
}
|
|
10
|
-
export const ExportEvmAccountInput = /*@__PURE__*/
|
|
10
|
+
export const ExportEvmAccountInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
address: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
exportEncryptionKey: Schema.String,
|
|
13
13
|
}).pipe(
|
|
@@ -18,11 +18,9 @@ export const ExportEvmAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
18
18
|
export interface ExportEvmAccountOutput {
|
|
19
19
|
encryptedPrivateKey: string;
|
|
20
20
|
}
|
|
21
|
-
export const ExportEvmAccountOutput = /*@__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
) as unknown as Schema.Codec<ExportEvmAccountOutput>;
|
|
21
|
+
export const ExportEvmAccountOutput = /*@__PURE__*/ Schema.Struct({
|
|
22
|
+
encryptedPrivateKey: Schema.String,
|
|
23
|
+
}) as unknown as Schema.Codec<ExportEvmAccountOutput>;
|
|
26
24
|
|
|
27
25
|
// The operation
|
|
28
26
|
/**
|
|
@@ -40,7 +38,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
40
38
|
|
|
41
39
|
* @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
|
|
42
40
|
*/
|
|
43
|
-
export const exportEvmAccount = /*@__PURE__*/
|
|
41
|
+
export const exportEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
44
42
|
inputSchema: ExportEvmAccountInput,
|
|
45
43
|
outputSchema: ExportEvmAccountOutput,
|
|
46
44
|
}));
|
|
@@ -8,7 +8,7 @@ export interface ExportEvmAccountByNameInput {
|
|
|
8
8
|
exportEncryptionKey: string;
|
|
9
9
|
}
|
|
10
10
|
export const ExportEvmAccountByNameInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
name: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
exportEncryptionKey: Schema.String,
|
|
14
14
|
}).pipe(
|
|
@@ -20,7 +20,7 @@ export interface ExportEvmAccountByNameOutput {
|
|
|
20
20
|
encryptedPrivateKey: string;
|
|
21
21
|
}
|
|
22
22
|
export const ExportEvmAccountByNameOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Struct({
|
|
24
24
|
encryptedPrivateKey: Schema.String,
|
|
25
25
|
}) as unknown as Schema.Codec<ExportEvmAccountByNameOutput>;
|
|
26
26
|
|
|
@@ -40,9 +40,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
40
40
|
|
|
41
41
|
* @param name - The name of the EVM account.
|
|
42
42
|
*/
|
|
43
|
-
export const exportEvmAccountByName = /*@__PURE__*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
);
|
|
43
|
+
export const exportEvmAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
44
|
+
inputSchema: ExportEvmAccountByNameInput,
|
|
45
|
+
outputSchema: ExportEvmAccountByNameOutput,
|
|
46
|
+
}));
|
|
@@ -8,7 +8,7 @@ export interface ExportSolanaAccountInput {
|
|
|
8
8
|
exportEncryptionKey: string;
|
|
9
9
|
}
|
|
10
10
|
export const ExportSolanaAccountInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
address: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
exportEncryptionKey: Schema.String,
|
|
14
14
|
}).pipe(
|
|
@@ -20,7 +20,7 @@ export interface ExportSolanaAccountOutput {
|
|
|
20
20
|
encryptedPrivateKey: string;
|
|
21
21
|
}
|
|
22
22
|
export const ExportSolanaAccountOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Struct({
|
|
24
24
|
encryptedPrivateKey: Schema.String,
|
|
25
25
|
}) as unknown as Schema.Codec<ExportSolanaAccountOutput>;
|
|
26
26
|
|
|
@@ -40,7 +40,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
40
40
|
|
|
41
41
|
* @param address - The base58 encoded address of the Solana account.
|
|
42
42
|
*/
|
|
43
|
-
export const exportSolanaAccount = /*@__PURE__*/
|
|
43
|
+
export const exportSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
44
44
|
inputSchema: ExportSolanaAccountInput,
|
|
45
45
|
outputSchema: ExportSolanaAccountOutput,
|
|
46
46
|
}));
|
|
@@ -8,7 +8,7 @@ export interface ExportSolanaAccountByNameInput {
|
|
|
8
8
|
exportEncryptionKey: string;
|
|
9
9
|
}
|
|
10
10
|
export const ExportSolanaAccountByNameInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
name: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
exportEncryptionKey: Schema.String,
|
|
14
14
|
}).pipe(
|
|
@@ -23,7 +23,7 @@ export interface ExportSolanaAccountByNameOutput {
|
|
|
23
23
|
encryptedPrivateKey: string;
|
|
24
24
|
}
|
|
25
25
|
export const ExportSolanaAccountByNameOutput =
|
|
26
|
-
/*@__PURE__*/
|
|
26
|
+
/*@__PURE__*/ Schema.Struct({
|
|
27
27
|
encryptedPrivateKey: Schema.String,
|
|
28
28
|
}) as unknown as Schema.Codec<ExportSolanaAccountByNameOutput>;
|
|
29
29
|
|
|
@@ -43,9 +43,7 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
|
|
|
43
43
|
|
|
44
44
|
* @param name - The name of the Solana account.
|
|
45
45
|
*/
|
|
46
|
-
export const exportSolanaAccountByName = /*@__PURE__*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
);
|
|
46
|
+
export const exportSolanaAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
47
|
+
inputSchema: ExportSolanaAccountByNameInput,
|
|
48
|
+
outputSchema: ExportSolanaAccountByNameOutput,
|
|
49
|
+
}));
|
|
@@ -7,12 +7,10 @@ export interface GetBalanceByAssetInput {
|
|
|
7
7
|
accountId: string;
|
|
8
8
|
asset: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetBalanceByAssetInput = /*@__PURE__*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
).pipe(
|
|
10
|
+
export const GetBalanceByAssetInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
+
accountId: Schema.String.pipe(T.PathParam()),
|
|
12
|
+
asset: Schema.String.pipe(T.PathParam()),
|
|
13
|
+
}).pipe(
|
|
16
14
|
T.Http({ method: "GET", path: "/v2/accounts/{accountId}/balances/{asset}" }),
|
|
17
15
|
) as unknown as Schema.Codec<GetBalanceByAssetInput>;
|
|
18
16
|
|
|
@@ -27,7 +25,7 @@ export interface GetBalanceByAssetOutput {
|
|
|
27
25
|
amount: Record<string, { available: string; total: string }>;
|
|
28
26
|
}
|
|
29
27
|
export const GetBalanceByAssetOutput =
|
|
30
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ Schema.Struct({
|
|
31
29
|
asset: Schema.Struct({
|
|
32
30
|
symbol: Schema.String,
|
|
33
31
|
type: Schema.Literals(["fiat", "crypto"]),
|
|
@@ -52,7 +50,7 @@ export const GetBalanceByAssetOutput =
|
|
|
52
50
|
* @param accountId - The unique identifier of the account.
|
|
53
51
|
* @param asset - The symbol of the asset.
|
|
54
52
|
*/
|
|
55
|
-
export const getBalanceByAsset = /*@__PURE__*/
|
|
53
|
+
export const getBalanceByAsset = /*@__PURE__*/ API.make(() => ({
|
|
56
54
|
inputSchema: GetBalanceByAssetInput,
|
|
57
55
|
outputSchema: GetBalanceByAssetOutput,
|
|
58
56
|
}));
|
|
@@ -8,7 +8,7 @@ export interface GetDelegationForEndUserInput {
|
|
|
8
8
|
projectID?: string;
|
|
9
9
|
}
|
|
10
10
|
export const GetDelegationForEndUserInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
userId: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
projectID: Schema.optional(Schema.String),
|
|
14
14
|
}).pipe(
|
|
@@ -23,7 +23,7 @@ export interface GetDelegationForEndUserOutput {
|
|
|
23
23
|
expiresAt: string;
|
|
24
24
|
}
|
|
25
25
|
export const GetDelegationForEndUserOutput =
|
|
26
|
-
/*@__PURE__*/
|
|
26
|
+
/*@__PURE__*/ Schema.Struct({
|
|
27
27
|
expiresAt: Schema.String,
|
|
28
28
|
}) as unknown as Schema.Codec<GetDelegationForEndUserOutput>;
|
|
29
29
|
|
|
@@ -36,9 +36,7 @@ export const GetDelegationForEndUserOutput =
|
|
|
36
36
|
* @param userId - The ID of the end user.
|
|
37
37
|
* @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
38
38
|
*/
|
|
39
|
-
export const getDelegationForEndUser = /*@__PURE__*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
);
|
|
39
|
+
export const getDelegationForEndUser = /*@__PURE__*/ API.make(() => ({
|
|
40
|
+
inputSchema: GetDelegationForEndUserInput,
|
|
41
|
+
outputSchema: GetDelegationForEndUserOutput,
|
|
42
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface GetDelegationForEndUserAccountInput {
|
|
|
9
9
|
projectID?: string;
|
|
10
10
|
}
|
|
11
11
|
export const GetDelegationForEndUserAccountInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
userId: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
address: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
projectID: Schema.optional(Schema.String),
|
|
@@ -25,7 +25,7 @@ export interface GetDelegationForEndUserAccountOutput {
|
|
|
25
25
|
expiresAt: string;
|
|
26
26
|
}
|
|
27
27
|
export const GetDelegationForEndUserAccountOutput =
|
|
28
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ Schema.Struct({
|
|
29
29
|
expiresAt: Schema.String,
|
|
30
30
|
}) as unknown as Schema.Codec<GetDelegationForEndUserAccountOutput>;
|
|
31
31
|
|
|
@@ -41,7 +41,7 @@ export const GetDelegationForEndUserAccountOutput =
|
|
|
41
41
|
* @param projectID - The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
|
|
42
42
|
*/
|
|
43
43
|
export const getDelegationForEndUserAccount =
|
|
44
|
-
/*@__PURE__*/
|
|
44
|
+
/*@__PURE__*/ API.make(() => ({
|
|
45
45
|
inputSchema: GetDelegationForEndUserAccountInput,
|
|
46
46
|
outputSchema: GetDelegationForEndUserAccountOutput,
|
|
47
47
|
}));
|
|
@@ -7,7 +7,7 @@ export interface GetDepositDestinationByIdInput {
|
|
|
7
7
|
depositDestinationId: string;
|
|
8
8
|
}
|
|
9
9
|
export const GetDepositDestinationByIdInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
depositDestinationId: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -42,7 +42,7 @@ export interface GetDepositDestinationByIdOutput {
|
|
|
42
42
|
updatedAt: string;
|
|
43
43
|
}
|
|
44
44
|
export const GetDepositDestinationByIdOutput =
|
|
45
|
-
/*@__PURE__*/
|
|
45
|
+
/*@__PURE__*/ Schema.Struct({
|
|
46
46
|
depositDestinationId: Schema.String,
|
|
47
47
|
accountId: Schema.String,
|
|
48
48
|
type: Schema.Literals(["crypto"]),
|
|
@@ -81,9 +81,7 @@ export const GetDepositDestinationByIdOutput =
|
|
|
81
81
|
*
|
|
82
82
|
* @param depositDestinationId - The ID of the deposit address to retrieve.
|
|
83
83
|
*/
|
|
84
|
-
export const getDepositDestinationById = /*@__PURE__*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
);
|
|
84
|
+
export const getDepositDestinationById = /*@__PURE__*/ API.make(() => ({
|
|
85
|
+
inputSchema: GetDepositDestinationByIdInput,
|
|
86
|
+
outputSchema: GetDepositDestinationByIdOutput,
|
|
87
|
+
}));
|
|
@@ -6,7 +6,7 @@ import * as T from "../traits.ts";
|
|
|
6
6
|
export interface GetEndUserInput {
|
|
7
7
|
userId: string;
|
|
8
8
|
}
|
|
9
|
-
export const GetEndUserInput = /*@__PURE__*/
|
|
9
|
+
export const GetEndUserInput = /*@__PURE__*/ Schema.Struct({
|
|
10
10
|
userId: Schema.String.pipe(T.PathParam()),
|
|
11
11
|
}).pipe(
|
|
12
12
|
T.Http({ method: "GET", path: "/v2/end-users/{userId}" }),
|
|
@@ -54,7 +54,7 @@ export interface GetEndUserOutput {
|
|
|
54
54
|
solanaAccountObjects: { address: string; createdAt: string }[];
|
|
55
55
|
createdAt: string;
|
|
56
56
|
}
|
|
57
|
-
export const GetEndUserOutput = /*@__PURE__*/
|
|
57
|
+
export const GetEndUserOutput = /*@__PURE__*/ Schema.Struct({
|
|
58
58
|
userId: Schema.String,
|
|
59
59
|
authenticationMethods: Schema.Array(
|
|
60
60
|
Schema.Union([
|
|
@@ -142,7 +142,7 @@ export const GetEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
142
142
|
*
|
|
143
143
|
* @param userId - The ID of the end user to get.
|
|
144
144
|
*/
|
|
145
|
-
export const getEndUser = /*@__PURE__*/
|
|
145
|
+
export const getEndUser = /*@__PURE__*/ API.make(() => ({
|
|
146
146
|
inputSchema: GetEndUserInput,
|
|
147
147
|
outputSchema: GetEndUserOutput,
|
|
148
148
|
}));
|
|
@@ -6,7 +6,7 @@ import * as T from "../traits.ts";
|
|
|
6
6
|
export interface GetEvmAccountInput {
|
|
7
7
|
address: string;
|
|
8
8
|
}
|
|
9
|
-
export const GetEvmAccountInput = /*@__PURE__*/
|
|
9
|
+
export const GetEvmAccountInput = /*@__PURE__*/ Schema.Struct({
|
|
10
10
|
address: Schema.String.pipe(T.PathParam()),
|
|
11
11
|
}).pipe(
|
|
12
12
|
T.Http({ method: "GET", path: "/v2/evm/accounts/{address}" }),
|
|
@@ -20,7 +20,7 @@ export interface GetEvmAccountOutput {
|
|
|
20
20
|
createdAt?: string;
|
|
21
21
|
updatedAt?: string;
|
|
22
22
|
}
|
|
23
|
-
export const GetEvmAccountOutput = /*@__PURE__*/
|
|
23
|
+
export const GetEvmAccountOutput = /*@__PURE__*/ Schema.Struct({
|
|
24
24
|
address: Schema.String,
|
|
25
25
|
name: Schema.optional(Schema.String),
|
|
26
26
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -36,7 +36,7 @@ export const GetEvmAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
36
36
|
*
|
|
37
37
|
* @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
|
|
38
38
|
*/
|
|
39
|
-
export const getEvmAccount = /*@__PURE__*/
|
|
39
|
+
export const getEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
40
40
|
inputSchema: GetEvmAccountInput,
|
|
41
41
|
outputSchema: GetEvmAccountOutput,
|
|
42
42
|
}));
|