@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
|
@@ -0,0 +1,174 @@
|
|
|
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 ListX402DiscoveryMerchantInput {
|
|
7
|
+
payTo: string;
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}
|
|
11
|
+
export const ListX402DiscoveryMerchantInput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
payTo: Schema.String,
|
|
14
|
+
limit: Schema.optional(Schema.Number),
|
|
15
|
+
offset: Schema.optional(Schema.Number),
|
|
16
|
+
}).pipe(
|
|
17
|
+
T.Http({ method: "GET", path: "/v2/x402/discovery/merchant" }),
|
|
18
|
+
) as unknown as Schema.Codec<ListX402DiscoveryMerchantInput>;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export interface ListX402DiscoveryMerchantOutput {
|
|
22
|
+
x402Version: 1 | 2;
|
|
23
|
+
payTo: string;
|
|
24
|
+
resources: {
|
|
25
|
+
resource: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
type: "http" | "mcp";
|
|
28
|
+
x402Version: 1 | 2;
|
|
29
|
+
lastUpdated?: string;
|
|
30
|
+
accepts?: (
|
|
31
|
+
| {
|
|
32
|
+
scheme: "exact" | "upto" | "batch-settlement";
|
|
33
|
+
network:
|
|
34
|
+
| "eip155:8453"
|
|
35
|
+
| "eip155:84532"
|
|
36
|
+
| "eip155:137"
|
|
37
|
+
| "eip155:42161"
|
|
38
|
+
| "eip155:480"
|
|
39
|
+
| "eip155:4801"
|
|
40
|
+
| "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
|
|
41
|
+
| "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
42
|
+
asset: string;
|
|
43
|
+
amount: string;
|
|
44
|
+
payTo: string;
|
|
45
|
+
maxTimeoutSeconds: number;
|
|
46
|
+
extra?: Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
| {
|
|
49
|
+
scheme: "exact";
|
|
50
|
+
network: "base" | "base-sepolia" | "solana" | "solana-devnet";
|
|
51
|
+
maxAmountRequired: string;
|
|
52
|
+
resource: string;
|
|
53
|
+
description: string;
|
|
54
|
+
mimeType: string;
|
|
55
|
+
outputSchema?: Record<string, unknown>;
|
|
56
|
+
payTo: string;
|
|
57
|
+
maxTimeoutSeconds: number;
|
|
58
|
+
asset: string;
|
|
59
|
+
extra?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
)[];
|
|
62
|
+
extensions?: Record<string, unknown>;
|
|
63
|
+
quality?: {
|
|
64
|
+
l30DaysTotalCalls?: number;
|
|
65
|
+
l30DaysUniquePayers?: number;
|
|
66
|
+
lastCalledAt?: string;
|
|
67
|
+
};
|
|
68
|
+
serviceName?: string;
|
|
69
|
+
tags?: string[];
|
|
70
|
+
iconUrl?: string;
|
|
71
|
+
}[];
|
|
72
|
+
pagination: { limit?: number; offset?: number; total?: number };
|
|
73
|
+
}
|
|
74
|
+
export const ListX402DiscoveryMerchantOutput =
|
|
75
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
76
|
+
x402Version: Schema.Literals([1, 2]),
|
|
77
|
+
payTo: Schema.String,
|
|
78
|
+
resources: Schema.Array(
|
|
79
|
+
Schema.Struct({
|
|
80
|
+
resource: Schema.String,
|
|
81
|
+
description: Schema.optional(Schema.String),
|
|
82
|
+
type: Schema.Literals(["http", "mcp"]),
|
|
83
|
+
x402Version: Schema.Literals([1, 2]),
|
|
84
|
+
lastUpdated: Schema.optional(Schema.String),
|
|
85
|
+
accepts: Schema.optional(
|
|
86
|
+
Schema.Array(
|
|
87
|
+
Schema.Union([
|
|
88
|
+
Schema.Struct({
|
|
89
|
+
scheme: Schema.Literals(["exact", "upto", "batch-settlement"]),
|
|
90
|
+
network: Schema.Literals([
|
|
91
|
+
"eip155:8453",
|
|
92
|
+
"eip155:84532",
|
|
93
|
+
"eip155:137",
|
|
94
|
+
"eip155:42161",
|
|
95
|
+
"eip155:480",
|
|
96
|
+
"eip155:4801",
|
|
97
|
+
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
98
|
+
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
99
|
+
]),
|
|
100
|
+
asset: Schema.String,
|
|
101
|
+
amount: Schema.String,
|
|
102
|
+
payTo: Schema.String,
|
|
103
|
+
maxTimeoutSeconds: Schema.Number,
|
|
104
|
+
extra: Schema.optional(
|
|
105
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
106
|
+
),
|
|
107
|
+
}),
|
|
108
|
+
Schema.Struct({
|
|
109
|
+
scheme: Schema.Literals(["exact"]),
|
|
110
|
+
network: Schema.Literals([
|
|
111
|
+
"base",
|
|
112
|
+
"base-sepolia",
|
|
113
|
+
"solana",
|
|
114
|
+
"solana-devnet",
|
|
115
|
+
]),
|
|
116
|
+
maxAmountRequired: Schema.String,
|
|
117
|
+
resource: Schema.String,
|
|
118
|
+
description: Schema.String,
|
|
119
|
+
mimeType: Schema.String,
|
|
120
|
+
outputSchema: Schema.optional(
|
|
121
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
122
|
+
),
|
|
123
|
+
payTo: Schema.String,
|
|
124
|
+
maxTimeoutSeconds: Schema.Number,
|
|
125
|
+
asset: Schema.String,
|
|
126
|
+
extra: Schema.optional(
|
|
127
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
128
|
+
),
|
|
129
|
+
}),
|
|
130
|
+
]),
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
extensions: Schema.optional(
|
|
134
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
135
|
+
),
|
|
136
|
+
quality: Schema.optional(
|
|
137
|
+
Schema.Struct({
|
|
138
|
+
l30DaysTotalCalls: Schema.optional(Schema.Number),
|
|
139
|
+
l30DaysUniquePayers: Schema.optional(Schema.Number),
|
|
140
|
+
lastCalledAt: Schema.optional(Schema.String),
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
serviceName: Schema.optional(Schema.String),
|
|
144
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
145
|
+
iconUrl: Schema.optional(Schema.String),
|
|
146
|
+
}),
|
|
147
|
+
),
|
|
148
|
+
pagination: Schema.Struct({
|
|
149
|
+
limit: Schema.optional(Schema.Number),
|
|
150
|
+
offset: Schema.optional(Schema.Number),
|
|
151
|
+
total: Schema.optional(Schema.Number),
|
|
152
|
+
}),
|
|
153
|
+
}) as unknown as Schema.Codec<ListX402DiscoveryMerchantOutput>;
|
|
154
|
+
|
|
155
|
+
// The operation
|
|
156
|
+
/**
|
|
157
|
+
* List merchant discovery info
|
|
158
|
+
*
|
|
159
|
+
* Gets x402 merchant discovery information for a given merchant payment address.
|
|
160
|
+
* This endpoint returns all active x402 resources associated with the specified `payTo` address, allowing clients to discover what payment-gated resources a merchant exposes and their corresponding payment requirements.
|
|
161
|
+
* If no active resources are found for the `payTo` address, the endpoint returns an empty `resources` list.
|
|
162
|
+
* The response is paginated, and by default, returns 20 items per page.
|
|
163
|
+
*
|
|
164
|
+
* @param payTo - The merchant's payment address to look up.
|
|
165
|
+
This is the onchain address that payment requirements route funds to.
|
|
166
|
+
* @param limit - The number of resources to return per page.
|
|
167
|
+
* @param offset - The offset of the first resource to return.
|
|
168
|
+
*/
|
|
169
|
+
export const listX402DiscoveryMerchant = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
170
|
+
() => ({
|
|
171
|
+
inputSchema: ListX402DiscoveryMerchantInput,
|
|
172
|
+
outputSchema: ListX402DiscoveryMerchantOutput,
|
|
173
|
+
}),
|
|
174
|
+
);
|
|
@@ -0,0 +1,171 @@
|
|
|
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 ListX402DiscoveryResourcesInput {
|
|
7
|
+
type?: string;
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}
|
|
11
|
+
export const ListX402DiscoveryResourcesInput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
type: Schema.optional(Schema.String),
|
|
14
|
+
limit: Schema.optional(Schema.Number),
|
|
15
|
+
offset: Schema.optional(Schema.Number),
|
|
16
|
+
}).pipe(
|
|
17
|
+
T.Http({ method: "GET", path: "/v2/x402/discovery/resources" }),
|
|
18
|
+
) as unknown as Schema.Codec<ListX402DiscoveryResourcesInput>;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export interface ListX402DiscoveryResourcesOutput {
|
|
22
|
+
x402Version: 1 | 2;
|
|
23
|
+
items: {
|
|
24
|
+
resource: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
type: "http" | "mcp";
|
|
27
|
+
x402Version: 1 | 2;
|
|
28
|
+
lastUpdated?: string;
|
|
29
|
+
accepts?: (
|
|
30
|
+
| {
|
|
31
|
+
scheme: "exact" | "upto" | "batch-settlement";
|
|
32
|
+
network:
|
|
33
|
+
| "eip155:8453"
|
|
34
|
+
| "eip155:84532"
|
|
35
|
+
| "eip155:137"
|
|
36
|
+
| "eip155:42161"
|
|
37
|
+
| "eip155:480"
|
|
38
|
+
| "eip155:4801"
|
|
39
|
+
| "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
|
|
40
|
+
| "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
41
|
+
asset: string;
|
|
42
|
+
amount: string;
|
|
43
|
+
payTo: string;
|
|
44
|
+
maxTimeoutSeconds: number;
|
|
45
|
+
extra?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
| {
|
|
48
|
+
scheme: "exact";
|
|
49
|
+
network: "base" | "base-sepolia" | "solana" | "solana-devnet";
|
|
50
|
+
maxAmountRequired: string;
|
|
51
|
+
resource: string;
|
|
52
|
+
description: string;
|
|
53
|
+
mimeType: string;
|
|
54
|
+
outputSchema?: Record<string, unknown>;
|
|
55
|
+
payTo: string;
|
|
56
|
+
maxTimeoutSeconds: number;
|
|
57
|
+
asset: string;
|
|
58
|
+
extra?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
)[];
|
|
61
|
+
extensions?: Record<string, unknown>;
|
|
62
|
+
quality?: {
|
|
63
|
+
l30DaysTotalCalls?: number;
|
|
64
|
+
l30DaysUniquePayers?: number;
|
|
65
|
+
lastCalledAt?: string;
|
|
66
|
+
};
|
|
67
|
+
serviceName?: string;
|
|
68
|
+
tags?: string[];
|
|
69
|
+
iconUrl?: string;
|
|
70
|
+
}[];
|
|
71
|
+
pagination: { limit?: number; offset?: number; total?: number };
|
|
72
|
+
}
|
|
73
|
+
export const ListX402DiscoveryResourcesOutput =
|
|
74
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
75
|
+
x402Version: Schema.Literals([1, 2]),
|
|
76
|
+
items: Schema.Array(
|
|
77
|
+
Schema.Struct({
|
|
78
|
+
resource: Schema.String,
|
|
79
|
+
description: Schema.optional(Schema.String),
|
|
80
|
+
type: Schema.Literals(["http", "mcp"]),
|
|
81
|
+
x402Version: Schema.Literals([1, 2]),
|
|
82
|
+
lastUpdated: Schema.optional(Schema.String),
|
|
83
|
+
accepts: Schema.optional(
|
|
84
|
+
Schema.Array(
|
|
85
|
+
Schema.Union([
|
|
86
|
+
Schema.Struct({
|
|
87
|
+
scheme: Schema.Literals(["exact", "upto", "batch-settlement"]),
|
|
88
|
+
network: Schema.Literals([
|
|
89
|
+
"eip155:8453",
|
|
90
|
+
"eip155:84532",
|
|
91
|
+
"eip155:137",
|
|
92
|
+
"eip155:42161",
|
|
93
|
+
"eip155:480",
|
|
94
|
+
"eip155:4801",
|
|
95
|
+
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
96
|
+
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
97
|
+
]),
|
|
98
|
+
asset: Schema.String,
|
|
99
|
+
amount: Schema.String,
|
|
100
|
+
payTo: Schema.String,
|
|
101
|
+
maxTimeoutSeconds: Schema.Number,
|
|
102
|
+
extra: Schema.optional(
|
|
103
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
104
|
+
),
|
|
105
|
+
}),
|
|
106
|
+
Schema.Struct({
|
|
107
|
+
scheme: Schema.Literals(["exact"]),
|
|
108
|
+
network: Schema.Literals([
|
|
109
|
+
"base",
|
|
110
|
+
"base-sepolia",
|
|
111
|
+
"solana",
|
|
112
|
+
"solana-devnet",
|
|
113
|
+
]),
|
|
114
|
+
maxAmountRequired: Schema.String,
|
|
115
|
+
resource: Schema.String,
|
|
116
|
+
description: Schema.String,
|
|
117
|
+
mimeType: Schema.String,
|
|
118
|
+
outputSchema: Schema.optional(
|
|
119
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
120
|
+
),
|
|
121
|
+
payTo: Schema.String,
|
|
122
|
+
maxTimeoutSeconds: Schema.Number,
|
|
123
|
+
asset: Schema.String,
|
|
124
|
+
extra: Schema.optional(
|
|
125
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
126
|
+
),
|
|
127
|
+
}),
|
|
128
|
+
]),
|
|
129
|
+
),
|
|
130
|
+
),
|
|
131
|
+
extensions: Schema.optional(
|
|
132
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
133
|
+
),
|
|
134
|
+
quality: Schema.optional(
|
|
135
|
+
Schema.Struct({
|
|
136
|
+
l30DaysTotalCalls: Schema.optional(Schema.Number),
|
|
137
|
+
l30DaysUniquePayers: Schema.optional(Schema.Number),
|
|
138
|
+
lastCalledAt: Schema.optional(Schema.String),
|
|
139
|
+
}),
|
|
140
|
+
),
|
|
141
|
+
serviceName: Schema.optional(Schema.String),
|
|
142
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
143
|
+
iconUrl: Schema.optional(Schema.String),
|
|
144
|
+
}),
|
|
145
|
+
),
|
|
146
|
+
pagination: Schema.Struct({
|
|
147
|
+
limit: Schema.optional(Schema.Number),
|
|
148
|
+
offset: Schema.optional(Schema.Number),
|
|
149
|
+
total: Schema.optional(Schema.Number),
|
|
150
|
+
}),
|
|
151
|
+
}) as unknown as Schema.Codec<ListX402DiscoveryResourcesOutput>;
|
|
152
|
+
|
|
153
|
+
// The operation
|
|
154
|
+
/**
|
|
155
|
+
* List x402 resources
|
|
156
|
+
*
|
|
157
|
+
* Lists all active discovered x402 resources.
|
|
158
|
+
* This endpoint returns resources that have been discovered and cached by the x402 facilitator, including their payment requirements and metadata.
|
|
159
|
+
* The response is paginated, and by default, returns 100 items per page.
|
|
160
|
+
*
|
|
161
|
+
* @param type - Filter by protocol type (e.g., "http", "mcp").
|
|
162
|
+
Currently, the only supported protocol type is "http".
|
|
163
|
+
* @param limit - The number of discovered x402 resources to return per page.
|
|
164
|
+
* @param offset - The offset of the first discovered x402 resource to return.
|
|
165
|
+
*/
|
|
166
|
+
export const listX402DiscoveryResources = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
167
|
+
() => ({
|
|
168
|
+
inputSchema: ListX402DiscoveryResourcesInput,
|
|
169
|
+
outputSchema: ListX402DiscoveryResourcesOutput,
|
|
170
|
+
}),
|
|
171
|
+
);
|
|
@@ -0,0 +1,188 @@
|
|
|
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 LookupEndUserInput {
|
|
7
|
+
email?: string;
|
|
8
|
+
oauthProvider?: string;
|
|
9
|
+
oauthSubject?: string;
|
|
10
|
+
phoneNumber?: string;
|
|
11
|
+
siweAddress?: string;
|
|
12
|
+
}
|
|
13
|
+
export const LookupEndUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
email: Schema.optional(Schema.String),
|
|
15
|
+
oauthProvider: Schema.optional(Schema.String),
|
|
16
|
+
oauthSubject: Schema.optional(Schema.String),
|
|
17
|
+
phoneNumber: Schema.optional(Schema.String),
|
|
18
|
+
siweAddress: Schema.optional(Schema.String),
|
|
19
|
+
}).pipe(
|
|
20
|
+
T.Http({ method: "GET", path: "/v2/end-users/lookup" }),
|
|
21
|
+
) as unknown as Schema.Codec<LookupEndUserInput>;
|
|
22
|
+
|
|
23
|
+
// Output Schema
|
|
24
|
+
export interface LookupEndUserOutput {
|
|
25
|
+
endUsers: {
|
|
26
|
+
userId: string;
|
|
27
|
+
authenticationMethods: (
|
|
28
|
+
| { type: "email"; email: string }
|
|
29
|
+
| { type: "sms"; phoneNumber: string }
|
|
30
|
+
| { type: "jwt"; kid: string; sub: string }
|
|
31
|
+
| {
|
|
32
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
33
|
+
sub: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
username?: string;
|
|
37
|
+
}
|
|
38
|
+
| {
|
|
39
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
40
|
+
id: number;
|
|
41
|
+
firstName?: string;
|
|
42
|
+
lastName?: string;
|
|
43
|
+
photoUrl?: string;
|
|
44
|
+
authDate: number;
|
|
45
|
+
username?: string;
|
|
46
|
+
}
|
|
47
|
+
| { type: "siwe"; address: string }
|
|
48
|
+
)[];
|
|
49
|
+
mfaMethods?: {
|
|
50
|
+
enrollmentPromptedAt?: string;
|
|
51
|
+
totp?: { enrolledAt: string };
|
|
52
|
+
sms?: { enrolledAt: string };
|
|
53
|
+
};
|
|
54
|
+
evmAccounts: string[];
|
|
55
|
+
evmAccountObjects: { address: string; createdAt: string }[];
|
|
56
|
+
evmSmartAccounts: string[];
|
|
57
|
+
evmSmartAccountObjects: {
|
|
58
|
+
address: string;
|
|
59
|
+
ownerAddresses: string[];
|
|
60
|
+
createdAt: string;
|
|
61
|
+
}[];
|
|
62
|
+
solanaAccounts: string[];
|
|
63
|
+
solanaAccountObjects: { address: string; createdAt: string }[];
|
|
64
|
+
createdAt: string;
|
|
65
|
+
}[];
|
|
66
|
+
}
|
|
67
|
+
export const LookupEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
68
|
+
endUsers: Schema.Array(
|
|
69
|
+
Schema.Struct({
|
|
70
|
+
userId: Schema.String,
|
|
71
|
+
authenticationMethods: Schema.Array(
|
|
72
|
+
Schema.Union([
|
|
73
|
+
Schema.Struct({
|
|
74
|
+
type: Schema.Literals(["email"]),
|
|
75
|
+
email: Schema.String,
|
|
76
|
+
}),
|
|
77
|
+
Schema.Struct({
|
|
78
|
+
type: Schema.Literals(["sms"]),
|
|
79
|
+
phoneNumber: Schema.String,
|
|
80
|
+
}),
|
|
81
|
+
Schema.Struct({
|
|
82
|
+
type: Schema.Literals(["jwt"]),
|
|
83
|
+
kid: Schema.String,
|
|
84
|
+
sub: Schema.String,
|
|
85
|
+
}),
|
|
86
|
+
Schema.Struct({
|
|
87
|
+
type: Schema.Literals([
|
|
88
|
+
"google",
|
|
89
|
+
"apple",
|
|
90
|
+
"x",
|
|
91
|
+
"telegram",
|
|
92
|
+
"github",
|
|
93
|
+
]),
|
|
94
|
+
sub: Schema.String,
|
|
95
|
+
email: Schema.optional(Schema.String),
|
|
96
|
+
name: Schema.optional(Schema.String),
|
|
97
|
+
username: Schema.optional(Schema.String),
|
|
98
|
+
}),
|
|
99
|
+
Schema.Struct({
|
|
100
|
+
type: Schema.Literals([
|
|
101
|
+
"google",
|
|
102
|
+
"apple",
|
|
103
|
+
"x",
|
|
104
|
+
"telegram",
|
|
105
|
+
"github",
|
|
106
|
+
]),
|
|
107
|
+
id: Schema.Number,
|
|
108
|
+
firstName: Schema.optional(Schema.String),
|
|
109
|
+
lastName: Schema.optional(Schema.String),
|
|
110
|
+
photoUrl: Schema.optional(Schema.String),
|
|
111
|
+
authDate: Schema.Number,
|
|
112
|
+
username: Schema.optional(Schema.String),
|
|
113
|
+
}),
|
|
114
|
+
Schema.Struct({
|
|
115
|
+
type: Schema.Literals(["siwe"]),
|
|
116
|
+
address: Schema.String,
|
|
117
|
+
}),
|
|
118
|
+
]),
|
|
119
|
+
),
|
|
120
|
+
mfaMethods: Schema.optional(
|
|
121
|
+
Schema.Struct({
|
|
122
|
+
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
123
|
+
totp: Schema.optional(
|
|
124
|
+
Schema.Struct({
|
|
125
|
+
enrolledAt: Schema.String,
|
|
126
|
+
}),
|
|
127
|
+
),
|
|
128
|
+
sms: Schema.optional(
|
|
129
|
+
Schema.Struct({
|
|
130
|
+
enrolledAt: Schema.String,
|
|
131
|
+
}),
|
|
132
|
+
),
|
|
133
|
+
}),
|
|
134
|
+
),
|
|
135
|
+
evmAccounts: Schema.Array(Schema.String),
|
|
136
|
+
evmAccountObjects: Schema.Array(
|
|
137
|
+
Schema.Struct({
|
|
138
|
+
address: Schema.String,
|
|
139
|
+
createdAt: Schema.String,
|
|
140
|
+
}),
|
|
141
|
+
),
|
|
142
|
+
evmSmartAccounts: Schema.Array(Schema.String),
|
|
143
|
+
evmSmartAccountObjects: Schema.Array(
|
|
144
|
+
Schema.Struct({
|
|
145
|
+
address: Schema.String,
|
|
146
|
+
ownerAddresses: Schema.Array(Schema.String),
|
|
147
|
+
createdAt: Schema.String,
|
|
148
|
+
}),
|
|
149
|
+
),
|
|
150
|
+
solanaAccounts: Schema.Array(Schema.String),
|
|
151
|
+
solanaAccountObjects: Schema.Array(
|
|
152
|
+
Schema.Struct({
|
|
153
|
+
address: Schema.String,
|
|
154
|
+
createdAt: Schema.String,
|
|
155
|
+
}),
|
|
156
|
+
),
|
|
157
|
+
createdAt: Schema.String,
|
|
158
|
+
}),
|
|
159
|
+
),
|
|
160
|
+
}) as unknown as Schema.Codec<LookupEndUserOutput>;
|
|
161
|
+
|
|
162
|
+
// The operation
|
|
163
|
+
/**
|
|
164
|
+
* Look up end users by identity
|
|
165
|
+
*
|
|
166
|
+
* Looks up end users. Exactly one lookup type must be provided per request:
|
|
167
|
+
* - **email**: searches across all email-based authentication methods
|
|
168
|
+
* (email, Google, Apple, GitHub). May return multiple end users if the
|
|
169
|
+
* same email address appears across different auth methods.
|
|
170
|
+
* - **oauthProvider + oauthSubject**: looks up a user by their OAuth
|
|
171
|
+
* provider and subject (the `sub` claim from the provider's ID token).
|
|
172
|
+
* Both params must be provided together.
|
|
173
|
+
* - **phoneNumber**: looks up a user by their SMS-verified phone number.
|
|
174
|
+
* - **siweAddress**: looks up a user by the Ethereum address they authenticated
|
|
175
|
+
* with via Sign In With Ethereum (EIP-4361).
|
|
176
|
+
* Returns all matching end users. If no end users match, an empty array is returned.
|
|
177
|
+
* This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
178
|
+
*
|
|
179
|
+
* @param email - The email address to search for across all email-based authentication methods.
|
|
180
|
+
* @param oauthProvider - The OAuth provider to search by. Must be provided together with oauthSubject.
|
|
181
|
+
* @param oauthSubject - The OAuth subject (the `sub` claim from the provider's ID token). Must be provided together with oauthProvider.
|
|
182
|
+
* @param phoneNumber - The E.164-formatted phone number to search for. Must be URL-encoded when passed as a query parameter (e.g. `+14155552671` → `%2B14155552671`).
|
|
183
|
+
* @param siweAddress - The ERC-55 checksummed Ethereum address to search for. Looks up a user by the address they authenticated with via Sign In With Ethereum (EIP-4361).
|
|
184
|
+
*/
|
|
185
|
+
export const lookupEndUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
186
|
+
inputSchema: LookupEndUserInput,
|
|
187
|
+
outputSchema: LookupEndUserOutput,
|
|
188
|
+
}));
|
|
@@ -0,0 +1,56 @@
|
|
|
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 PostX402DiscoveryMcpInput {
|
|
7
|
+
jsonrpc: "2.0";
|
|
8
|
+
id?: string | number;
|
|
9
|
+
method: string;
|
|
10
|
+
params?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export const PostX402DiscoveryMcpInput =
|
|
13
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
jsonrpc: Schema.Literals(["2.0"]),
|
|
15
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Number])),
|
|
16
|
+
method: Schema.String,
|
|
17
|
+
params: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
18
|
+
}).pipe(
|
|
19
|
+
T.Http({ method: "POST", path: "/v2/x402/discovery/mcp" }),
|
|
20
|
+
) as unknown as Schema.Codec<PostX402DiscoveryMcpInput>;
|
|
21
|
+
|
|
22
|
+
// Output Schema
|
|
23
|
+
export interface PostX402DiscoveryMcpOutput {
|
|
24
|
+
jsonrpc: "2.0";
|
|
25
|
+
id?: string | number | null;
|
|
26
|
+
result?: Record<string, unknown>;
|
|
27
|
+
error?: { code: number; message: string; data?: Record<string, unknown> };
|
|
28
|
+
}
|
|
29
|
+
export const PostX402DiscoveryMcpOutput =
|
|
30
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
31
|
+
jsonrpc: Schema.Literals(["2.0"]),
|
|
32
|
+
id: Schema.optional(
|
|
33
|
+
Schema.NullOr(Schema.Union([Schema.String, Schema.Number])),
|
|
34
|
+
),
|
|
35
|
+
result: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
36
|
+
error: Schema.optional(
|
|
37
|
+
Schema.Struct({
|
|
38
|
+
code: Schema.Number,
|
|
39
|
+
message: Schema.String,
|
|
40
|
+
data: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
}) as unknown as Schema.Codec<PostX402DiscoveryMcpOutput>;
|
|
44
|
+
|
|
45
|
+
// The operation
|
|
46
|
+
/**
|
|
47
|
+
* Handle MCP JSON-RPC request
|
|
48
|
+
*
|
|
49
|
+
* Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools.
|
|
50
|
+
*/
|
|
51
|
+
export const postX402DiscoveryMcp = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
52
|
+
() => ({
|
|
53
|
+
inputSchema: PostX402DiscoveryMcpInput,
|
|
54
|
+
outputSchema: PostX402DiscoveryMcpOutput,
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
@@ -3,6 +3,28 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface PrepareAndSendUserOperationInput {
|
|
7
|
+
address: string;
|
|
8
|
+
network:
|
|
9
|
+
| "base-sepolia"
|
|
10
|
+
| "base"
|
|
11
|
+
| "arbitrum"
|
|
12
|
+
| "optimism"
|
|
13
|
+
| "zora"
|
|
14
|
+
| "polygon"
|
|
15
|
+
| "bnb"
|
|
16
|
+
| "avalanche"
|
|
17
|
+
| "ethereum"
|
|
18
|
+
| "ethereum-sepolia";
|
|
19
|
+
calls: {
|
|
20
|
+
to: string;
|
|
21
|
+
value: string;
|
|
22
|
+
data: string;
|
|
23
|
+
overrideGasLimit?: string;
|
|
24
|
+
}[];
|
|
25
|
+
paymasterUrl?: string;
|
|
26
|
+
paymasterContext?: Record<string, unknown>;
|
|
27
|
+
}
|
|
6
28
|
export const PrepareAndSendUserOperationInput =
|
|
7
29
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
30
|
address: Schema.String.pipe(T.PathParam()),
|
|
@@ -27,16 +49,53 @@ export const PrepareAndSendUserOperationInput =
|
|
|
27
49
|
}),
|
|
28
50
|
),
|
|
29
51
|
paymasterUrl: Schema.optional(Schema.String),
|
|
52
|
+
paymasterContext: Schema.optional(
|
|
53
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
54
|
+
),
|
|
30
55
|
}).pipe(
|
|
31
56
|
T.Http({
|
|
32
57
|
method: "POST",
|
|
33
58
|
path: "/v2/evm/smart-accounts/{address}/user-operations/prepare-and-send",
|
|
34
59
|
}),
|
|
35
|
-
)
|
|
36
|
-
export type PrepareAndSendUserOperationInput =
|
|
37
|
-
typeof PrepareAndSendUserOperationInput.Type;
|
|
60
|
+
) as unknown as Schema.Codec<PrepareAndSendUserOperationInput>;
|
|
38
61
|
|
|
39
62
|
// Output Schema
|
|
63
|
+
export interface PrepareAndSendUserOperationOutput {
|
|
64
|
+
network:
|
|
65
|
+
| "base-sepolia"
|
|
66
|
+
| "base"
|
|
67
|
+
| "arbitrum"
|
|
68
|
+
| "optimism"
|
|
69
|
+
| "zora"
|
|
70
|
+
| "polygon"
|
|
71
|
+
| "bnb"
|
|
72
|
+
| "avalanche"
|
|
73
|
+
| "ethereum"
|
|
74
|
+
| "ethereum-sepolia";
|
|
75
|
+
userOpHash: string;
|
|
76
|
+
calls: {
|
|
77
|
+
to: string;
|
|
78
|
+
value: string;
|
|
79
|
+
data: string;
|
|
80
|
+
overrideGasLimit?: string;
|
|
81
|
+
}[];
|
|
82
|
+
status:
|
|
83
|
+
| "pending"
|
|
84
|
+
| "signed"
|
|
85
|
+
| "broadcast"
|
|
86
|
+
| "complete"
|
|
87
|
+
| "dropped"
|
|
88
|
+
| "failed";
|
|
89
|
+
transactionHash?: string;
|
|
90
|
+
receipts?: {
|
|
91
|
+
revert?: { data: string; message: string };
|
|
92
|
+
transactionHash?: string;
|
|
93
|
+
blockHash?: string;
|
|
94
|
+
blockNumber?: number;
|
|
95
|
+
gasUsed?: string;
|
|
96
|
+
}[];
|
|
97
|
+
expiresAt?: string;
|
|
98
|
+
}
|
|
40
99
|
export const PrepareAndSendUserOperationOutput =
|
|
41
100
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
42
101
|
network: Schema.Literals([
|
|
@@ -85,13 +144,12 @@ export const PrepareAndSendUserOperationOutput =
|
|
|
85
144
|
}),
|
|
86
145
|
),
|
|
87
146
|
),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
typeof PrepareAndSendUserOperationOutput.Type;
|
|
147
|
+
expiresAt: Schema.optional(Schema.String),
|
|
148
|
+
}) as unknown as Schema.Codec<PrepareAndSendUserOperationOutput>;
|
|
91
149
|
|
|
92
150
|
// The operation
|
|
93
151
|
/**
|
|
94
|
-
* Prepare and send
|
|
152
|
+
* Prepare and send user operation
|
|
95
153
|
*
|
|
96
154
|
* Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account.
|
|
97
155
|
*
|