@distilled.cloud/coinbase 0.27.0 → 0.28.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 +13 -20
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmAccount.js +1 -3
- package/lib/operations/addEndUserEvmAccount.js.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +15 -24
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +1 -3
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +14 -21
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.js +2 -4
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/createDelegationForEndUserAccount.js +44 -0
- package/lib/operations/createDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/createDepositDestination.d.ts +34 -0
- package/lib/operations/createDepositDestination.d.ts.map +1 -0
- package/lib/operations/createDepositDestination.js +50 -0
- package/lib/operations/createDepositDestination.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +99 -84
- package/lib/operations/createEndUser.d.ts.map +1 -1
- package/lib/operations/createEndUser.js +71 -5
- package/lib/operations/createEndUser.js.map +1 -1
- package/lib/operations/createEvmAccount.d.ts +15 -24
- package/lib/operations/createEvmAccount.d.ts.map +1 -1
- package/lib/operations/createEvmAccount.js +1 -3
- package/lib/operations/createEvmAccount.js.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +11 -17
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -2
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +14 -23
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -2
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -1
- package/lib/operations/createEvmSmartAccount.d.ts +16 -26
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/createEvmSmartAccount.js +1 -3
- package/lib/operations/createEvmSmartAccount.js.map +1 -1
- package/lib/operations/createEvmSwapQuote.d.ts +69 -24
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -1
- package/lib/operations/createEvmSwapQuote.js +59 -4
- package/lib/operations/createEvmSwapQuote.js.map +1 -1
- package/lib/operations/createFoundationAccount.d.ts +26 -0
- package/lib/operations/createFoundationAccount.d.ts.map +1 -0
- package/lib/operations/createFoundationAccount.js +32 -0
- package/lib/operations/createFoundationAccount.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +51 -93
- package/lib/operations/createOnrampOrder.d.ts.map +1 -1
- package/lib/operations/createOnrampOrder.js +2 -2
- package/lib/operations/createOnrampOrder.js.map +1 -1
- package/lib/operations/createOnrampSession.d.ts +36 -67
- package/lib/operations/createOnrampSession.d.ts.map +1 -1
- package/lib/operations/createOnrampSession.js +0 -2
- package/lib/operations/createOnrampSession.js.map +1 -1
- package/lib/operations/createPolicy.d.ts +17 -28
- package/lib/operations/createPolicy.d.ts.map +1 -1
- package/lib/operations/createPolicy.js +1 -3
- package/lib/operations/createPolicy.js.map +1 -1
- package/lib/operations/createSolanaAccount.d.ts +15 -24
- package/lib/operations/createSolanaAccount.d.ts.map +1 -1
- package/lib/operations/createSolanaAccount.js +1 -3
- package/lib/operations/createSolanaAccount.js.map +1 -1
- package/lib/operations/createSpendPermission.d.ts +40 -72
- package/lib/operations/createSpendPermission.d.ts.map +1 -1
- package/lib/operations/createSpendPermission.js +2 -3
- package/lib/operations/createSpendPermission.js.map +1 -1
- package/lib/operations/createTransfer.d.ts +178 -0
- package/lib/operations/createTransfer.d.ts.map +1 -0
- package/lib/operations/createTransfer.js +244 -0
- package/lib/operations/createTransfer.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +46 -105
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/createWebhookSubscription.js +68 -45
- package/lib/operations/createWebhookSubscription.js.map +1 -1
- package/lib/operations/deletePolicy.d.ts +8 -10
- package/lib/operations/deletePolicy.d.ts.map +1 -1
- package/lib/operations/deletePolicy.js +3 -4
- package/lib/operations/deletePolicy.js.map +1 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +7 -9
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -2
- package/lib/operations/deleteWebhookSubscription.js.map +1 -1
- package/lib/operations/executeFundTransfer.d.ts +103 -0
- package/lib/operations/executeFundTransfer.d.ts.map +1 -0
- package/lib/operations/executeFundTransfer.js +152 -0
- package/lib/operations/executeFundTransfer.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +11 -16
- package/lib/operations/exportEvmAccount.d.ts.map +1 -1
- package/lib/operations/exportEvmAccount.js +1 -3
- package/lib/operations/exportEvmAccount.js.map +1 -1
- package/lib/operations/exportEvmAccountByName.d.ts +11 -16
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/exportEvmAccountByName.js +1 -3
- package/lib/operations/exportEvmAccountByName.js.map +1 -1
- package/lib/operations/exportSolanaAccount.d.ts +11 -16
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccount.js +1 -3
- package/lib/operations/exportSolanaAccount.js.map +1 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +11 -16
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccountByName.js +1 -3
- package/lib/operations/exportSolanaAccountByName.js.map +1 -1
- package/lib/operations/getBalanceByAsset.d.ts +29 -0
- package/lib/operations/getBalanceByAsset.d.ts.map +1 -0
- package/lib/operations/getBalanceByAsset.js +34 -0
- package/lib/operations/getBalanceByAsset.js.map +1 -0
- package/lib/operations/getDelegationForEndUser.d.ts +10 -15
- package/lib/operations/getDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/getDelegationForEndUser.js +0 -2
- package/lib/operations/getDelegationForEndUser.js.map +1 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +23 -0
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/getDelegationForEndUserAccount.js +33 -0
- package/lib/operations/getDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/getDepositDestinationById.d.ts +32 -0
- package/lib/operations/getDepositDestinationById.d.ts.map +1 -0
- package/lib/operations/getDepositDestinationById.js +52 -0
- package/lib/operations/getDepositDestinationById.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +64 -68
- package/lib/operations/getEndUser.d.ts.map +1 -1
- package/lib/operations/getEndUser.js +36 -4
- package/lib/operations/getEndUser.js.map +1 -1
- package/lib/operations/getEvmAccount.d.ts +14 -22
- package/lib/operations/getEvmAccount.d.ts.map +1 -1
- package/lib/operations/getEvmAccount.js +1 -3
- package/lib/operations/getEvmAccount.js.map +1 -1
- package/lib/operations/getEvmAccountByName.d.ts +14 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmAccountByName.js +1 -3
- package/lib/operations/getEvmAccountByName.js.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +14 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +1 -3
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -1
- package/lib/operations/getEvmSmartAccount.d.ts +15 -24
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccount.js +1 -3
- package/lib/operations/getEvmSmartAccount.js.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +15 -24
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.js +1 -3
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -1
- package/lib/operations/getEvmSwapPrice.d.ts +49 -24
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -1
- package/lib/operations/getEvmSwapPrice.js +39 -4
- package/lib/operations/getEvmSwapPrice.js.map +1 -1
- package/lib/operations/getFoundationAccountById.d.ts +23 -0
- package/lib/operations/getFoundationAccountById.d.ts.map +1 -0
- package/lib/operations/getFoundationAccountById.js +29 -0
- package/lib/operations/getFoundationAccountById.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +30 -55
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -1
- package/lib/operations/getOnrampOrderById.js +0 -2
- package/lib/operations/getOnrampOrderById.js.map +1 -1
- package/lib/operations/getOnrampUserLimits.d.ts +16 -27
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -1
- package/lib/operations/getOnrampUserLimits.js +0 -2
- package/lib/operations/getOnrampUserLimits.js.map +1 -1
- package/lib/operations/getPaymentMethod.d.ts +53 -0
- package/lib/operations/getPaymentMethod.d.ts.map +1 -0
- package/lib/operations/getPaymentMethod.js +61 -0
- package/lib/operations/getPaymentMethod.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +15 -24
- package/lib/operations/getPolicyById.d.ts.map +1 -1
- package/lib/operations/getPolicyById.js +1 -3
- package/lib/operations/getPolicyById.js.map +1 -1
- package/lib/operations/getSQLGrammar.d.ts +6 -5
- package/lib/operations/getSQLGrammar.d.ts.map +1 -1
- package/lib/operations/getSQLGrammar.js +2 -3
- package/lib/operations/getSQLGrammar.js.map +1 -1
- package/lib/operations/getSQLSchema.d.ts +21 -36
- package/lib/operations/getSQLSchema.d.ts.map +1 -1
- package/lib/operations/getSQLSchema.js +2 -4
- package/lib/operations/getSQLSchema.js.map +1 -1
- package/lib/operations/getSolanaAccount.d.ts +14 -22
- package/lib/operations/getSolanaAccount.d.ts.map +1 -1
- package/lib/operations/getSolanaAccount.js +1 -3
- package/lib/operations/getSolanaAccount.js.map +1 -1
- package/lib/operations/getSolanaAccountByName.d.ts +14 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/getSolanaAccountByName.js +1 -3
- package/lib/operations/getSolanaAccountByName.js.map +1 -1
- package/lib/operations/getTransferById.d.ts +99 -0
- package/lib/operations/getTransferById.d.ts.map +1 -0
- package/lib/operations/getTransferById.js +146 -0
- package/lib/operations/getTransferById.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +31 -54
- package/lib/operations/getUserOperation.d.ts.map +1 -1
- package/lib/operations/getUserOperation.js +2 -3
- package/lib/operations/getUserOperation.js.map +1 -1
- package/lib/operations/getWebhookSubscription.d.ts +25 -46
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/getWebhookSubscription.js +30 -7
- package/lib/operations/getWebhookSubscription.js.map +1 -1
- package/lib/operations/importEndUser.d.ts +94 -74
- package/lib/operations/importEndUser.d.ts.map +1 -1
- package/lib/operations/importEndUser.js +71 -5
- package/lib/operations/importEndUser.js.map +1 -1
- package/lib/operations/importEvmAccount.d.ts +16 -26
- package/lib/operations/importEvmAccount.d.ts.map +1 -1
- package/lib/operations/importEvmAccount.js +1 -3
- package/lib/operations/importEvmAccount.js.map +1 -1
- package/lib/operations/importSolanaAccount.d.ts +15 -24
- package/lib/operations/importSolanaAccount.d.ts.map +1 -1
- package/lib/operations/importSolanaAccount.js +1 -3
- package/lib/operations/importSolanaAccount.js.map +1 -1
- package/lib/operations/index.d.ts +40 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +40 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/initiateOnrampVerification.d.ts +24 -0
- package/lib/operations/initiateOnrampVerification.d.ts.map +1 -0
- package/lib/operations/initiateOnrampVerification.js +30 -0
- package/lib/operations/initiateOnrampVerification.js.map +1 -0
- package/lib/operations/listBalances.d.ts +34 -0
- package/lib/operations/listBalances.d.ts.map +1 -0
- package/lib/operations/listBalances.js +38 -0
- package/lib/operations/listBalances.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +24 -43
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -1
- package/lib/operations/listDataTokenBalances.js +0 -2
- package/lib/operations/listDataTokenBalances.js.map +1 -1
- package/lib/operations/listDepositDestinations.d.ts +45 -0
- package/lib/operations/listDepositDestinations.d.ts.map +1 -0
- package/lib/operations/listDepositDestinations.js +62 -0
- package/lib/operations/listDepositDestinations.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +68 -77
- package/lib/operations/listEndUsers.d.ts.map +1 -1
- package/lib/operations/listEndUsers.js +47 -3
- package/lib/operations/listEndUsers.js.map +1 -1
- package/lib/operations/listEvmAccounts.d.ts +17 -29
- package/lib/operations/listEvmAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmAccounts.js +0 -2
- package/lib/operations/listEvmAccounts.js.map +1 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +18 -31
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -2
- package/lib/operations/listEvmSmartAccounts.js.map +1 -1
- package/lib/operations/listEvmTokenBalances.d.ts +24 -43
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -1
- package/lib/operations/listEvmTokenBalances.js +0 -2
- package/lib/operations/listEvmTokenBalances.js.map +1 -1
- package/lib/operations/listFoundationAccounts.d.ts +30 -0
- package/lib/operations/listFoundationAccounts.d.ts.map +1 -0
- package/lib/operations/listFoundationAccounts.js +36 -0
- package/lib/operations/listFoundationAccounts.js.map +1 -0
- package/lib/operations/listPaymentMethods.d.ts +63 -0
- package/lib/operations/listPaymentMethods.d.ts.map +1 -0
- package/lib/operations/listPaymentMethods.js +73 -0
- package/lib/operations/listPaymentMethods.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +19 -33
- package/lib/operations/listPolicies.d.ts.map +1 -1
- package/lib/operations/listPolicies.js +0 -2
- package/lib/operations/listPolicies.js.map +1 -1
- package/lib/operations/listSolanaAccounts.d.ts +18 -30
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -1
- package/lib/operations/listSolanaAccounts.js +1 -3
- package/lib/operations/listSolanaAccounts.js.map +1 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +23 -41
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -2
- package/lib/operations/listSolanaTokenBalances.js.map +1 -1
- package/lib/operations/listSpendPermissions.d.ts +29 -53
- package/lib/operations/listSpendPermissions.d.ts.map +1 -1
- package/lib/operations/listSpendPermissions.js +0 -2
- package/lib/operations/listSpendPermissions.js.map +1 -1
- package/lib/operations/listTokensForAccount.d.ts +12 -19
- package/lib/operations/listTokensForAccount.d.ts.map +1 -1
- package/lib/operations/listTokensForAccount.js +0 -2
- package/lib/operations/listTokensForAccount.js.map +1 -1
- package/lib/operations/listTransfers.d.ts +153 -0
- package/lib/operations/listTransfers.d.ts.map +1 -0
- package/lib/operations/listTransfers.js +205 -0
- package/lib/operations/listTransfers.js.map +1 -0
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +26 -47
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -2
- package/lib/operations/listWebhookSubscriptionEvents.js.map +1 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +28 -53
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptions.js +29 -6
- package/lib/operations/listWebhookSubscriptions.js.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +69 -0
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryMerchant.js +92 -0
- package/lib/operations/listX402DiscoveryMerchant.js.map +1 -0
- package/lib/operations/listX402DiscoveryResources.d.ts +67 -0
- package/lib/operations/listX402DiscoveryResources.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryResources.js +90 -0
- package/lib/operations/listX402DiscoveryResources.js.map +1 -0
- package/lib/operations/lookupEndUser.d.ts +93 -0
- package/lib/operations/lookupEndUser.d.ts.map +1 -0
- package/lib/operations/lookupEndUser.js +116 -0
- package/lib/operations/lookupEndUser.js.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts +26 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.js +32 -0
- package/lib/operations/postX402DiscoveryMcp.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +39 -68
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareAndSendUserOperation.js +3 -3
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -1
- package/lib/operations/prepareUserOperation.d.ts +40 -70
- package/lib/operations/prepareUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareUserOperation.js +3 -3
- package/lib/operations/prepareUserOperation.js.map +1 -1
- package/lib/operations/requestEvmFaucet.d.ts +11 -17
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -1
- package/lib/operations/requestEvmFaucet.js +0 -2
- package/lib/operations/requestEvmFaucet.js.map +1 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +29 -0
- package/lib/operations/requestLimitsUpgrade.d.ts.map +1 -0
- package/lib/operations/requestLimitsUpgrade.js +35 -0
- package/lib/operations/requestLimitsUpgrade.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +10 -15
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -1
- package/lib/operations/requestSolanaFaucet.js +0 -2
- package/lib/operations/requestSolanaFaucet.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +10 -11
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.js +2 -2
- package/lib/operations/revokeDelegationForEndUser.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js +44 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +33 -58
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -1
- package/lib/operations/revokeSpendPermission.js +2 -3
- package/lib/operations/revokeSpendPermission.js.map +1 -1
- package/lib/operations/runSQLQuery.d.ts +30 -53
- package/lib/operations/runSQLQuery.d.ts.map +1 -1
- package/lib/operations/runSQLQuery.js +6 -10
- package/lib/operations/runSQLQuery.js.map +1 -1
- package/lib/operations/searchX402Resources.d.ts +83 -0
- package/lib/operations/searchX402Resources.d.ts.map +1 -0
- package/lib/operations/searchX402Resources.js +106 -0
- package/lib/operations/searchX402Resources.js.map +1 -0
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +20 -33
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +1 -2
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendEvmTransaction.d.ts +12 -18
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -1
- package/lib/operations/sendEvmTransaction.js +4 -3
- package/lib/operations/sendEvmTransaction.js.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +15 -24
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +18 -31
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -2
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaTransaction.d.ts +12 -18
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransaction.js +1 -3
- package/lib/operations/sendSolanaTransaction.js.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +16 -26
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendUserOperation.d.ts +32 -56
- package/lib/operations/sendUserOperation.d.ts.map +1 -1
- package/lib/operations/sendUserOperation.js +2 -3
- package/lib/operations/sendUserOperation.js.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +44 -78
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +3 -3
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -1
- package/lib/operations/settleX402Payment.d.ts +239 -30
- package/lib/operations/settleX402Payment.d.ts.map +1 -1
- package/lib/operations/settleX402Payment.js +280 -5
- package/lib/operations/settleX402Payment.js.map +1 -1
- package/lib/operations/signEvmHash.d.ts +11 -16
- package/lib/operations/signEvmHash.d.ts.map +1 -1
- package/lib/operations/signEvmHash.js +1 -3
- package/lib/operations/signEvmHash.js.map +1 -1
- package/lib/operations/signEvmMessage.d.ts +11 -16
- package/lib/operations/signEvmMessage.d.ts.map +1 -1
- package/lib/operations/signEvmMessage.js +1 -3
- package/lib/operations/signEvmMessage.js.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTransaction.d.ts +11 -16
- package/lib/operations/signEvmTransaction.d.ts.map +1 -1
- package/lib/operations/signEvmTransaction.js +1 -3
- package/lib/operations/signEvmTransaction.js.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTypedData.d.ts +19 -33
- package/lib/operations/signEvmTypedData.d.ts.map +1 -1
- package/lib/operations/signEvmTypedData.js +0 -2
- package/lib/operations/signEvmTypedData.js.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +25 -44
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaMessage.d.ts +11 -16
- package/lib/operations/signSolanaMessage.d.ts.map +1 -1
- package/lib/operations/signSolanaMessage.js +1 -3
- package/lib/operations/signSolanaMessage.js.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaTransaction.d.ts +11 -16
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/signSolanaTransaction.js +1 -3
- package/lib/operations/signSolanaTransaction.js.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/submitDepositTravelRule.d.ts +52 -0
- package/lib/operations/submitDepositTravelRule.d.ts.map +1 -0
- package/lib/operations/submitDepositTravelRule.js +58 -0
- package/lib/operations/submitDepositTravelRule.js.map +1 -0
- package/lib/operations/submitOnrampVerification.d.ts +26 -0
- package/lib/operations/submitOnrampVerification.d.ts.map +1 -0
- package/lib/operations/submitOnrampVerification.js +35 -0
- package/lib/operations/submitOnrampVerification.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +15 -27
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.js +4 -4
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -1
- package/lib/operations/updateEvmAccount.d.ts +16 -26
- package/lib/operations/updateEvmAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmAccount.js +1 -3
- package/lib/operations/updateEvmAccount.js.map +1 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +16 -26
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmSmartAccount.js +1 -3
- package/lib/operations/updateEvmSmartAccount.js.map +1 -1
- package/lib/operations/updatePolicy.d.ts +17 -28
- package/lib/operations/updatePolicy.d.ts.map +1 -1
- package/lib/operations/updatePolicy.js +1 -3
- package/lib/operations/updatePolicy.js.map +1 -1
- package/lib/operations/updateSolanaAccount.d.ts +16 -26
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -1
- package/lib/operations/updateSolanaAccount.js +1 -3
- package/lib/operations/updateSolanaAccount.js.map +1 -1
- package/lib/operations/updateWebhookSubscription.d.ts +33 -69
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/updateWebhookSubscription.js +54 -7
- package/lib/operations/updateWebhookSubscription.js.map +1 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +64 -67
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -1
- package/lib/operations/validateEndUserAccessToken.js +36 -3
- package/lib/operations/validateEndUserAccessToken.js.map +1 -1
- package/lib/operations/validateX402Resource.d.ts +64 -0
- package/lib/operations/validateX402Resource.d.ts.map +1 -0
- package/lib/operations/validateX402Resource.js +92 -0
- package/lib/operations/validateX402Resource.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +236 -24
- package/lib/operations/verifyX402Payment.d.ts.map +1 -1
- package/lib/operations/verifyX402Payment.js +266 -5
- package/lib/operations/verifyX402Payment.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addEndUserEvmAccount.ts +11 -5
- package/src/operations/addEndUserEvmSmartAccount.ts +14 -7
- package/src/operations/addEndUserSolanaAccount.ts +12 -8
- package/src/operations/createDelegationForEndUserAccount.ts +60 -0
- package/src/operations/createDepositDestination.ts +85 -0
- package/src/operations/createEndUser.ts +150 -7
- package/src/operations/createEvmAccount.ts +16 -5
- package/src/operations/createEvmEip7702Delegation.ts +17 -6
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +20 -6
- package/src/operations/createEvmSmartAccount.ts +17 -6
- package/src/operations/createEvmSwapQuote.ts +128 -5
- package/src/operations/createFoundationAccount.ts +51 -0
- package/src/operations/createOnrampOrder.ts +59 -4
- package/src/operations/createOnrampSession.ts +41 -4
- package/src/operations/createPolicy.ts +18 -5
- package/src/operations/createSolanaAccount.ts +16 -5
- package/src/operations/createSpendPermission.ts +61 -6
- package/src/operations/createTransfer.ts +461 -0
- package/src/operations/createWebhookSubscription.ts +144 -49
- package/src/operations/deletePolicy.ts +8 -5
- package/src/operations/deleteWebhookSubscription.ts +6 -6
- package/src/operations/executeFundTransfer.ts +282 -0
- package/src/operations/exportEvmAccount.ts +12 -5
- package/src/operations/exportEvmAccountByName.ts +10 -7
- package/src/operations/exportSolanaAccount.ts +10 -5
- package/src/operations/exportSolanaAccountByName.ts +10 -7
- package/src/operations/getBalanceByAsset.ts +58 -0
- package/src/operations/getDelegationForEndUser.ts +9 -6
- package/src/operations/getDelegationForEndUserAccount.ts +47 -0
- package/src/operations/getDepositDestinationById.ts +89 -0
- package/src/operations/getEndUser.ts +86 -6
- package/src/operations/getEvmAccount.ts +15 -5
- package/src/operations/getEvmAccountByName.ts +15 -5
- package/src/operations/getEvmEip7702DelegationOperationById.ts +20 -7
- package/src/operations/getEvmSmartAccount.ts +16 -5
- package/src/operations/getEvmSmartAccountByName.ts +14 -7
- package/src/operations/getEvmSwapPrice.ts +86 -5
- package/src/operations/getFoundationAccountById.ts +48 -0
- package/src/operations/getOnrampOrderById.ts +36 -4
- package/src/operations/getOnrampUserLimits.ts +17 -4
- package/src/operations/getPaymentMethod.ts +106 -0
- package/src/operations/getPolicyById.ts +14 -5
- package/src/operations/getSQLGrammar.ts +7 -4
- package/src/operations/getSQLSchema.ts +25 -6
- package/src/operations/getSolanaAccount.ts +15 -5
- package/src/operations/getSolanaAccountByName.ts +13 -7
- package/src/operations/getTransferById.ts +274 -0
- package/src/operations/getUserOperation.ts +44 -5
- package/src/operations/getWebhookSubscription.ts +73 -11
- package/src/operations/importEndUser.ts +147 -7
- package/src/operations/importEvmAccount.ts +17 -5
- package/src/operations/importSolanaAccount.ts +16 -5
- package/src/operations/index.ts +40 -0
- package/src/operations/initiateOnrampVerification.ts +46 -0
- package/src/operations/listBalances.ts +66 -0
- package/src/operations/listDataTokenBalances.ts +20 -5
- package/src/operations/listDepositDestinations.ts +109 -0
- package/src/operations/listEndUsers.ts +102 -5
- package/src/operations/listEvmAccounts.ts +18 -4
- package/src/operations/listEvmSmartAccounts.ts +19 -4
- package/src/operations/listEvmTokenBalances.ts +20 -4
- package/src/operations/listFoundationAccounts.ts +62 -0
- package/src/operations/listPaymentMethods.ts +130 -0
- package/src/operations/listPolicies.ts +20 -4
- package/src/operations/listSolanaAccounts.ts +19 -5
- package/src/operations/listSolanaTokenBalances.ts +15 -6
- package/src/operations/listSpendPermissions.ts +36 -4
- package/src/operations/listTokensForAccount.ts +11 -4
- package/src/operations/listTransfers.ts +355 -0
- package/src/operations/listWebhookSubscriptionEvents.ts +25 -6
- package/src/operations/listWebhookSubscriptions.ts +78 -10
- package/src/operations/listX402DiscoveryMerchant.ts +174 -0
- package/src/operations/listX402DiscoveryResources.ts +171 -0
- package/src/operations/lookupEndUser.ts +188 -0
- package/src/operations/postX402DiscoveryMcp.ts +56 -0
- package/src/operations/prepareAndSendUserOperation.ts +65 -7
- package/src/operations/prepareUserOperation.ts +66 -5
- package/src/operations/requestEvmFaucet.ts +12 -4
- package/src/operations/requestLimitsUpgrade.ts +56 -0
- package/src/operations/requestSolanaFaucet.ts +11 -4
- package/src/operations/revokeDelegationForEndUser.ts +10 -6
- package/src/operations/revokeDelegationForEndUserAccount.ts +57 -0
- package/src/operations/revokeSpendPermission.ts +54 -6
- package/src/operations/runSQLQuery.ts +49 -12
- package/src/operations/searchX402Resources.ts +194 -0
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +33 -6
- package/src/operations/sendEvmTransaction.ts +25 -5
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +25 -7
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +17 -6
- package/src/operations/sendSolanaTransaction.ts +11 -6
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +15 -7
- package/src/operations/sendUserOperation.ts +45 -5
- package/src/operations/sendUserOperationWithEndUserAccount.ts +70 -7
- package/src/operations/settleX402Payment.ts +742 -7
- package/src/operations/signEvmHash.ts +12 -5
- package/src/operations/signEvmMessage.ts +10 -5
- package/src/operations/signEvmMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTransaction.ts +10 -5
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTypedData.ts +18 -4
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +24 -7
- package/src/operations/signSolanaMessage.ts +10 -5
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signSolanaTransaction.ts +10 -6
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/submitDepositTravelRule.ts +103 -0
- package/src/operations/submitOnrampVerification.ts +51 -0
- package/src/operations/supportedX402PaymentKinds.ts +29 -8
- package/src/operations/updateEvmAccount.ts +17 -5
- package/src/operations/updateEvmSmartAccount.ts +17 -6
- package/src/operations/updatePolicy.ts +16 -5
- package/src/operations/updateSolanaAccount.ts +17 -5
- package/src/operations/updateWebhookSubscription.ts +129 -11
- package/src/operations/validateEndUserAccessToken.ts +84 -7
- package/src/operations/validateX402Resource.ts +172 -0
- package/src/operations/verifyX402Payment.ts +706 -7
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const CreateEvmSmartAccountInput =
|
|
6
5
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
owners: Schema.Array(Schema.String),
|
|
8
7
|
name: Schema.optional(Schema.String),
|
|
9
8
|
}).pipe(T.Http({ method: "POST", path: "/v2/evm/smart-accounts" }));
|
|
10
|
-
// Output Schema
|
|
11
9
|
export const CreateEvmSmartAccountOutput =
|
|
12
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
11
|
address: Schema.String,
|
|
@@ -19,7 +17,7 @@ export const CreateEvmSmartAccountOutput =
|
|
|
19
17
|
});
|
|
20
18
|
// The operation
|
|
21
19
|
/**
|
|
22
|
-
* Create
|
|
20
|
+
* Create Smart Account
|
|
23
21
|
*
|
|
24
22
|
* Creates a new Smart Account.
|
|
25
23
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvmSmartAccount.js","sourceRoot":"","sources":["../../src/operations/createEvmSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OA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AAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CACH,CAAC"}
|
|
@@ -1,19 +1,73 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
|
|
2
|
+
export interface CreateEvmSwapQuoteInput {
|
|
3
|
+
network: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon";
|
|
4
|
+
toToken: string;
|
|
5
|
+
fromToken: string;
|
|
6
|
+
fromAmount: string;
|
|
7
|
+
taker: string;
|
|
8
|
+
signerAddress?: string;
|
|
9
|
+
gasPrice?: string;
|
|
10
|
+
slippageBps?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const CreateEvmSwapQuoteInput: Schema.Codec<CreateEvmSwapQuoteInput>;
|
|
13
|
+
export type CreateEvmSwapQuoteOutput = {
|
|
14
|
+
permit2: {
|
|
15
|
+
hash: string;
|
|
16
|
+
eip712: {
|
|
17
|
+
domain: {
|
|
18
|
+
name?: string;
|
|
19
|
+
version?: string;
|
|
20
|
+
chainId?: number;
|
|
21
|
+
verifyingContract?: string;
|
|
22
|
+
salt?: string;
|
|
23
|
+
};
|
|
24
|
+
types: unknown;
|
|
25
|
+
primaryType: string;
|
|
26
|
+
message: unknown;
|
|
27
|
+
};
|
|
28
|
+
} | null;
|
|
29
|
+
transaction: {
|
|
30
|
+
to: string;
|
|
31
|
+
data: string;
|
|
32
|
+
gas: string;
|
|
33
|
+
gasPrice: string;
|
|
34
|
+
value: string;
|
|
35
|
+
};
|
|
36
|
+
blockNumber: string;
|
|
37
|
+
toAmount: string;
|
|
38
|
+
toToken: string;
|
|
39
|
+
fees: {
|
|
40
|
+
gasFee: {
|
|
41
|
+
amount: string;
|
|
42
|
+
token: string;
|
|
43
|
+
} | null;
|
|
44
|
+
protocolFee: {
|
|
45
|
+
amount: string;
|
|
46
|
+
token: string;
|
|
47
|
+
} | null;
|
|
48
|
+
};
|
|
49
|
+
issues: {
|
|
50
|
+
allowance: {
|
|
51
|
+
currentAllowance: string;
|
|
52
|
+
spender: string;
|
|
53
|
+
} | null;
|
|
54
|
+
balance: {
|
|
55
|
+
token: string;
|
|
56
|
+
currentBalance: string;
|
|
57
|
+
requiredBalance: string;
|
|
58
|
+
} | null;
|
|
59
|
+
simulationIncomplete: boolean;
|
|
60
|
+
};
|
|
61
|
+
liquidityAvailable: true;
|
|
62
|
+
minToAmount: string;
|
|
63
|
+
fromAmount: string;
|
|
64
|
+
fromToken: string;
|
|
65
|
+
} | {
|
|
66
|
+
liquidityAvailable: false;
|
|
67
|
+
};
|
|
68
|
+
export declare const CreateEvmSwapQuoteOutput: Schema.Codec<CreateEvmSwapQuoteOutput>;
|
|
15
69
|
/**
|
|
16
|
-
* Create
|
|
70
|
+
* Create swap quote
|
|
17
71
|
*
|
|
18
72
|
* Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap.
|
|
19
73
|
*
|
|
@@ -22,14 +76,5 @@ When included, duplicate requests with the same key will return identical respon
|
|
|
22
76
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
23
77
|
|
|
24
78
|
*/
|
|
25
|
-
export declare const createEvmSwapQuote: import("@distilled.cloud/core/client").OperationMethod<
|
|
26
|
-
readonly network: "arbitrum" | "base" | "ethereum" | "optimism" | "polygon";
|
|
27
|
-
readonly toToken: string;
|
|
28
|
-
readonly fromToken: string;
|
|
29
|
-
readonly fromAmount: string;
|
|
30
|
-
readonly taker: string;
|
|
31
|
-
readonly signerAddress?: string | undefined;
|
|
32
|
-
readonly gasPrice?: string | undefined;
|
|
33
|
-
readonly slippageBps?: number | undefined;
|
|
34
|
-
}, unknown, never, import("../credentials.ts").Credentials, never>;
|
|
79
|
+
export declare const createEvmSwapQuote: import("@distilled.cloud/core/client").OperationMethod<CreateEvmSwapQuoteInput, CreateEvmSwapQuoteOutput, never, import("../credentials.ts").Credentials, never>;
|
|
35
80
|
//# sourceMappingURL=createEvmSwapQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvmSwapQuote.d.ts","sourceRoot":"","sources":["../../src/operations/createEvmSwapQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"createEvmSwapQuote.d.ts","sourceRoot":"","sources":["../../src/operations/createEvmSwapQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,uBAAuB,EAkBlB,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAGxD,MAAM,MAAM,wBAAwB,GAChC;IACE,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC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oElB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAG1D;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,kKAG5B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const CreateEvmSwapQuoteInput =
|
|
6
5
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
network: Schema.Literals([
|
|
@@ -19,12 +18,68 @@ export const CreateEvmSwapQuoteInput =
|
|
|
19
18
|
gasPrice: Schema.optional(Schema.String),
|
|
20
19
|
slippageBps: Schema.optional(Schema.Number),
|
|
21
20
|
}).pipe(T.Http({ method: "POST", path: "/v2/evm/swaps" }));
|
|
22
|
-
// Output Schema
|
|
23
21
|
export const CreateEvmSwapQuoteOutput =
|
|
24
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
permit2: Schema.NullOr(Schema.Struct({
|
|
25
|
+
hash: Schema.String,
|
|
26
|
+
eip712: Schema.Struct({
|
|
27
|
+
domain: Schema.Struct({
|
|
28
|
+
name: Schema.optional(Schema.String),
|
|
29
|
+
version: Schema.optional(Schema.String),
|
|
30
|
+
chainId: Schema.optional(Schema.Number),
|
|
31
|
+
verifyingContract: Schema.optional(Schema.String),
|
|
32
|
+
salt: Schema.optional(Schema.String),
|
|
33
|
+
}),
|
|
34
|
+
types: Schema.Unknown,
|
|
35
|
+
primaryType: Schema.String,
|
|
36
|
+
message: Schema.Unknown,
|
|
37
|
+
}),
|
|
38
|
+
})),
|
|
39
|
+
transaction: Schema.Struct({
|
|
40
|
+
to: Schema.String,
|
|
41
|
+
data: Schema.String,
|
|
42
|
+
gas: Schema.String,
|
|
43
|
+
gasPrice: Schema.String,
|
|
44
|
+
value: Schema.String,
|
|
45
|
+
}),
|
|
46
|
+
blockNumber: Schema.String,
|
|
47
|
+
toAmount: Schema.String,
|
|
48
|
+
toToken: Schema.String,
|
|
49
|
+
fees: Schema.Struct({
|
|
50
|
+
gasFee: Schema.NullOr(Schema.Struct({
|
|
51
|
+
amount: Schema.String,
|
|
52
|
+
token: Schema.String,
|
|
53
|
+
})),
|
|
54
|
+
protocolFee: Schema.NullOr(Schema.Struct({
|
|
55
|
+
amount: Schema.String,
|
|
56
|
+
token: Schema.String,
|
|
57
|
+
})),
|
|
58
|
+
}),
|
|
59
|
+
issues: Schema.Struct({
|
|
60
|
+
allowance: Schema.NullOr(Schema.Struct({
|
|
61
|
+
currentAllowance: Schema.String,
|
|
62
|
+
spender: Schema.String,
|
|
63
|
+
})),
|
|
64
|
+
balance: Schema.NullOr(Schema.Struct({
|
|
65
|
+
token: Schema.String,
|
|
66
|
+
currentBalance: Schema.String,
|
|
67
|
+
requiredBalance: Schema.String,
|
|
68
|
+
})),
|
|
69
|
+
simulationIncomplete: Schema.Boolean,
|
|
70
|
+
}),
|
|
71
|
+
liquidityAvailable: Schema.Literals([true]),
|
|
72
|
+
minToAmount: Schema.String,
|
|
73
|
+
fromAmount: Schema.String,
|
|
74
|
+
fromToken: Schema.String,
|
|
75
|
+
}),
|
|
76
|
+
Schema.Struct({
|
|
77
|
+
liquidityAvailable: Schema.Literals([false]),
|
|
78
|
+
}),
|
|
79
|
+
]);
|
|
25
80
|
// The operation
|
|
26
81
|
/**
|
|
27
|
-
* Create
|
|
82
|
+
* Create swap quote
|
|
28
83
|
*
|
|
29
84
|
* Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap.
|
|
30
85
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvmSwapQuote.js","sourceRoot":"","sources":["../../src/operations/createEvmSwapQuote.ts"],"names":[],"mappings":"AAA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,CAAC,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC,MAAM;aACrB,CAAC,CACH;SACF,CAAC;QACF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,CAAC,MAAM,CACtB,MAAM,CAAC,MAAM,CAAC;gBACZ,gBAAgB,EAAE,MAAM,CAAC,MAAM;gBAC/B,OAAO,EAAE,MAAM,CAAC,MAAM;aACvB,CAAC,CACH;YACD,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB,MAAM,CAAC,MAAM,CAAC;gBACZ,KAAK,EAAE,MAAM,CAAC,MAAM;gBACpB,cAAc,EAAE,MAAM,CAAC,MAAM;gBAC7B,eAAe,EAAE,MAAM,CAAC,MAAM;aAC/B,CAAC,CACH;YACD,oBAAoB,EAAE,MAAM,CAAC,OAAO;SACrC,CAAC;QACF,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;QAC3C,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC;IACF,MAAM,CAAC,MAAM,CAAC;QACZ,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;KAC7C,CAAC;CACH,CAAsD,CAAC;AAE1D,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export interface CreateFoundationAccountInput {
|
|
3
|
+
name?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const CreateFoundationAccountInput: Schema.Codec<CreateFoundationAccountInput>;
|
|
6
|
+
export interface CreateFoundationAccountOutput {
|
|
7
|
+
accountId: string;
|
|
8
|
+
type: "prime" | "business" | "cdp";
|
|
9
|
+
owner: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const CreateFoundationAccountOutput: Schema.Codec<CreateFoundationAccountOutput>;
|
|
15
|
+
/**
|
|
16
|
+
* Create account
|
|
17
|
+
*
|
|
18
|
+
* Create an account for your Entity. Support for creating Customer-owned accounts is in development.
|
|
19
|
+
*
|
|
20
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
21
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
22
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
export declare const createFoundationAccount: import("@distilled.cloud/core/client").OperationMethod<CreateFoundationAccountInput, CreateFoundationAccountOutput, never, import("../credentials.ts").Credentials, never>;
|
|
26
|
+
//# sourceMappingURL=createFoundationAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFoundationAccount.d.ts","sourceRoot":"","sources":["../../src/operations/createFoundationAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,4BAA4B,EAKvB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,6BAA6B,EAQvB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG/D;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,4KAKnC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
export const CreateFoundationAccountInput =
|
|
5
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
name: Schema.optional(Schema.String),
|
|
7
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/accounts" }));
|
|
8
|
+
export const CreateFoundationAccountOutput =
|
|
9
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
accountId: Schema.String,
|
|
11
|
+
type: Schema.Literals(["prime", "business", "cdp"]),
|
|
12
|
+
owner: Schema.String,
|
|
13
|
+
name: Schema.optional(Schema.String),
|
|
14
|
+
createdAt: Schema.String,
|
|
15
|
+
updatedAt: Schema.String,
|
|
16
|
+
});
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Create account
|
|
20
|
+
*
|
|
21
|
+
* Create an account for your Entity. Support for creating Customer-owned accounts is in development.
|
|
22
|
+
*
|
|
23
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
24
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
25
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
export const createFoundationAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: CreateFoundationAccountInput,
|
|
30
|
+
outputSchema: CreateFoundationAccountOutput,
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=createFoundationAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFoundationAccount.js","sourceRoot":"","sources":["../../src/operations/createFoundationAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CACQ,CAAC;AAW7D,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAA2D,CAAC;AAE/D,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;CAC5C,CAAC,CACH,CAAC"}
|
|
@@ -1,52 +1,54 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
export interface CreateOnrampOrderInput {
|
|
3
|
+
agreementAcceptedAt: string;
|
|
4
|
+
destinationAddress: string;
|
|
5
|
+
destinationNetwork: string;
|
|
6
|
+
email: string;
|
|
7
|
+
isQuote?: boolean;
|
|
8
|
+
partnerOrderRef?: string;
|
|
9
|
+
partnerUserRef: string;
|
|
10
|
+
paymentAmount?: string;
|
|
11
|
+
paymentCurrency: string;
|
|
12
|
+
paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
phoneNumberVerifiedAt: string;
|
|
15
|
+
smsVerificationId?: string;
|
|
16
|
+
emailVerificationId?: string;
|
|
17
|
+
purchaseAmount?: string;
|
|
18
|
+
purchaseCurrency: string;
|
|
19
|
+
clientIp?: string;
|
|
20
|
+
domain?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const CreateOnrampOrderInput: Schema.Codec<CreateOnrampOrderInput>;
|
|
23
|
+
export interface CreateOnrampOrderOutput {
|
|
24
|
+
order: {
|
|
25
|
+
orderId: string;
|
|
26
|
+
paymentTotal: string;
|
|
27
|
+
paymentSubtotal: string;
|
|
28
|
+
paymentCurrency: string;
|
|
29
|
+
paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
30
|
+
purchaseAmount: string;
|
|
31
|
+
purchaseCurrency: string;
|
|
32
|
+
fees: {
|
|
33
|
+
type: "FEE_TYPE_NETWORK" | "FEE_TYPE_EXCHANGE";
|
|
34
|
+
amount: string;
|
|
35
|
+
currency: string;
|
|
36
|
+
}[];
|
|
37
|
+
exchangeRate: string;
|
|
38
|
+
destinationAddress: string;
|
|
39
|
+
destinationNetwork: string;
|
|
40
|
+
status: "ONRAMP_ORDER_STATUS_PENDING_AUTH" | "ONRAMP_ORDER_STATUS_PENDING_PAYMENT" | "ONRAMP_ORDER_STATUS_PROCESSING" | "ONRAMP_ORDER_STATUS_COMPLETED" | "ONRAMP_ORDER_STATUS_FAILED";
|
|
41
|
+
txHash?: string;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
partnerUserRef?: string;
|
|
45
|
+
};
|
|
46
|
+
paymentLink?: {
|
|
47
|
+
url: string;
|
|
48
|
+
paymentLinkType: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export declare const CreateOnrampOrderOutput: Schema.Codec<CreateOnrampOrderOutput>;
|
|
50
52
|
/**
|
|
51
53
|
* Create an onramp order
|
|
52
54
|
*
|
|
@@ -54,49 +56,5 @@ export type CreateOnrampOrderOutput = typeof CreateOnrampOrderOutput.Type;
|
|
|
54
56
|
* This API currently only supports the payment method `GUEST_CHECKOUT_APPLE_PAY`.
|
|
55
57
|
* 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).
|
|
56
58
|
*/
|
|
57
|
-
export declare const createOnrampOrder: import("@distilled.cloud/core/client").OperationMethod<
|
|
58
|
-
readonly agreementAcceptedAt: string;
|
|
59
|
-
readonly destinationAddress: string;
|
|
60
|
-
readonly destinationNetwork: string;
|
|
61
|
-
readonly email: string;
|
|
62
|
-
readonly isQuote?: boolean | undefined;
|
|
63
|
-
readonly partnerOrderRef?: string | undefined;
|
|
64
|
-
readonly partnerUserRef: string;
|
|
65
|
-
readonly paymentAmount?: string | undefined;
|
|
66
|
-
readonly paymentCurrency: string;
|
|
67
|
-
readonly paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
68
|
-
readonly phoneNumber: string;
|
|
69
|
-
readonly phoneNumberVerifiedAt: string;
|
|
70
|
-
readonly purchaseAmount?: string | undefined;
|
|
71
|
-
readonly purchaseCurrency: string;
|
|
72
|
-
readonly clientIp?: string | undefined;
|
|
73
|
-
readonly domain?: string | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
readonly order: {
|
|
76
|
-
readonly orderId: string;
|
|
77
|
-
readonly paymentTotal: string;
|
|
78
|
-
readonly paymentSubtotal: string;
|
|
79
|
-
readonly paymentCurrency: string;
|
|
80
|
-
readonly paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
81
|
-
readonly purchaseAmount: string;
|
|
82
|
-
readonly purchaseCurrency: string;
|
|
83
|
-
readonly fees: readonly {
|
|
84
|
-
readonly type: "FEE_TYPE_EXCHANGE" | "FEE_TYPE_NETWORK";
|
|
85
|
-
readonly amount: string;
|
|
86
|
-
readonly currency: string;
|
|
87
|
-
}[];
|
|
88
|
-
readonly exchangeRate: string;
|
|
89
|
-
readonly destinationAddress: string;
|
|
90
|
-
readonly destinationNetwork: string;
|
|
91
|
-
readonly status: "ONRAMP_ORDER_STATUS_COMPLETED" | "ONRAMP_ORDER_STATUS_FAILED" | "ONRAMP_ORDER_STATUS_PENDING_AUTH" | "ONRAMP_ORDER_STATUS_PENDING_PAYMENT" | "ONRAMP_ORDER_STATUS_PROCESSING";
|
|
92
|
-
readonly txHash?: string | undefined;
|
|
93
|
-
readonly createdAt: string;
|
|
94
|
-
readonly updatedAt: string;
|
|
95
|
-
readonly partnerUserRef?: string | undefined;
|
|
96
|
-
};
|
|
97
|
-
readonly paymentLink?: {
|
|
98
|
-
readonly url: string;
|
|
99
|
-
readonly paymentLinkType: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
|
|
100
|
-
} | undefined;
|
|
101
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
59
|
+
export declare const createOnrampOrder: import("@distilled.cloud/core/client").OperationMethod<CreateOnrampOrderInput, CreateOnrampOrderOutput, never, import("../credentials.ts").Credentials, never>;
|
|
102
60
|
//# sourceMappingURL=createOnrampOrder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOnrampOrder.d.ts","sourceRoot":"","sources":["../../src/operations/createOnrampOrder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"createOnrampOrder.d.ts","sourceRoot":"","sources":["../../src/operations/createOnrampOrder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,0BAA0B,GAAG,2BA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;AACD,eAAO,MAAM,uBAAuB,EA2CjB,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAGzD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gKAG3B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const CreateOnrampOrderInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
5
|
agreementAcceptedAt: Schema.String,
|
|
7
6
|
destinationAddress: Schema.String,
|
|
@@ -18,12 +17,13 @@ export const CreateOnrampOrderInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
18
17
|
]),
|
|
19
18
|
phoneNumber: Schema.String,
|
|
20
19
|
phoneNumberVerifiedAt: Schema.String,
|
|
20
|
+
smsVerificationId: Schema.optional(Schema.String),
|
|
21
|
+
emailVerificationId: Schema.optional(Schema.String),
|
|
21
22
|
purchaseAmount: Schema.optional(Schema.String),
|
|
22
23
|
purchaseCurrency: Schema.String,
|
|
23
24
|
clientIp: Schema.optional(Schema.String),
|
|
24
25
|
domain: Schema.optional(Schema.String),
|
|
25
26
|
}).pipe(T.Http({ method: "POST", path: "/v2/onramp/orders" }));
|
|
26
|
-
// Output Schema
|
|
27
27
|
export const CreateOnrampOrderOutput =
|
|
28
28
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
29
29
|
order: Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOnrampOrder.js","sourceRoot":"","sources":["../../src/operations/createOnrampOrder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"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Ac,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC/C,CAAC;IACF,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC/B,oCAAoC;SACrC,CAAC;KACH,CAAC,CACH;CACF,CAAqD,CAAC;AAEzD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export
|
|
2
|
+
export interface CreateOnrampSessionInput {
|
|
3
|
+
purchaseCurrency: string;
|
|
4
|
+
destinationNetwork: string;
|
|
5
|
+
destinationAddress: string;
|
|
6
|
+
paymentAmount?: string;
|
|
7
|
+
purchaseAmount?: string;
|
|
8
|
+
paymentCurrency?: string;
|
|
9
|
+
paymentMethod?: "CARD" | "ACH" | "APPLE_PAY" | "PAYPAL" | "FIAT_WALLET" | "CRYPTO_WALLET";
|
|
10
|
+
country?: string;
|
|
11
|
+
subdivision?: string;
|
|
12
|
+
redirectUrl?: string;
|
|
13
|
+
clientIp?: string;
|
|
14
|
+
partnerUserRef?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CreateOnrampSessionInput: Schema.Codec<CreateOnrampSessionInput>;
|
|
17
|
+
export interface CreateOnrampSessionOutput {
|
|
18
|
+
session: {
|
|
19
|
+
onrampUrl: string;
|
|
20
|
+
};
|
|
21
|
+
quote?: {
|
|
22
|
+
paymentTotal: string;
|
|
23
|
+
paymentSubtotal: string;
|
|
24
|
+
paymentCurrency: string;
|
|
25
|
+
purchaseAmount: string;
|
|
26
|
+
purchaseCurrency: string;
|
|
27
|
+
destinationNetwork: string;
|
|
28
|
+
fees: {
|
|
29
|
+
type: "FEE_TYPE_NETWORK" | "FEE_TYPE_EXCHANGE";
|
|
30
|
+
amount: string;
|
|
31
|
+
currency: string;
|
|
32
|
+
}[];
|
|
33
|
+
exchangeRate: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const CreateOnrampSessionOutput: Schema.Codec<CreateOnrampSessionOutput>;
|
|
37
37
|
/**
|
|
38
38
|
* Create an onramp session
|
|
39
39
|
*
|
|
@@ -51,36 +51,5 @@ export type CreateOnrampSessionOutput = typeof CreateOnrampSessionOutput.Type;
|
|
|
51
51
|
* **Returns**: Complete pricing quote and one-click onramp URL. Both `session` and `quote` objects will be included in the response.
|
|
52
52
|
* **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).
|
|
53
53
|
*/
|
|
54
|
-
export declare const createOnrampSession: import("@distilled.cloud/core/client").OperationMethod<
|
|
55
|
-
readonly purchaseCurrency: string;
|
|
56
|
-
readonly destinationNetwork: string;
|
|
57
|
-
readonly destinationAddress: string;
|
|
58
|
-
readonly paymentAmount?: string | undefined;
|
|
59
|
-
readonly purchaseAmount?: string | undefined;
|
|
60
|
-
readonly paymentCurrency?: string | undefined;
|
|
61
|
-
readonly paymentMethod?: "ACH" | "APPLE_PAY" | "CARD" | "CRYPTO_WALLET" | "FIAT_WALLET" | "PAYPAL" | undefined;
|
|
62
|
-
readonly country?: string | undefined;
|
|
63
|
-
readonly subdivision?: string | undefined;
|
|
64
|
-
readonly redirectUrl?: string | undefined;
|
|
65
|
-
readonly clientIp?: string | undefined;
|
|
66
|
-
readonly partnerUserRef?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
readonly session: {
|
|
69
|
-
readonly onrampUrl: string;
|
|
70
|
-
};
|
|
71
|
-
readonly quote?: {
|
|
72
|
-
readonly paymentTotal: string;
|
|
73
|
-
readonly paymentSubtotal: string;
|
|
74
|
-
readonly paymentCurrency: string;
|
|
75
|
-
readonly purchaseAmount: string;
|
|
76
|
-
readonly purchaseCurrency: string;
|
|
77
|
-
readonly destinationNetwork: string;
|
|
78
|
-
readonly fees: readonly {
|
|
79
|
-
readonly type: "FEE_TYPE_EXCHANGE" | "FEE_TYPE_NETWORK";
|
|
80
|
-
readonly amount: string;
|
|
81
|
-
readonly currency: string;
|
|
82
|
-
}[];
|
|
83
|
-
readonly exchangeRate: string;
|
|
84
|
-
} | undefined;
|
|
85
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
54
|
+
export declare const createOnrampSession: import("@distilled.cloud/core/client").OperationMethod<CreateOnrampSessionInput, CreateOnrampSessionOutput, never, import("../credentials.ts").Credentials, never>;
|
|
86
55
|
//# sourceMappingURL=createOnrampSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOnrampSession.d.ts","sourceRoot":"","sources":["../../src/operations/createOnrampSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,
|
|
1
|
+
{"version":3,"file":"createOnrampSession.d.ts","sourceRoot":"","sources":["../../src/operations/createOnrampSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EACV,MAAM,GACN,KAAK,GACL,WAAW,GACX,QAAQ,GACR,aAAa,GACb,eAAe,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,eAAO,MAAM,wBAAwB,EAyBnB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAGzD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;QACzB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,IAAI,EAAE;YACJ,IAAI,EAAE,kBAAkB,GAAG,mBAAmB,CAAC;YAC/C,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,EAAE,MAAM,CAAC;SAClB,EAAE,CAAC;QACJ,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AACD,eA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