@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
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { SensitiveOutputString } from "../sensitive.js";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
6
|
export const UpdateWebhookSubscriptionInput =
|
|
7
7
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
8
|
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
9
9
|
description: Schema.optional(Schema.String),
|
|
10
|
-
eventTypes: Schema.Array(Schema.
|
|
10
|
+
eventTypes: Schema.Array(Schema.Literals([
|
|
11
|
+
"onchain.activity.detected",
|
|
12
|
+
"wallet.activity.detected",
|
|
13
|
+
"wallet.activity.multi",
|
|
14
|
+
"wallet.transaction.created",
|
|
15
|
+
"wallet.transaction.signed",
|
|
16
|
+
"wallet.transaction.broadcast",
|
|
17
|
+
"wallet.transaction.replaced",
|
|
18
|
+
"wallet.transaction.pending",
|
|
19
|
+
"wallet.transaction.confirmed",
|
|
20
|
+
"wallet.transaction.failed",
|
|
21
|
+
"wallet.delegation.created",
|
|
22
|
+
"wallet.delegation.revoked",
|
|
23
|
+
"wallet.typed_data.signed",
|
|
24
|
+
"wallet.message.signed",
|
|
25
|
+
"wallet.hash.signed",
|
|
26
|
+
"onramp.transaction.created",
|
|
27
|
+
"onramp.transaction.updated",
|
|
28
|
+
"onramp.transaction.success",
|
|
29
|
+
"onramp.transaction.failed",
|
|
30
|
+
"offramp.transaction.created",
|
|
31
|
+
"offramp.transaction.updated",
|
|
32
|
+
"offramp.transaction.success",
|
|
33
|
+
"offramp.transaction.failed",
|
|
34
|
+
])),
|
|
11
35
|
isEnabled: Schema.Boolean,
|
|
12
36
|
target: Schema.Struct({
|
|
13
37
|
url: Schema.String,
|
|
@@ -19,18 +43,41 @@ export const UpdateWebhookSubscriptionInput =
|
|
|
19
43
|
method: "PUT",
|
|
20
44
|
path: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
21
45
|
}));
|
|
22
|
-
// Output Schema
|
|
23
46
|
export const UpdateWebhookSubscriptionOutput =
|
|
24
47
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
25
48
|
createdAt: Schema.String,
|
|
26
49
|
updatedAt: Schema.optional(Schema.String),
|
|
27
50
|
description: Schema.optional(Schema.String),
|
|
28
|
-
eventTypes: Schema.Array(Schema.
|
|
51
|
+
eventTypes: Schema.Array(Schema.Literals([
|
|
52
|
+
"onchain.activity.detected",
|
|
53
|
+
"wallet.activity.detected",
|
|
54
|
+
"wallet.activity.multi",
|
|
55
|
+
"wallet.transaction.created",
|
|
56
|
+
"wallet.transaction.signed",
|
|
57
|
+
"wallet.transaction.broadcast",
|
|
58
|
+
"wallet.transaction.replaced",
|
|
59
|
+
"wallet.transaction.pending",
|
|
60
|
+
"wallet.transaction.confirmed",
|
|
61
|
+
"wallet.transaction.failed",
|
|
62
|
+
"wallet.delegation.created",
|
|
63
|
+
"wallet.delegation.revoked",
|
|
64
|
+
"wallet.typed_data.signed",
|
|
65
|
+
"wallet.message.signed",
|
|
66
|
+
"wallet.hash.signed",
|
|
67
|
+
"onramp.transaction.created",
|
|
68
|
+
"onramp.transaction.updated",
|
|
69
|
+
"onramp.transaction.success",
|
|
70
|
+
"onramp.transaction.failed",
|
|
71
|
+
"offramp.transaction.created",
|
|
72
|
+
"offramp.transaction.updated",
|
|
73
|
+
"offramp.transaction.success",
|
|
74
|
+
"offramp.transaction.failed",
|
|
75
|
+
])),
|
|
29
76
|
isEnabled: Schema.Boolean,
|
|
30
77
|
metadata: Schema.optional(Schema.Struct({
|
|
31
|
-
secret: Schema.optional(
|
|
78
|
+
secret: Schema.optional(SensitiveOutputString),
|
|
32
79
|
})),
|
|
33
|
-
secret:
|
|
80
|
+
secret: SensitiveOutputString,
|
|
34
81
|
subscriptionId: Schema.String,
|
|
35
82
|
target: Schema.Struct({
|
|
36
83
|
url: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/updateWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"updateWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/updateWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAoC5C,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,WAAW,EAAE,MAAM,CAA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GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC3E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CACH,CAAC"}
|
|
@@ -1,75 +1,72 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
export interface ValidateEndUserAccessTokenInput {
|
|
4
|
+
accessToken: string | Redacted.Redacted<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const ValidateEndUserAccessTokenInput: Schema.Codec<ValidateEndUserAccessTokenInput>;
|
|
7
|
+
export interface ValidateEndUserAccessTokenOutput {
|
|
8
|
+
userId: string;
|
|
9
|
+
authenticationMethods: ({
|
|
10
|
+
type: "email";
|
|
11
|
+
email: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "sms";
|
|
14
|
+
phoneNumber: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: "jwt";
|
|
17
|
+
kid: string;
|
|
18
|
+
sub: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
21
|
+
sub: string;
|
|
22
|
+
email?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
username?: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "google" | "apple" | "x" | "telegram" | "github";
|
|
27
|
+
id: number;
|
|
28
|
+
firstName?: string;
|
|
29
|
+
lastName?: string;
|
|
30
|
+
photoUrl?: string;
|
|
31
|
+
authDate: number;
|
|
32
|
+
username?: string;
|
|
33
|
+
} | {
|
|
34
|
+
type: "siwe";
|
|
35
|
+
address: string;
|
|
36
|
+
})[];
|
|
37
|
+
mfaMethods?: {
|
|
38
|
+
enrollmentPromptedAt?: string;
|
|
39
|
+
totp?: {
|
|
40
|
+
enrolledAt: string;
|
|
41
|
+
};
|
|
42
|
+
sms?: {
|
|
43
|
+
enrolledAt: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
evmAccounts: string[];
|
|
47
|
+
evmAccountObjects: {
|
|
48
|
+
address: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
}[];
|
|
51
|
+
evmSmartAccounts: string[];
|
|
52
|
+
evmSmartAccountObjects: {
|
|
53
|
+
address: string;
|
|
54
|
+
ownerAddresses: string[];
|
|
55
|
+
createdAt: string;
|
|
56
|
+
}[];
|
|
57
|
+
solanaAccounts: string[];
|
|
58
|
+
solanaAccountObjects: {
|
|
59
|
+
address: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
}[];
|
|
62
|
+
createdAt: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const ValidateEndUserAccessTokenOutput: Schema.Codec<ValidateEndUserAccessTokenOutput>;
|
|
37
65
|
/**
|
|
38
66
|
* Validate end user access token
|
|
39
67
|
*
|
|
40
68
|
* Validates the end user's access token and returns the end user's information. Returns an error if the access token is invalid or expired.
|
|
41
69
|
* This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
42
70
|
*/
|
|
43
|
-
export declare const validateEndUserAccessToken: import("@distilled.cloud/core/client").OperationMethod<
|
|
44
|
-
readonly accessToken: string | import("effect/Redacted").Redacted<string>;
|
|
45
|
-
}, {
|
|
46
|
-
readonly userId: string;
|
|
47
|
-
readonly authenticationMethods: readonly unknown[];
|
|
48
|
-
readonly mfaMethods?: {
|
|
49
|
-
readonly enrollmentPromptedAt?: string | undefined;
|
|
50
|
-
readonly totp?: {
|
|
51
|
-
readonly enrolledAt: string;
|
|
52
|
-
} | undefined;
|
|
53
|
-
readonly sms?: {
|
|
54
|
-
readonly enrolledAt: string;
|
|
55
|
-
} | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
readonly evmAccounts: readonly string[];
|
|
58
|
-
readonly evmAccountObjects: readonly {
|
|
59
|
-
readonly address: string;
|
|
60
|
-
readonly createdAt: string;
|
|
61
|
-
}[];
|
|
62
|
-
readonly evmSmartAccounts: readonly string[];
|
|
63
|
-
readonly evmSmartAccountObjects: readonly {
|
|
64
|
-
readonly address: string;
|
|
65
|
-
readonly ownerAddresses: readonly string[];
|
|
66
|
-
readonly createdAt: string;
|
|
67
|
-
}[];
|
|
68
|
-
readonly solanaAccounts: readonly string[];
|
|
69
|
-
readonly solanaAccountObjects: readonly {
|
|
70
|
-
readonly address: string;
|
|
71
|
-
readonly createdAt: string;
|
|
72
|
-
}[];
|
|
73
|
-
readonly createdAt: string;
|
|
74
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
71
|
+
export declare const validateEndUserAccessToken: import("@distilled.cloud/core/client").OperationMethod<ValidateEndUserAccessTokenInput, ValidateEndUserAccessTokenOutput, never, import("../credentials.ts").Credentials, never>;
|
|
75
72
|
//# sourceMappingURL=validateEndUserAccessToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateEndUserAccessToken.d.ts","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"validateEndUserAccessToken.d.ts","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAA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EAAE,MAAM,CAAC;QAC9B,IAAI,CAAC,EAAE;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9B,GAAG,CAAC,EAAE;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9B,CAAC;IACF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,iBAAiB,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5D,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,EAAE;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;IACJ,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,oBAAoB,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/D,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,gCAAgC,EA8E1B,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAGlE;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,kLAKtC,CAAC"}
|
|
@@ -2,16 +2,49 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { SensitiveString } from "../sensitive.js";
|
|
5
|
-
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
6
|
export const ValidateEndUserAccessTokenInput =
|
|
7
7
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
8
|
accessToken: SensitiveString,
|
|
9
9
|
}).pipe(T.Http({ method: "POST", path: "/v2/end-users/auth/validate-token" }));
|
|
10
|
-
// Output Schema
|
|
11
10
|
export const ValidateEndUserAccessTokenOutput =
|
|
12
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
12
|
userId: Schema.String,
|
|
14
|
-
authenticationMethods: Schema.Array(Schema.
|
|
13
|
+
authenticationMethods: Schema.Array(Schema.Union([
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
type: Schema.Literals(["email"]),
|
|
16
|
+
email: Schema.String,
|
|
17
|
+
}),
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
type: Schema.Literals(["sms"]),
|
|
20
|
+
phoneNumber: Schema.String,
|
|
21
|
+
}),
|
|
22
|
+
Schema.Struct({
|
|
23
|
+
type: Schema.Literals(["jwt"]),
|
|
24
|
+
kid: Schema.String,
|
|
25
|
+
sub: Schema.String,
|
|
26
|
+
}),
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
type: Schema.Literals(["google", "apple", "x", "telegram", "github"]),
|
|
29
|
+
sub: Schema.String,
|
|
30
|
+
email: Schema.optional(Schema.String),
|
|
31
|
+
name: Schema.optional(Schema.String),
|
|
32
|
+
username: Schema.optional(Schema.String),
|
|
33
|
+
}),
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
type: Schema.Literals(["google", "apple", "x", "telegram", "github"]),
|
|
36
|
+
id: Schema.Number,
|
|
37
|
+
firstName: Schema.optional(Schema.String),
|
|
38
|
+
lastName: Schema.optional(Schema.String),
|
|
39
|
+
photoUrl: Schema.optional(Schema.String),
|
|
40
|
+
authDate: Schema.Number,
|
|
41
|
+
username: Schema.optional(Schema.String),
|
|
42
|
+
}),
|
|
43
|
+
Schema.Struct({
|
|
44
|
+
type: Schema.Literals(["siwe"]),
|
|
45
|
+
address: Schema.String,
|
|
46
|
+
}),
|
|
47
|
+
])),
|
|
15
48
|
mfaMethods: Schema.optional(Schema.Struct({
|
|
16
49
|
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
17
50
|
totp: Schema.optional(Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateEndUserAccessToken.js","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"validateEndUserAccessToken.js","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAM5C,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,eAAe;CAC7B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,EAAE,CAAC,CACV,CAAC;AA4ChE,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,qBAAqB,EAAE,MAAM,CAAC,KAAK,CACjC,MAAM,CAAC,KAAK,CAAC;QACX,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;YAChC,KAAK,EAAE,MAAM,CAAC,MAAM;SACrB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;YAC9B,WAAW,EAAE,MAA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AElE,gBAAgB;AAChB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC5E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,gCAAgC;CAC/C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export interface ValidateX402ResourceInput {
|
|
3
|
+
resource: string;
|
|
4
|
+
method?: "GET" | "POST";
|
|
5
|
+
}
|
|
6
|
+
export declare const ValidateX402ResourceInput: Schema.Codec<ValidateX402ResourceInput>;
|
|
7
|
+
export interface ValidateX402ResourceOutput {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
statusCode: number | null;
|
|
10
|
+
x402Version: number | null;
|
|
11
|
+
preflight: {
|
|
12
|
+
check: "reachable" | "returns_402" | "has_bazaar_extension" | "parse";
|
|
13
|
+
passed: boolean;
|
|
14
|
+
detail: string;
|
|
15
|
+
expected?: string;
|
|
16
|
+
actual?: string;
|
|
17
|
+
severity: "required" | "advisory";
|
|
18
|
+
}[];
|
|
19
|
+
paymentRequirements: {
|
|
20
|
+
scheme: "exact" | "upto" | "batch-settlement";
|
|
21
|
+
network: "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:42161" | "eip155:480" | "eip155:4801" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
22
|
+
asset: string;
|
|
23
|
+
amount: string;
|
|
24
|
+
payTo: string;
|
|
25
|
+
maxTimeoutSeconds: number;
|
|
26
|
+
extra?: Record<string, unknown>;
|
|
27
|
+
} | {
|
|
28
|
+
scheme: "exact";
|
|
29
|
+
network: "base" | "base-sepolia" | "solana" | "solana-devnet";
|
|
30
|
+
maxAmountRequired: string;
|
|
31
|
+
resource: string;
|
|
32
|
+
description: string;
|
|
33
|
+
mimeType: string;
|
|
34
|
+
outputSchema?: Record<string, unknown>;
|
|
35
|
+
payTo: string;
|
|
36
|
+
maxTimeoutSeconds: number;
|
|
37
|
+
asset: string;
|
|
38
|
+
extra?: Record<string, unknown>;
|
|
39
|
+
} | null;
|
|
40
|
+
bazaarExtension: Record<string, unknown> | null;
|
|
41
|
+
simulation: {
|
|
42
|
+
outcome: "accepted" | "rejected";
|
|
43
|
+
rejectionReason?: string;
|
|
44
|
+
};
|
|
45
|
+
index: {
|
|
46
|
+
active: boolean;
|
|
47
|
+
lastCrawledAt: string | null;
|
|
48
|
+
quality?: {
|
|
49
|
+
l30DaysTotalCalls?: number;
|
|
50
|
+
l30DaysUniquePayers?: number;
|
|
51
|
+
lastCalledAt?: string;
|
|
52
|
+
};
|
|
53
|
+
} | null;
|
|
54
|
+
}
|
|
55
|
+
export declare const ValidateX402ResourceOutput: Schema.Codec<ValidateX402ResourceOutput>;
|
|
56
|
+
/**
|
|
57
|
+
* Validate x402 endpoint
|
|
58
|
+
*
|
|
59
|
+
* Validates an x402 endpoint's bazaar-discovery configuration by probing the seller's URL live.
|
|
60
|
+
* Returns a uniform array of preflight check results (reachable, returns402, hasBazaarExtension, parse) and a simulated facilitator accept/reject decision so sellers and agents can confirm their endpoint is ready to be discovered before going live.
|
|
61
|
+
* This operation is read-only: it performs no payment and does not index the resource.
|
|
62
|
+
*/
|
|
63
|
+
export declare const validateX402Resource: import("@distilled.cloud/core/client").OperationMethod<ValidateX402ResourceInput, ValidateX402ResourceOutput, never, import("../credentials.ts").Credentials, never>;
|
|
64
|
+
//# sourceMappingURL=validateX402Resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateX402Resource.d.ts","sourceRoot":"","sources":["../../src/operations/validateX402Resource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACj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,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjC,GACD,IAAI,CAAC;IACT,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChD,UAAU,EAAE;QAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3E,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;QAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,EAAE;YACR,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,GAAG,IAAI,CAAC;CACV;AACD,eAAO,MAAM,0BAA0B,EAkFpB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG5D;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sKAKhC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
export const ValidateX402ResourceInput =
|
|
5
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
resource: Schema.String,
|
|
7
|
+
method: Schema.optional(Schema.Literals(["GET", "POST"])),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/x402/validate" }));
|
|
9
|
+
export const ValidateX402ResourceOutput =
|
|
10
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
valid: Schema.Boolean,
|
|
12
|
+
statusCode: Schema.NullOr(Schema.Number),
|
|
13
|
+
x402Version: Schema.NullOr(Schema.Number),
|
|
14
|
+
preflight: Schema.Array(Schema.Struct({
|
|
15
|
+
check: Schema.Literals([
|
|
16
|
+
"reachable",
|
|
17
|
+
"returns_402",
|
|
18
|
+
"has_bazaar_extension",
|
|
19
|
+
"parse",
|
|
20
|
+
]),
|
|
21
|
+
passed: Schema.Boolean,
|
|
22
|
+
detail: Schema.String,
|
|
23
|
+
expected: Schema.optional(Schema.String),
|
|
24
|
+
actual: Schema.optional(Schema.String),
|
|
25
|
+
severity: Schema.Literals(["required", "advisory"]),
|
|
26
|
+
})),
|
|
27
|
+
paymentRequirements: Schema.NullOr(Schema.Union([
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
scheme: Schema.Literals(["exact", "upto", "batch-settlement"]),
|
|
30
|
+
network: Schema.Literals([
|
|
31
|
+
"eip155:8453",
|
|
32
|
+
"eip155:84532",
|
|
33
|
+
"eip155:137",
|
|
34
|
+
"eip155:42161",
|
|
35
|
+
"eip155:480",
|
|
36
|
+
"eip155:4801",
|
|
37
|
+
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
38
|
+
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
39
|
+
]),
|
|
40
|
+
asset: Schema.String,
|
|
41
|
+
amount: Schema.String,
|
|
42
|
+
payTo: Schema.String,
|
|
43
|
+
maxTimeoutSeconds: Schema.Number,
|
|
44
|
+
extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
45
|
+
}),
|
|
46
|
+
Schema.Struct({
|
|
47
|
+
scheme: Schema.Literals(["exact"]),
|
|
48
|
+
network: Schema.Literals([
|
|
49
|
+
"base",
|
|
50
|
+
"base-sepolia",
|
|
51
|
+
"solana",
|
|
52
|
+
"solana-devnet",
|
|
53
|
+
]),
|
|
54
|
+
maxAmountRequired: Schema.String,
|
|
55
|
+
resource: Schema.String,
|
|
56
|
+
description: Schema.String,
|
|
57
|
+
mimeType: Schema.String,
|
|
58
|
+
outputSchema: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
59
|
+
payTo: Schema.String,
|
|
60
|
+
maxTimeoutSeconds: Schema.Number,
|
|
61
|
+
asset: Schema.String,
|
|
62
|
+
extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
63
|
+
}),
|
|
64
|
+
])),
|
|
65
|
+
bazaarExtension: Schema.NullOr(Schema.Record(Schema.String, Schema.Unknown)),
|
|
66
|
+
simulation: Schema.Struct({
|
|
67
|
+
outcome: Schema.Literals(["accepted", "rejected"]),
|
|
68
|
+
rejectionReason: Schema.optional(Schema.String),
|
|
69
|
+
}),
|
|
70
|
+
index: Schema.NullOr(Schema.Struct({
|
|
71
|
+
active: Schema.Boolean,
|
|
72
|
+
lastCrawledAt: Schema.NullOr(Schema.String),
|
|
73
|
+
quality: Schema.optional(Schema.Struct({
|
|
74
|
+
l30DaysTotalCalls: Schema.optional(Schema.Number),
|
|
75
|
+
l30DaysUniquePayers: Schema.optional(Schema.Number),
|
|
76
|
+
lastCalledAt: Schema.optional(Schema.String),
|
|
77
|
+
})),
|
|
78
|
+
})),
|
|
79
|
+
});
|
|
80
|
+
// The operation
|
|
81
|
+
/**
|
|
82
|
+
* Validate x402 endpoint
|
|
83
|
+
*
|
|
84
|
+
* Validates an x402 endpoint's bazaar-discovery configuration by probing the seller's URL live.
|
|
85
|
+
* Returns a uniform array of preflight check results (reachable, returns402, hasBazaarExtension, parse) and a simulated facilitator accept/reject decision so sellers and agents can confirm their endpoint is ready to be discovered before going live.
|
|
86
|
+
* This operation is read-only: it performs no payment and does not index the resource.
|
|
87
|
+
*/
|
|
88
|
+
export const validateX402Resource = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
89
|
+
inputSchema: ValidateX402ResourceInput,
|
|
90
|
+
outputSchema: ValidateX402ResourceOutput,
|
|
91
|
+
}));
|
|
92
|
+
//# sourceMappingURL=validateX402Resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|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