@distilled.cloud/coinbase 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/addEndUserEvmAccount.d.ts +13 -20
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmAccount.js +1 -3
- package/lib/operations/addEndUserEvmAccount.js.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +15 -24
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +1 -3
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +14 -21
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.js +2 -4
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/createDelegationForEndUserAccount.js +44 -0
- package/lib/operations/createDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/createDepositDestination.d.ts +34 -0
- package/lib/operations/createDepositDestination.d.ts.map +1 -0
- package/lib/operations/createDepositDestination.js +50 -0
- package/lib/operations/createDepositDestination.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +99 -84
- package/lib/operations/createEndUser.d.ts.map +1 -1
- package/lib/operations/createEndUser.js +71 -5
- package/lib/operations/createEndUser.js.map +1 -1
- package/lib/operations/createEvmAccount.d.ts +15 -24
- package/lib/operations/createEvmAccount.d.ts.map +1 -1
- package/lib/operations/createEvmAccount.js +1 -3
- package/lib/operations/createEvmAccount.js.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +11 -17
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -2
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +14 -23
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -2
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -1
- package/lib/operations/createEvmSmartAccount.d.ts +16 -26
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/createEvmSmartAccount.js +1 -3
- package/lib/operations/createEvmSmartAccount.js.map +1 -1
- package/lib/operations/createEvmSwapQuote.d.ts +69 -24
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -1
- package/lib/operations/createEvmSwapQuote.js +59 -4
- package/lib/operations/createEvmSwapQuote.js.map +1 -1
- package/lib/operations/createFoundationAccount.d.ts +26 -0
- package/lib/operations/createFoundationAccount.d.ts.map +1 -0
- package/lib/operations/createFoundationAccount.js +32 -0
- package/lib/operations/createFoundationAccount.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +51 -93
- package/lib/operations/createOnrampOrder.d.ts.map +1 -1
- package/lib/operations/createOnrampOrder.js +2 -2
- package/lib/operations/createOnrampOrder.js.map +1 -1
- package/lib/operations/createOnrampSession.d.ts +36 -67
- package/lib/operations/createOnrampSession.d.ts.map +1 -1
- package/lib/operations/createOnrampSession.js +0 -2
- package/lib/operations/createOnrampSession.js.map +1 -1
- package/lib/operations/createPolicy.d.ts +17 -28
- package/lib/operations/createPolicy.d.ts.map +1 -1
- package/lib/operations/createPolicy.js +1 -3
- package/lib/operations/createPolicy.js.map +1 -1
- package/lib/operations/createSolanaAccount.d.ts +15 -24
- package/lib/operations/createSolanaAccount.d.ts.map +1 -1
- package/lib/operations/createSolanaAccount.js +1 -3
- package/lib/operations/createSolanaAccount.js.map +1 -1
- package/lib/operations/createSpendPermission.d.ts +40 -72
- package/lib/operations/createSpendPermission.d.ts.map +1 -1
- package/lib/operations/createSpendPermission.js +2 -3
- package/lib/operations/createSpendPermission.js.map +1 -1
- package/lib/operations/createTransfer.d.ts +178 -0
- package/lib/operations/createTransfer.d.ts.map +1 -0
- package/lib/operations/createTransfer.js +244 -0
- package/lib/operations/createTransfer.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +46 -105
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/createWebhookSubscription.js +68 -45
- package/lib/operations/createWebhookSubscription.js.map +1 -1
- package/lib/operations/deletePolicy.d.ts +8 -10
- package/lib/operations/deletePolicy.d.ts.map +1 -1
- package/lib/operations/deletePolicy.js +3 -4
- package/lib/operations/deletePolicy.js.map +1 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +7 -9
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -2
- package/lib/operations/deleteWebhookSubscription.js.map +1 -1
- package/lib/operations/executeFundTransfer.d.ts +103 -0
- package/lib/operations/executeFundTransfer.d.ts.map +1 -0
- package/lib/operations/executeFundTransfer.js +152 -0
- package/lib/operations/executeFundTransfer.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +11 -16
- package/lib/operations/exportEvmAccount.d.ts.map +1 -1
- package/lib/operations/exportEvmAccount.js +1 -3
- package/lib/operations/exportEvmAccount.js.map +1 -1
- package/lib/operations/exportEvmAccountByName.d.ts +11 -16
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/exportEvmAccountByName.js +1 -3
- package/lib/operations/exportEvmAccountByName.js.map +1 -1
- package/lib/operations/exportSolanaAccount.d.ts +11 -16
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccount.js +1 -3
- package/lib/operations/exportSolanaAccount.js.map +1 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +11 -16
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccountByName.js +1 -3
- package/lib/operations/exportSolanaAccountByName.js.map +1 -1
- package/lib/operations/getBalanceByAsset.d.ts +29 -0
- package/lib/operations/getBalanceByAsset.d.ts.map +1 -0
- package/lib/operations/getBalanceByAsset.js +34 -0
- package/lib/operations/getBalanceByAsset.js.map +1 -0
- package/lib/operations/getDelegationForEndUser.d.ts +10 -15
- package/lib/operations/getDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/getDelegationForEndUser.js +0 -2
- package/lib/operations/getDelegationForEndUser.js.map +1 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +23 -0
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/getDelegationForEndUserAccount.js +33 -0
- package/lib/operations/getDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/getDepositDestinationById.d.ts +32 -0
- package/lib/operations/getDepositDestinationById.d.ts.map +1 -0
- package/lib/operations/getDepositDestinationById.js +52 -0
- package/lib/operations/getDepositDestinationById.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +64 -68
- package/lib/operations/getEndUser.d.ts.map +1 -1
- package/lib/operations/getEndUser.js +36 -4
- package/lib/operations/getEndUser.js.map +1 -1
- package/lib/operations/getEvmAccount.d.ts +14 -22
- package/lib/operations/getEvmAccount.d.ts.map +1 -1
- package/lib/operations/getEvmAccount.js +1 -3
- package/lib/operations/getEvmAccount.js.map +1 -1
- package/lib/operations/getEvmAccountByName.d.ts +14 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmAccountByName.js +1 -3
- package/lib/operations/getEvmAccountByName.js.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +14 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +1 -3
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -1
- package/lib/operations/getEvmSmartAccount.d.ts +15 -24
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccount.js +1 -3
- package/lib/operations/getEvmSmartAccount.js.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +15 -24
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.js +1 -3
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -1
- package/lib/operations/getEvmSwapPrice.d.ts +49 -24
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -1
- package/lib/operations/getEvmSwapPrice.js +39 -4
- package/lib/operations/getEvmSwapPrice.js.map +1 -1
- package/lib/operations/getFoundationAccountById.d.ts +23 -0
- package/lib/operations/getFoundationAccountById.d.ts.map +1 -0
- package/lib/operations/getFoundationAccountById.js +29 -0
- package/lib/operations/getFoundationAccountById.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +30 -55
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -1
- package/lib/operations/getOnrampOrderById.js +0 -2
- package/lib/operations/getOnrampOrderById.js.map +1 -1
- package/lib/operations/getOnrampUserLimits.d.ts +16 -27
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -1
- package/lib/operations/getOnrampUserLimits.js +0 -2
- package/lib/operations/getOnrampUserLimits.js.map +1 -1
- package/lib/operations/getPaymentMethod.d.ts +53 -0
- package/lib/operations/getPaymentMethod.d.ts.map +1 -0
- package/lib/operations/getPaymentMethod.js +61 -0
- package/lib/operations/getPaymentMethod.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +15 -24
- package/lib/operations/getPolicyById.d.ts.map +1 -1
- package/lib/operations/getPolicyById.js +1 -3
- package/lib/operations/getPolicyById.js.map +1 -1
- package/lib/operations/getSQLGrammar.d.ts +6 -5
- package/lib/operations/getSQLGrammar.d.ts.map +1 -1
- package/lib/operations/getSQLGrammar.js +2 -3
- package/lib/operations/getSQLGrammar.js.map +1 -1
- package/lib/operations/getSQLSchema.d.ts +21 -36
- package/lib/operations/getSQLSchema.d.ts.map +1 -1
- package/lib/operations/getSQLSchema.js +2 -4
- package/lib/operations/getSQLSchema.js.map +1 -1
- package/lib/operations/getSolanaAccount.d.ts +14 -22
- package/lib/operations/getSolanaAccount.d.ts.map +1 -1
- package/lib/operations/getSolanaAccount.js +1 -3
- package/lib/operations/getSolanaAccount.js.map +1 -1
- package/lib/operations/getSolanaAccountByName.d.ts +14 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/getSolanaAccountByName.js +1 -3
- package/lib/operations/getSolanaAccountByName.js.map +1 -1
- package/lib/operations/getTransferById.d.ts +99 -0
- package/lib/operations/getTransferById.d.ts.map +1 -0
- package/lib/operations/getTransferById.js +146 -0
- package/lib/operations/getTransferById.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +31 -54
- package/lib/operations/getUserOperation.d.ts.map +1 -1
- package/lib/operations/getUserOperation.js +2 -3
- package/lib/operations/getUserOperation.js.map +1 -1
- package/lib/operations/getWebhookSubscription.d.ts +25 -46
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/getWebhookSubscription.js +30 -7
- package/lib/operations/getWebhookSubscription.js.map +1 -1
- package/lib/operations/importEndUser.d.ts +94 -74
- package/lib/operations/importEndUser.d.ts.map +1 -1
- package/lib/operations/importEndUser.js +71 -5
- package/lib/operations/importEndUser.js.map +1 -1
- package/lib/operations/importEvmAccount.d.ts +16 -26
- package/lib/operations/importEvmAccount.d.ts.map +1 -1
- package/lib/operations/importEvmAccount.js +1 -3
- package/lib/operations/importEvmAccount.js.map +1 -1
- package/lib/operations/importSolanaAccount.d.ts +15 -24
- package/lib/operations/importSolanaAccount.d.ts.map +1 -1
- package/lib/operations/importSolanaAccount.js +1 -3
- package/lib/operations/importSolanaAccount.js.map +1 -1
- package/lib/operations/index.d.ts +40 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +40 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/initiateOnrampVerification.d.ts +24 -0
- package/lib/operations/initiateOnrampVerification.d.ts.map +1 -0
- package/lib/operations/initiateOnrampVerification.js +30 -0
- package/lib/operations/initiateOnrampVerification.js.map +1 -0
- package/lib/operations/listBalances.d.ts +34 -0
- package/lib/operations/listBalances.d.ts.map +1 -0
- package/lib/operations/listBalances.js +38 -0
- package/lib/operations/listBalances.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +24 -43
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -1
- package/lib/operations/listDataTokenBalances.js +0 -2
- package/lib/operations/listDataTokenBalances.js.map +1 -1
- package/lib/operations/listDepositDestinations.d.ts +45 -0
- package/lib/operations/listDepositDestinations.d.ts.map +1 -0
- package/lib/operations/listDepositDestinations.js +62 -0
- package/lib/operations/listDepositDestinations.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +68 -77
- package/lib/operations/listEndUsers.d.ts.map +1 -1
- package/lib/operations/listEndUsers.js +47 -3
- package/lib/operations/listEndUsers.js.map +1 -1
- package/lib/operations/listEvmAccounts.d.ts +17 -29
- package/lib/operations/listEvmAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmAccounts.js +0 -2
- package/lib/operations/listEvmAccounts.js.map +1 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +18 -31
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -2
- package/lib/operations/listEvmSmartAccounts.js.map +1 -1
- package/lib/operations/listEvmTokenBalances.d.ts +24 -43
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -1
- package/lib/operations/listEvmTokenBalances.js +0 -2
- package/lib/operations/listEvmTokenBalances.js.map +1 -1
- package/lib/operations/listFoundationAccounts.d.ts +30 -0
- package/lib/operations/listFoundationAccounts.d.ts.map +1 -0
- package/lib/operations/listFoundationAccounts.js +36 -0
- package/lib/operations/listFoundationAccounts.js.map +1 -0
- package/lib/operations/listPaymentMethods.d.ts +63 -0
- package/lib/operations/listPaymentMethods.d.ts.map +1 -0
- package/lib/operations/listPaymentMethods.js +73 -0
- package/lib/operations/listPaymentMethods.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +19 -33
- package/lib/operations/listPolicies.d.ts.map +1 -1
- package/lib/operations/listPolicies.js +0 -2
- package/lib/operations/listPolicies.js.map +1 -1
- package/lib/operations/listSolanaAccounts.d.ts +18 -30
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -1
- package/lib/operations/listSolanaAccounts.js +1 -3
- package/lib/operations/listSolanaAccounts.js.map +1 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +23 -41
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -2
- package/lib/operations/listSolanaTokenBalances.js.map +1 -1
- package/lib/operations/listSpendPermissions.d.ts +29 -53
- package/lib/operations/listSpendPermissions.d.ts.map +1 -1
- package/lib/operations/listSpendPermissions.js +0 -2
- package/lib/operations/listSpendPermissions.js.map +1 -1
- package/lib/operations/listTokensForAccount.d.ts +12 -19
- package/lib/operations/listTokensForAccount.d.ts.map +1 -1
- package/lib/operations/listTokensForAccount.js +0 -2
- package/lib/operations/listTokensForAccount.js.map +1 -1
- package/lib/operations/listTransfers.d.ts +153 -0
- package/lib/operations/listTransfers.d.ts.map +1 -0
- package/lib/operations/listTransfers.js +205 -0
- package/lib/operations/listTransfers.js.map +1 -0
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +26 -47
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -2
- package/lib/operations/listWebhookSubscriptionEvents.js.map +1 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +28 -53
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptions.js +29 -6
- package/lib/operations/listWebhookSubscriptions.js.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +69 -0
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryMerchant.js +92 -0
- package/lib/operations/listX402DiscoveryMerchant.js.map +1 -0
- package/lib/operations/listX402DiscoveryResources.d.ts +67 -0
- package/lib/operations/listX402DiscoveryResources.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryResources.js +90 -0
- package/lib/operations/listX402DiscoveryResources.js.map +1 -0
- package/lib/operations/lookupEndUser.d.ts +93 -0
- package/lib/operations/lookupEndUser.d.ts.map +1 -0
- package/lib/operations/lookupEndUser.js +116 -0
- package/lib/operations/lookupEndUser.js.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts +26 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.js +32 -0
- package/lib/operations/postX402DiscoveryMcp.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +39 -68
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareAndSendUserOperation.js +3 -3
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -1
- package/lib/operations/prepareUserOperation.d.ts +40 -70
- package/lib/operations/prepareUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareUserOperation.js +3 -3
- package/lib/operations/prepareUserOperation.js.map +1 -1
- package/lib/operations/requestEvmFaucet.d.ts +11 -17
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -1
- package/lib/operations/requestEvmFaucet.js +0 -2
- package/lib/operations/requestEvmFaucet.js.map +1 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +29 -0
- package/lib/operations/requestLimitsUpgrade.d.ts.map +1 -0
- package/lib/operations/requestLimitsUpgrade.js +35 -0
- package/lib/operations/requestLimitsUpgrade.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +10 -15
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -1
- package/lib/operations/requestSolanaFaucet.js +0 -2
- package/lib/operations/requestSolanaFaucet.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +10 -11
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.js +2 -2
- package/lib/operations/revokeDelegationForEndUser.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js +44 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +33 -58
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -1
- package/lib/operations/revokeSpendPermission.js +2 -3
- package/lib/operations/revokeSpendPermission.js.map +1 -1
- package/lib/operations/runSQLQuery.d.ts +30 -53
- package/lib/operations/runSQLQuery.d.ts.map +1 -1
- package/lib/operations/runSQLQuery.js +6 -10
- package/lib/operations/runSQLQuery.js.map +1 -1
- package/lib/operations/searchX402Resources.d.ts +83 -0
- package/lib/operations/searchX402Resources.d.ts.map +1 -0
- package/lib/operations/searchX402Resources.js +106 -0
- package/lib/operations/searchX402Resources.js.map +1 -0
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +20 -33
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +1 -2
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendEvmTransaction.d.ts +12 -18
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -1
- package/lib/operations/sendEvmTransaction.js +4 -3
- package/lib/operations/sendEvmTransaction.js.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +15 -24
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +18 -31
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -2
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaTransaction.d.ts +12 -18
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransaction.js +1 -3
- package/lib/operations/sendSolanaTransaction.js.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +16 -26
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendUserOperation.d.ts +32 -56
- package/lib/operations/sendUserOperation.d.ts.map +1 -1
- package/lib/operations/sendUserOperation.js +2 -3
- package/lib/operations/sendUserOperation.js.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +44 -78
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +3 -3
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -1
- package/lib/operations/settleX402Payment.d.ts +239 -30
- package/lib/operations/settleX402Payment.d.ts.map +1 -1
- package/lib/operations/settleX402Payment.js +280 -5
- package/lib/operations/settleX402Payment.js.map +1 -1
- package/lib/operations/signEvmHash.d.ts +11 -16
- package/lib/operations/signEvmHash.d.ts.map +1 -1
- package/lib/operations/signEvmHash.js +1 -3
- package/lib/operations/signEvmHash.js.map +1 -1
- package/lib/operations/signEvmMessage.d.ts +11 -16
- package/lib/operations/signEvmMessage.d.ts.map +1 -1
- package/lib/operations/signEvmMessage.js +1 -3
- package/lib/operations/signEvmMessage.js.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTransaction.d.ts +11 -16
- package/lib/operations/signEvmTransaction.d.ts.map +1 -1
- package/lib/operations/signEvmTransaction.js +1 -3
- package/lib/operations/signEvmTransaction.js.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTypedData.d.ts +19 -33
- package/lib/operations/signEvmTypedData.d.ts.map +1 -1
- package/lib/operations/signEvmTypedData.js +0 -2
- package/lib/operations/signEvmTypedData.js.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +25 -44
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaMessage.d.ts +11 -16
- package/lib/operations/signSolanaMessage.d.ts.map +1 -1
- package/lib/operations/signSolanaMessage.js +1 -3
- package/lib/operations/signSolanaMessage.js.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaTransaction.d.ts +11 -16
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/signSolanaTransaction.js +1 -3
- package/lib/operations/signSolanaTransaction.js.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/submitDepositTravelRule.d.ts +52 -0
- package/lib/operations/submitDepositTravelRule.d.ts.map +1 -0
- package/lib/operations/submitDepositTravelRule.js +58 -0
- package/lib/operations/submitDepositTravelRule.js.map +1 -0
- package/lib/operations/submitOnrampVerification.d.ts +26 -0
- package/lib/operations/submitOnrampVerification.d.ts.map +1 -0
- package/lib/operations/submitOnrampVerification.js +35 -0
- package/lib/operations/submitOnrampVerification.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +15 -27
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.js +4 -4
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -1
- package/lib/operations/updateEvmAccount.d.ts +16 -26
- package/lib/operations/updateEvmAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmAccount.js +1 -3
- package/lib/operations/updateEvmAccount.js.map +1 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +16 -26
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmSmartAccount.js +1 -3
- package/lib/operations/updateEvmSmartAccount.js.map +1 -1
- package/lib/operations/updatePolicy.d.ts +17 -28
- package/lib/operations/updatePolicy.d.ts.map +1 -1
- package/lib/operations/updatePolicy.js +1 -3
- package/lib/operations/updatePolicy.js.map +1 -1
- package/lib/operations/updateSolanaAccount.d.ts +16 -26
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -1
- package/lib/operations/updateSolanaAccount.js +1 -3
- package/lib/operations/updateSolanaAccount.js.map +1 -1
- package/lib/operations/updateWebhookSubscription.d.ts +33 -69
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/updateWebhookSubscription.js +54 -7
- package/lib/operations/updateWebhookSubscription.js.map +1 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +64 -67
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -1
- package/lib/operations/validateEndUserAccessToken.js +36 -3
- package/lib/operations/validateEndUserAccessToken.js.map +1 -1
- package/lib/operations/validateX402Resource.d.ts +64 -0
- package/lib/operations/validateX402Resource.d.ts.map +1 -0
- package/lib/operations/validateX402Resource.js +92 -0
- package/lib/operations/validateX402Resource.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +236 -24
- package/lib/operations/verifyX402Payment.d.ts.map +1 -1
- package/lib/operations/verifyX402Payment.js +266 -5
- package/lib/operations/verifyX402Payment.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addEndUserEvmAccount.ts +11 -5
- package/src/operations/addEndUserEvmSmartAccount.ts +14 -7
- package/src/operations/addEndUserSolanaAccount.ts +12 -8
- package/src/operations/createDelegationForEndUserAccount.ts +60 -0
- package/src/operations/createDepositDestination.ts +85 -0
- package/src/operations/createEndUser.ts +150 -7
- package/src/operations/createEvmAccount.ts +16 -5
- package/src/operations/createEvmEip7702Delegation.ts +17 -6
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +20 -6
- package/src/operations/createEvmSmartAccount.ts +17 -6
- package/src/operations/createEvmSwapQuote.ts +128 -5
- package/src/operations/createFoundationAccount.ts +51 -0
- package/src/operations/createOnrampOrder.ts +59 -4
- package/src/operations/createOnrampSession.ts +41 -4
- package/src/operations/createPolicy.ts +18 -5
- package/src/operations/createSolanaAccount.ts +16 -5
- package/src/operations/createSpendPermission.ts +61 -6
- package/src/operations/createTransfer.ts +461 -0
- package/src/operations/createWebhookSubscription.ts +144 -49
- package/src/operations/deletePolicy.ts +8 -5
- package/src/operations/deleteWebhookSubscription.ts +6 -6
- package/src/operations/executeFundTransfer.ts +282 -0
- package/src/operations/exportEvmAccount.ts +12 -5
- package/src/operations/exportEvmAccountByName.ts +10 -7
- package/src/operations/exportSolanaAccount.ts +10 -5
- package/src/operations/exportSolanaAccountByName.ts +10 -7
- package/src/operations/getBalanceByAsset.ts +58 -0
- package/src/operations/getDelegationForEndUser.ts +9 -6
- package/src/operations/getDelegationForEndUserAccount.ts +47 -0
- package/src/operations/getDepositDestinationById.ts +89 -0
- package/src/operations/getEndUser.ts +86 -6
- package/src/operations/getEvmAccount.ts +15 -5
- package/src/operations/getEvmAccountByName.ts +15 -5
- package/src/operations/getEvmEip7702DelegationOperationById.ts +20 -7
- package/src/operations/getEvmSmartAccount.ts +16 -5
- package/src/operations/getEvmSmartAccountByName.ts +14 -7
- package/src/operations/getEvmSwapPrice.ts +86 -5
- package/src/operations/getFoundationAccountById.ts +48 -0
- package/src/operations/getOnrampOrderById.ts +36 -4
- package/src/operations/getOnrampUserLimits.ts +17 -4
- package/src/operations/getPaymentMethod.ts +106 -0
- package/src/operations/getPolicyById.ts +14 -5
- package/src/operations/getSQLGrammar.ts +7 -4
- package/src/operations/getSQLSchema.ts +25 -6
- package/src/operations/getSolanaAccount.ts +15 -5
- package/src/operations/getSolanaAccountByName.ts +13 -7
- package/src/operations/getTransferById.ts +274 -0
- package/src/operations/getUserOperation.ts +44 -5
- package/src/operations/getWebhookSubscription.ts +73 -11
- package/src/operations/importEndUser.ts +147 -7
- package/src/operations/importEvmAccount.ts +17 -5
- package/src/operations/importSolanaAccount.ts +16 -5
- package/src/operations/index.ts +40 -0
- package/src/operations/initiateOnrampVerification.ts +46 -0
- package/src/operations/listBalances.ts +66 -0
- package/src/operations/listDataTokenBalances.ts +20 -5
- package/src/operations/listDepositDestinations.ts +109 -0
- package/src/operations/listEndUsers.ts +102 -5
- package/src/operations/listEvmAccounts.ts +18 -4
- package/src/operations/listEvmSmartAccounts.ts +19 -4
- package/src/operations/listEvmTokenBalances.ts +20 -4
- package/src/operations/listFoundationAccounts.ts +62 -0
- package/src/operations/listPaymentMethods.ts +130 -0
- package/src/operations/listPolicies.ts +20 -4
- package/src/operations/listSolanaAccounts.ts +19 -5
- package/src/operations/listSolanaTokenBalances.ts +15 -6
- package/src/operations/listSpendPermissions.ts +36 -4
- package/src/operations/listTokensForAccount.ts +11 -4
- package/src/operations/listTransfers.ts +355 -0
- package/src/operations/listWebhookSubscriptionEvents.ts +25 -6
- package/src/operations/listWebhookSubscriptions.ts +78 -10
- package/src/operations/listX402DiscoveryMerchant.ts +174 -0
- package/src/operations/listX402DiscoveryResources.ts +171 -0
- package/src/operations/lookupEndUser.ts +188 -0
- package/src/operations/postX402DiscoveryMcp.ts +56 -0
- package/src/operations/prepareAndSendUserOperation.ts +65 -7
- package/src/operations/prepareUserOperation.ts +66 -5
- package/src/operations/requestEvmFaucet.ts +12 -4
- package/src/operations/requestLimitsUpgrade.ts +56 -0
- package/src/operations/requestSolanaFaucet.ts +11 -4
- package/src/operations/revokeDelegationForEndUser.ts +10 -6
- package/src/operations/revokeDelegationForEndUserAccount.ts +57 -0
- package/src/operations/revokeSpendPermission.ts +54 -6
- package/src/operations/runSQLQuery.ts +49 -12
- package/src/operations/searchX402Resources.ts +194 -0
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +33 -6
- package/src/operations/sendEvmTransaction.ts +25 -5
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +25 -7
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +17 -6
- package/src/operations/sendSolanaTransaction.ts +11 -6
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +15 -7
- package/src/operations/sendUserOperation.ts +45 -5
- package/src/operations/sendUserOperationWithEndUserAccount.ts +70 -7
- package/src/operations/settleX402Payment.ts +742 -7
- package/src/operations/signEvmHash.ts +12 -5
- package/src/operations/signEvmMessage.ts +10 -5
- package/src/operations/signEvmMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTransaction.ts +10 -5
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTypedData.ts +18 -4
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +24 -7
- package/src/operations/signSolanaMessage.ts +10 -5
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signSolanaTransaction.ts +10 -6
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/submitDepositTravelRule.ts +103 -0
- package/src/operations/submitOnrampVerification.ts +51 -0
- package/src/operations/supportedX402PaymentKinds.ts +29 -8
- package/src/operations/updateEvmAccount.ts +17 -5
- package/src/operations/updateEvmSmartAccount.ts +17 -6
- package/src/operations/updatePolicy.ts +16 -5
- package/src/operations/updateSolanaAccount.ts +17 -5
- package/src/operations/updateWebhookSubscription.ts +129 -11
- package/src/operations/validateEndUserAccessToken.ts +84 -7
- package/src/operations/validateX402Resource.ts +172 -0
- package/src/operations/verifyX402Payment.ts +706 -7
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export interface GetDepositDestinationByIdInput {
|
|
7
|
+
depositDestinationId: string;
|
|
8
|
+
}
|
|
9
|
+
export const GetDepositDestinationByIdInput =
|
|
10
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
depositDestinationId: Schema.String.pipe(T.PathParam()),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v2/deposit-destinations/{depositDestinationId}",
|
|
16
|
+
}),
|
|
17
|
+
) as unknown as Schema.Codec<GetDepositDestinationByIdInput>;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export interface GetDepositDestinationByIdOutput {
|
|
21
|
+
depositDestinationId: string;
|
|
22
|
+
accountId: string;
|
|
23
|
+
type: "crypto";
|
|
24
|
+
crypto: {
|
|
25
|
+
network:
|
|
26
|
+
| "base"
|
|
27
|
+
| "ethereum"
|
|
28
|
+
| "solana"
|
|
29
|
+
| "aptos"
|
|
30
|
+
| "arbitrum"
|
|
31
|
+
| "arbitrum-sepolia"
|
|
32
|
+
| "optimism"
|
|
33
|
+
| "polygon"
|
|
34
|
+
| "world"
|
|
35
|
+
| "world-sepolia";
|
|
36
|
+
address: string;
|
|
37
|
+
};
|
|
38
|
+
target?: { accountId?: string; asset: string };
|
|
39
|
+
status: "active" | "inactive" | "pending";
|
|
40
|
+
metadata?: Record<string, string>;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
}
|
|
44
|
+
export const GetDepositDestinationByIdOutput =
|
|
45
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
46
|
+
depositDestinationId: Schema.String,
|
|
47
|
+
accountId: Schema.String,
|
|
48
|
+
type: Schema.Literals(["crypto"]),
|
|
49
|
+
crypto: Schema.Struct({
|
|
50
|
+
network: Schema.Literals([
|
|
51
|
+
"base",
|
|
52
|
+
"ethereum",
|
|
53
|
+
"solana",
|
|
54
|
+
"aptos",
|
|
55
|
+
"arbitrum",
|
|
56
|
+
"arbitrum-sepolia",
|
|
57
|
+
"optimism",
|
|
58
|
+
"polygon",
|
|
59
|
+
"world",
|
|
60
|
+
"world-sepolia",
|
|
61
|
+
]),
|
|
62
|
+
address: Schema.String,
|
|
63
|
+
}),
|
|
64
|
+
target: Schema.optional(
|
|
65
|
+
Schema.Struct({
|
|
66
|
+
accountId: Schema.optional(Schema.String),
|
|
67
|
+
asset: Schema.String,
|
|
68
|
+
}),
|
|
69
|
+
),
|
|
70
|
+
status: Schema.Literals(["active", "inactive", "pending"]),
|
|
71
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
72
|
+
createdAt: Schema.String,
|
|
73
|
+
updatedAt: Schema.String,
|
|
74
|
+
}) as unknown as Schema.Codec<GetDepositDestinationByIdOutput>;
|
|
75
|
+
|
|
76
|
+
// The operation
|
|
77
|
+
/**
|
|
78
|
+
* Get deposit destination
|
|
79
|
+
*
|
|
80
|
+
* Get a specific deposit destination by its ID.
|
|
81
|
+
*
|
|
82
|
+
* @param depositDestinationId - The ID of the deposit address to retrieve.
|
|
83
|
+
*/
|
|
84
|
+
export const getDepositDestinationById = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
85
|
+
() => ({
|
|
86
|
+
inputSchema: GetDepositDestinationByIdInput,
|
|
87
|
+
outputSchema: GetDepositDestinationByIdOutput,
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
@@ -3,15 +3,96 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEndUserInput {
|
|
7
|
+
userId: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEndUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
10
|
userId: Schema.String.pipe(T.PathParam()),
|
|
8
|
-
}).pipe(
|
|
9
|
-
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({ method: "GET", path: "/v2/end-users/{userId}" }),
|
|
13
|
+
) as unknown as Schema.Codec<GetEndUserInput>;
|
|
10
14
|
|
|
11
15
|
// Output Schema
|
|
16
|
+
export interface GetEndUserOutput {
|
|
17
|
+
userId: string;
|
|
18
|
+
authenticationMethods: (
|
|
19
|
+
| { type: "email"; email: string }
|
|
20
|
+
| { type: "sms"; phoneNumber: string }
|
|
21
|
+
| { type: "jwt"; kid: string; sub: string }
|
|
22
|
+
| {
|
|
23
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
24
|
+
sub: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
username?: string;
|
|
28
|
+
}
|
|
29
|
+
| {
|
|
30
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
31
|
+
id: number;
|
|
32
|
+
firstName?: string;
|
|
33
|
+
lastName?: string;
|
|
34
|
+
photoUrl?: string;
|
|
35
|
+
authDate: number;
|
|
36
|
+
username?: string;
|
|
37
|
+
}
|
|
38
|
+
| { type: "siwe"; address: string }
|
|
39
|
+
)[];
|
|
40
|
+
mfaMethods?: {
|
|
41
|
+
enrollmentPromptedAt?: string;
|
|
42
|
+
totp?: { enrolledAt: string };
|
|
43
|
+
sms?: { enrolledAt: string };
|
|
44
|
+
};
|
|
45
|
+
evmAccounts: string[];
|
|
46
|
+
evmAccountObjects: { address: string; createdAt: string }[];
|
|
47
|
+
evmSmartAccounts: string[];
|
|
48
|
+
evmSmartAccountObjects: {
|
|
49
|
+
address: string;
|
|
50
|
+
ownerAddresses: string[];
|
|
51
|
+
createdAt: string;
|
|
52
|
+
}[];
|
|
53
|
+
solanaAccounts: string[];
|
|
54
|
+
solanaAccountObjects: { address: string; createdAt: string }[];
|
|
55
|
+
createdAt: string;
|
|
56
|
+
}
|
|
12
57
|
export const GetEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
58
|
userId: Schema.String,
|
|
14
|
-
authenticationMethods: Schema.Array(
|
|
59
|
+
authenticationMethods: Schema.Array(
|
|
60
|
+
Schema.Union([
|
|
61
|
+
Schema.Struct({
|
|
62
|
+
type: Schema.Literals(["email"]),
|
|
63
|
+
email: Schema.String,
|
|
64
|
+
}),
|
|
65
|
+
Schema.Struct({
|
|
66
|
+
type: Schema.Literals(["sms"]),
|
|
67
|
+
phoneNumber: Schema.String,
|
|
68
|
+
}),
|
|
69
|
+
Schema.Struct({
|
|
70
|
+
type: Schema.Literals(["jwt"]),
|
|
71
|
+
kid: Schema.String,
|
|
72
|
+
sub: Schema.String,
|
|
73
|
+
}),
|
|
74
|
+
Schema.Struct({
|
|
75
|
+
type: Schema.Literals(["google", "apple", "x", "telegram", "github"]),
|
|
76
|
+
sub: Schema.String,
|
|
77
|
+
email: Schema.optional(Schema.String),
|
|
78
|
+
name: Schema.optional(Schema.String),
|
|
79
|
+
username: Schema.optional(Schema.String),
|
|
80
|
+
}),
|
|
81
|
+
Schema.Struct({
|
|
82
|
+
type: Schema.Literals(["google", "apple", "x", "telegram", "github"]),
|
|
83
|
+
id: Schema.Number,
|
|
84
|
+
firstName: Schema.optional(Schema.String),
|
|
85
|
+
lastName: Schema.optional(Schema.String),
|
|
86
|
+
photoUrl: Schema.optional(Schema.String),
|
|
87
|
+
authDate: Schema.Number,
|
|
88
|
+
username: Schema.optional(Schema.String),
|
|
89
|
+
}),
|
|
90
|
+
Schema.Struct({
|
|
91
|
+
type: Schema.Literals(["siwe"]),
|
|
92
|
+
address: Schema.String,
|
|
93
|
+
}),
|
|
94
|
+
]),
|
|
95
|
+
),
|
|
15
96
|
mfaMethods: Schema.optional(
|
|
16
97
|
Schema.Struct({
|
|
17
98
|
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
@@ -50,12 +131,11 @@ export const GetEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
50
131
|
}),
|
|
51
132
|
),
|
|
52
133
|
createdAt: Schema.String,
|
|
53
|
-
})
|
|
54
|
-
export type GetEndUserOutput = typeof GetEndUserOutput.Type;
|
|
134
|
+
}) as unknown as Schema.Codec<GetEndUserOutput>;
|
|
55
135
|
|
|
56
136
|
// The operation
|
|
57
137
|
/**
|
|
58
|
-
* Get
|
|
138
|
+
* Get end user
|
|
59
139
|
*
|
|
60
140
|
* Gets an end user by ID.
|
|
61
141
|
* This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
@@ -3,24 +3,34 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmAccountInput {
|
|
7
|
+
address: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEvmAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
10
|
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
-
}).pipe(
|
|
9
|
-
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({ method: "GET", path: "/v2/evm/accounts/{address}" }),
|
|
13
|
+
) as unknown as Schema.Codec<GetEvmAccountInput>;
|
|
10
14
|
|
|
11
15
|
// Output Schema
|
|
16
|
+
export interface GetEvmAccountOutput {
|
|
17
|
+
address: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
policies?: string[];
|
|
20
|
+
createdAt?: string;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
}
|
|
12
23
|
export const GetEvmAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
24
|
address: Schema.String,
|
|
14
25
|
name: Schema.optional(Schema.String),
|
|
15
26
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
16
27
|
createdAt: Schema.optional(Schema.String),
|
|
17
28
|
updatedAt: Schema.optional(Schema.String),
|
|
18
|
-
})
|
|
19
|
-
export type GetEvmAccountOutput = typeof GetEvmAccountOutput.Type;
|
|
29
|
+
}) as unknown as Schema.Codec<GetEvmAccountOutput>;
|
|
20
30
|
|
|
21
31
|
// The operation
|
|
22
32
|
/**
|
|
23
|
-
* Get
|
|
33
|
+
* Get EVM account by address
|
|
24
34
|
*
|
|
25
35
|
* Gets an EVM account by its address.
|
|
26
36
|
*
|
|
@@ -3,13 +3,24 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmAccountByNameInput {
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEvmAccountByNameInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
name: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/v2/evm/accounts/by-name/{name}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetEvmAccountByNameInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface GetEvmAccountByNameOutput {
|
|
18
|
+
address: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
policies?: string[];
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
updatedAt?: string;
|
|
23
|
+
}
|
|
13
24
|
export const GetEvmAccountByNameOutput =
|
|
14
25
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
26
|
address: Schema.String,
|
|
@@ -17,12 +28,11 @@ export const GetEvmAccountByNameOutput =
|
|
|
17
28
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
18
29
|
createdAt: Schema.optional(Schema.String),
|
|
19
30
|
updatedAt: Schema.optional(Schema.String),
|
|
20
|
-
})
|
|
21
|
-
export type GetEvmAccountByNameOutput = typeof GetEvmAccountByNameOutput.Type;
|
|
31
|
+
}) as unknown as Schema.Codec<GetEvmAccountByNameOutput>;
|
|
22
32
|
|
|
23
33
|
// The operation
|
|
24
34
|
/**
|
|
25
|
-
* Get
|
|
35
|
+
* Get EVM account by name
|
|
26
36
|
*
|
|
27
37
|
* Gets an EVM account by its name.
|
|
28
38
|
*
|
|
@@ -3,6 +3,9 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmEip7702DelegationOperationByIdInput {
|
|
7
|
+
delegationOperationId: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEvmEip7702DelegationOperationByIdInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
delegationOperationId: Schema.String.pipe(T.PathParam()),
|
|
@@ -11,11 +14,23 @@ export const GetEvmEip7702DelegationOperationByIdInput =
|
|
|
11
14
|
method: "GET",
|
|
12
15
|
path: "/v2/evm/eip7702/delegation-operations/{delegationOperationId}",
|
|
13
16
|
}),
|
|
14
|
-
)
|
|
15
|
-
export type GetEvmEip7702DelegationOperationByIdInput =
|
|
16
|
-
typeof GetEvmEip7702DelegationOperationByIdInput.Type;
|
|
17
|
+
) as unknown as Schema.Codec<GetEvmEip7702DelegationOperationByIdInput>;
|
|
17
18
|
|
|
18
19
|
// Output Schema
|
|
20
|
+
export interface GetEvmEip7702DelegationOperationByIdOutput {
|
|
21
|
+
delegationOperationId: string;
|
|
22
|
+
status: "UNSPECIFIED" | "PENDING" | "SUBMITTED" | "COMPLETED" | "FAILED";
|
|
23
|
+
transactionHash?: string;
|
|
24
|
+
network:
|
|
25
|
+
| "base-sepolia"
|
|
26
|
+
| "base"
|
|
27
|
+
| "arbitrum"
|
|
28
|
+
| "optimism"
|
|
29
|
+
| "polygon"
|
|
30
|
+
| "ethereum"
|
|
31
|
+
| "ethereum-sepolia";
|
|
32
|
+
delegateAddress?: string;
|
|
33
|
+
}
|
|
19
34
|
export const GetEvmEip7702DelegationOperationByIdOutput =
|
|
20
35
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
36
|
delegationOperationId: Schema.String,
|
|
@@ -37,13 +52,11 @@ export const GetEvmEip7702DelegationOperationByIdOutput =
|
|
|
37
52
|
"ethereum-sepolia",
|
|
38
53
|
]),
|
|
39
54
|
delegateAddress: Schema.optional(Schema.String),
|
|
40
|
-
})
|
|
41
|
-
export type GetEvmEip7702DelegationOperationByIdOutput =
|
|
42
|
-
typeof GetEvmEip7702DelegationOperationByIdOutput.Type;
|
|
55
|
+
}) as unknown as Schema.Codec<GetEvmEip7702DelegationOperationByIdOutput>;
|
|
43
56
|
|
|
44
57
|
// The operation
|
|
45
58
|
/**
|
|
46
|
-
* Get EIP-7702 delegation operation
|
|
59
|
+
* Get EIP-7702 delegation operation by ID
|
|
47
60
|
*
|
|
48
61
|
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
49
62
|
*
|
|
@@ -3,13 +3,25 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmSmartAccountInput {
|
|
7
|
+
address: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEvmSmartAccountInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/v2/evm/smart-accounts/{address}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetEvmSmartAccountInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface GetEvmSmartAccountOutput {
|
|
18
|
+
address: string;
|
|
19
|
+
owners: string[];
|
|
20
|
+
name?: string;
|
|
21
|
+
policies?: string[];
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
updatedAt?: string;
|
|
24
|
+
}
|
|
13
25
|
export const GetEvmSmartAccountOutput =
|
|
14
26
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
27
|
address: Schema.String,
|
|
@@ -18,12 +30,11 @@ export const GetEvmSmartAccountOutput =
|
|
|
18
30
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
19
31
|
createdAt: Schema.optional(Schema.String),
|
|
20
32
|
updatedAt: Schema.optional(Schema.String),
|
|
21
|
-
})
|
|
22
|
-
export type GetEvmSmartAccountOutput = typeof GetEvmSmartAccountOutput.Type;
|
|
33
|
+
}) as unknown as Schema.Codec<GetEvmSmartAccountOutput>;
|
|
23
34
|
|
|
24
35
|
// The operation
|
|
25
36
|
/**
|
|
26
|
-
* Get
|
|
37
|
+
* Get Smart Account by address
|
|
27
38
|
*
|
|
28
39
|
* Gets a Smart Account by its address.
|
|
29
40
|
*
|
|
@@ -3,16 +3,25 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmSmartAccountByNameInput {
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetEvmSmartAccountByNameInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
name: Schema.String.pipe(T.PathParam()),
|
|
9
12
|
}).pipe(
|
|
10
13
|
T.Http({ method: "GET", path: "/v2/evm/smart-accounts/by-name/{name}" }),
|
|
11
|
-
)
|
|
12
|
-
export type GetEvmSmartAccountByNameInput =
|
|
13
|
-
typeof GetEvmSmartAccountByNameInput.Type;
|
|
14
|
+
) as unknown as Schema.Codec<GetEvmSmartAccountByNameInput>;
|
|
14
15
|
|
|
15
16
|
// Output Schema
|
|
17
|
+
export interface GetEvmSmartAccountByNameOutput {
|
|
18
|
+
address: string;
|
|
19
|
+
owners: string[];
|
|
20
|
+
name?: string;
|
|
21
|
+
policies?: string[];
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
updatedAt?: string;
|
|
24
|
+
}
|
|
16
25
|
export const GetEvmSmartAccountByNameOutput =
|
|
17
26
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
27
|
address: Schema.String,
|
|
@@ -21,13 +30,11 @@ export const GetEvmSmartAccountByNameOutput =
|
|
|
21
30
|
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
22
31
|
createdAt: Schema.optional(Schema.String),
|
|
23
32
|
updatedAt: Schema.optional(Schema.String),
|
|
24
|
-
})
|
|
25
|
-
export type GetEvmSmartAccountByNameOutput =
|
|
26
|
-
typeof GetEvmSmartAccountByNameOutput.Type;
|
|
33
|
+
}) as unknown as Schema.Codec<GetEvmSmartAccountByNameOutput>;
|
|
27
34
|
|
|
28
35
|
// The operation
|
|
29
36
|
/**
|
|
30
|
-
* Get
|
|
37
|
+
* Get Smart Account by name
|
|
31
38
|
*
|
|
32
39
|
* Gets a Smart Account by its name.
|
|
33
40
|
*
|
|
@@ -3,6 +3,16 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetEvmSwapPriceInput {
|
|
7
|
+
network: string;
|
|
8
|
+
toToken: string;
|
|
9
|
+
fromToken: string;
|
|
10
|
+
fromAmount: string;
|
|
11
|
+
taker: string;
|
|
12
|
+
signerAddress?: string;
|
|
13
|
+
gasPrice?: string;
|
|
14
|
+
slippageBps?: string;
|
|
15
|
+
}
|
|
6
16
|
export const GetEvmSwapPriceInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
17
|
network: Schema.String,
|
|
8
18
|
toToken: Schema.String,
|
|
@@ -12,16 +22,87 @@ export const GetEvmSwapPriceInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
22
|
signerAddress: Schema.optional(Schema.String),
|
|
13
23
|
gasPrice: Schema.optional(Schema.String),
|
|
14
24
|
slippageBps: Schema.optional(Schema.String),
|
|
15
|
-
}).pipe(
|
|
16
|
-
|
|
25
|
+
}).pipe(
|
|
26
|
+
T.Http({ method: "GET", path: "/v2/evm/swaps/quote" }),
|
|
27
|
+
) as unknown as Schema.Codec<GetEvmSwapPriceInput>;
|
|
17
28
|
|
|
18
29
|
// Output Schema
|
|
19
|
-
export
|
|
20
|
-
|
|
30
|
+
export type GetEvmSwapPriceOutput =
|
|
31
|
+
| {
|
|
32
|
+
blockNumber: string;
|
|
33
|
+
toAmount: string;
|
|
34
|
+
toToken: string;
|
|
35
|
+
fees: {
|
|
36
|
+
gasFee: { amount: string; token: string } | null;
|
|
37
|
+
protocolFee: { amount: string; token: string } | null;
|
|
38
|
+
};
|
|
39
|
+
issues: {
|
|
40
|
+
allowance: { currentAllowance: string; spender: string } | null;
|
|
41
|
+
balance: {
|
|
42
|
+
token: string;
|
|
43
|
+
currentBalance: string;
|
|
44
|
+
requiredBalance: string;
|
|
45
|
+
} | null;
|
|
46
|
+
simulationIncomplete: boolean;
|
|
47
|
+
};
|
|
48
|
+
liquidityAvailable: true;
|
|
49
|
+
minToAmount: string;
|
|
50
|
+
fromAmount: string;
|
|
51
|
+
fromToken: string;
|
|
52
|
+
gas: string | null;
|
|
53
|
+
gasPrice: string;
|
|
54
|
+
}
|
|
55
|
+
| { liquidityAvailable: false };
|
|
56
|
+
export const GetEvmSwapPriceOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
57
|
+
Schema.Struct({
|
|
58
|
+
blockNumber: Schema.String,
|
|
59
|
+
toAmount: Schema.String,
|
|
60
|
+
toToken: Schema.String,
|
|
61
|
+
fees: Schema.Struct({
|
|
62
|
+
gasFee: Schema.NullOr(
|
|
63
|
+
Schema.Struct({
|
|
64
|
+
amount: Schema.String,
|
|
65
|
+
token: Schema.String,
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
protocolFee: Schema.NullOr(
|
|
69
|
+
Schema.Struct({
|
|
70
|
+
amount: Schema.String,
|
|
71
|
+
token: Schema.String,
|
|
72
|
+
}),
|
|
73
|
+
),
|
|
74
|
+
}),
|
|
75
|
+
issues: Schema.Struct({
|
|
76
|
+
allowance: Schema.NullOr(
|
|
77
|
+
Schema.Struct({
|
|
78
|
+
currentAllowance: Schema.String,
|
|
79
|
+
spender: Schema.String,
|
|
80
|
+
}),
|
|
81
|
+
),
|
|
82
|
+
balance: Schema.NullOr(
|
|
83
|
+
Schema.Struct({
|
|
84
|
+
token: Schema.String,
|
|
85
|
+
currentBalance: Schema.String,
|
|
86
|
+
requiredBalance: Schema.String,
|
|
87
|
+
}),
|
|
88
|
+
),
|
|
89
|
+
simulationIncomplete: Schema.Boolean,
|
|
90
|
+
}),
|
|
91
|
+
liquidityAvailable: Schema.Literals([true]),
|
|
92
|
+
minToAmount: Schema.String,
|
|
93
|
+
fromAmount: Schema.String,
|
|
94
|
+
fromToken: Schema.String,
|
|
95
|
+
gas: Schema.NullOr(Schema.String),
|
|
96
|
+
gasPrice: Schema.String,
|
|
97
|
+
}),
|
|
98
|
+
Schema.Struct({
|
|
99
|
+
liquidityAvailable: Schema.Literals([false]),
|
|
100
|
+
}),
|
|
101
|
+
]) as unknown as Schema.Codec<GetEvmSwapPriceOutput>;
|
|
21
102
|
|
|
22
103
|
// The operation
|
|
23
104
|
/**
|
|
24
|
-
* Get
|
|
105
|
+
* Get swap price estimate
|
|
25
106
|
*
|
|
26
107
|
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
27
108
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export interface GetFoundationAccountByIdInput {
|
|
7
|
+
accountId: string;
|
|
8
|
+
}
|
|
9
|
+
export const GetFoundationAccountByIdInput =
|
|
10
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
accountId: Schema.String.pipe(T.PathParam()),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/v2/accounts/{accountId}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetFoundationAccountByIdInput>;
|
|
15
|
+
|
|
16
|
+
// Output Schema
|
|
17
|
+
export interface GetFoundationAccountByIdOutput {
|
|
18
|
+
accountId: string;
|
|
19
|
+
type: "prime" | "business" | "cdp";
|
|
20
|
+
owner: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
}
|
|
25
|
+
export const GetFoundationAccountByIdOutput =
|
|
26
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
accountId: Schema.String,
|
|
28
|
+
type: Schema.Literals(["prime", "business", "cdp"]),
|
|
29
|
+
owner: Schema.String,
|
|
30
|
+
name: Schema.optional(Schema.String),
|
|
31
|
+
createdAt: Schema.String,
|
|
32
|
+
updatedAt: Schema.String,
|
|
33
|
+
}) as unknown as Schema.Codec<GetFoundationAccountByIdOutput>;
|
|
34
|
+
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Get account
|
|
38
|
+
*
|
|
39
|
+
* Get an account by its ID.
|
|
40
|
+
*
|
|
41
|
+
* @param accountId - The ID of the account to retrieve.
|
|
42
|
+
*/
|
|
43
|
+
export const getFoundationAccountById = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
44
|
+
() => ({
|
|
45
|
+
inputSchema: GetFoundationAccountByIdInput,
|
|
46
|
+
outputSchema: GetFoundationAccountByIdOutput,
|
|
47
|
+
}),
|
|
48
|
+
);
|
|
@@ -3,13 +3,46 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetOnrampOrderByIdInput {
|
|
7
|
+
orderId: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetOnrampOrderByIdInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
orderId: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/v2/onramp/orders/{orderId}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetOnrampOrderByIdInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface GetOnrampOrderByIdOutput {
|
|
18
|
+
order: {
|
|
19
|
+
orderId: string;
|
|
20
|
+
paymentTotal: string;
|
|
21
|
+
paymentSubtotal: string;
|
|
22
|
+
paymentCurrency: string;
|
|
23
|
+
paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
24
|
+
purchaseAmount: string;
|
|
25
|
+
purchaseCurrency: string;
|
|
26
|
+
fees: {
|
|
27
|
+
type: "FEE_TYPE_NETWORK" | "FEE_TYPE_EXCHANGE";
|
|
28
|
+
amount: string;
|
|
29
|
+
currency: string;
|
|
30
|
+
}[];
|
|
31
|
+
exchangeRate: string;
|
|
32
|
+
destinationAddress: string;
|
|
33
|
+
destinationNetwork: string;
|
|
34
|
+
status:
|
|
35
|
+
| "ONRAMP_ORDER_STATUS_PENDING_AUTH"
|
|
36
|
+
| "ONRAMP_ORDER_STATUS_PENDING_PAYMENT"
|
|
37
|
+
| "ONRAMP_ORDER_STATUS_PROCESSING"
|
|
38
|
+
| "ONRAMP_ORDER_STATUS_COMPLETED"
|
|
39
|
+
| "ONRAMP_ORDER_STATUS_FAILED";
|
|
40
|
+
txHash?: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
partnerUserRef?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
13
46
|
export const GetOnrampOrderByIdOutput =
|
|
14
47
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
48
|
order: Schema.Struct({
|
|
@@ -45,8 +78,7 @@ export const GetOnrampOrderByIdOutput =
|
|
|
45
78
|
updatedAt: Schema.String,
|
|
46
79
|
partnerUserRef: Schema.optional(Schema.String),
|
|
47
80
|
}),
|
|
48
|
-
})
|
|
49
|
-
export type GetOnrampOrderByIdOutput = typeof GetOnrampOrderByIdOutput.Type;
|
|
81
|
+
}) as unknown as Schema.Codec<GetOnrampOrderByIdOutput>;
|
|
50
82
|
|
|
51
83
|
// The operation
|
|
52
84
|
/**
|
|
@@ -3,6 +3,11 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetOnrampUserLimitsInput {
|
|
7
|
+
paymentMethodType: "GUEST_CHECKOUT_APPLE_PAY" | "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
8
|
+
userId: string;
|
|
9
|
+
userIdType: "phone_number";
|
|
10
|
+
}
|
|
6
11
|
export const GetOnrampUserLimitsInput =
|
|
7
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
13
|
paymentMethodType: Schema.Literals([
|
|
@@ -11,10 +16,19 @@ export const GetOnrampUserLimitsInput =
|
|
|
11
16
|
]),
|
|
12
17
|
userId: Schema.String,
|
|
13
18
|
userIdType: Schema.Literals(["phone_number"]),
|
|
14
|
-
}).pipe(
|
|
15
|
-
|
|
19
|
+
}).pipe(
|
|
20
|
+
T.Http({ method: "POST", path: "/v2/onramp/limits" }),
|
|
21
|
+
) as unknown as Schema.Codec<GetOnrampUserLimitsInput>;
|
|
16
22
|
|
|
17
23
|
// Output Schema
|
|
24
|
+
export interface GetOnrampUserLimitsOutput {
|
|
25
|
+
limits: {
|
|
26
|
+
limitType: "weekly_spending" | "lifetime_transactions";
|
|
27
|
+
currency?: string;
|
|
28
|
+
limit: string;
|
|
29
|
+
remaining: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
18
32
|
export const GetOnrampUserLimitsOutput =
|
|
19
33
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
34
|
limits: Schema.Array(
|
|
@@ -28,8 +42,7 @@ export const GetOnrampUserLimitsOutput =
|
|
|
28
42
|
remaining: Schema.String,
|
|
29
43
|
}),
|
|
30
44
|
),
|
|
31
|
-
})
|
|
32
|
-
export type GetOnrampUserLimitsOutput = typeof GetOnrampUserLimitsOutput.Type;
|
|
45
|
+
}) as unknown as Schema.Codec<GetOnrampUserLimitsOutput>;
|
|
33
46
|
|
|
34
47
|
// The operation
|
|
35
48
|
/**
|