@distilled.cloud/coinbase 0.30.3 → 1.0.0-rc.2
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/credentials.d.ts.map +1 -1
- package/lib/credentials.js +8 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +17 -2
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +8 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +24 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/{client.js → protocol.js} +107 -46
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/cdp.d.ts +5054 -0
- package/lib/services/cdp.d.ts.map +1 -0
- package/lib/services/cdp.js +4331 -0
- package/lib/services/cdp.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +29 -42
- package/src/credentials.ts +8 -0
- package/src/errors.ts +92 -2
- package/src/index.ts +12 -6
- package/src/{client.ts → protocol.ts} +163 -52
- package/src/retry.ts +4 -4
- package/src/services/cdp.ts +11912 -0
- package/src/services/index.ts +2 -0
- package/src/traits.ts +42 -2
- package/README.md +0 -78
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -13
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js.map +0 -1
- package/lib/operations/addEndUserEvmAccount.d.ts +0 -30
- package/lib/operations/addEndUserEvmAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserEvmAccount.js +0 -36
- package/lib/operations/addEndUserEvmAccount.js.map +0 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +0 -32
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +0 -41
- package/lib/operations/addEndUserEvmSmartAccount.js.map +0 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +0 -30
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +0 -1
- package/lib/operations/addEndUserSolanaAccount.js +0 -36
- package/lib/operations/addEndUserSolanaAccount.js.map +0 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +0 -34
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/createDelegationForEndUserAccount.js +0 -44
- package/lib/operations/createDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/createDepositDestination.d.ts +0 -34
- package/lib/operations/createDepositDestination.d.ts.map +0 -1
- package/lib/operations/createDepositDestination.js +0 -50
- package/lib/operations/createDepositDestination.js.map +0 -1
- package/lib/operations/createEndUser.d.ts +0 -115
- package/lib/operations/createEndUser.d.ts.map +0 -1
- package/lib/operations/createEndUser.js +0 -133
- package/lib/operations/createEndUser.js.map +0 -1
- package/lib/operations/createEvmAccount.d.ts +0 -30
- package/lib/operations/createEvmAccount.d.ts.map +0 -1
- package/lib/operations/createEvmAccount.js +0 -34
- package/lib/operations/createEvmAccount.js.map +0 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +0 -34
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +0 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -51
- package/lib/operations/createEvmEip7702Delegation.js.map +0 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +0 -42
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -60
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +0 -1
- package/lib/operations/createEvmSmartAccount.d.ts +0 -27
- package/lib/operations/createEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/createEvmSmartAccount.js +0 -33
- package/lib/operations/createEvmSmartAccount.js.map +0 -1
- package/lib/operations/createEvmSwapQuote.d.ts +0 -80
- package/lib/operations/createEvmSwapQuote.d.ts.map +0 -1
- package/lib/operations/createEvmSwapQuote.js +0 -95
- package/lib/operations/createEvmSwapQuote.js.map +0 -1
- package/lib/operations/createFoundationAccount.d.ts +0 -26
- package/lib/operations/createFoundationAccount.d.ts.map +0 -1
- package/lib/operations/createFoundationAccount.js +0 -32
- package/lib/operations/createFoundationAccount.js.map +0 -1
- package/lib/operations/createOnrampOrder.d.ts +0 -60
- package/lib/operations/createOnrampOrder.d.ts.map +0 -1
- package/lib/operations/createOnrampOrder.js +0 -79
- package/lib/operations/createOnrampOrder.js.map +0 -1
- package/lib/operations/createOnrampSession.d.ts +0 -55
- package/lib/operations/createOnrampSession.d.ts.map +0 -1
- package/lib/operations/createOnrampSession.js +0 -68
- package/lib/operations/createOnrampSession.js.map +0 -1
- package/lib/operations/createPolicy.d.ts +0 -28
- package/lib/operations/createPolicy.d.ts.map +0 -1
- package/lib/operations/createPolicy.js +0 -32
- package/lib/operations/createPolicy.js.map +0 -1
- package/lib/operations/createSolanaAccount.d.ts +0 -30
- package/lib/operations/createSolanaAccount.d.ts.map +0 -1
- package/lib/operations/createSolanaAccount.js +0 -36
- package/lib/operations/createSolanaAccount.js.map +0 -1
- package/lib/operations/createSpendPermission.d.ts +0 -56
- package/lib/operations/createSpendPermission.d.ts.map +0 -1
- package/lib/operations/createSpendPermission.js +0 -92
- package/lib/operations/createSpendPermission.js.map +0 -1
- package/lib/operations/createTransfer.d.ts +0 -178
- package/lib/operations/createTransfer.d.ts.map +0 -1
- package/lib/operations/createTransfer.js +0 -244
- package/lib/operations/createTransfer.js.map +0 -1
- package/lib/operations/createWebhookSubscription.d.ts +0 -54
- package/lib/operations/createWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/createWebhookSubscription.js +0 -109
- package/lib/operations/createWebhookSubscription.js.map +0 -1
- package/lib/operations/deletePolicy.d.ts +0 -20
- package/lib/operations/deletePolicy.d.ts.map +0 -1
- package/lib/operations/deletePolicy.js +0 -25
- package/lib/operations/deletePolicy.js.map +0 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +0 -21
- package/lib/operations/deleteWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -30
- package/lib/operations/deleteWebhookSubscription.js.map +0 -1
- package/lib/operations/executeFundTransfer.d.ts +0 -103
- package/lib/operations/executeFundTransfer.d.ts.map +0 -1
- package/lib/operations/executeFundTransfer.js +0 -152
- package/lib/operations/executeFundTransfer.js.map +0 -1
- package/lib/operations/exportEvmAccount.d.ts +0 -27
- package/lib/operations/exportEvmAccount.d.ts.map +0 -1
- package/lib/operations/exportEvmAccount.js +0 -31
- package/lib/operations/exportEvmAccount.js.map +0 -1
- package/lib/operations/exportEvmAccountByName.d.ts +0 -27
- package/lib/operations/exportEvmAccountByName.d.ts.map +0 -1
- package/lib/operations/exportEvmAccountByName.js +0 -33
- package/lib/operations/exportEvmAccountByName.js.map +0 -1
- package/lib/operations/exportSolanaAccount.d.ts +0 -27
- package/lib/operations/exportSolanaAccount.d.ts.map +0 -1
- package/lib/operations/exportSolanaAccount.js +0 -33
- package/lib/operations/exportSolanaAccount.js.map +0 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +0 -27
- package/lib/operations/exportSolanaAccountByName.d.ts.map +0 -1
- package/lib/operations/exportSolanaAccountByName.js +0 -36
- package/lib/operations/exportSolanaAccountByName.js.map +0 -1
- package/lib/operations/getBalanceByAsset.d.ts +0 -29
- package/lib/operations/getBalanceByAsset.d.ts.map +0 -1
- package/lib/operations/getBalanceByAsset.js +0 -34
- package/lib/operations/getBalanceByAsset.js.map +0 -1
- package/lib/operations/getDelegationForEndUser.d.ts +0 -20
- package/lib/operations/getDelegationForEndUser.d.ts.map +0 -1
- package/lib/operations/getDelegationForEndUser.js +0 -29
- package/lib/operations/getDelegationForEndUser.js.map +0 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +0 -23
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/getDelegationForEndUserAccount.js +0 -33
- package/lib/operations/getDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/getDepositDestinationById.d.ts +0 -32
- package/lib/operations/getDepositDestinationById.d.ts.map +0 -1
- package/lib/operations/getDepositDestinationById.js +0 -52
- package/lib/operations/getDepositDestinationById.js.map +0 -1
- package/lib/operations/getEndUser.d.ts +0 -73
- package/lib/operations/getEndUser.d.ts.map +0 -1
- package/lib/operations/getEndUser.js +0 -84
- package/lib/operations/getEndUser.js.map +0 -1
- package/lib/operations/getEvmAccount.d.ts +0 -22
- package/lib/operations/getEvmAccount.d.ts.map +0 -1
- package/lib/operations/getEvmAccount.js +0 -26
- package/lib/operations/getEvmAccount.js.map +0 -1
- package/lib/operations/getEvmAccountByName.d.ts +0 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +0 -1
- package/lib/operations/getEvmAccountByName.js +0 -28
- package/lib/operations/getEvmAccountByName.js.map +0 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +0 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +0 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +0 -46
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +0 -1
- package/lib/operations/getEvmSmartAccount.d.ts +0 -23
- package/lib/operations/getEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/getEvmSmartAccount.js +0 -29
- package/lib/operations/getEvmSmartAccount.js.map +0 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +0 -23
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +0 -1
- package/lib/operations/getEvmSmartAccountByName.js +0 -29
- package/lib/operations/getEvmSmartAccountByName.js.map +0 -1
- package/lib/operations/getEvmSwapPrice.d.ts +0 -55
- package/lib/operations/getEvmSwapPrice.d.ts.map +0 -1
- package/lib/operations/getEvmSwapPrice.js +0 -62
- package/lib/operations/getEvmSwapPrice.js.map +0 -1
- package/lib/operations/getFoundationAccountById.d.ts +0 -23
- package/lib/operations/getFoundationAccountById.d.ts.map +0 -1
- package/lib/operations/getFoundationAccountById.js +0 -29
- package/lib/operations/getFoundationAccountById.js.map +0 -1
- package/lib/operations/getOnrampOrderById.d.ts +0 -39
- package/lib/operations/getOnrampOrderById.d.ts.map +0 -1
- package/lib/operations/getOnrampOrderById.js +0 -54
- package/lib/operations/getOnrampOrderById.js.map +0 -1
- package/lib/operations/getOnrampUserLimits.d.ts +0 -24
- package/lib/operations/getOnrampUserLimits.d.ts.map +0 -1
- package/lib/operations/getOnrampUserLimits.js +0 -36
- package/lib/operations/getOnrampUserLimits.js.map +0 -1
- package/lib/operations/getPaymentMethod.d.ts +0 -53
- package/lib/operations/getPaymentMethod.d.ts.map +0 -1
- package/lib/operations/getPaymentMethod.js +0 -61
- package/lib/operations/getPaymentMethod.js.map +0 -1
- package/lib/operations/getPolicyById.d.ts +0 -23
- package/lib/operations/getPolicyById.d.ts.map +0 -1
- package/lib/operations/getPolicyById.js +0 -27
- package/lib/operations/getPolicyById.js.map +0 -1
- package/lib/operations/getSQLGrammar.d.ts +0 -16
- package/lib/operations/getSQLGrammar.d.ts.map +0 -1
- package/lib/operations/getSQLGrammar.js +0 -20
- package/lib/operations/getSQLGrammar.js.map +0 -1
- package/lib/operations/getSQLSchema.d.ts +0 -31
- package/lib/operations/getSQLSchema.d.ts.map +0 -1
- package/lib/operations/getSQLSchema.js +0 -35
- package/lib/operations/getSQLSchema.js.map +0 -1
- package/lib/operations/getSolanaAccount.d.ts +0 -22
- package/lib/operations/getSolanaAccount.d.ts.map +0 -1
- package/lib/operations/getSolanaAccount.js +0 -26
- package/lib/operations/getSolanaAccount.js.map +0 -1
- package/lib/operations/getSolanaAccountByName.d.ts +0 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +0 -1
- package/lib/operations/getSolanaAccountByName.js +0 -28
- package/lib/operations/getSolanaAccountByName.js.map +0 -1
- package/lib/operations/getTransferById.d.ts +0 -99
- package/lib/operations/getTransferById.d.ts.map +0 -1
- package/lib/operations/getTransferById.js +0 -146
- package/lib/operations/getTransferById.js.map +0 -1
- package/lib/operations/getUserOperation.d.ts +0 -40
- package/lib/operations/getUserOperation.d.ts.map +0 -1
- package/lib/operations/getUserOperation.js +0 -65
- package/lib/operations/getUserOperation.js.map +0 -1
- package/lib/operations/getWebhookSubscription.d.ts +0 -39
- package/lib/operations/getWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/getWebhookSubscription.js +0 -73
- package/lib/operations/getWebhookSubscription.js.map +0 -1
- package/lib/operations/importEndUser.d.ts +0 -110
- package/lib/operations/importEndUser.d.ts.map +0 -1
- package/lib/operations/importEndUser.js +0 -128
- package/lib/operations/importEndUser.js.map +0 -1
- package/lib/operations/importEvmAccount.d.ts +0 -31
- package/lib/operations/importEvmAccount.d.ts.map +0 -1
- package/lib/operations/importEvmAccount.js +0 -35
- package/lib/operations/importEvmAccount.js.map +0 -1
- package/lib/operations/importSolanaAccount.d.ts +0 -30
- package/lib/operations/importSolanaAccount.d.ts.map +0 -1
- package/lib/operations/importSolanaAccount.js +0 -36
- package/lib/operations/importSolanaAccount.js.map +0 -1
- package/lib/operations/index.d.ts +0 -116
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -116
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/initiateOnrampVerification.d.ts +0 -24
- package/lib/operations/initiateOnrampVerification.d.ts.map +0 -1
- package/lib/operations/initiateOnrampVerification.js +0 -30
- package/lib/operations/initiateOnrampVerification.js.map +0 -1
- package/lib/operations/listBalances.d.ts +0 -34
- package/lib/operations/listBalances.d.ts.map +0 -1
- package/lib/operations/listBalances.js +0 -38
- package/lib/operations/listBalances.js.map +0 -1
- package/lib/operations/listDataTokenBalances.d.ts +0 -37
- package/lib/operations/listDataTokenBalances.d.ts.map +0 -1
- package/lib/operations/listDataTokenBalances.js +0 -46
- package/lib/operations/listDataTokenBalances.js.map +0 -1
- package/lib/operations/listDepositDestinations.d.ts +0 -45
- package/lib/operations/listDepositDestinations.d.ts.map +0 -1
- package/lib/operations/listDepositDestinations.js +0 -62
- package/lib/operations/listDepositDestinations.js.map +0 -1
- package/lib/operations/listEndUsers.d.ts +0 -80
- package/lib/operations/listEndUsers.d.ts.map +0 -1
- package/lib/operations/listEndUsers.js +0 -103
- package/lib/operations/listEndUsers.js.map +0 -1
- package/lib/operations/listEvmAccounts.d.ts +0 -28
- package/lib/operations/listEvmAccounts.d.ts.map +0 -1
- package/lib/operations/listEvmAccounts.js +0 -32
- package/lib/operations/listEvmAccounts.js.map +0 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +0 -29
- package/lib/operations/listEvmSmartAccounts.d.ts.map +0 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -35
- package/lib/operations/listEvmSmartAccounts.js.map +0 -1
- package/lib/operations/listEvmTokenBalances.d.ts +0 -37
- package/lib/operations/listEvmTokenBalances.d.ts.map +0 -1
- package/lib/operations/listEvmTokenBalances.js +0 -46
- package/lib/operations/listEvmTokenBalances.js.map +0 -1
- package/lib/operations/listFoundationAccounts.d.ts +0 -30
- package/lib/operations/listFoundationAccounts.d.ts.map +0 -1
- package/lib/operations/listFoundationAccounts.js +0 -36
- package/lib/operations/listFoundationAccounts.js.map +0 -1
- package/lib/operations/listPaymentMethods.d.ts +0 -63
- package/lib/operations/listPaymentMethods.d.ts.map +0 -1
- package/lib/operations/listPaymentMethods.js +0 -73
- package/lib/operations/listPaymentMethods.js.map +0 -1
- package/lib/operations/listPolicies.d.ts +0 -31
- package/lib/operations/listPolicies.d.ts.map +0 -1
- package/lib/operations/listPolicies.js +0 -35
- package/lib/operations/listPolicies.js.map +0 -1
- package/lib/operations/listSolanaAccounts.d.ts +0 -29
- package/lib/operations/listSolanaAccounts.d.ts.map +0 -1
- package/lib/operations/listSolanaAccounts.js +0 -35
- package/lib/operations/listSolanaAccounts.js.map +0 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +0 -36
- package/lib/operations/listSolanaTokenBalances.d.ts.map +0 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -45
- package/lib/operations/listSolanaTokenBalances.js.map +0 -1
- package/lib/operations/listSpendPermissions.d.ts +0 -40
- package/lib/operations/listSpendPermissions.d.ts.map +0 -1
- package/lib/operations/listSpendPermissions.js +0 -58
- package/lib/operations/listSpendPermissions.js.map +0 -1
- package/lib/operations/listTokensForAccount.d.ts +0 -23
- package/lib/operations/listTokensForAccount.d.ts.map +0 -1
- package/lib/operations/listTokensForAccount.js +0 -32
- package/lib/operations/listTokensForAccount.js.map +0 -1
- package/lib/operations/listTransfers.d.ts +0 -153
- package/lib/operations/listTransfers.d.ts.map +0 -1
- package/lib/operations/listTransfers.js +0 -205
- package/lib/operations/listTransfers.js.map +0 -1
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +0 -52
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +0 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -68
- package/lib/operations/listWebhookSubscriptionEvents.js.map +0 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +0 -44
- package/lib/operations/listWebhookSubscriptions.d.ts.map +0 -1
- package/lib/operations/listWebhookSubscriptions.js +0 -75
- package/lib/operations/listWebhookSubscriptions.js.map +0 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +0 -69
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +0 -1
- package/lib/operations/listX402DiscoveryMerchant.js +0 -92
- package/lib/operations/listX402DiscoveryMerchant.js.map +0 -1
- package/lib/operations/listX402DiscoveryResources.d.ts +0 -67
- package/lib/operations/listX402DiscoveryResources.d.ts.map +0 -1
- package/lib/operations/listX402DiscoveryResources.js +0 -90
- package/lib/operations/listX402DiscoveryResources.js.map +0 -1
- package/lib/operations/lookupEndUser.d.ts +0 -93
- package/lib/operations/lookupEndUser.d.ts.map +0 -1
- package/lib/operations/lookupEndUser.js +0 -116
- package/lib/operations/lookupEndUser.js.map +0 -1
- package/lib/operations/postX402DiscoveryMcp.d.ts +0 -26
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +0 -1
- package/lib/operations/postX402DiscoveryMcp.js +0 -32
- package/lib/operations/postX402DiscoveryMcp.js.map +0 -1
- package/lib/operations/prepareAndSendUserOperation.d.ts +0 -55
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +0 -1
- package/lib/operations/prepareAndSendUserOperation.js +0 -93
- package/lib/operations/prepareAndSendUserOperation.js.map +0 -1
- package/lib/operations/prepareUserOperation.d.ts +0 -48
- package/lib/operations/prepareUserOperation.d.ts.map +0 -1
- package/lib/operations/prepareUserOperation.js +0 -86
- package/lib/operations/prepareUserOperation.js.map +0 -1
- package/lib/operations/requestEvmFaucet.d.ts +0 -22
- package/lib/operations/requestEvmFaucet.d.ts.map +0 -1
- package/lib/operations/requestEvmFaucet.js +0 -30
- package/lib/operations/requestEvmFaucet.js.map +0 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +0 -29
- package/lib/operations/requestLimitsUpgrade.d.ts.map +0 -1
- package/lib/operations/requestLimitsUpgrade.js +0 -35
- package/lib/operations/requestLimitsUpgrade.js.map +0 -1
- package/lib/operations/requestSolanaFaucet.d.ts +0 -21
- package/lib/operations/requestSolanaFaucet.d.ts.map +0 -1
- package/lib/operations/requestSolanaFaucet.js +0 -27
- package/lib/operations/requestSolanaFaucet.js.map +0 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +0 -31
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +0 -1
- package/lib/operations/revokeDelegationForEndUser.js +0 -40
- package/lib/operations/revokeDelegationForEndUser.js.map +0 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +0 -34
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +0 -1
- package/lib/operations/revokeDelegationForEndUserAccount.js +0 -44
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +0 -1
- package/lib/operations/revokeSpendPermission.d.ts +0 -49
- package/lib/operations/revokeSpendPermission.d.ts.map +0 -1
- package/lib/operations/revokeSpendPermission.js +0 -85
- package/lib/operations/revokeSpendPermission.js.map +0 -1
- package/lib/operations/runSQLQuery.d.ts +0 -57
- package/lib/operations/runSQLQuery.d.ts.map +0 -1
- package/lib/operations/runSQLQuery.js +0 -82
- package/lib/operations/runSQLQuery.js.map +0 -1
- package/lib/operations/searchX402Resources.d.ts +0 -83
- package/lib/operations/searchX402Resources.d.ts.map +0 -1
- package/lib/operations/searchX402Resources.js +0 -106
- package/lib/operations/searchX402Resources.js.map +0 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +0 -45
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +0 -67
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendEvmTransaction.d.ts +0 -44
- package/lib/operations/sendEvmTransaction.d.ts.map +0 -1
- package/lib/operations/sendEvmTransaction.js +0 -65
- package/lib/operations/sendEvmTransaction.js.map +0 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +0 -52
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +0 -74
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +0 -44
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -54
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendSolanaTransaction.d.ts +0 -39
- package/lib/operations/sendSolanaTransaction.d.ts.map +0 -1
- package/lib/operations/sendSolanaTransaction.js +0 -45
- package/lib/operations/sendSolanaTransaction.js.map +0 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +0 -50
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +0 -60
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/sendUserOperation.d.ts +0 -44
- package/lib/operations/sendUserOperation.d.ts.map +0 -1
- package/lib/operations/sendUserOperation.js +0 -70
- package/lib/operations/sendUserOperation.js.map +0 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +0 -66
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +0 -105
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +0 -1
- package/lib/operations/settleX402Payment.d.ts +0 -245
- package/lib/operations/settleX402Payment.d.ts.map +0 -1
- package/lib/operations/settleX402Payment.js +0 -355
- package/lib/operations/settleX402Payment.js.map +0 -1
- package/lib/operations/signEvmHash.d.ts +0 -27
- package/lib/operations/signEvmHash.d.ts.map +0 -1
- package/lib/operations/signEvmHash.js +0 -31
- package/lib/operations/signEvmHash.js.map +0 -1
- package/lib/operations/signEvmMessage.d.ts +0 -28
- package/lib/operations/signEvmMessage.d.ts.map +0 -1
- package/lib/operations/signEvmMessage.js +0 -32
- package/lib/operations/signEvmMessage.js.map +0 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +0 -36
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +0 -46
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +0 -1
- package/lib/operations/signEvmTransaction.d.ts +0 -29
- package/lib/operations/signEvmTransaction.d.ts.map +0 -1
- package/lib/operations/signEvmTransaction.js +0 -38
- package/lib/operations/signEvmTransaction.js.map +0 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +0 -37
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +0 -47
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/signEvmTypedData.d.ts +0 -36
- package/lib/operations/signEvmTypedData.d.ts.map +0 -1
- package/lib/operations/signEvmTypedData.js +0 -43
- package/lib/operations/signEvmTypedData.js.map +0 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +0 -46
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +0 -56
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +0 -1
- package/lib/operations/signSolanaMessage.d.ts +0 -28
- package/lib/operations/signSolanaMessage.d.ts.map +0 -1
- package/lib/operations/signSolanaMessage.js +0 -36
- package/lib/operations/signSolanaMessage.js.map +0 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +0 -36
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +0 -46
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +0 -1
- package/lib/operations/signSolanaTransaction.d.ts +0 -33
- package/lib/operations/signSolanaTransaction.d.ts.map +0 -1
- package/lib/operations/signSolanaTransaction.js +0 -42
- package/lib/operations/signSolanaTransaction.js.map +0 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +0 -41
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +0 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +0 -51
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +0 -1
- package/lib/operations/submitDepositTravelRule.d.ts +0 -52
- package/lib/operations/submitDepositTravelRule.d.ts.map +0 -1
- package/lib/operations/submitDepositTravelRule.js +0 -58
- package/lib/operations/submitDepositTravelRule.js.map +0 -1
- package/lib/operations/submitOnrampVerification.d.ts +0 -26
- package/lib/operations/submitOnrampVerification.d.ts.map +0 -1
- package/lib/operations/submitOnrampVerification.js +0 -35
- package/lib/operations/submitOnrampVerification.js.map +0 -1
- package/lib/operations/supportedX402PaymentKinds.d.ts +0 -22
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +0 -1
- package/lib/operations/supportedX402PaymentKinds.js +0 -40
- package/lib/operations/supportedX402PaymentKinds.js.map +0 -1
- package/lib/operations/updateEvmAccount.d.ts +0 -28
- package/lib/operations/updateEvmAccount.d.ts.map +0 -1
- package/lib/operations/updateEvmAccount.js +0 -32
- package/lib/operations/updateEvmAccount.js.map +0 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +0 -24
- package/lib/operations/updateEvmSmartAccount.d.ts.map +0 -1
- package/lib/operations/updateEvmSmartAccount.js +0 -30
- package/lib/operations/updateEvmSmartAccount.js.map +0 -1
- package/lib/operations/updatePolicy.d.ts +0 -29
- package/lib/operations/updatePolicy.d.ts.map +0 -1
- package/lib/operations/updatePolicy.js +0 -33
- package/lib/operations/updatePolicy.js.map +0 -1
- package/lib/operations/updateSolanaAccount.d.ts +0 -28
- package/lib/operations/updateSolanaAccount.d.ts.map +0 -1
- package/lib/operations/updateSolanaAccount.js +0 -34
- package/lib/operations/updateSolanaAccount.js.map +0 -1
- package/lib/operations/updateWebhookSubscription.d.ts +0 -49
- package/lib/operations/updateWebhookSubscription.d.ts.map +0 -1
- package/lib/operations/updateWebhookSubscription.js +0 -107
- package/lib/operations/updateWebhookSubscription.js.map +0 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +0 -72
- package/lib/operations/validateEndUserAccessToken.d.ts.map +0 -1
- package/lib/operations/validateEndUserAccessToken.js +0 -86
- package/lib/operations/validateEndUserAccessToken.js.map +0 -1
- package/lib/operations/validateX402Resource.d.ts +0 -64
- package/lib/operations/validateX402Resource.d.ts.map +0 -1
- package/lib/operations/validateX402Resource.js +0 -92
- package/lib/operations/validateX402Resource.js.map +0 -1
- package/lib/operations/verifyX402Payment.d.ts +0 -242
- package/lib/operations/verifyX402Payment.d.ts.map +0 -1
- package/lib/operations/verifyX402Payment.js +0 -333
- package/lib/operations/verifyX402Payment.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/operations/addEndUserEvmAccount.ts +0 -48
- package/src/operations/addEndUserEvmSmartAccount.ts +0 -58
- package/src/operations/addEndUserSolanaAccount.ts +0 -48
- package/src/operations/createDelegationForEndUserAccount.ts +0 -60
- package/src/operations/createDepositDestination.ts +0 -83
- package/src/operations/createEndUser.ts +0 -230
- package/src/operations/createEvmAccount.ts +0 -51
- package/src/operations/createEvmEip7702Delegation.ts +0 -72
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +0 -84
- package/src/operations/createEvmSmartAccount.ts +0 -51
- package/src/operations/createEvmSwapQuote.ts +0 -167
- package/src/operations/createFoundationAccount.ts +0 -49
- package/src/operations/createOnrampOrder.ts +0 -142
- package/src/operations/createOnrampSession.ts +0 -117
- package/src/operations/createPolicy.ts +0 -51
- package/src/operations/createSolanaAccount.ts +0 -53
- package/src/operations/createSpendPermission.ts +0 -163
- package/src/operations/createTransfer.ts +0 -461
- package/src/operations/createWebhookSubscription.ts +0 -189
- package/src/operations/deletePolicy.ts +0 -35
- package/src/operations/deleteWebhookSubscription.ts +0 -40
- package/src/operations/executeFundTransfer.ts +0 -282
- package/src/operations/exportEvmAccount.ts +0 -44
- package/src/operations/exportEvmAccountByName.ts +0 -46
- package/src/operations/exportSolanaAccount.ts +0 -46
- package/src/operations/exportSolanaAccountByName.ts +0 -49
- package/src/operations/getBalanceByAsset.ts +0 -56
- package/src/operations/getDelegationForEndUser.ts +0 -42
- package/src/operations/getDelegationForEndUserAccount.ts +0 -47
- package/src/operations/getDepositDestinationById.ts +0 -87
- package/src/operations/getEndUser.ts +0 -148
- package/src/operations/getEvmAccount.ts +0 -42
- package/src/operations/getEvmAccountByName.ts +0 -44
- package/src/operations/getEvmEip7702DelegationOperationById.ts +0 -69
- package/src/operations/getEvmSmartAccount.ts +0 -46
- package/src/operations/getEvmSmartAccountByName.ts +0 -46
- package/src/operations/getEvmSwapPrice.ts +0 -112
- package/src/operations/getFoundationAccountById.ts +0 -46
- package/src/operations/getOnrampOrderById.ts +0 -94
- package/src/operations/getOnrampUserLimits.ts +0 -57
- package/src/operations/getPaymentMethod.ts +0 -106
- package/src/operations/getPolicyById.ts +0 -44
- package/src/operations/getSQLGrammar.ts +0 -28
- package/src/operations/getSQLSchema.ts +0 -68
- package/src/operations/getSolanaAccount.ts +0 -42
- package/src/operations/getSolanaAccountByName.ts +0 -44
- package/src/operations/getTransferById.ts +0 -274
- package/src/operations/getUserOperation.ts +0 -119
- package/src/operations/getWebhookSubscription.ts +0 -122
- package/src/operations/importEndUser.ts +0 -218
- package/src/operations/importEvmAccount.ts +0 -53
- package/src/operations/importSolanaAccount.ts +0 -53
- package/src/operations/index.ts +0 -115
- package/src/operations/initiateOnrampVerification.ts +0 -44
- package/src/operations/listBalances.ts +0 -66
- package/src/operations/listDataTokenBalances.ts +0 -72
- package/src/operations/listDepositDestinations.ts +0 -107
- package/src/operations/listEndUsers.ts +0 -174
- package/src/operations/listEvmAccounts.ts +0 -54
- package/src/operations/listEvmSmartAccounts.ts +0 -58
- package/src/operations/listEvmTokenBalances.ts +0 -72
- package/src/operations/listFoundationAccounts.ts +0 -60
- package/src/operations/listPaymentMethods.ts +0 -130
- package/src/operations/listPolicies.ts +0 -59
- package/src/operations/listSolanaAccounts.ts +0 -57
- package/src/operations/listSolanaTokenBalances.ts +0 -66
- package/src/operations/listSpendPermissions.ts +0 -100
- package/src/operations/listTokensForAccount.ts +0 -47
- package/src/operations/listTransfers.ts +0 -355
- package/src/operations/listWebhookSubscriptionEvents.ts +0 -101
- package/src/operations/listWebhookSubscriptions.ts +0 -130
- package/src/operations/listX402DiscoveryMerchant.ts +0 -172
- package/src/operations/listX402DiscoveryResources.ts +0 -169
- package/src/operations/lookupEndUser.ts +0 -188
- package/src/operations/postX402DiscoveryMcp.ts +0 -54
- package/src/operations/prepareAndSendUserOperation.ts +0 -169
- package/src/operations/prepareUserOperation.ts +0 -163
- package/src/operations/requestEvmFaucet.ts +0 -44
- package/src/operations/requestLimitsUpgrade.ts +0 -54
- package/src/operations/requestSolanaFaucet.ts +0 -40
- package/src/operations/revokeDelegationForEndUser.ts +0 -52
- package/src/operations/revokeDelegationForEndUserAccount.ts +0 -57
- package/src/operations/revokeSpendPermission.ts +0 -149
- package/src/operations/runSQLQuery.ts +0 -141
- package/src/operations/searchX402Resources.ts +0 -194
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +0 -103
- package/src/operations/sendEvmTransaction.ts +0 -90
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +0 -102
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +0 -75
- package/src/operations/sendSolanaTransaction.ts +0 -59
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +0 -78
- package/src/operations/sendUserOperation.ts +0 -125
- package/src/operations/sendUserOperationWithEndUserAccount.ts +0 -186
- package/src/operations/settleX402Payment.ts +0 -819
- package/src/operations/signEvmHash.ts +0 -44
- package/src/operations/signEvmMessage.ts +0 -45
- package/src/operations/signEvmMessageWithEndUserAccount.ts +0 -62
- package/src/operations/signEvmTransaction.ts +0 -51
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +0 -63
- package/src/operations/signEvmTypedData.ts +0 -65
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +0 -83
- package/src/operations/signSolanaMessage.ts +0 -49
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +0 -62
- package/src/operations/signSolanaTransaction.ts +0 -55
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +0 -67
- package/src/operations/submitDepositTravelRule.ts +0 -101
- package/src/operations/submitOnrampVerification.ts +0 -49
- package/src/operations/supportedX402PaymentKinds.ts +0 -71
- package/src/operations/updateEvmAccount.ts +0 -50
- package/src/operations/updateEvmSmartAccount.ts +0 -48
- package/src/operations/updatePolicy.ts +0 -52
- package/src/operations/updateSolanaAccount.ts +0 -52
- package/src/operations/updateWebhookSubscription.ts +0 -188
- package/src/operations/validateEndUserAccessToken.ts +0 -150
- package/src/operations/validateX402Resource.ts +0 -170
- package/src/operations/verifyX402Payment.ts +0 -775
- package/src/sensitive.ts +0 -4
|
@@ -0,0 +1,4331 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/cdp-sdk/openapi.yaml). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { CoinbaseProtocol, } from "../protocol.js";
|
|
7
|
+
import { UnknownCoinbaseError } from "../errors.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export const AddEndUserEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
+
userId: S.String.pipe(T.Label()),
|
|
11
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/end-users/{userId}/evm", code: 200 }))).annotate({
|
|
12
|
+
identifier: "AddEndUserEvmAccountRequest",
|
|
13
|
+
});
|
|
14
|
+
export const EndUserEvmAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
15
|
+
address: S.String,
|
|
16
|
+
createdAt: S.String,
|
|
17
|
+
})).annotate({
|
|
18
|
+
identifier: "EndUserEvmAccount",
|
|
19
|
+
});
|
|
20
|
+
export const AddEndUserEvmAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
21
|
+
evmAccount: EndUserEvmAccount,
|
|
22
|
+
})).annotate({
|
|
23
|
+
identifier: "AddEndUserEvmAccountResponse",
|
|
24
|
+
});
|
|
25
|
+
export const AddEndUserEvmSmartAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
+
userId: S.String.pipe(T.Label()),
|
|
27
|
+
enableSpendPermissions: S.optional(S.Boolean),
|
|
28
|
+
}).pipe(T.Http({
|
|
29
|
+
method: "POST",
|
|
30
|
+
uri: "/v2/end-users/{userId}/evm-smart-account",
|
|
31
|
+
code: 200,
|
|
32
|
+
}))).annotate({
|
|
33
|
+
identifier: "AddEndUserEvmSmartAccountRequest",
|
|
34
|
+
});
|
|
35
|
+
export const EndUserEvmSmartAccountOwnerAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
36
|
+
export const EndUserEvmSmartAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
+
address: S.String,
|
|
38
|
+
ownerAddresses: EndUserEvmSmartAccountOwnerAddressesList,
|
|
39
|
+
createdAt: S.String,
|
|
40
|
+
})).annotate({
|
|
41
|
+
identifier: "EndUserEvmSmartAccount",
|
|
42
|
+
});
|
|
43
|
+
export const AddEndUserEvmSmartAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
44
|
+
evmSmartAccount: EndUserEvmSmartAccount,
|
|
45
|
+
})).annotate({
|
|
46
|
+
identifier: "AddEndUserEvmSmartAccountResponse",
|
|
47
|
+
});
|
|
48
|
+
export const AddEndUserSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
49
|
+
userId: S.String.pipe(T.Label()),
|
|
50
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/end-users/{userId}/solana", code: 200 }))).annotate({
|
|
51
|
+
identifier: "AddEndUserSolanaAccountRequest",
|
|
52
|
+
});
|
|
53
|
+
export const EndUserSolanaAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
54
|
+
address: S.String,
|
|
55
|
+
createdAt: S.String,
|
|
56
|
+
})).annotate({
|
|
57
|
+
identifier: "EndUserSolanaAccount",
|
|
58
|
+
});
|
|
59
|
+
export const AddEndUserSolanaAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
+
solanaAccount: EndUserSolanaAccount,
|
|
61
|
+
})).annotate({
|
|
62
|
+
identifier: "AddEndUserSolanaAccountResponse",
|
|
63
|
+
});
|
|
64
|
+
export const CreateDelegationForEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
+
userId: S.String.pipe(T.Label()),
|
|
66
|
+
address: S.String.pipe(T.Label()),
|
|
67
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
68
|
+
expiresAt: S.String,
|
|
69
|
+
walletSecretId: S.String,
|
|
70
|
+
}).pipe(T.Http({
|
|
71
|
+
method: "POST",
|
|
72
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/address/{address}/delegation",
|
|
73
|
+
code: 200,
|
|
74
|
+
}))).annotate({
|
|
75
|
+
identifier: "CreateDelegationForEndUserAccountRequest",
|
|
76
|
+
});
|
|
77
|
+
export const CreateDelegationForEndUserAccountResponse =
|
|
78
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
+
expiresAt: S.String,
|
|
80
|
+
})).annotate({
|
|
81
|
+
identifier: "CreateDelegationForEndUserAccountResponse",
|
|
82
|
+
});
|
|
83
|
+
export const DepositDestinationType = /*@__PURE__*/ S.String;
|
|
84
|
+
export const DepositDestinationTargetAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
+
accountId: S.optional(S.String),
|
|
86
|
+
asset: S.String,
|
|
87
|
+
})).annotate({
|
|
88
|
+
identifier: "DepositDestinationTargetAccount",
|
|
89
|
+
});
|
|
90
|
+
export const Metadata = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
91
|
+
export const Network = /*@__PURE__*/ S.String;
|
|
92
|
+
export const CreateDepositDestinationCrypto = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
+
network: Network,
|
|
94
|
+
})).annotate({
|
|
95
|
+
identifier: "CreateDepositDestinationCrypto",
|
|
96
|
+
});
|
|
97
|
+
export const CreateCryptoDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
+
accountId: S.String,
|
|
99
|
+
type: DepositDestinationType,
|
|
100
|
+
target: S.optional(DepositDestinationTargetAccount),
|
|
101
|
+
metadata: S.optional(Metadata),
|
|
102
|
+
crypto: CreateDepositDestinationCrypto,
|
|
103
|
+
})).annotate({
|
|
104
|
+
identifier: "CreateCryptoDepositDestinationRequest",
|
|
105
|
+
});
|
|
106
|
+
export const CreateDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
107
|
+
body: CreateCryptoDepositDestinationRequest.pipe(T.HttpBody()),
|
|
108
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/deposit-destinations", code: 200 }))).annotate({
|
|
109
|
+
identifier: "CreateDepositDestinationRequest",
|
|
110
|
+
});
|
|
111
|
+
export const CryptoDepositDestinationType = /*@__PURE__*/ S.String;
|
|
112
|
+
export const DepositDestinationCrypto = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
+
network: Network,
|
|
114
|
+
address: S.String,
|
|
115
|
+
})).annotate({
|
|
116
|
+
identifier: "DepositDestinationCrypto",
|
|
117
|
+
});
|
|
118
|
+
export const DepositDestinationStatus = /*@__PURE__*/ S.String;
|
|
119
|
+
export const CryptoDepositDestination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
+
depositDestinationId: S.String,
|
|
121
|
+
accountId: S.String,
|
|
122
|
+
type: CryptoDepositDestinationType,
|
|
123
|
+
crypto: DepositDestinationCrypto,
|
|
124
|
+
target: S.optional(DepositDestinationTargetAccount),
|
|
125
|
+
status: DepositDestinationStatus,
|
|
126
|
+
metadata: S.optional(Metadata),
|
|
127
|
+
createdAt: S.String,
|
|
128
|
+
updatedAt: S.String,
|
|
129
|
+
})).annotate({
|
|
130
|
+
identifier: "CryptoDepositDestination",
|
|
131
|
+
});
|
|
132
|
+
export const CreateDepositDestinationResponse = /*@__PURE__*/ S.suspend(() => CryptoDepositDestination.pipe(T.RawResponseRoot())).annotate({
|
|
133
|
+
identifier: "CreateDepositDestinationResponse",
|
|
134
|
+
});
|
|
135
|
+
export const EmailAuthenticationType = /*@__PURE__*/ S.String;
|
|
136
|
+
export const EmailAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
+
type: EmailAuthenticationType,
|
|
138
|
+
email: S.String,
|
|
139
|
+
})).annotate({
|
|
140
|
+
identifier: "EmailAuthentication",
|
|
141
|
+
});
|
|
142
|
+
export const SmsAuthenticationType = /*@__PURE__*/ S.String;
|
|
143
|
+
export const SmsAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
+
type: SmsAuthenticationType,
|
|
145
|
+
phoneNumber: S.String,
|
|
146
|
+
})).annotate({
|
|
147
|
+
identifier: "SmsAuthentication",
|
|
148
|
+
});
|
|
149
|
+
export const DeveloperJWTAuthenticationType = /*@__PURE__*/ S.String;
|
|
150
|
+
export const DeveloperJWTAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
151
|
+
type: DeveloperJWTAuthenticationType,
|
|
152
|
+
kid: S.String,
|
|
153
|
+
sub: S.String,
|
|
154
|
+
})).annotate({
|
|
155
|
+
identifier: "DeveloperJWTAuthentication",
|
|
156
|
+
});
|
|
157
|
+
export const OAuth2ProviderType = /*@__PURE__*/ S.String;
|
|
158
|
+
export const OAuth2Authentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
+
type: OAuth2ProviderType,
|
|
160
|
+
sub: S.String,
|
|
161
|
+
email: S.optional(S.String),
|
|
162
|
+
name: S.optional(S.String),
|
|
163
|
+
username: S.optional(S.String),
|
|
164
|
+
})).annotate({
|
|
165
|
+
identifier: "OAuth2Authentication",
|
|
166
|
+
});
|
|
167
|
+
export const TelegramAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
+
type: OAuth2ProviderType,
|
|
169
|
+
id: S.Number,
|
|
170
|
+
firstName: S.optional(S.String),
|
|
171
|
+
lastName: S.optional(S.String),
|
|
172
|
+
photoUrl: S.optional(S.String),
|
|
173
|
+
authDate: S.Number,
|
|
174
|
+
username: S.optional(S.String),
|
|
175
|
+
})).annotate({
|
|
176
|
+
identifier: "TelegramAuthentication",
|
|
177
|
+
});
|
|
178
|
+
export const SiweAuthenticationType = /*@__PURE__*/ S.String;
|
|
179
|
+
export const SiweAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
type: SiweAuthenticationType,
|
|
181
|
+
address: S.String,
|
|
182
|
+
})).annotate({
|
|
183
|
+
identifier: "SiweAuthentication",
|
|
184
|
+
});
|
|
185
|
+
export const AuthenticationMethod =
|
|
186
|
+
/*@__PURE__*/ S.Unknown;
|
|
187
|
+
export const AuthenticationMethods = /*@__PURE__*/ S.Array(AuthenticationMethod);
|
|
188
|
+
export const CreateEndUserRequestEvmAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
189
|
+
createSmartAccount: S.optional(S.Boolean),
|
|
190
|
+
enableSpendPermissions: S.optional(S.Boolean),
|
|
191
|
+
})).annotate({
|
|
192
|
+
identifier: "CreateEndUserRequestEvmAccount",
|
|
193
|
+
});
|
|
194
|
+
export const CreateEndUserRequestSolanaAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
+
createSmartAccount: S.optional(S.Boolean),
|
|
196
|
+
})).annotate({
|
|
197
|
+
identifier: "CreateEndUserRequestSolanaAccount",
|
|
198
|
+
});
|
|
199
|
+
export const CreateEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
200
|
+
userId: S.optional(S.String),
|
|
201
|
+
authenticationMethods: AuthenticationMethods,
|
|
202
|
+
evmAccount: S.optional(CreateEndUserRequestEvmAccount),
|
|
203
|
+
solanaAccount: S.optional(CreateEndUserRequestSolanaAccount),
|
|
204
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/end-users", code: 200 }))).annotate({
|
|
205
|
+
identifier: "CreateEndUserRequest",
|
|
206
|
+
});
|
|
207
|
+
export const MFAMethodsTotp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
+
enrolledAt: S.String,
|
|
209
|
+
})).annotate({ identifier: "MFAMethodsTotp" });
|
|
210
|
+
export const MFAMethodsSms = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
211
|
+
enrolledAt: S.String,
|
|
212
|
+
})).annotate({ identifier: "MFAMethodsSms" });
|
|
213
|
+
export const MFAMethods = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
214
|
+
enrollmentPromptedAt: S.optional(S.String),
|
|
215
|
+
totp: S.optional(MFAMethodsTotp),
|
|
216
|
+
sms: S.optional(MFAMethodsSms),
|
|
217
|
+
})).annotate({ identifier: "MFAMethods" });
|
|
218
|
+
export const EndUserEvmAccountsList = /*@__PURE__*/ S.Array(S.String);
|
|
219
|
+
export const EndUserEvmAccountObjectsList = /*@__PURE__*/ S.Array(EndUserEvmAccount);
|
|
220
|
+
export const EndUserEvmSmartAccountsList = /*@__PURE__*/ S.Array(S.String);
|
|
221
|
+
export const EndUserEvmSmartAccountObjectsList = /*@__PURE__*/ S.Array(EndUserEvmSmartAccount);
|
|
222
|
+
export const EndUserSolanaAccountsList = /*@__PURE__*/ S.Array(S.String);
|
|
223
|
+
export const EndUserSolanaAccountObjectsList = /*@__PURE__*/ S.Array(EndUserSolanaAccount);
|
|
224
|
+
export const EndUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
+
userId: S.String,
|
|
226
|
+
authenticationMethods: AuthenticationMethods,
|
|
227
|
+
mfaMethods: S.optional(MFAMethods),
|
|
228
|
+
evmAccounts: EndUserEvmAccountsList,
|
|
229
|
+
evmAccountObjects: EndUserEvmAccountObjectsList,
|
|
230
|
+
evmSmartAccounts: EndUserEvmSmartAccountsList,
|
|
231
|
+
evmSmartAccountObjects: EndUserEvmSmartAccountObjectsList,
|
|
232
|
+
solanaAccounts: EndUserSolanaAccountsList,
|
|
233
|
+
solanaAccountObjects: EndUserSolanaAccountObjectsList,
|
|
234
|
+
createdAt: S.String,
|
|
235
|
+
})).annotate({ identifier: "EndUser" });
|
|
236
|
+
export const CreateEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
+
name: S.optional(S.String),
|
|
238
|
+
accountPolicy: S.optional(S.String),
|
|
239
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/evm/accounts", code: 200 }))).annotate({
|
|
240
|
+
identifier: "CreateEvmAccountRequest",
|
|
241
|
+
});
|
|
242
|
+
export const EvmAccountPoliciesList = /*@__PURE__*/ S.Array(S.String);
|
|
243
|
+
export const EvmAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
244
|
+
address: S.String,
|
|
245
|
+
name: S.optional(S.String),
|
|
246
|
+
policies: S.optional(EvmAccountPoliciesList),
|
|
247
|
+
createdAt: S.optional(S.String),
|
|
248
|
+
updatedAt: S.optional(S.String),
|
|
249
|
+
})).annotate({ identifier: "EvmAccount" });
|
|
250
|
+
export const EvmEip7702DelegationNetwork = /*@__PURE__*/ S.String;
|
|
251
|
+
export const CreateEvmEip7702DelegationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
252
|
+
address: S.String.pipe(T.Label()),
|
|
253
|
+
network: EvmEip7702DelegationNetwork,
|
|
254
|
+
enableSpendPermissions: S.optional(S.Boolean),
|
|
255
|
+
}).pipe(T.Http({
|
|
256
|
+
method: "POST",
|
|
257
|
+
uri: "/v2/evm/accounts/{address}/eip7702/delegation",
|
|
258
|
+
code: 200,
|
|
259
|
+
}))).annotate({
|
|
260
|
+
identifier: "CreateEvmEip7702DelegationRequest",
|
|
261
|
+
});
|
|
262
|
+
export const CreateEvmEip7702DelegationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
+
delegationOperationId: S.String,
|
|
264
|
+
})).annotate({
|
|
265
|
+
identifier: "CreateEvmEip7702DelegationResponse",
|
|
266
|
+
});
|
|
267
|
+
export const CreateEvmEip7702DelegationWithEndUserAccountRequest =
|
|
268
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
+
userId: S.String.pipe(T.Label()),
|
|
270
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
271
|
+
address: S.String,
|
|
272
|
+
network: EvmEip7702DelegationNetwork,
|
|
273
|
+
enableSpendPermissions: S.optional(S.Boolean),
|
|
274
|
+
walletSecretId: S.optional(S.String),
|
|
275
|
+
}).pipe(T.Http({
|
|
276
|
+
method: "POST",
|
|
277
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/eip7702/delegation",
|
|
278
|
+
code: 200,
|
|
279
|
+
}))).annotate({
|
|
280
|
+
identifier: "CreateEvmEip7702DelegationWithEndUserAccountRequest",
|
|
281
|
+
});
|
|
282
|
+
export const CreateEvmEip7702DelegationWithEndUserAccountResponse =
|
|
283
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
284
|
+
delegationOperationId: S.String,
|
|
285
|
+
})).annotate({
|
|
286
|
+
identifier: "CreateEvmEip7702DelegationWithEndUserAccountResponse",
|
|
287
|
+
});
|
|
288
|
+
export const CreateEvmSmartAccountRequestOwnersList = /*@__PURE__*/ S.Array(S.String);
|
|
289
|
+
export const CreateEvmSmartAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
290
|
+
owners: CreateEvmSmartAccountRequestOwnersList,
|
|
291
|
+
name: S.optional(S.String),
|
|
292
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/evm/smart-accounts", code: 200 }))).annotate({
|
|
293
|
+
identifier: "CreateEvmSmartAccountRequest",
|
|
294
|
+
});
|
|
295
|
+
export const EvmSmartAccountOwnersList = /*@__PURE__*/ S.Array(S.String);
|
|
296
|
+
export const EvmSmartAccountPoliciesList = /*@__PURE__*/ S.Array(S.String);
|
|
297
|
+
export const EvmSmartAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
298
|
+
address: S.String,
|
|
299
|
+
owners: EvmSmartAccountOwnersList,
|
|
300
|
+
name: S.optional(S.String),
|
|
301
|
+
policies: S.optional(EvmSmartAccountPoliciesList),
|
|
302
|
+
createdAt: S.optional(S.String),
|
|
303
|
+
updatedAt: S.optional(S.String),
|
|
304
|
+
})).annotate({
|
|
305
|
+
identifier: "EvmSmartAccount",
|
|
306
|
+
});
|
|
307
|
+
export const EvmSwapsNetwork = /*@__PURE__*/ S.String;
|
|
308
|
+
export const CreateEvmSwapQuoteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
+
network: EvmSwapsNetwork,
|
|
310
|
+
toToken: S.String,
|
|
311
|
+
fromToken: S.String,
|
|
312
|
+
fromAmount: S.String,
|
|
313
|
+
taker: S.String,
|
|
314
|
+
signerAddress: S.optional(S.String),
|
|
315
|
+
gasPrice: S.optional(S.String),
|
|
316
|
+
slippageBps: S.optional(S.Number),
|
|
317
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/evm/swaps", code: 200 }))).annotate({
|
|
318
|
+
identifier: "CreateEvmSwapQuoteRequest",
|
|
319
|
+
});
|
|
320
|
+
export const EIP712Domain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
name: S.optional(S.String),
|
|
322
|
+
version: S.optional(S.String),
|
|
323
|
+
chainId: S.optional(S.Number),
|
|
324
|
+
verifyingContract: S.optional(S.String),
|
|
325
|
+
salt: S.optional(S.String),
|
|
326
|
+
})).annotate({ identifier: "EIP712Domain" });
|
|
327
|
+
export const EIP712Message = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
|
+
domain: EIP712Domain,
|
|
329
|
+
types: S.Unknown,
|
|
330
|
+
primaryType: S.String,
|
|
331
|
+
message: S.Unknown,
|
|
332
|
+
})).annotate({ identifier: "EIP712Message" });
|
|
333
|
+
export const CreateSwapQuoteResponsePermit2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
+
hash: S.String,
|
|
335
|
+
eip712: EIP712Message,
|
|
336
|
+
})).annotate({
|
|
337
|
+
identifier: "CreateSwapQuoteResponsePermit2",
|
|
338
|
+
});
|
|
339
|
+
export const CreateSwapQuoteResponseTransaction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
+
to: S.String,
|
|
341
|
+
data: S.String,
|
|
342
|
+
gas: S.String,
|
|
343
|
+
gasPrice: S.String,
|
|
344
|
+
value: S.String,
|
|
345
|
+
})).annotate({
|
|
346
|
+
identifier: "CreateSwapQuoteResponseTransaction",
|
|
347
|
+
});
|
|
348
|
+
export const TokenFee = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
349
|
+
amount: S.String,
|
|
350
|
+
token: S.String,
|
|
351
|
+
})).annotate({ identifier: "TokenFee" });
|
|
352
|
+
export const CreateSwapQuoteResponseFees = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
353
|
+
gasFee: S.NullOr(TokenFee),
|
|
354
|
+
protocolFee: S.NullOr(TokenFee),
|
|
355
|
+
})).annotate({
|
|
356
|
+
identifier: "CreateSwapQuoteResponseFees",
|
|
357
|
+
});
|
|
358
|
+
export const CreateSwapQuoteResponseIssuesAllowance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
359
|
+
currentAllowance: S.String,
|
|
360
|
+
spender: S.String,
|
|
361
|
+
})).annotate({
|
|
362
|
+
identifier: "CreateSwapQuoteResponseIssuesAllowance",
|
|
363
|
+
});
|
|
364
|
+
export const CreateSwapQuoteResponseIssuesBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
365
|
+
token: S.String,
|
|
366
|
+
currentBalance: S.String,
|
|
367
|
+
requiredBalance: S.String,
|
|
368
|
+
})).annotate({
|
|
369
|
+
identifier: "CreateSwapQuoteResponseIssuesBalance",
|
|
370
|
+
});
|
|
371
|
+
export const CreateSwapQuoteResponseIssues = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
|
+
allowance: S.NullOr(CreateSwapQuoteResponseIssuesAllowance),
|
|
373
|
+
balance: S.NullOr(CreateSwapQuoteResponseIssuesBalance),
|
|
374
|
+
simulationIncomplete: S.Boolean,
|
|
375
|
+
})).annotate({
|
|
376
|
+
identifier: "CreateSwapQuoteResponseIssues",
|
|
377
|
+
});
|
|
378
|
+
export const CreateSwapQuoteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
379
|
+
permit2: S.NullOr(CreateSwapQuoteResponsePermit2),
|
|
380
|
+
transaction: CreateSwapQuoteResponseTransaction,
|
|
381
|
+
blockNumber: S.String,
|
|
382
|
+
toAmount: S.String,
|
|
383
|
+
toToken: S.String,
|
|
384
|
+
fees: CreateSwapQuoteResponseFees,
|
|
385
|
+
issues: CreateSwapQuoteResponseIssues,
|
|
386
|
+
liquidityAvailable: S.Boolean,
|
|
387
|
+
minToAmount: S.String,
|
|
388
|
+
fromAmount: S.String,
|
|
389
|
+
fromToken: S.String,
|
|
390
|
+
})).annotate({
|
|
391
|
+
identifier: "CreateSwapQuoteResponse",
|
|
392
|
+
});
|
|
393
|
+
export const SwapUnavailableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
394
|
+
liquidityAvailable: S.Boolean,
|
|
395
|
+
})).annotate({
|
|
396
|
+
identifier: "SwapUnavailableResponse",
|
|
397
|
+
});
|
|
398
|
+
export const CreateSwapQuoteResponseWrapper =
|
|
399
|
+
/*@__PURE__*/ S.Unknown;
|
|
400
|
+
export const CreateEvmSwapQuoteResponse = /*@__PURE__*/ S.suspend(() => CreateSwapQuoteResponseWrapper.pipe(T.RawResponseRoot())).annotate({
|
|
401
|
+
identifier: "CreateEvmSwapQuoteResponse",
|
|
402
|
+
});
|
|
403
|
+
export const CreateFoundationAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
404
|
+
name: S.optional(S.String),
|
|
405
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/accounts", code: 200 }))).annotate({
|
|
406
|
+
identifier: "CreateFoundationAccountRequest",
|
|
407
|
+
});
|
|
408
|
+
export const AccountType = /*@__PURE__*/ S.String;
|
|
409
|
+
export const Account = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
410
|
+
accountId: S.String,
|
|
411
|
+
type: AccountType,
|
|
412
|
+
owner: S.String,
|
|
413
|
+
name: S.optional(S.String),
|
|
414
|
+
createdAt: S.String,
|
|
415
|
+
updatedAt: S.String,
|
|
416
|
+
})).annotate({ identifier: "Account" });
|
|
417
|
+
export const OnrampOrderPaymentMethodTypeId = /*@__PURE__*/ S.String;
|
|
418
|
+
export const CreateOnrampOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
419
|
+
agreementAcceptedAt: S.String,
|
|
420
|
+
destinationAddress: S.String,
|
|
421
|
+
destinationNetwork: S.String,
|
|
422
|
+
email: S.String,
|
|
423
|
+
isQuote: S.optional(S.Boolean),
|
|
424
|
+
partnerOrderRef: S.optional(S.String),
|
|
425
|
+
partnerUserRef: S.String,
|
|
426
|
+
paymentAmount: S.optional(S.String),
|
|
427
|
+
paymentCurrency: S.String,
|
|
428
|
+
paymentMethod: OnrampOrderPaymentMethodTypeId,
|
|
429
|
+
phoneNumber: S.String,
|
|
430
|
+
phoneNumberVerifiedAt: S.String,
|
|
431
|
+
smsVerificationId: S.optional(S.String),
|
|
432
|
+
emailVerificationId: S.optional(S.String),
|
|
433
|
+
purchaseAmount: S.optional(S.String),
|
|
434
|
+
purchaseCurrency: S.String,
|
|
435
|
+
clientIp: S.optional(S.String),
|
|
436
|
+
domain: S.optional(S.String),
|
|
437
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/onramp/orders", code: 200 }))).annotate({
|
|
438
|
+
identifier: "CreateOnrampOrderRequest",
|
|
439
|
+
});
|
|
440
|
+
export const OnrampOrderFeeType = /*@__PURE__*/ S.String;
|
|
441
|
+
export const OnrampOrderFee = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
442
|
+
type: OnrampOrderFeeType,
|
|
443
|
+
amount: S.String,
|
|
444
|
+
currency: S.String,
|
|
445
|
+
})).annotate({ identifier: "OnrampOrderFee" });
|
|
446
|
+
export const OnrampOrderFeesList = /*@__PURE__*/ S.Array(OnrampOrderFee);
|
|
447
|
+
export const OnrampOrderStatus = /*@__PURE__*/ S.String;
|
|
448
|
+
export const OnrampOrder = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
449
|
+
orderId: S.String,
|
|
450
|
+
paymentTotal: S.String,
|
|
451
|
+
paymentSubtotal: S.String,
|
|
452
|
+
paymentCurrency: S.String,
|
|
453
|
+
paymentMethod: OnrampOrderPaymentMethodTypeId,
|
|
454
|
+
purchaseAmount: S.String,
|
|
455
|
+
purchaseCurrency: S.String,
|
|
456
|
+
fees: OnrampOrderFeesList,
|
|
457
|
+
exchangeRate: S.String,
|
|
458
|
+
destinationAddress: S.String,
|
|
459
|
+
destinationNetwork: S.String,
|
|
460
|
+
status: OnrampOrderStatus,
|
|
461
|
+
txHash: S.optional(S.String),
|
|
462
|
+
createdAt: S.String,
|
|
463
|
+
updatedAt: S.String,
|
|
464
|
+
partnerUserRef: S.optional(S.String),
|
|
465
|
+
})).annotate({ identifier: "OnrampOrder" });
|
|
466
|
+
export const OnrampPaymentLinkType = /*@__PURE__*/ S.String;
|
|
467
|
+
export const OnrampPaymentLink = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
468
|
+
url: S.String,
|
|
469
|
+
paymentLinkType: OnrampPaymentLinkType,
|
|
470
|
+
})).annotate({
|
|
471
|
+
identifier: "OnrampPaymentLink",
|
|
472
|
+
});
|
|
473
|
+
export const CreateOnrampOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
474
|
+
order: OnrampOrder,
|
|
475
|
+
paymentLink: S.optional(OnrampPaymentLink),
|
|
476
|
+
})).annotate({
|
|
477
|
+
identifier: "CreateOnrampOrderResponse",
|
|
478
|
+
});
|
|
479
|
+
export const OnrampQuotePaymentMethodTypeId = /*@__PURE__*/ S.String;
|
|
480
|
+
export const CreateOnrampSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
481
|
+
purchaseCurrency: S.String,
|
|
482
|
+
destinationNetwork: S.String,
|
|
483
|
+
destinationAddress: S.String,
|
|
484
|
+
paymentAmount: S.optional(S.String),
|
|
485
|
+
purchaseAmount: S.optional(S.String),
|
|
486
|
+
paymentCurrency: S.optional(S.String),
|
|
487
|
+
paymentMethod: S.optional(OnrampQuotePaymentMethodTypeId),
|
|
488
|
+
country: S.optional(S.String),
|
|
489
|
+
subdivision: S.optional(S.String),
|
|
490
|
+
redirectUrl: S.optional(S.String),
|
|
491
|
+
clientIp: S.optional(S.String),
|
|
492
|
+
partnerUserRef: S.optional(S.String),
|
|
493
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/onramp/sessions", code: 200 }))).annotate({
|
|
494
|
+
identifier: "CreateOnrampSessionRequest",
|
|
495
|
+
});
|
|
496
|
+
export const OnrampSession = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
497
|
+
onrampUrl: S.String,
|
|
498
|
+
})).annotate({ identifier: "OnrampSession" });
|
|
499
|
+
export const OnrampQuoteFeesList = /*@__PURE__*/ S.Array(OnrampOrderFee);
|
|
500
|
+
export const OnrampQuote = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
501
|
+
paymentTotal: S.String,
|
|
502
|
+
paymentSubtotal: S.String,
|
|
503
|
+
paymentCurrency: S.String,
|
|
504
|
+
purchaseAmount: S.String,
|
|
505
|
+
purchaseCurrency: S.String,
|
|
506
|
+
destinationNetwork: S.String,
|
|
507
|
+
fees: OnrampQuoteFeesList,
|
|
508
|
+
exchangeRate: S.String,
|
|
509
|
+
})).annotate({ identifier: "OnrampQuote" });
|
|
510
|
+
export const CreateOnrampSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
511
|
+
session: OnrampSession,
|
|
512
|
+
quote: S.optional(OnrampQuote),
|
|
513
|
+
})).annotate({
|
|
514
|
+
identifier: "CreateOnrampSessionResponse",
|
|
515
|
+
});
|
|
516
|
+
export const CreatePolicyRequestScope = /*@__PURE__*/ S.String;
|
|
517
|
+
export const SignEvmTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
518
|
+
export const SignEvmTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
519
|
+
export const EthValueCriterionType = /*@__PURE__*/ S.String;
|
|
520
|
+
export const EthValueCriterionOperator = /*@__PURE__*/ S.String;
|
|
521
|
+
export const EthValueCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
522
|
+
type: EthValueCriterionType,
|
|
523
|
+
ethValue: S.String,
|
|
524
|
+
operator: EthValueCriterionOperator,
|
|
525
|
+
})).annotate({
|
|
526
|
+
identifier: "EthValueCriterion",
|
|
527
|
+
});
|
|
528
|
+
export const EvmAddressCriterionType = /*@__PURE__*/ S.String;
|
|
529
|
+
export const EvmAddressCriterionAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
530
|
+
export const EvmAddressCriterionOperator = /*@__PURE__*/ S.String;
|
|
531
|
+
export const EvmAddressCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
532
|
+
type: EvmAddressCriterionType,
|
|
533
|
+
addresses: EvmAddressCriterionAddressesList,
|
|
534
|
+
operator: EvmAddressCriterionOperator,
|
|
535
|
+
})).annotate({
|
|
536
|
+
identifier: "EvmAddressCriterion",
|
|
537
|
+
});
|
|
538
|
+
export const EvmDataCriterionType = /*@__PURE__*/ S.String;
|
|
539
|
+
export const KnownAbiType = /*@__PURE__*/ S.String;
|
|
540
|
+
export const AbiFunctionType = /*@__PURE__*/ S.String;
|
|
541
|
+
export const AbiParameterComponentsList = /*@__PURE__*/ S.Array(S.suspend(() => AbiParameter));
|
|
542
|
+
export const AbiParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
543
|
+
name: S.optional(S.String),
|
|
544
|
+
type: S.String,
|
|
545
|
+
internalType: S.optional(S.String),
|
|
546
|
+
components: S.optional(AbiParameterComponentsList),
|
|
547
|
+
})).annotate({ identifier: "AbiParameter" });
|
|
548
|
+
export const AbiFunctionInputsList = /*@__PURE__*/ S.Array(AbiParameter);
|
|
549
|
+
export const AbiFunctionOutputsList = /*@__PURE__*/ S.Array(AbiParameter);
|
|
550
|
+
export const AbiStateMutability = /*@__PURE__*/ S.String;
|
|
551
|
+
export const AbiFunction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
552
|
+
type: AbiFunctionType,
|
|
553
|
+
name: S.String,
|
|
554
|
+
inputs: AbiFunctionInputsList,
|
|
555
|
+
outputs: AbiFunctionOutputsList,
|
|
556
|
+
constant: S.optional(S.Boolean),
|
|
557
|
+
payable: S.optional(S.Boolean),
|
|
558
|
+
stateMutability: AbiStateMutability,
|
|
559
|
+
gas: S.optional(S.Number),
|
|
560
|
+
})).annotate({ identifier: "AbiFunction" });
|
|
561
|
+
export const AbiInputType = /*@__PURE__*/ S.String;
|
|
562
|
+
export const AbiInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
563
|
+
type: AbiInputType,
|
|
564
|
+
additionalProperties: S.optional(S.Unknown),
|
|
565
|
+
})).annotate({ identifier: "AbiInput" });
|
|
566
|
+
export const AbiItem = /*@__PURE__*/ S.Unknown;
|
|
567
|
+
export const Abi = /*@__PURE__*/ S.Array(AbiItem);
|
|
568
|
+
export const EvmDataCriterionAbi =
|
|
569
|
+
/*@__PURE__*/ S.Unknown;
|
|
570
|
+
export const EvmDataParameterConditionOperator = /*@__PURE__*/ S.String;
|
|
571
|
+
export const EvmDataParameterCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
572
|
+
name: S.String,
|
|
573
|
+
operator: EvmDataParameterConditionOperator,
|
|
574
|
+
value: S.String,
|
|
575
|
+
})).annotate({
|
|
576
|
+
identifier: "EvmDataParameterCondition",
|
|
577
|
+
});
|
|
578
|
+
export const EvmDataParameterConditionListOperator = /*@__PURE__*/ S.String;
|
|
579
|
+
export const EvmDataParameterConditionListValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
580
|
+
export const EvmDataParameterConditionList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
581
|
+
name: S.String,
|
|
582
|
+
operator: EvmDataParameterConditionListOperator,
|
|
583
|
+
values: EvmDataParameterConditionListValuesList,
|
|
584
|
+
})).annotate({
|
|
585
|
+
identifier: "EvmDataParameterConditionList",
|
|
586
|
+
});
|
|
587
|
+
export const EvmDataConditionParamsItem =
|
|
588
|
+
/*@__PURE__*/ S.Unknown;
|
|
589
|
+
export const EvmDataConditionParamsList = /*@__PURE__*/ S.Array(EvmDataConditionParamsItem);
|
|
590
|
+
export const EvmDataCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
591
|
+
function: S.String,
|
|
592
|
+
params: S.optional(EvmDataConditionParamsList),
|
|
593
|
+
})).annotate({
|
|
594
|
+
identifier: "EvmDataCondition",
|
|
595
|
+
});
|
|
596
|
+
export const EvmDataCriterionConditionsList = /*@__PURE__*/ S.Array(EvmDataCondition);
|
|
597
|
+
export const EvmDataCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
598
|
+
type: EvmDataCriterionType,
|
|
599
|
+
abi: EvmDataCriterionAbi,
|
|
600
|
+
conditions: EvmDataCriterionConditionsList,
|
|
601
|
+
})).annotate({
|
|
602
|
+
identifier: "EvmDataCriterion",
|
|
603
|
+
});
|
|
604
|
+
export const NetUSDChangeCriterionType = /*@__PURE__*/ S.String;
|
|
605
|
+
export const NetUSDChangeCriterionOperator = /*@__PURE__*/ S.String;
|
|
606
|
+
export const NetUSDChangeCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
607
|
+
type: NetUSDChangeCriterionType,
|
|
608
|
+
changeCents: S.Number,
|
|
609
|
+
operator: NetUSDChangeCriterionOperator,
|
|
610
|
+
})).annotate({
|
|
611
|
+
identifier: "NetUSDChangeCriterion",
|
|
612
|
+
});
|
|
613
|
+
export const SignEvmTransactionCriteriaItem =
|
|
614
|
+
/*@__PURE__*/ S.Unknown;
|
|
615
|
+
export const SignEvmTransactionCriteria = /*@__PURE__*/ S.Array(SignEvmTransactionCriteriaItem);
|
|
616
|
+
export const SignEvmTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
617
|
+
action: SignEvmTransactionRuleAction,
|
|
618
|
+
operation: SignEvmTransactionRuleOperation,
|
|
619
|
+
criteria: SignEvmTransactionCriteria,
|
|
620
|
+
})).annotate({
|
|
621
|
+
identifier: "SignEvmTransactionRule",
|
|
622
|
+
});
|
|
623
|
+
export const SendEvmTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
624
|
+
export const SendEvmTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
625
|
+
export const EvmNetworkCriterionType = /*@__PURE__*/ S.String;
|
|
626
|
+
export const EvmNetworkCriterionNetworksItem = /*@__PURE__*/ S.String;
|
|
627
|
+
export const EvmNetworkCriterionNetworksList = /*@__PURE__*/ S.Array(EvmNetworkCriterionNetworksItem);
|
|
628
|
+
export const EvmNetworkCriterionOperator = /*@__PURE__*/ S.String;
|
|
629
|
+
export const EvmNetworkCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
630
|
+
type: EvmNetworkCriterionType,
|
|
631
|
+
networks: EvmNetworkCriterionNetworksList,
|
|
632
|
+
operator: EvmNetworkCriterionOperator,
|
|
633
|
+
})).annotate({
|
|
634
|
+
identifier: "EvmNetworkCriterion",
|
|
635
|
+
});
|
|
636
|
+
export const SendEvmTransactionCriteriaItem =
|
|
637
|
+
/*@__PURE__*/ S.Unknown;
|
|
638
|
+
export const SendEvmTransactionCriteria = /*@__PURE__*/ S.Array(SendEvmTransactionCriteriaItem);
|
|
639
|
+
export const SendEvmTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
640
|
+
action: SendEvmTransactionRuleAction,
|
|
641
|
+
operation: SendEvmTransactionRuleOperation,
|
|
642
|
+
criteria: SendEvmTransactionCriteria,
|
|
643
|
+
})).annotate({
|
|
644
|
+
identifier: "SendEvmTransactionRule",
|
|
645
|
+
});
|
|
646
|
+
export const SignEvmMessageRuleAction = /*@__PURE__*/ S.String;
|
|
647
|
+
export const SignEvmMessageRuleOperation = /*@__PURE__*/ S.String;
|
|
648
|
+
export const EvmMessageCriterionType = /*@__PURE__*/ S.String;
|
|
649
|
+
export const EvmMessageCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
650
|
+
type: EvmMessageCriterionType,
|
|
651
|
+
match: S.String,
|
|
652
|
+
})).annotate({
|
|
653
|
+
identifier: "EvmMessageCriterion",
|
|
654
|
+
});
|
|
655
|
+
export const SignEvmMessageCriteria = /*@__PURE__*/ S.Array(EvmMessageCriterion);
|
|
656
|
+
export const SignEvmMessageRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
657
|
+
action: SignEvmMessageRuleAction,
|
|
658
|
+
operation: SignEvmMessageRuleOperation,
|
|
659
|
+
criteria: SignEvmMessageCriteria,
|
|
660
|
+
})).annotate({
|
|
661
|
+
identifier: "SignEvmMessageRule",
|
|
662
|
+
});
|
|
663
|
+
export const SignEvmTypedDataRuleAction = /*@__PURE__*/ S.String;
|
|
664
|
+
export const SignEvmTypedDataRuleOperation = /*@__PURE__*/ S.String;
|
|
665
|
+
export const SignEvmTypedDataFieldCriterionType = /*@__PURE__*/ S.String;
|
|
666
|
+
export const SignEvmTypedDataFieldCriterionTypesTypesValueItem =
|
|
667
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
668
|
+
name: S.optional(S.String),
|
|
669
|
+
type: S.optional(S.String),
|
|
670
|
+
})).annotate({
|
|
671
|
+
identifier: "SignEvmTypedDataFieldCriterionTypesTypesValueItem",
|
|
672
|
+
});
|
|
673
|
+
export const SignEvmTypedDataFieldCriterionTypesTypesValueList =
|
|
674
|
+
/*@__PURE__*/ S.Array(SignEvmTypedDataFieldCriterionTypesTypesValueItem);
|
|
675
|
+
export const SignEvmTypedDataFieldCriterionTypesTypesMap =
|
|
676
|
+
/*@__PURE__*/ S.Record(S.String, SignEvmTypedDataFieldCriterionTypesTypesValueList);
|
|
677
|
+
export const SignEvmTypedDataFieldCriterionTypes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
678
|
+
types: SignEvmTypedDataFieldCriterionTypesTypesMap,
|
|
679
|
+
primaryType: S.String,
|
|
680
|
+
})).annotate({
|
|
681
|
+
identifier: "SignEvmTypedDataFieldCriterionTypes",
|
|
682
|
+
});
|
|
683
|
+
export const EvmTypedAddressConditionAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
684
|
+
export const EvmTypedAddressConditionOperator = /*@__PURE__*/ S.String;
|
|
685
|
+
export const EvmTypedAddressCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
686
|
+
addresses: EvmTypedAddressConditionAddressesList,
|
|
687
|
+
operator: EvmTypedAddressConditionOperator,
|
|
688
|
+
path: S.String,
|
|
689
|
+
})).annotate({
|
|
690
|
+
identifier: "EvmTypedAddressCondition",
|
|
691
|
+
});
|
|
692
|
+
export const EvmTypedNumericalConditionOperator = /*@__PURE__*/ S.String;
|
|
693
|
+
export const EvmTypedNumericalCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
694
|
+
value: S.String,
|
|
695
|
+
operator: EvmTypedNumericalConditionOperator,
|
|
696
|
+
path: S.String,
|
|
697
|
+
})).annotate({
|
|
698
|
+
identifier: "EvmTypedNumericalCondition",
|
|
699
|
+
});
|
|
700
|
+
export const EvmTypedStringCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
701
|
+
match: S.String,
|
|
702
|
+
path: S.String,
|
|
703
|
+
})).annotate({
|
|
704
|
+
identifier: "EvmTypedStringCondition",
|
|
705
|
+
});
|
|
706
|
+
export const SignEvmTypedDataFieldCriterionConditionsItem =
|
|
707
|
+
/*@__PURE__*/ S.Unknown;
|
|
708
|
+
export const SignEvmTypedDataFieldCriterionConditionsList =
|
|
709
|
+
/*@__PURE__*/ S.Array(SignEvmTypedDataFieldCriterionConditionsItem);
|
|
710
|
+
export const SignEvmTypedDataFieldCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
711
|
+
type: SignEvmTypedDataFieldCriterionType,
|
|
712
|
+
types: SignEvmTypedDataFieldCriterionTypes,
|
|
713
|
+
conditions: SignEvmTypedDataFieldCriterionConditionsList,
|
|
714
|
+
})).annotate({
|
|
715
|
+
identifier: "SignEvmTypedDataFieldCriterion",
|
|
716
|
+
});
|
|
717
|
+
export const SignEvmTypedDataVerifyingContractCriterionType =
|
|
718
|
+
/*@__PURE__*/ S.String;
|
|
719
|
+
export const SignEvmTypedDataVerifyingContractCriterionAddressesList =
|
|
720
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
721
|
+
export const SignEvmTypedDataVerifyingContractCriterionOperator =
|
|
722
|
+
/*@__PURE__*/ S.String;
|
|
723
|
+
export const SignEvmTypedDataVerifyingContractCriterion =
|
|
724
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
725
|
+
type: SignEvmTypedDataVerifyingContractCriterionType,
|
|
726
|
+
addresses: SignEvmTypedDataVerifyingContractCriterionAddressesList,
|
|
727
|
+
operator: SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
728
|
+
})).annotate({
|
|
729
|
+
identifier: "SignEvmTypedDataVerifyingContractCriterion",
|
|
730
|
+
});
|
|
731
|
+
export const SignEvmTypedDataCriteriaItem =
|
|
732
|
+
/*@__PURE__*/ S.Unknown;
|
|
733
|
+
export const SignEvmTypedDataCriteria = /*@__PURE__*/ S.Array(SignEvmTypedDataCriteriaItem);
|
|
734
|
+
export const SignEvmTypedDataRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
735
|
+
action: SignEvmTypedDataRuleAction,
|
|
736
|
+
operation: SignEvmTypedDataRuleOperation,
|
|
737
|
+
criteria: SignEvmTypedDataCriteria,
|
|
738
|
+
})).annotate({
|
|
739
|
+
identifier: "SignEvmTypedDataRule",
|
|
740
|
+
});
|
|
741
|
+
export const SignSolTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
742
|
+
export const SignSolTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
743
|
+
export const SolAddressCriterionType = /*@__PURE__*/ S.String;
|
|
744
|
+
export const SolAddressCriterionAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
745
|
+
export const SolAddressCriterionOperator = /*@__PURE__*/ S.String;
|
|
746
|
+
export const SolAddressCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
747
|
+
type: SolAddressCriterionType,
|
|
748
|
+
addresses: SolAddressCriterionAddressesList,
|
|
749
|
+
operator: SolAddressCriterionOperator,
|
|
750
|
+
})).annotate({
|
|
751
|
+
identifier: "SolAddressCriterion",
|
|
752
|
+
});
|
|
753
|
+
export const SolValueCriterionType = /*@__PURE__*/ S.String;
|
|
754
|
+
export const SolValueCriterionOperator = /*@__PURE__*/ S.String;
|
|
755
|
+
export const SolValueCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
756
|
+
type: SolValueCriterionType,
|
|
757
|
+
solValue: S.String,
|
|
758
|
+
operator: SolValueCriterionOperator,
|
|
759
|
+
})).annotate({
|
|
760
|
+
identifier: "SolValueCriterion",
|
|
761
|
+
});
|
|
762
|
+
export const SplAddressCriterionType = /*@__PURE__*/ S.String;
|
|
763
|
+
export const SplAddressCriterionAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
764
|
+
export const SplAddressCriterionOperator = /*@__PURE__*/ S.String;
|
|
765
|
+
export const SplAddressCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
766
|
+
type: SplAddressCriterionType,
|
|
767
|
+
addresses: SplAddressCriterionAddressesList,
|
|
768
|
+
operator: SplAddressCriterionOperator,
|
|
769
|
+
})).annotate({
|
|
770
|
+
identifier: "SplAddressCriterion",
|
|
771
|
+
});
|
|
772
|
+
export const SplValueCriterionType = /*@__PURE__*/ S.String;
|
|
773
|
+
export const SplValueCriterionOperator = /*@__PURE__*/ S.String;
|
|
774
|
+
export const SplValueCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
775
|
+
type: SplValueCriterionType,
|
|
776
|
+
splValue: S.String,
|
|
777
|
+
operator: SplValueCriterionOperator,
|
|
778
|
+
})).annotate({
|
|
779
|
+
identifier: "SplValueCriterion",
|
|
780
|
+
});
|
|
781
|
+
export const MintAddressCriterionType = /*@__PURE__*/ S.String;
|
|
782
|
+
export const MintAddressCriterionAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
783
|
+
export const MintAddressCriterionOperator = /*@__PURE__*/ S.String;
|
|
784
|
+
export const MintAddressCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
785
|
+
type: MintAddressCriterionType,
|
|
786
|
+
addresses: MintAddressCriterionAddressesList,
|
|
787
|
+
operator: MintAddressCriterionOperator,
|
|
788
|
+
})).annotate({
|
|
789
|
+
identifier: "MintAddressCriterion",
|
|
790
|
+
});
|
|
791
|
+
export const SolDataCriterionType = /*@__PURE__*/ S.String;
|
|
792
|
+
export const KnownIdlType = /*@__PURE__*/ S.String;
|
|
793
|
+
export const IdlInstructionsItemDiscriminatorList = /*@__PURE__*/ S.Array(S.Number);
|
|
794
|
+
export const IdlInstructionsItemArgsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
795
|
+
name: S.String,
|
|
796
|
+
type: S.String,
|
|
797
|
+
})).annotate({
|
|
798
|
+
identifier: "IdlInstructionsItemArgsItem",
|
|
799
|
+
});
|
|
800
|
+
export const IdlInstructionsItemArgsList = /*@__PURE__*/ S.Array(IdlInstructionsItemArgsItem);
|
|
801
|
+
export const IdlInstructionsItemAccountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
802
|
+
name: S.String,
|
|
803
|
+
writable: S.optional(S.Boolean),
|
|
804
|
+
signer: S.optional(S.Boolean),
|
|
805
|
+
})).annotate({
|
|
806
|
+
identifier: "IdlInstructionsItemAccountsItem",
|
|
807
|
+
});
|
|
808
|
+
export const IdlInstructionsItemAccountsList = /*@__PURE__*/ S.Array(IdlInstructionsItemAccountsItem);
|
|
809
|
+
export const IdlInstructionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
810
|
+
name: S.String,
|
|
811
|
+
discriminator: IdlInstructionsItemDiscriminatorList,
|
|
812
|
+
args: IdlInstructionsItemArgsList,
|
|
813
|
+
accounts: S.optional(IdlInstructionsItemAccountsList),
|
|
814
|
+
})).annotate({
|
|
815
|
+
identifier: "IdlInstructionsItem",
|
|
816
|
+
});
|
|
817
|
+
export const IdlInstructionsList = /*@__PURE__*/ S.Array(IdlInstructionsItem);
|
|
818
|
+
export const IdlMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
819
|
+
name: S.optional(S.String),
|
|
820
|
+
version: S.optional(S.String),
|
|
821
|
+
spec: S.optional(S.String),
|
|
822
|
+
})).annotate({ identifier: "IdlMetadata" });
|
|
823
|
+
export const IdlTypesList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
824
|
+
export const Idl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
825
|
+
address: S.String,
|
|
826
|
+
instructions: IdlInstructionsList,
|
|
827
|
+
metadata: S.optional(IdlMetadata),
|
|
828
|
+
types: S.optional(IdlTypesList),
|
|
829
|
+
})).annotate({ identifier: "Idl" });
|
|
830
|
+
export const SolDataCriterionIdlsItem =
|
|
831
|
+
/*@__PURE__*/ S.Unknown;
|
|
832
|
+
export const SolDataCriterionIdlsList = /*@__PURE__*/ S.Array(SolDataCriterionIdlsItem);
|
|
833
|
+
export const SolDataParameterConditionOperator = /*@__PURE__*/ S.String;
|
|
834
|
+
export const SolDataParameterCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
835
|
+
name: S.String,
|
|
836
|
+
operator: SolDataParameterConditionOperator,
|
|
837
|
+
value: S.String,
|
|
838
|
+
})).annotate({
|
|
839
|
+
identifier: "SolDataParameterCondition",
|
|
840
|
+
});
|
|
841
|
+
export const SolDataParameterConditionListOperator = /*@__PURE__*/ S.String;
|
|
842
|
+
export const SolDataParameterConditionListValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
843
|
+
export const SolDataParameterConditionList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
844
|
+
name: S.String,
|
|
845
|
+
operator: SolDataParameterConditionListOperator,
|
|
846
|
+
values: SolDataParameterConditionListValuesList,
|
|
847
|
+
})).annotate({
|
|
848
|
+
identifier: "SolDataParameterConditionList",
|
|
849
|
+
});
|
|
850
|
+
export const SolDataConditionParamsItem =
|
|
851
|
+
/*@__PURE__*/ S.Unknown;
|
|
852
|
+
export const SolDataConditionParamsList = /*@__PURE__*/ S.Array(SolDataConditionParamsItem);
|
|
853
|
+
export const SolDataCondition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
854
|
+
instruction: S.String,
|
|
855
|
+
params: S.optional(SolDataConditionParamsList),
|
|
856
|
+
})).annotate({
|
|
857
|
+
identifier: "SolDataCondition",
|
|
858
|
+
});
|
|
859
|
+
export const SolDataCriterionConditionsList = /*@__PURE__*/ S.Array(SolDataCondition);
|
|
860
|
+
export const SolDataCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
861
|
+
type: SolDataCriterionType,
|
|
862
|
+
idls: SolDataCriterionIdlsList,
|
|
863
|
+
conditions: SolDataCriterionConditionsList,
|
|
864
|
+
})).annotate({
|
|
865
|
+
identifier: "SolDataCriterion",
|
|
866
|
+
});
|
|
867
|
+
export const ProgramIdCriterionType = /*@__PURE__*/ S.String;
|
|
868
|
+
export const ProgramIdCriterionProgramIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
869
|
+
export const ProgramIdCriterionOperator = /*@__PURE__*/ S.String;
|
|
870
|
+
export const ProgramIdCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
871
|
+
type: ProgramIdCriterionType,
|
|
872
|
+
programIds: ProgramIdCriterionProgramIdsList,
|
|
873
|
+
operator: ProgramIdCriterionOperator,
|
|
874
|
+
})).annotate({
|
|
875
|
+
identifier: "ProgramIdCriterion",
|
|
876
|
+
});
|
|
877
|
+
export const SignSolTransactionCriteriaItem =
|
|
878
|
+
/*@__PURE__*/ S.Unknown;
|
|
879
|
+
export const SignSolTransactionCriteria = /*@__PURE__*/ S.Array(SignSolTransactionCriteriaItem);
|
|
880
|
+
export const SignSolTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
881
|
+
action: SignSolTransactionRuleAction,
|
|
882
|
+
operation: SignSolTransactionRuleOperation,
|
|
883
|
+
criteria: SignSolTransactionCriteria,
|
|
884
|
+
})).annotate({
|
|
885
|
+
identifier: "SignSolTransactionRule",
|
|
886
|
+
});
|
|
887
|
+
export const SendSolTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
888
|
+
export const SendSolTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
889
|
+
export const SolNetworkCriterionType = /*@__PURE__*/ S.String;
|
|
890
|
+
export const SolNetworkCriterionNetworksItem = /*@__PURE__*/ S.String;
|
|
891
|
+
export const SolNetworkCriterionNetworksList = /*@__PURE__*/ S.Array(SolNetworkCriterionNetworksItem);
|
|
892
|
+
export const SolNetworkCriterionOperator = /*@__PURE__*/ S.String;
|
|
893
|
+
export const SolNetworkCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
894
|
+
type: SolNetworkCriterionType,
|
|
895
|
+
networks: SolNetworkCriterionNetworksList,
|
|
896
|
+
operator: SolNetworkCriterionOperator,
|
|
897
|
+
})).annotate({
|
|
898
|
+
identifier: "SolNetworkCriterion",
|
|
899
|
+
});
|
|
900
|
+
export const SendSolTransactionCriteriaItem =
|
|
901
|
+
/*@__PURE__*/ S.Unknown;
|
|
902
|
+
export const SendSolTransactionCriteria = /*@__PURE__*/ S.Array(SendSolTransactionCriteriaItem);
|
|
903
|
+
export const SendSolTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
904
|
+
action: SendSolTransactionRuleAction,
|
|
905
|
+
operation: SendSolTransactionRuleOperation,
|
|
906
|
+
criteria: SendSolTransactionCriteria,
|
|
907
|
+
})).annotate({
|
|
908
|
+
identifier: "SendSolTransactionRule",
|
|
909
|
+
});
|
|
910
|
+
export const SignSolMessageRuleAction = /*@__PURE__*/ S.String;
|
|
911
|
+
export const SignSolMessageRuleOperation = /*@__PURE__*/ S.String;
|
|
912
|
+
export const SolMessageCriterionType = /*@__PURE__*/ S.String;
|
|
913
|
+
export const SolMessageCriterion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
914
|
+
type: SolMessageCriterionType,
|
|
915
|
+
match: S.String,
|
|
916
|
+
})).annotate({
|
|
917
|
+
identifier: "SolMessageCriterion",
|
|
918
|
+
});
|
|
919
|
+
export const SignSolMessageCriteria = /*@__PURE__*/ S.Array(SolMessageCriterion);
|
|
920
|
+
export const SignSolMessageRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
921
|
+
action: SignSolMessageRuleAction,
|
|
922
|
+
operation: SignSolMessageRuleOperation,
|
|
923
|
+
criteria: SignSolMessageCriteria,
|
|
924
|
+
})).annotate({
|
|
925
|
+
identifier: "SignSolMessageRule",
|
|
926
|
+
});
|
|
927
|
+
export const SignEvmHashRuleAction = /*@__PURE__*/ S.String;
|
|
928
|
+
export const SignEvmHashRuleOperation = /*@__PURE__*/ S.String;
|
|
929
|
+
export const SignEvmHashRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
930
|
+
action: SignEvmHashRuleAction,
|
|
931
|
+
operation: SignEvmHashRuleOperation,
|
|
932
|
+
})).annotate({
|
|
933
|
+
identifier: "SignEvmHashRule",
|
|
934
|
+
});
|
|
935
|
+
export const PrepareUserOperationRuleAction = /*@__PURE__*/ S.String;
|
|
936
|
+
export const PrepareUserOperationRuleOperation = /*@__PURE__*/ S.String;
|
|
937
|
+
export const PrepareUserOperationCriteriaItem =
|
|
938
|
+
/*@__PURE__*/ S.Unknown;
|
|
939
|
+
export const PrepareUserOperationCriteria = /*@__PURE__*/ S.Array(PrepareUserOperationCriteriaItem);
|
|
940
|
+
export const PrepareUserOperationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
941
|
+
action: PrepareUserOperationRuleAction,
|
|
942
|
+
operation: PrepareUserOperationRuleOperation,
|
|
943
|
+
criteria: PrepareUserOperationCriteria,
|
|
944
|
+
})).annotate({
|
|
945
|
+
identifier: "PrepareUserOperationRule",
|
|
946
|
+
});
|
|
947
|
+
export const SendUserOperationRuleAction = /*@__PURE__*/ S.String;
|
|
948
|
+
export const SendUserOperationRuleOperation = /*@__PURE__*/ S.String;
|
|
949
|
+
export const SendUserOperationCriteriaItem =
|
|
950
|
+
/*@__PURE__*/ S.Unknown;
|
|
951
|
+
export const SendUserOperationCriteria = /*@__PURE__*/ S.Array(SendUserOperationCriteriaItem);
|
|
952
|
+
export const SendUserOperationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
953
|
+
action: SendUserOperationRuleAction,
|
|
954
|
+
operation: SendUserOperationRuleOperation,
|
|
955
|
+
criteria: SendUserOperationCriteria,
|
|
956
|
+
})).annotate({
|
|
957
|
+
identifier: "SendUserOperationRule",
|
|
958
|
+
});
|
|
959
|
+
export const SignEndUserEvmTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
960
|
+
export const SignEndUserEvmTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
961
|
+
export const SignEndUserEvmTransactionCriteriaItem =
|
|
962
|
+
/*@__PURE__*/ S.Unknown;
|
|
963
|
+
export const SignEndUserEvmTransactionCriteria = /*@__PURE__*/ S.Array(SignEndUserEvmTransactionCriteriaItem);
|
|
964
|
+
export const SignEndUserEvmTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
965
|
+
action: SignEndUserEvmTransactionRuleAction,
|
|
966
|
+
operation: SignEndUserEvmTransactionRuleOperation,
|
|
967
|
+
criteria: SignEndUserEvmTransactionCriteria,
|
|
968
|
+
})).annotate({
|
|
969
|
+
identifier: "SignEndUserEvmTransactionRule",
|
|
970
|
+
});
|
|
971
|
+
export const SendEndUserEvmTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
972
|
+
export const SendEndUserEvmTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
973
|
+
export const SendEndUserEvmTransactionCriteriaItem =
|
|
974
|
+
/*@__PURE__*/ S.Unknown;
|
|
975
|
+
export const SendEndUserEvmTransactionCriteria = /*@__PURE__*/ S.Array(SendEndUserEvmTransactionCriteriaItem);
|
|
976
|
+
export const SendEndUserEvmTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
977
|
+
action: SendEndUserEvmTransactionRuleAction,
|
|
978
|
+
operation: SendEndUserEvmTransactionRuleOperation,
|
|
979
|
+
criteria: SendEndUserEvmTransactionCriteria,
|
|
980
|
+
})).annotate({
|
|
981
|
+
identifier: "SendEndUserEvmTransactionRule",
|
|
982
|
+
});
|
|
983
|
+
export const SignEndUserEvmMessageRuleAction = /*@__PURE__*/ S.String;
|
|
984
|
+
export const SignEndUserEvmMessageRuleOperation = /*@__PURE__*/ S.String;
|
|
985
|
+
export const SignEndUserEvmMessageCriteria = /*@__PURE__*/ S.Array(EvmMessageCriterion);
|
|
986
|
+
export const SignEndUserEvmMessageRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
987
|
+
action: SignEndUserEvmMessageRuleAction,
|
|
988
|
+
operation: SignEndUserEvmMessageRuleOperation,
|
|
989
|
+
criteria: SignEndUserEvmMessageCriteria,
|
|
990
|
+
})).annotate({
|
|
991
|
+
identifier: "SignEndUserEvmMessageRule",
|
|
992
|
+
});
|
|
993
|
+
export const SignEndUserEvmTypedDataRuleAction = /*@__PURE__*/ S.String;
|
|
994
|
+
export const SignEndUserEvmTypedDataRuleOperation = /*@__PURE__*/ S.String;
|
|
995
|
+
export const SignEndUserEvmTypedDataCriteriaItem =
|
|
996
|
+
/*@__PURE__*/ S.Unknown;
|
|
997
|
+
export const SignEndUserEvmTypedDataCriteria = /*@__PURE__*/ S.Array(SignEndUserEvmTypedDataCriteriaItem);
|
|
998
|
+
export const SignEndUserEvmTypedDataRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
999
|
+
action: SignEndUserEvmTypedDataRuleAction,
|
|
1000
|
+
operation: SignEndUserEvmTypedDataRuleOperation,
|
|
1001
|
+
criteria: SignEndUserEvmTypedDataCriteria,
|
|
1002
|
+
})).annotate({
|
|
1003
|
+
identifier: "SignEndUserEvmTypedDataRule",
|
|
1004
|
+
});
|
|
1005
|
+
export const SignEndUserEvmHashRuleAction = /*@__PURE__*/ S.String;
|
|
1006
|
+
export const SignEndUserEvmHashRuleOperation = /*@__PURE__*/ S.String;
|
|
1007
|
+
export const SignEndUserEvmHashRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1008
|
+
action: SignEndUserEvmHashRuleAction,
|
|
1009
|
+
operation: SignEndUserEvmHashRuleOperation,
|
|
1010
|
+
})).annotate({
|
|
1011
|
+
identifier: "SignEndUserEvmHashRule",
|
|
1012
|
+
});
|
|
1013
|
+
export const SignEndUserSolTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
1014
|
+
export const SignEndUserSolTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
1015
|
+
export const SignEndUserSolTransactionCriteriaItem =
|
|
1016
|
+
/*@__PURE__*/ S.Unknown;
|
|
1017
|
+
export const SignEndUserSolTransactionCriteria = /*@__PURE__*/ S.Array(SignEndUserSolTransactionCriteriaItem);
|
|
1018
|
+
export const SignEndUserSolTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1019
|
+
action: SignEndUserSolTransactionRuleAction,
|
|
1020
|
+
operation: SignEndUserSolTransactionRuleOperation,
|
|
1021
|
+
criteria: SignEndUserSolTransactionCriteria,
|
|
1022
|
+
})).annotate({
|
|
1023
|
+
identifier: "SignEndUserSolTransactionRule",
|
|
1024
|
+
});
|
|
1025
|
+
export const SendEndUserSolTransactionRuleAction = /*@__PURE__*/ S.String;
|
|
1026
|
+
export const SendEndUserSolTransactionRuleOperation = /*@__PURE__*/ S.String;
|
|
1027
|
+
export const SendEndUserSolTransactionCriteriaItem =
|
|
1028
|
+
/*@__PURE__*/ S.Unknown;
|
|
1029
|
+
export const SendEndUserSolTransactionCriteria = /*@__PURE__*/ S.Array(SendEndUserSolTransactionCriteriaItem);
|
|
1030
|
+
export const SendEndUserSolTransactionRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1031
|
+
action: SendEndUserSolTransactionRuleAction,
|
|
1032
|
+
operation: SendEndUserSolTransactionRuleOperation,
|
|
1033
|
+
criteria: SendEndUserSolTransactionCriteria,
|
|
1034
|
+
})).annotate({
|
|
1035
|
+
identifier: "SendEndUserSolTransactionRule",
|
|
1036
|
+
});
|
|
1037
|
+
export const SignEndUserSolMessageRuleAction = /*@__PURE__*/ S.String;
|
|
1038
|
+
export const SignEndUserSolMessageRuleOperation = /*@__PURE__*/ S.String;
|
|
1039
|
+
export const SignEndUserSolMessageCriteria = /*@__PURE__*/ S.Array(SolMessageCriterion);
|
|
1040
|
+
export const SignEndUserSolMessageRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1041
|
+
action: SignEndUserSolMessageRuleAction,
|
|
1042
|
+
operation: SignEndUserSolMessageRuleOperation,
|
|
1043
|
+
criteria: SignEndUserSolMessageCriteria,
|
|
1044
|
+
})).annotate({
|
|
1045
|
+
identifier: "SignEndUserSolMessageRule",
|
|
1046
|
+
});
|
|
1047
|
+
export const SendEndUserEvmAssetRuleAction = /*@__PURE__*/ S.String;
|
|
1048
|
+
export const SendEndUserEvmAssetRuleOperation = /*@__PURE__*/ S.String;
|
|
1049
|
+
export const SendEndUserEvmAssetCriteriaItem =
|
|
1050
|
+
/*@__PURE__*/ S.Unknown;
|
|
1051
|
+
export const SendEndUserEvmAssetCriteria = /*@__PURE__*/ S.Array(SendEndUserEvmAssetCriteriaItem);
|
|
1052
|
+
export const SendEndUserEvmAssetRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1053
|
+
action: SendEndUserEvmAssetRuleAction,
|
|
1054
|
+
operation: SendEndUserEvmAssetRuleOperation,
|
|
1055
|
+
criteria: SendEndUserEvmAssetCriteria,
|
|
1056
|
+
})).annotate({
|
|
1057
|
+
identifier: "SendEndUserEvmAssetRule",
|
|
1058
|
+
});
|
|
1059
|
+
export const SendEndUserSolAssetRuleAction = /*@__PURE__*/ S.String;
|
|
1060
|
+
export const SendEndUserSolAssetRuleOperation = /*@__PURE__*/ S.String;
|
|
1061
|
+
export const SendEndUserSolAssetCriteriaItem =
|
|
1062
|
+
/*@__PURE__*/ S.Unknown;
|
|
1063
|
+
export const SendEndUserSolAssetCriteria = /*@__PURE__*/ S.Array(SendEndUserSolAssetCriteriaItem);
|
|
1064
|
+
export const SendEndUserSolAssetRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1065
|
+
action: SendEndUserSolAssetRuleAction,
|
|
1066
|
+
operation: SendEndUserSolAssetRuleOperation,
|
|
1067
|
+
criteria: SendEndUserSolAssetCriteria,
|
|
1068
|
+
})).annotate({
|
|
1069
|
+
identifier: "SendEndUserSolAssetRule",
|
|
1070
|
+
});
|
|
1071
|
+
export const SendEndUserOperationRuleAction = /*@__PURE__*/ S.String;
|
|
1072
|
+
export const SendEndUserOperationRuleOperation = /*@__PURE__*/ S.String;
|
|
1073
|
+
export const SendEndUserOperationCriteriaItem =
|
|
1074
|
+
/*@__PURE__*/ S.Unknown;
|
|
1075
|
+
export const SendEndUserOperationCriteria = /*@__PURE__*/ S.Array(SendEndUserOperationCriteriaItem);
|
|
1076
|
+
export const SendEndUserOperationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1077
|
+
action: SendEndUserOperationRuleAction,
|
|
1078
|
+
operation: SendEndUserOperationRuleOperation,
|
|
1079
|
+
criteria: SendEndUserOperationCriteria,
|
|
1080
|
+
})).annotate({
|
|
1081
|
+
identifier: "SendEndUserOperationRule",
|
|
1082
|
+
});
|
|
1083
|
+
export const CreateEndUserEvmSwapRuleAction = /*@__PURE__*/ S.String;
|
|
1084
|
+
export const CreateEndUserEvmSwapRuleOperation = /*@__PURE__*/ S.String;
|
|
1085
|
+
export const CreateEndUserEvmSwapCriteriaItem =
|
|
1086
|
+
/*@__PURE__*/ S.Unknown;
|
|
1087
|
+
export const CreateEndUserEvmSwapCriteria = /*@__PURE__*/ S.Array(CreateEndUserEvmSwapCriteriaItem);
|
|
1088
|
+
export const CreateEndUserEvmSwapRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1089
|
+
action: CreateEndUserEvmSwapRuleAction,
|
|
1090
|
+
operation: CreateEndUserEvmSwapRuleOperation,
|
|
1091
|
+
criteria: CreateEndUserEvmSwapCriteria,
|
|
1092
|
+
})).annotate({
|
|
1093
|
+
identifier: "CreateEndUserEvmSwapRule",
|
|
1094
|
+
});
|
|
1095
|
+
export const Rule = /*@__PURE__*/ S.Unknown;
|
|
1096
|
+
export const CreatePolicyRequestRulesList = /*@__PURE__*/ S.Array(Rule);
|
|
1097
|
+
export const CreatePolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1098
|
+
scope: CreatePolicyRequestScope,
|
|
1099
|
+
description: S.optional(S.String),
|
|
1100
|
+
rules: CreatePolicyRequestRulesList,
|
|
1101
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/policy-engine/policies", code: 200 }))).annotate({
|
|
1102
|
+
identifier: "CreatePolicyRequest",
|
|
1103
|
+
});
|
|
1104
|
+
export const PolicyScope = /*@__PURE__*/ S.String;
|
|
1105
|
+
export const PolicyRulesList = /*@__PURE__*/ S.Array(Rule);
|
|
1106
|
+
export const Policy = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1107
|
+
id: S.String,
|
|
1108
|
+
description: S.optional(S.String),
|
|
1109
|
+
scope: PolicyScope,
|
|
1110
|
+
rules: PolicyRulesList,
|
|
1111
|
+
createdAt: S.String,
|
|
1112
|
+
updatedAt: S.String,
|
|
1113
|
+
})).annotate({ identifier: "Policy" });
|
|
1114
|
+
export const CreateSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1115
|
+
name: S.optional(S.String),
|
|
1116
|
+
accountPolicy: S.optional(S.String),
|
|
1117
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/solana/accounts", code: 200 }))).annotate({
|
|
1118
|
+
identifier: "CreateSolanaAccountRequest",
|
|
1119
|
+
});
|
|
1120
|
+
export const SolanaAccountPoliciesList = /*@__PURE__*/ S.Array(S.String);
|
|
1121
|
+
export const SolanaAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1122
|
+
address: S.String,
|
|
1123
|
+
name: S.optional(S.String),
|
|
1124
|
+
policies: S.optional(SolanaAccountPoliciesList),
|
|
1125
|
+
createdAt: S.optional(S.String),
|
|
1126
|
+
updatedAt: S.optional(S.String),
|
|
1127
|
+
})).annotate({ identifier: "SolanaAccount" });
|
|
1128
|
+
export const SpendPermissionNetwork = /*@__PURE__*/ S.String;
|
|
1129
|
+
export const CreateSpendPermissionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1130
|
+
address: S.String.pipe(T.Label()),
|
|
1131
|
+
network: SpendPermissionNetwork,
|
|
1132
|
+
spender: S.String,
|
|
1133
|
+
token: S.String,
|
|
1134
|
+
allowance: S.String,
|
|
1135
|
+
period: S.String,
|
|
1136
|
+
start: S.String,
|
|
1137
|
+
end: S.String,
|
|
1138
|
+
salt: S.optional(S.String),
|
|
1139
|
+
extraData: S.optional(S.String),
|
|
1140
|
+
paymasterUrl: S.optional(S.String),
|
|
1141
|
+
}).pipe(T.Http({
|
|
1142
|
+
method: "POST",
|
|
1143
|
+
uri: "/v2/evm/smart-accounts/{address}/spend-permissions",
|
|
1144
|
+
code: 200,
|
|
1145
|
+
}))).annotate({
|
|
1146
|
+
identifier: "CreateSpendPermissionRequest",
|
|
1147
|
+
});
|
|
1148
|
+
export const EvmUserOperationNetwork = /*@__PURE__*/ S.String;
|
|
1149
|
+
export const EvmCall = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1150
|
+
to: S.String,
|
|
1151
|
+
value: S.String,
|
|
1152
|
+
data: S.String,
|
|
1153
|
+
overrideGasLimit: S.optional(S.String),
|
|
1154
|
+
})).annotate({ identifier: "EvmCall" });
|
|
1155
|
+
export const EvmUserOperationCallsList = /*@__PURE__*/ S.Array(EvmCall);
|
|
1156
|
+
export const EvmUserOperationStatus = /*@__PURE__*/ S.String;
|
|
1157
|
+
export const UserOperationReceiptRevert = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1158
|
+
data: S.String,
|
|
1159
|
+
message: S.String,
|
|
1160
|
+
})).annotate({
|
|
1161
|
+
identifier: "UserOperationReceiptRevert",
|
|
1162
|
+
});
|
|
1163
|
+
export const UserOperationReceipt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1164
|
+
revert: S.optional(UserOperationReceiptRevert),
|
|
1165
|
+
transactionHash: S.optional(S.String),
|
|
1166
|
+
blockHash: S.optional(S.String),
|
|
1167
|
+
blockNumber: S.optional(S.Number),
|
|
1168
|
+
gasUsed: S.optional(S.String),
|
|
1169
|
+
})).annotate({
|
|
1170
|
+
identifier: "UserOperationReceipt",
|
|
1171
|
+
});
|
|
1172
|
+
export const EvmUserOperationReceiptsList = /*@__PURE__*/ S.Array(UserOperationReceipt);
|
|
1173
|
+
export const EvmUserOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1174
|
+
network: EvmUserOperationNetwork,
|
|
1175
|
+
userOpHash: S.String,
|
|
1176
|
+
calls: EvmUserOperationCallsList,
|
|
1177
|
+
status: EvmUserOperationStatus,
|
|
1178
|
+
transactionHash: S.optional(S.String),
|
|
1179
|
+
receipts: S.optional(EvmUserOperationReceiptsList),
|
|
1180
|
+
expiresAt: S.optional(S.String),
|
|
1181
|
+
})).annotate({
|
|
1182
|
+
identifier: "EvmUserOperation",
|
|
1183
|
+
});
|
|
1184
|
+
export const TransfersAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1185
|
+
accountId: S.String,
|
|
1186
|
+
asset: S.String,
|
|
1187
|
+
})).annotate({
|
|
1188
|
+
identifier: "TransfersAccount",
|
|
1189
|
+
});
|
|
1190
|
+
export const PaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1191
|
+
paymentMethodId: S.String,
|
|
1192
|
+
asset: S.String,
|
|
1193
|
+
})).annotate({ identifier: "PaymentMethod" });
|
|
1194
|
+
export const CreateTransferSource =
|
|
1195
|
+
/*@__PURE__*/ S.Unknown;
|
|
1196
|
+
export const OnchainAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1197
|
+
address: S.String,
|
|
1198
|
+
network: Network,
|
|
1199
|
+
destinationTag: S.optional(S.String),
|
|
1200
|
+
asset: S.String,
|
|
1201
|
+
})).annotate({ identifier: "OnchainAddress" });
|
|
1202
|
+
export const EmailInstrument = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1203
|
+
email: S.String,
|
|
1204
|
+
asset: S.String,
|
|
1205
|
+
})).annotate({
|
|
1206
|
+
identifier: "EmailInstrument",
|
|
1207
|
+
});
|
|
1208
|
+
export const TransferTarget =
|
|
1209
|
+
/*@__PURE__*/ S.Unknown;
|
|
1210
|
+
export const CreateTransferRequestAmountType = /*@__PURE__*/ S.String;
|
|
1211
|
+
export const PhysicalAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1212
|
+
line1: S.optional(S.String),
|
|
1213
|
+
line2: S.optional(S.String),
|
|
1214
|
+
city: S.optional(S.String),
|
|
1215
|
+
state: S.optional(S.String),
|
|
1216
|
+
postCode: S.optional(S.String),
|
|
1217
|
+
countryCode: S.optional(S.String),
|
|
1218
|
+
})).annotate({
|
|
1219
|
+
identifier: "PhysicalAddress",
|
|
1220
|
+
});
|
|
1221
|
+
export const TravelRuleOriginatorVirtualAssetServiceProvider =
|
|
1222
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1223
|
+
name: S.optional(S.String),
|
|
1224
|
+
address: S.optional(PhysicalAddress),
|
|
1225
|
+
identifier: S.optional(S.String),
|
|
1226
|
+
})).annotate({
|
|
1227
|
+
identifier: "TravelRuleOriginatorVirtualAssetServiceProvider",
|
|
1228
|
+
});
|
|
1229
|
+
export const DateOfBirth = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1230
|
+
day: S.optional(S.String),
|
|
1231
|
+
month: S.optional(S.String),
|
|
1232
|
+
year: S.optional(S.String),
|
|
1233
|
+
})).annotate({ identifier: "DateOfBirth" });
|
|
1234
|
+
export const TravelRuleOriginator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1235
|
+
financialInstitution: S.optional(S.String),
|
|
1236
|
+
name: S.optional(S.String),
|
|
1237
|
+
address: S.optional(PhysicalAddress),
|
|
1238
|
+
virtualAssetServiceProvider: S.optional(TravelRuleOriginatorVirtualAssetServiceProvider),
|
|
1239
|
+
personalId: S.optional(S.String),
|
|
1240
|
+
dateOfBirth: S.optional(DateOfBirth),
|
|
1241
|
+
})).annotate({
|
|
1242
|
+
identifier: "TravelRuleOriginator",
|
|
1243
|
+
});
|
|
1244
|
+
export const TravelRuleBeneficiaryWalletType = /*@__PURE__*/ S.String;
|
|
1245
|
+
export const TravelRuleBeneficiary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1246
|
+
financialInstitution: S.optional(S.String),
|
|
1247
|
+
name: S.optional(S.String),
|
|
1248
|
+
address: S.optional(PhysicalAddress),
|
|
1249
|
+
walletType: S.optional(TravelRuleBeneficiaryWalletType),
|
|
1250
|
+
})).annotate({
|
|
1251
|
+
identifier: "TravelRuleBeneficiary",
|
|
1252
|
+
});
|
|
1253
|
+
export const TravelRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1254
|
+
isSelf: S.optional(S.Boolean),
|
|
1255
|
+
isIntermediary: S.optional(S.Boolean),
|
|
1256
|
+
originator: S.optional(TravelRuleOriginator),
|
|
1257
|
+
beneficiary: S.optional(TravelRuleBeneficiary),
|
|
1258
|
+
})).annotate({ identifier: "TravelRule" });
|
|
1259
|
+
export const CreateTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1260
|
+
source: CreateTransferSource,
|
|
1261
|
+
target: TransferTarget,
|
|
1262
|
+
amount: S.String,
|
|
1263
|
+
asset: S.String,
|
|
1264
|
+
amountType: S.optional(CreateTransferRequestAmountType),
|
|
1265
|
+
validateOnly: S.optional(S.Boolean),
|
|
1266
|
+
execute: S.Boolean,
|
|
1267
|
+
metadata: S.optional(Metadata),
|
|
1268
|
+
travelRule: S.optional(TravelRule),
|
|
1269
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/transfers", code: 200 }))).annotate({
|
|
1270
|
+
identifier: "CreateTransferRequest",
|
|
1271
|
+
});
|
|
1272
|
+
export const TransferStatus = /*@__PURE__*/ S.String;
|
|
1273
|
+
export const OriginatingBankAccountUS = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1274
|
+
bankName: S.String,
|
|
1275
|
+
accountLast4: S.String,
|
|
1276
|
+
currency: S.String,
|
|
1277
|
+
})).annotate({
|
|
1278
|
+
identifier: "OriginatingBankAccountUS",
|
|
1279
|
+
});
|
|
1280
|
+
export const TransferSource =
|
|
1281
|
+
/*@__PURE__*/ S.Unknown;
|
|
1282
|
+
export const TransferExchangeRate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1283
|
+
sourceAsset: S.String,
|
|
1284
|
+
targetAsset: S.String,
|
|
1285
|
+
rate: S.String,
|
|
1286
|
+
})).annotate({
|
|
1287
|
+
identifier: "TransferExchangeRate",
|
|
1288
|
+
});
|
|
1289
|
+
export const TransferFeeType = /*@__PURE__*/ S.String;
|
|
1290
|
+
export const TransferFee = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1291
|
+
type: TransferFeeType,
|
|
1292
|
+
amount: S.String,
|
|
1293
|
+
asset: S.String,
|
|
1294
|
+
})).annotate({ identifier: "TransferFee" });
|
|
1295
|
+
export const TransferFees = /*@__PURE__*/ S.Array(TransferFee);
|
|
1296
|
+
export const TransferEstimate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1297
|
+
exchangeRate: S.optional(TransferExchangeRate),
|
|
1298
|
+
targetAmount: S.optional(S.String),
|
|
1299
|
+
targetAsset: S.optional(S.String),
|
|
1300
|
+
fees: S.optional(TransferFees),
|
|
1301
|
+
estimatedAt: S.String,
|
|
1302
|
+
})).annotate({
|
|
1303
|
+
identifier: "TransferEstimate",
|
|
1304
|
+
});
|
|
1305
|
+
export const DepositDestinationReference = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1306
|
+
id: S.String,
|
|
1307
|
+
})).annotate({
|
|
1308
|
+
identifier: "DepositDestinationReference",
|
|
1309
|
+
});
|
|
1310
|
+
export const TransferDetailsOnchainTransactionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1311
|
+
transactionHash: S.String,
|
|
1312
|
+
network: Network,
|
|
1313
|
+
})).annotate({
|
|
1314
|
+
identifier: "TransferDetailsOnchainTransactionsItem",
|
|
1315
|
+
});
|
|
1316
|
+
export const TransferDetailsOnchainTransactionsList = /*@__PURE__*/ S.Array(TransferDetailsOnchainTransactionsItem);
|
|
1317
|
+
export const TravelRuleStatus = /*@__PURE__*/ S.String;
|
|
1318
|
+
export const TransferDetailsTravelRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1319
|
+
status: S.optional(TravelRuleStatus),
|
|
1320
|
+
statusMessage: S.optional(S.String),
|
|
1321
|
+
})).annotate({
|
|
1322
|
+
identifier: "TransferDetailsTravelRule",
|
|
1323
|
+
});
|
|
1324
|
+
export const TransferDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1325
|
+
depositDestination: S.optional(DepositDestinationReference),
|
|
1326
|
+
onchainTransactions: S.optional(TransferDetailsOnchainTransactionsList),
|
|
1327
|
+
travelRule: S.optional(TransferDetailsTravelRule),
|
|
1328
|
+
})).annotate({
|
|
1329
|
+
identifier: "TransferDetails",
|
|
1330
|
+
});
|
|
1331
|
+
export const Transfer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1332
|
+
transferId: S.optional(S.String),
|
|
1333
|
+
status: S.optional(TransferStatus),
|
|
1334
|
+
source: TransferSource,
|
|
1335
|
+
target: TransferTarget,
|
|
1336
|
+
sourceAmount: S.optional(S.String),
|
|
1337
|
+
sourceAsset: S.optional(S.String),
|
|
1338
|
+
targetAmount: S.optional(S.String),
|
|
1339
|
+
targetAsset: S.optional(S.String),
|
|
1340
|
+
exchangeRate: S.optional(TransferExchangeRate),
|
|
1341
|
+
fees: S.optional(TransferFees),
|
|
1342
|
+
estimate: S.optional(TransferEstimate),
|
|
1343
|
+
completedAt: S.optional(S.String),
|
|
1344
|
+
failureReason: S.optional(S.String),
|
|
1345
|
+
expiresAt: S.optional(S.String),
|
|
1346
|
+
executedAt: S.optional(S.String),
|
|
1347
|
+
createdAt: S.optional(S.String),
|
|
1348
|
+
updatedAt: S.optional(S.String),
|
|
1349
|
+
metadata: S.optional(Metadata),
|
|
1350
|
+
details: S.optional(TransferDetails),
|
|
1351
|
+
})).annotate({ identifier: "Transfer" });
|
|
1352
|
+
export const EventType = /*@__PURE__*/ S.String;
|
|
1353
|
+
export const CreateWebhookSubscriptionRequestEventTypesList =
|
|
1354
|
+
/*@__PURE__*/ S.Array(EventType);
|
|
1355
|
+
export const WebhookTargetHeadersMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1356
|
+
export const WebhookTarget = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1357
|
+
url: S.String,
|
|
1358
|
+
headers: S.optional(WebhookTargetHeadersMap),
|
|
1359
|
+
})).annotate({ identifier: "WebhookTarget" });
|
|
1360
|
+
export const CreateWebhookSubscriptionRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1361
|
+
export const CreateWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1362
|
+
description: S.optional(S.String),
|
|
1363
|
+
eventTypes: CreateWebhookSubscriptionRequestEventTypesList,
|
|
1364
|
+
isEnabled: S.Boolean,
|
|
1365
|
+
target: WebhookTarget,
|
|
1366
|
+
metadata: S.optional(Metadata),
|
|
1367
|
+
labels: S.optional(CreateWebhookSubscriptionRequestLabelsMap),
|
|
1368
|
+
}).pipe(T.Http({
|
|
1369
|
+
method: "POST",
|
|
1370
|
+
uri: "/v2/data/webhooks/subscriptions",
|
|
1371
|
+
code: 200,
|
|
1372
|
+
}))).annotate({
|
|
1373
|
+
identifier: "CreateWebhookSubscriptionRequest",
|
|
1374
|
+
});
|
|
1375
|
+
export const WebhookSubscriptionResponseEventTypesList = /*@__PURE__*/ S.Array(EventType);
|
|
1376
|
+
export const WebhookSubscriptionResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1377
|
+
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1378
|
+
})).annotate({
|
|
1379
|
+
identifier: "WebhookSubscriptionResponseMetadata",
|
|
1380
|
+
});
|
|
1381
|
+
export const WebhookSubscriptionResponseLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1382
|
+
export const WebhookSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1383
|
+
createdAt: S.String,
|
|
1384
|
+
updatedAt: S.optional(S.String),
|
|
1385
|
+
description: S.optional(S.String),
|
|
1386
|
+
eventTypes: WebhookSubscriptionResponseEventTypesList,
|
|
1387
|
+
isEnabled: S.Boolean,
|
|
1388
|
+
metadata: S.optional(WebhookSubscriptionResponseMetadata),
|
|
1389
|
+
secret: S.String.pipe(T.SensitiveValue({})),
|
|
1390
|
+
subscriptionId: S.String,
|
|
1391
|
+
target: WebhookTarget,
|
|
1392
|
+
labels: S.optional(WebhookSubscriptionResponseLabelsMap),
|
|
1393
|
+
})).annotate({
|
|
1394
|
+
identifier: "WebhookSubscriptionResponse",
|
|
1395
|
+
});
|
|
1396
|
+
export const DeletePolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1397
|
+
policyId: S.String.pipe(T.Label()),
|
|
1398
|
+
}).pipe(T.Http({
|
|
1399
|
+
method: "DELETE",
|
|
1400
|
+
uri: "/v2/policy-engine/policies/{policyId}",
|
|
1401
|
+
code: 200,
|
|
1402
|
+
}))).annotate({
|
|
1403
|
+
identifier: "DeletePolicyRequest",
|
|
1404
|
+
});
|
|
1405
|
+
export const DeletePolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1406
|
+
identifier: "DeletePolicyResponse",
|
|
1407
|
+
});
|
|
1408
|
+
export const DeleteWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1409
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
1410
|
+
}).pipe(T.Http({
|
|
1411
|
+
method: "DELETE",
|
|
1412
|
+
uri: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
1413
|
+
code: 200,
|
|
1414
|
+
}))).annotate({
|
|
1415
|
+
identifier: "DeleteWebhookSubscriptionRequest",
|
|
1416
|
+
});
|
|
1417
|
+
export const DeleteWebhookSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1418
|
+
identifier: "DeleteWebhookSubscriptionResponse",
|
|
1419
|
+
});
|
|
1420
|
+
export const ExecuteFundTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1421
|
+
transferId: S.String.pipe(T.Label()),
|
|
1422
|
+
}).pipe(T.Http({
|
|
1423
|
+
method: "POST",
|
|
1424
|
+
uri: "/v2/transfers/{transferId}/execute",
|
|
1425
|
+
code: 200,
|
|
1426
|
+
}))).annotate({
|
|
1427
|
+
identifier: "ExecuteFundTransferRequest",
|
|
1428
|
+
});
|
|
1429
|
+
export const ExportEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1430
|
+
address: S.String.pipe(T.Label()),
|
|
1431
|
+
exportEncryptionKey: S.String,
|
|
1432
|
+
}).pipe(T.Http({
|
|
1433
|
+
method: "POST",
|
|
1434
|
+
uri: "/v2/evm/accounts/{address}/export",
|
|
1435
|
+
code: 200,
|
|
1436
|
+
}))).annotate({
|
|
1437
|
+
identifier: "ExportEvmAccountRequest",
|
|
1438
|
+
});
|
|
1439
|
+
export const ExportEvmAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1440
|
+
encryptedPrivateKey: S.String,
|
|
1441
|
+
})).annotate({
|
|
1442
|
+
identifier: "ExportEvmAccountResponse",
|
|
1443
|
+
});
|
|
1444
|
+
export const ExportEvmAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
|
+
name: S.String.pipe(T.Label()),
|
|
1446
|
+
exportEncryptionKey: S.String,
|
|
1447
|
+
}).pipe(T.Http({
|
|
1448
|
+
method: "POST",
|
|
1449
|
+
uri: "/v2/evm/accounts/export/by-name/{name}",
|
|
1450
|
+
code: 200,
|
|
1451
|
+
}))).annotate({
|
|
1452
|
+
identifier: "ExportEvmAccountByNameRequest",
|
|
1453
|
+
});
|
|
1454
|
+
export const ExportEvmAccountByNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1455
|
+
encryptedPrivateKey: S.String,
|
|
1456
|
+
})).annotate({
|
|
1457
|
+
identifier: "ExportEvmAccountByNameResponse",
|
|
1458
|
+
});
|
|
1459
|
+
export const ExportSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1460
|
+
address: S.String.pipe(T.Label()),
|
|
1461
|
+
exportEncryptionKey: S.String,
|
|
1462
|
+
}).pipe(T.Http({
|
|
1463
|
+
method: "POST",
|
|
1464
|
+
uri: "/v2/solana/accounts/{address}/export",
|
|
1465
|
+
code: 200,
|
|
1466
|
+
}))).annotate({
|
|
1467
|
+
identifier: "ExportSolanaAccountRequest",
|
|
1468
|
+
});
|
|
1469
|
+
export const ExportSolanaAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1470
|
+
encryptedPrivateKey: S.String,
|
|
1471
|
+
})).annotate({
|
|
1472
|
+
identifier: "ExportSolanaAccountResponse",
|
|
1473
|
+
});
|
|
1474
|
+
export const ExportSolanaAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1475
|
+
name: S.String.pipe(T.Label()),
|
|
1476
|
+
exportEncryptionKey: S.String,
|
|
1477
|
+
}).pipe(T.Http({
|
|
1478
|
+
method: "POST",
|
|
1479
|
+
uri: "/v2/solana/accounts/export/by-name/{name}",
|
|
1480
|
+
code: 200,
|
|
1481
|
+
}))).annotate({
|
|
1482
|
+
identifier: "ExportSolanaAccountByNameRequest",
|
|
1483
|
+
});
|
|
1484
|
+
export const ExportSolanaAccountByNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1485
|
+
encryptedPrivateKey: S.String,
|
|
1486
|
+
})).annotate({
|
|
1487
|
+
identifier: "ExportSolanaAccountByNameResponse",
|
|
1488
|
+
});
|
|
1489
|
+
export const GetBalanceByAssetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1490
|
+
accountId: S.String.pipe(T.Label()),
|
|
1491
|
+
asset: S.String.pipe(T.Label()),
|
|
1492
|
+
}).pipe(T.Http({
|
|
1493
|
+
method: "GET",
|
|
1494
|
+
uri: "/v2/accounts/{accountId}/balances/{asset}",
|
|
1495
|
+
code: 200,
|
|
1496
|
+
}))).annotate({
|
|
1497
|
+
identifier: "GetBalanceByAssetRequest",
|
|
1498
|
+
});
|
|
1499
|
+
export const AssetType = /*@__PURE__*/ S.String;
|
|
1500
|
+
export const BalancesAsset = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
|
+
symbol: S.String,
|
|
1502
|
+
type: AssetType,
|
|
1503
|
+
name: S.String,
|
|
1504
|
+
decimals: S.Number,
|
|
1505
|
+
})).annotate({ identifier: "BalancesAsset" });
|
|
1506
|
+
export const AmountDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1507
|
+
available: S.String,
|
|
1508
|
+
total: S.String,
|
|
1509
|
+
})).annotate({ identifier: "AmountDetail" });
|
|
1510
|
+
export const BalanceAmountMap = /*@__PURE__*/ S.Record(S.String, AmountDetail);
|
|
1511
|
+
export const Balance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1512
|
+
asset: BalancesAsset,
|
|
1513
|
+
amount: BalanceAmountMap,
|
|
1514
|
+
})).annotate({ identifier: "Balance" });
|
|
1515
|
+
export const GetDelegationForEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1516
|
+
userId: S.String.pipe(T.Label()),
|
|
1517
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
1518
|
+
}).pipe(T.Http({
|
|
1519
|
+
method: "GET",
|
|
1520
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/delegation",
|
|
1521
|
+
code: 200,
|
|
1522
|
+
}))).annotate({
|
|
1523
|
+
identifier: "GetDelegationForEndUserRequest",
|
|
1524
|
+
});
|
|
1525
|
+
export const GetDelegationForEndUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1526
|
+
expiresAt: S.String,
|
|
1527
|
+
})).annotate({
|
|
1528
|
+
identifier: "GetDelegationForEndUserResponse",
|
|
1529
|
+
});
|
|
1530
|
+
export const GetDelegationForEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1531
|
+
userId: S.String.pipe(T.Label()),
|
|
1532
|
+
address: S.String.pipe(T.Label()),
|
|
1533
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
1534
|
+
}).pipe(T.Http({
|
|
1535
|
+
method: "GET",
|
|
1536
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/address/{address}/delegation",
|
|
1537
|
+
code: 200,
|
|
1538
|
+
}))).annotate({
|
|
1539
|
+
identifier: "GetDelegationForEndUserAccountRequest",
|
|
1540
|
+
});
|
|
1541
|
+
export const GetDelegationForEndUserAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1542
|
+
expiresAt: S.String,
|
|
1543
|
+
})).annotate({
|
|
1544
|
+
identifier: "GetDelegationForEndUserAccountResponse",
|
|
1545
|
+
});
|
|
1546
|
+
export const GetDepositDestinationByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1547
|
+
depositDestinationId: S.String.pipe(T.Label()),
|
|
1548
|
+
}).pipe(T.Http({
|
|
1549
|
+
method: "GET",
|
|
1550
|
+
uri: "/v2/deposit-destinations/{depositDestinationId}",
|
|
1551
|
+
code: 200,
|
|
1552
|
+
}))).annotate({
|
|
1553
|
+
identifier: "GetDepositDestinationByIdRequest",
|
|
1554
|
+
});
|
|
1555
|
+
export const GetDepositDestinationByIdResponse = /*@__PURE__*/ S.suspend(() => CryptoDepositDestination.pipe(T.RawResponseRoot())).annotate({
|
|
1556
|
+
identifier: "GetDepositDestinationByIdResponse",
|
|
1557
|
+
});
|
|
1558
|
+
export const GetEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1559
|
+
userId: S.String.pipe(T.Label()),
|
|
1560
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/end-users/{userId}", code: 200 }))).annotate({
|
|
1561
|
+
identifier: "GetEndUserRequest",
|
|
1562
|
+
});
|
|
1563
|
+
export const GetEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1564
|
+
address: S.String.pipe(T.Label()),
|
|
1565
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/evm/accounts/{address}", code: 200 }))).annotate({
|
|
1566
|
+
identifier: "GetEvmAccountRequest",
|
|
1567
|
+
});
|
|
1568
|
+
export const GetEvmAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1569
|
+
name: S.String.pipe(T.Label()),
|
|
1570
|
+
}).pipe(T.Http({
|
|
1571
|
+
method: "GET",
|
|
1572
|
+
uri: "/v2/evm/accounts/by-name/{name}",
|
|
1573
|
+
code: 200,
|
|
1574
|
+
}))).annotate({
|
|
1575
|
+
identifier: "GetEvmAccountByNameRequest",
|
|
1576
|
+
});
|
|
1577
|
+
export const GetEvmEip7702DelegationOperationByIdRequest =
|
|
1578
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1579
|
+
delegationOperationId: S.String.pipe(T.Label()),
|
|
1580
|
+
}).pipe(T.Http({
|
|
1581
|
+
method: "GET",
|
|
1582
|
+
uri: "/v2/evm/eip7702/delegation-operations/{delegationOperationId}",
|
|
1583
|
+
code: 200,
|
|
1584
|
+
}))).annotate({
|
|
1585
|
+
identifier: "GetEvmEip7702DelegationOperationByIdRequest",
|
|
1586
|
+
});
|
|
1587
|
+
export const EvmEip7702DelegationOperationStatus = /*@__PURE__*/ S.String;
|
|
1588
|
+
export const EvmEip7702DelegationOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1589
|
+
delegationOperationId: S.String,
|
|
1590
|
+
status: EvmEip7702DelegationOperationStatus,
|
|
1591
|
+
transactionHash: S.optional(S.String),
|
|
1592
|
+
network: EvmEip7702DelegationNetwork,
|
|
1593
|
+
delegateAddress: S.optional(S.String),
|
|
1594
|
+
})).annotate({
|
|
1595
|
+
identifier: "EvmEip7702DelegationOperation",
|
|
1596
|
+
});
|
|
1597
|
+
export const GetEvmSmartAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1598
|
+
address: S.String.pipe(T.Label()),
|
|
1599
|
+
}).pipe(T.Http({
|
|
1600
|
+
method: "GET",
|
|
1601
|
+
uri: "/v2/evm/smart-accounts/{address}",
|
|
1602
|
+
code: 200,
|
|
1603
|
+
}))).annotate({
|
|
1604
|
+
identifier: "GetEvmSmartAccountRequest",
|
|
1605
|
+
});
|
|
1606
|
+
export const GetEvmSmartAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1607
|
+
name: S.String.pipe(T.Label()),
|
|
1608
|
+
}).pipe(T.Http({
|
|
1609
|
+
method: "GET",
|
|
1610
|
+
uri: "/v2/evm/smart-accounts/by-name/{name}",
|
|
1611
|
+
code: 200,
|
|
1612
|
+
}))).annotate({
|
|
1613
|
+
identifier: "GetEvmSmartAccountByNameRequest",
|
|
1614
|
+
});
|
|
1615
|
+
export const GetEvmSwapPriceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1616
|
+
network: EvmSwapsNetwork.pipe(T.Query()),
|
|
1617
|
+
toToken: S.String.pipe(T.Query()),
|
|
1618
|
+
fromToken: S.String.pipe(T.Query()),
|
|
1619
|
+
fromAmount: S.String.pipe(T.Query()),
|
|
1620
|
+
taker: S.String.pipe(T.Query()),
|
|
1621
|
+
signerAddress: S.optional(S.String.pipe(T.Query())),
|
|
1622
|
+
gasPrice: S.optional(S.String.pipe(T.Query())),
|
|
1623
|
+
slippageBps: S.optional(S.Number.pipe(T.Query())),
|
|
1624
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/evm/swaps/quote", code: 200 }))).annotate({
|
|
1625
|
+
identifier: "GetEvmSwapPriceRequest",
|
|
1626
|
+
});
|
|
1627
|
+
export const GetSwapPriceResponseFees = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1628
|
+
gasFee: S.NullOr(TokenFee),
|
|
1629
|
+
protocolFee: S.NullOr(TokenFee),
|
|
1630
|
+
})).annotate({
|
|
1631
|
+
identifier: "GetSwapPriceResponseFees",
|
|
1632
|
+
});
|
|
1633
|
+
export const GetSwapPriceResponseIssuesAllowance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1634
|
+
currentAllowance: S.String,
|
|
1635
|
+
spender: S.String,
|
|
1636
|
+
})).annotate({
|
|
1637
|
+
identifier: "GetSwapPriceResponseIssuesAllowance",
|
|
1638
|
+
});
|
|
1639
|
+
export const GetSwapPriceResponseIssuesBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1640
|
+
token: S.String,
|
|
1641
|
+
currentBalance: S.String,
|
|
1642
|
+
requiredBalance: S.String,
|
|
1643
|
+
})).annotate({
|
|
1644
|
+
identifier: "GetSwapPriceResponseIssuesBalance",
|
|
1645
|
+
});
|
|
1646
|
+
export const GetSwapPriceResponseIssues = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1647
|
+
allowance: S.NullOr(GetSwapPriceResponseIssuesAllowance),
|
|
1648
|
+
balance: S.NullOr(GetSwapPriceResponseIssuesBalance),
|
|
1649
|
+
simulationIncomplete: S.Boolean,
|
|
1650
|
+
})).annotate({
|
|
1651
|
+
identifier: "GetSwapPriceResponseIssues",
|
|
1652
|
+
});
|
|
1653
|
+
export const GetSwapPriceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1654
|
+
blockNumber: S.String,
|
|
1655
|
+
toAmount: S.String,
|
|
1656
|
+
toToken: S.String,
|
|
1657
|
+
fees: GetSwapPriceResponseFees,
|
|
1658
|
+
issues: GetSwapPriceResponseIssues,
|
|
1659
|
+
liquidityAvailable: S.Boolean,
|
|
1660
|
+
minToAmount: S.String,
|
|
1661
|
+
fromAmount: S.String,
|
|
1662
|
+
fromToken: S.String,
|
|
1663
|
+
gas: S.NullOr(S.String),
|
|
1664
|
+
gasPrice: S.String,
|
|
1665
|
+
})).annotate({
|
|
1666
|
+
identifier: "GetSwapPriceResponse",
|
|
1667
|
+
});
|
|
1668
|
+
export const GetSwapPriceResponseWrapper =
|
|
1669
|
+
/*@__PURE__*/ S.Unknown;
|
|
1670
|
+
export const GetEvmSwapPriceResponse = /*@__PURE__*/ S.suspend(() => GetSwapPriceResponseWrapper.pipe(T.RawResponseRoot())).annotate({
|
|
1671
|
+
identifier: "GetEvmSwapPriceResponse",
|
|
1672
|
+
});
|
|
1673
|
+
export const GetFoundationAccountByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1674
|
+
accountId: S.String.pipe(T.Label()),
|
|
1675
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/accounts/{accountId}", code: 200 }))).annotate({
|
|
1676
|
+
identifier: "GetFoundationAccountByIdRequest",
|
|
1677
|
+
});
|
|
1678
|
+
export const GetOnrampOrderByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1679
|
+
orderId: S.String.pipe(T.Label()),
|
|
1680
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/onramp/orders/{orderId}", code: 200 }))).annotate({
|
|
1681
|
+
identifier: "GetOnrampOrderByIdRequest",
|
|
1682
|
+
});
|
|
1683
|
+
export const GetOnrampOrderByIdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1684
|
+
order: OnrampOrder,
|
|
1685
|
+
})).annotate({
|
|
1686
|
+
identifier: "GetOnrampOrderByIdResponse",
|
|
1687
|
+
});
|
|
1688
|
+
export const OnrampUserIdType = /*@__PURE__*/ S.String;
|
|
1689
|
+
export const GetOnrampUserLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1690
|
+
paymentMethodType: OnrampOrderPaymentMethodTypeId,
|
|
1691
|
+
userId: S.String,
|
|
1692
|
+
userIdType: OnrampUserIdType,
|
|
1693
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/onramp/limits", code: 200 }))).annotate({
|
|
1694
|
+
identifier: "GetOnrampUserLimitsRequest",
|
|
1695
|
+
});
|
|
1696
|
+
export const OnrampLimitType = /*@__PURE__*/ S.String;
|
|
1697
|
+
export const OnrampUserLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1698
|
+
limitType: OnrampLimitType,
|
|
1699
|
+
currency: S.optional(S.String),
|
|
1700
|
+
limit: S.String,
|
|
1701
|
+
remaining: S.String,
|
|
1702
|
+
})).annotate({
|
|
1703
|
+
identifier: "OnrampUserLimit",
|
|
1704
|
+
});
|
|
1705
|
+
export const GetOnrampUserLimitsResponseLimitsList = /*@__PURE__*/ S.Array(OnrampUserLimit);
|
|
1706
|
+
export const GetOnrampUserLimitsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1707
|
+
limits: GetOnrampUserLimitsResponseLimitsList,
|
|
1708
|
+
})).annotate({
|
|
1709
|
+
identifier: "GetOnrampUserLimitsResponse",
|
|
1710
|
+
});
|
|
1711
|
+
export const GetPaymentMethodRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1712
|
+
paymentMethodId: S.String.pipe(T.Label()),
|
|
1713
|
+
}).pipe(T.Http({
|
|
1714
|
+
method: "GET",
|
|
1715
|
+
uri: "/v2/payment-methods/{paymentMethodId}",
|
|
1716
|
+
code: 200,
|
|
1717
|
+
}))).annotate({
|
|
1718
|
+
identifier: "GetPaymentMethodRequest",
|
|
1719
|
+
});
|
|
1720
|
+
export const FedwirePaymentMethodPaymentRail = /*@__PURE__*/ S.String;
|
|
1721
|
+
export const FedwireDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1722
|
+
asset: S.String,
|
|
1723
|
+
bankName: S.String,
|
|
1724
|
+
accountLast4: S.String,
|
|
1725
|
+
routingNumber: S.String,
|
|
1726
|
+
})).annotate({ identifier: "FedwireDetails" });
|
|
1727
|
+
export const FedwirePaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1728
|
+
paymentMethodId: S.String,
|
|
1729
|
+
active: S.Boolean,
|
|
1730
|
+
createdAt: S.String,
|
|
1731
|
+
updatedAt: S.String,
|
|
1732
|
+
paymentRail: FedwirePaymentMethodPaymentRail,
|
|
1733
|
+
fedwire: FedwireDetails,
|
|
1734
|
+
})).annotate({
|
|
1735
|
+
identifier: "FedwirePaymentMethod",
|
|
1736
|
+
});
|
|
1737
|
+
export const SwiftPaymentMethodPaymentRail = /*@__PURE__*/ S.String;
|
|
1738
|
+
export const SwiftDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1739
|
+
asset: S.String,
|
|
1740
|
+
bankName: S.String,
|
|
1741
|
+
accountLast4: S.String,
|
|
1742
|
+
ibanLast4: S.optional(S.String),
|
|
1743
|
+
bic: S.String,
|
|
1744
|
+
})).annotate({ identifier: "SwiftDetails" });
|
|
1745
|
+
export const SwiftPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1746
|
+
paymentMethodId: S.String,
|
|
1747
|
+
active: S.Boolean,
|
|
1748
|
+
createdAt: S.String,
|
|
1749
|
+
updatedAt: S.String,
|
|
1750
|
+
paymentRail: SwiftPaymentMethodPaymentRail,
|
|
1751
|
+
swift: SwiftDetails,
|
|
1752
|
+
})).annotate({
|
|
1753
|
+
identifier: "SwiftPaymentMethod",
|
|
1754
|
+
});
|
|
1755
|
+
export const SepaPaymentMethodPaymentRail = /*@__PURE__*/ S.String;
|
|
1756
|
+
export const SepaDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1757
|
+
asset: S.String,
|
|
1758
|
+
bankName: S.String,
|
|
1759
|
+
ibanLast4: S.String,
|
|
1760
|
+
bic: S.String,
|
|
1761
|
+
})).annotate({ identifier: "SepaDetails" });
|
|
1762
|
+
export const SepaPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1763
|
+
paymentMethodId: S.String,
|
|
1764
|
+
active: S.Boolean,
|
|
1765
|
+
createdAt: S.String,
|
|
1766
|
+
updatedAt: S.String,
|
|
1767
|
+
paymentRail: SepaPaymentMethodPaymentRail,
|
|
1768
|
+
sepa: SepaDetails,
|
|
1769
|
+
})).annotate({
|
|
1770
|
+
identifier: "SepaPaymentMethod",
|
|
1771
|
+
});
|
|
1772
|
+
export const PaymentMethodsPaymentMethod =
|
|
1773
|
+
/*@__PURE__*/ S.Unknown;
|
|
1774
|
+
export const GetPaymentMethodResponse = /*@__PURE__*/ S.suspend(() => PaymentMethodsPaymentMethod.pipe(T.RawResponseRoot())).annotate({
|
|
1775
|
+
identifier: "GetPaymentMethodResponse",
|
|
1776
|
+
});
|
|
1777
|
+
export const GetPolicyByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1778
|
+
policyId: S.String.pipe(T.Label()),
|
|
1779
|
+
}).pipe(T.Http({
|
|
1780
|
+
method: "GET",
|
|
1781
|
+
uri: "/v2/policy-engine/policies/{policyId}",
|
|
1782
|
+
code: 200,
|
|
1783
|
+
}))).annotate({
|
|
1784
|
+
identifier: "GetPolicyByIdRequest",
|
|
1785
|
+
});
|
|
1786
|
+
export const GetSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1787
|
+
address: S.String.pipe(T.Label()),
|
|
1788
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/solana/accounts/{address}", code: 200 }))).annotate({
|
|
1789
|
+
identifier: "GetSolanaAccountRequest",
|
|
1790
|
+
});
|
|
1791
|
+
export const GetSolanaAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1792
|
+
name: S.String.pipe(T.Label()),
|
|
1793
|
+
}).pipe(T.Http({
|
|
1794
|
+
method: "GET",
|
|
1795
|
+
uri: "/v2/solana/accounts/by-name/{name}",
|
|
1796
|
+
code: 200,
|
|
1797
|
+
}))).annotate({
|
|
1798
|
+
identifier: "GetSolanaAccountByNameRequest",
|
|
1799
|
+
});
|
|
1800
|
+
export const GetSQLGrammarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2/data/query/grammar", code: 200 }))).annotate({
|
|
1801
|
+
identifier: "GetSQLGrammarRequest",
|
|
1802
|
+
});
|
|
1803
|
+
export const GetSQLGrammarResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
1804
|
+
identifier: "GetSQLGrammarResponse",
|
|
1805
|
+
});
|
|
1806
|
+
export const GetSQLSchemaRequestDatabase = /*@__PURE__*/ S.String;
|
|
1807
|
+
export const GetSQLSchemaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1808
|
+
database: S.optional(GetSQLSchemaRequestDatabase.pipe(T.Query())),
|
|
1809
|
+
table: S.optional(S.String.pipe(T.Query())),
|
|
1810
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/data/query/schema", code: 200 }))).annotate({
|
|
1811
|
+
identifier: "GetSQLSchemaRequest",
|
|
1812
|
+
});
|
|
1813
|
+
export const OnchainDataColumnSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1814
|
+
name: S.optional(S.String),
|
|
1815
|
+
type: S.optional(S.String),
|
|
1816
|
+
nullable: S.optional(S.Boolean),
|
|
1817
|
+
description: S.optional(S.String),
|
|
1818
|
+
indexOrder: S.optional(S.Number),
|
|
1819
|
+
})).annotate({
|
|
1820
|
+
identifier: "OnchainDataColumnSchema",
|
|
1821
|
+
});
|
|
1822
|
+
export const OnchainDataTableSchemaColumnsList = /*@__PURE__*/ S.Array(OnchainDataColumnSchema);
|
|
1823
|
+
export const OnchainDataTableSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1824
|
+
database: S.optional(S.String),
|
|
1825
|
+
table: S.optional(S.String),
|
|
1826
|
+
columns: S.optional(OnchainDataTableSchemaColumnsList),
|
|
1827
|
+
})).annotate({
|
|
1828
|
+
identifier: "OnchainDataTableSchema",
|
|
1829
|
+
});
|
|
1830
|
+
export const OnchainDataSchemaResponseTablesList = /*@__PURE__*/ S.Array(OnchainDataTableSchema);
|
|
1831
|
+
export const OnchainDataSchemaResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1832
|
+
tables: S.optional(OnchainDataSchemaResponseTablesList),
|
|
1833
|
+
})).annotate({
|
|
1834
|
+
identifier: "OnchainDataSchemaResponse",
|
|
1835
|
+
});
|
|
1836
|
+
export const GetTransferByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1837
|
+
transferId: S.String.pipe(T.Label()),
|
|
1838
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/transfers/{transferId}", code: 200 }))).annotate({
|
|
1839
|
+
identifier: "GetTransferByIdRequest",
|
|
1840
|
+
});
|
|
1841
|
+
export const GetUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1842
|
+
address: S.String.pipe(T.Label()),
|
|
1843
|
+
userOpHash: S.String.pipe(T.Label()),
|
|
1844
|
+
}).pipe(T.Http({
|
|
1845
|
+
method: "GET",
|
|
1846
|
+
uri: "/v2/evm/smart-accounts/{address}/user-operations/{userOpHash}",
|
|
1847
|
+
code: 200,
|
|
1848
|
+
}))).annotate({
|
|
1849
|
+
identifier: "GetUserOperationRequest",
|
|
1850
|
+
});
|
|
1851
|
+
export const GetWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1852
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
1853
|
+
}).pipe(T.Http({
|
|
1854
|
+
method: "GET",
|
|
1855
|
+
uri: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
1856
|
+
code: 200,
|
|
1857
|
+
}))).annotate({
|
|
1858
|
+
identifier: "GetWebhookSubscriptionRequest",
|
|
1859
|
+
});
|
|
1860
|
+
export const ImportEndUserRequestKeyType = /*@__PURE__*/ S.String;
|
|
1861
|
+
export const ImportEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1862
|
+
userId: S.String,
|
|
1863
|
+
authenticationMethods: AuthenticationMethods,
|
|
1864
|
+
encryptedPrivateKey: S.String,
|
|
1865
|
+
keyType: ImportEndUserRequestKeyType,
|
|
1866
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/end-users/import", code: 200 }))).annotate({
|
|
1867
|
+
identifier: "ImportEndUserRequest",
|
|
1868
|
+
});
|
|
1869
|
+
export const ImportEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1870
|
+
encryptedPrivateKey: S.String,
|
|
1871
|
+
name: S.optional(S.String),
|
|
1872
|
+
accountPolicy: S.optional(S.String),
|
|
1873
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/evm/accounts/import", code: 200 }))).annotate({
|
|
1874
|
+
identifier: "ImportEvmAccountRequest",
|
|
1875
|
+
});
|
|
1876
|
+
export const ImportSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1877
|
+
encryptedPrivateKey: S.String,
|
|
1878
|
+
name: S.optional(S.String),
|
|
1879
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/solana/accounts/import", code: 200 }))).annotate({
|
|
1880
|
+
identifier: "ImportSolanaAccountRequest",
|
|
1881
|
+
});
|
|
1882
|
+
export const InitiateOnrampVerificationRequestChannel = /*@__PURE__*/ S.String;
|
|
1883
|
+
export const InitiateOnrampVerificationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1884
|
+
channel: InitiateOnrampVerificationRequestChannel,
|
|
1885
|
+
destination: S.String,
|
|
1886
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/onramp/verifications", code: 200 }))).annotate({
|
|
1887
|
+
identifier: "InitiateOnrampVerificationRequest",
|
|
1888
|
+
});
|
|
1889
|
+
export const OnrampVerificationInitiation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1890
|
+
verificationId: S.String,
|
|
1891
|
+
otpExpiresAt: S.String,
|
|
1892
|
+
})).annotate({
|
|
1893
|
+
identifier: "OnrampVerificationInitiation",
|
|
1894
|
+
});
|
|
1895
|
+
export const ListBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1896
|
+
accountId: S.String.pipe(T.Label()),
|
|
1897
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1898
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1899
|
+
}).pipe(T.Http({
|
|
1900
|
+
method: "GET",
|
|
1901
|
+
uri: "/v2/accounts/{accountId}/balances",
|
|
1902
|
+
code: 200,
|
|
1903
|
+
}))).annotate({
|
|
1904
|
+
identifier: "ListBalancesRequest",
|
|
1905
|
+
});
|
|
1906
|
+
export const ListBalancesResponseBalancesList = /*@__PURE__*/ S.Array(Balance);
|
|
1907
|
+
export const ListBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1908
|
+
balances: ListBalancesResponseBalancesList,
|
|
1909
|
+
nextPageToken: S.optional(S.String),
|
|
1910
|
+
})).annotate({
|
|
1911
|
+
identifier: "ListBalancesResponse",
|
|
1912
|
+
});
|
|
1913
|
+
export const ListDataTokenBalancesRequestNetwork = /*@__PURE__*/ S.String;
|
|
1914
|
+
export const ListDataTokenBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1915
|
+
network: ListDataTokenBalancesRequestNetwork.pipe(T.Label()),
|
|
1916
|
+
address: S.String.pipe(T.Label()),
|
|
1917
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1918
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1919
|
+
}).pipe(T.Http({
|
|
1920
|
+
method: "GET",
|
|
1921
|
+
uri: "/v2/data/evm/token-balances/{network}/{address}",
|
|
1922
|
+
code: 200,
|
|
1923
|
+
}))).annotate({
|
|
1924
|
+
identifier: "ListDataTokenBalancesRequest",
|
|
1925
|
+
});
|
|
1926
|
+
export const TokenAmount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1927
|
+
amount: S.String,
|
|
1928
|
+
decimals: S.Number,
|
|
1929
|
+
})).annotate({ identifier: "TokenAmount" });
|
|
1930
|
+
export const ListEvmTokenBalancesNetwork = /*@__PURE__*/ S.String;
|
|
1931
|
+
export const Token = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1932
|
+
network: ListEvmTokenBalancesNetwork,
|
|
1933
|
+
symbol: S.optional(S.String),
|
|
1934
|
+
name: S.optional(S.String),
|
|
1935
|
+
contractAddress: S.String,
|
|
1936
|
+
})).annotate({ identifier: "Token" });
|
|
1937
|
+
export const TokenBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1938
|
+
amount: TokenAmount,
|
|
1939
|
+
token: Token,
|
|
1940
|
+
})).annotate({ identifier: "TokenBalance" });
|
|
1941
|
+
export const ListDataTokenBalancesResponseBalancesList = /*@__PURE__*/ S.Array(TokenBalance);
|
|
1942
|
+
export const ListDataTokenBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1943
|
+
balances: ListDataTokenBalancesResponseBalancesList,
|
|
1944
|
+
nextPageToken: S.optional(S.String),
|
|
1945
|
+
})).annotate({
|
|
1946
|
+
identifier: "ListDataTokenBalancesResponse",
|
|
1947
|
+
});
|
|
1948
|
+
export const ListDepositDestinationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1949
|
+
accountId: S.optional(S.String.pipe(T.Query())),
|
|
1950
|
+
address: S.optional(S.String.pipe(T.Query())),
|
|
1951
|
+
type: S.optional(DepositDestinationType.pipe(T.Query())),
|
|
1952
|
+
network: S.optional(S.String.pipe(T.Query())),
|
|
1953
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1954
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1955
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/deposit-destinations", code: 200 }))).annotate({
|
|
1956
|
+
identifier: "ListDepositDestinationsRequest",
|
|
1957
|
+
});
|
|
1958
|
+
export const ListDepositDestinationsResponseDepositDestinationsList =
|
|
1959
|
+
/*@__PURE__*/ S.Array(CryptoDepositDestination);
|
|
1960
|
+
export const ListDepositDestinationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1961
|
+
depositDestinations: ListDepositDestinationsResponseDepositDestinationsList,
|
|
1962
|
+
nextPageToken: S.optional(S.String),
|
|
1963
|
+
})).annotate({
|
|
1964
|
+
identifier: "ListDepositDestinationsResponse",
|
|
1965
|
+
});
|
|
1966
|
+
export const ListEndUsersRequestSortItem = /*@__PURE__*/ S.String;
|
|
1967
|
+
export const ListEndUsersRequestSortList = /*@__PURE__*/ S.Array(ListEndUsersRequestSortItem);
|
|
1968
|
+
export const ListEndUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1969
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1970
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1971
|
+
sort: S.optional(ListEndUsersRequestSortList.pipe(T.Query())),
|
|
1972
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/end-users", code: 200 }))).annotate({
|
|
1973
|
+
identifier: "ListEndUsersRequest",
|
|
1974
|
+
});
|
|
1975
|
+
export const ListEndUsersResponseEndUsersList = /*@__PURE__*/ S.Array(EndUser);
|
|
1976
|
+
export const ListEndUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1977
|
+
endUsers: ListEndUsersResponseEndUsersList,
|
|
1978
|
+
nextPageToken: S.optional(S.String),
|
|
1979
|
+
})).annotate({
|
|
1980
|
+
identifier: "ListEndUsersResponse",
|
|
1981
|
+
});
|
|
1982
|
+
export const ListEvmAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1983
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1984
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1985
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/evm/accounts", code: 200 }))).annotate({
|
|
1986
|
+
identifier: "ListEvmAccountsRequest",
|
|
1987
|
+
});
|
|
1988
|
+
export const ListEvmAccountsResponseAccountsList = /*@__PURE__*/ S.Array(EvmAccount);
|
|
1989
|
+
export const ListEvmAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1990
|
+
accounts: ListEvmAccountsResponseAccountsList,
|
|
1991
|
+
nextPageToken: S.optional(S.String),
|
|
1992
|
+
})).annotate({
|
|
1993
|
+
identifier: "ListEvmAccountsResponse",
|
|
1994
|
+
});
|
|
1995
|
+
export const ListEvmSmartAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1996
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1997
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
1998
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/evm/smart-accounts", code: 200 }))).annotate({
|
|
1999
|
+
identifier: "ListEvmSmartAccountsRequest",
|
|
2000
|
+
});
|
|
2001
|
+
export const ListEvmSmartAccountsResponseAccountsList = /*@__PURE__*/ S.Array(EvmSmartAccount);
|
|
2002
|
+
export const ListEvmSmartAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2003
|
+
accounts: ListEvmSmartAccountsResponseAccountsList,
|
|
2004
|
+
nextPageToken: S.optional(S.String),
|
|
2005
|
+
})).annotate({
|
|
2006
|
+
identifier: "ListEvmSmartAccountsResponse",
|
|
2007
|
+
});
|
|
2008
|
+
export const ListEvmTokenBalancesRequestNetwork = /*@__PURE__*/ S.String;
|
|
2009
|
+
export const ListEvmTokenBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2010
|
+
network: ListEvmTokenBalancesRequestNetwork.pipe(T.Label()),
|
|
2011
|
+
address: S.String.pipe(T.Label()),
|
|
2012
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2013
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2014
|
+
}).pipe(T.Http({
|
|
2015
|
+
method: "GET",
|
|
2016
|
+
uri: "/v2/evm/token-balances/{network}/{address}",
|
|
2017
|
+
code: 200,
|
|
2018
|
+
}))).annotate({
|
|
2019
|
+
identifier: "ListEvmTokenBalancesRequest",
|
|
2020
|
+
});
|
|
2021
|
+
export const ListEvmTokenBalancesResponseBalancesList = /*@__PURE__*/ S.Array(TokenBalance);
|
|
2022
|
+
export const ListEvmTokenBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2023
|
+
balances: ListEvmTokenBalancesResponseBalancesList,
|
|
2024
|
+
nextPageToken: S.optional(S.String),
|
|
2025
|
+
})).annotate({
|
|
2026
|
+
identifier: "ListEvmTokenBalancesResponse",
|
|
2027
|
+
});
|
|
2028
|
+
export const ListFoundationAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2029
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2030
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2031
|
+
type: S.optional(AccountType.pipe(T.Query())),
|
|
2032
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/accounts", code: 200 }))).annotate({
|
|
2033
|
+
identifier: "ListFoundationAccountsRequest",
|
|
2034
|
+
});
|
|
2035
|
+
export const ListFoundationAccountsResponseAccountsList = /*@__PURE__*/ S.Array(Account);
|
|
2036
|
+
export const ListFoundationAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2037
|
+
accounts: ListFoundationAccountsResponseAccountsList,
|
|
2038
|
+
nextPageToken: S.optional(S.String),
|
|
2039
|
+
})).annotate({
|
|
2040
|
+
identifier: "ListFoundationAccountsResponse",
|
|
2041
|
+
});
|
|
2042
|
+
export const ListPaymentMethodsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2043
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2044
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2045
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/payment-methods", code: 200 }))).annotate({
|
|
2046
|
+
identifier: "ListPaymentMethodsRequest",
|
|
2047
|
+
});
|
|
2048
|
+
export const ListPaymentMethodsResponsePaymentMethodsList =
|
|
2049
|
+
/*@__PURE__*/ S.Array(PaymentMethodsPaymentMethod);
|
|
2050
|
+
export const ListPaymentMethodsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2051
|
+
paymentMethods: ListPaymentMethodsResponsePaymentMethodsList,
|
|
2052
|
+
nextPageToken: S.optional(S.String),
|
|
2053
|
+
})).annotate({
|
|
2054
|
+
identifier: "ListPaymentMethodsResponse",
|
|
2055
|
+
});
|
|
2056
|
+
export const ListPoliciesRequestScope = /*@__PURE__*/ S.String;
|
|
2057
|
+
export const ListPoliciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2058
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2059
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2060
|
+
scope: S.optional(ListPoliciesRequestScope.pipe(T.Query())),
|
|
2061
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/policy-engine/policies", code: 200 }))).annotate({
|
|
2062
|
+
identifier: "ListPoliciesRequest",
|
|
2063
|
+
});
|
|
2064
|
+
export const ListPoliciesResponsePoliciesList = /*@__PURE__*/ S.Array(Policy);
|
|
2065
|
+
export const ListPoliciesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2066
|
+
policies: ListPoliciesResponsePoliciesList,
|
|
2067
|
+
nextPageToken: S.optional(S.String),
|
|
2068
|
+
})).annotate({
|
|
2069
|
+
identifier: "ListPoliciesResponse",
|
|
2070
|
+
});
|
|
2071
|
+
export const ListSolanaAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2072
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2073
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2074
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/solana/accounts", code: 200 }))).annotate({
|
|
2075
|
+
identifier: "ListSolanaAccountsRequest",
|
|
2076
|
+
});
|
|
2077
|
+
export const ListSolanaAccountsResponseAccountsList = /*@__PURE__*/ S.Array(SolanaAccount);
|
|
2078
|
+
export const ListSolanaAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2079
|
+
accounts: ListSolanaAccountsResponseAccountsList,
|
|
2080
|
+
nextPageToken: S.optional(S.String),
|
|
2081
|
+
})).annotate({
|
|
2082
|
+
identifier: "ListSolanaAccountsResponse",
|
|
2083
|
+
});
|
|
2084
|
+
export const ListSolanaTokenBalancesRequestNetwork = /*@__PURE__*/ S.String;
|
|
2085
|
+
export const ListSolanaTokenBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2086
|
+
network: ListSolanaTokenBalancesRequestNetwork.pipe(T.Label()),
|
|
2087
|
+
address: S.String.pipe(T.Label()),
|
|
2088
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2089
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2090
|
+
}).pipe(T.Http({
|
|
2091
|
+
method: "GET",
|
|
2092
|
+
uri: "/v2/solana/token-balances/{network}/{address}",
|
|
2093
|
+
code: 200,
|
|
2094
|
+
}))).annotate({
|
|
2095
|
+
identifier: "ListSolanaTokenBalancesRequest",
|
|
2096
|
+
});
|
|
2097
|
+
export const SolanaTokenAmount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2098
|
+
amount: S.String,
|
|
2099
|
+
decimals: S.Number,
|
|
2100
|
+
})).annotate({
|
|
2101
|
+
identifier: "SolanaTokenAmount",
|
|
2102
|
+
});
|
|
2103
|
+
export const SolanaToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2104
|
+
symbol: S.optional(S.String),
|
|
2105
|
+
name: S.optional(S.String),
|
|
2106
|
+
mintAddress: S.String,
|
|
2107
|
+
})).annotate({ identifier: "SolanaToken" });
|
|
2108
|
+
export const SolanaTokenBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2109
|
+
amount: SolanaTokenAmount,
|
|
2110
|
+
token: SolanaToken,
|
|
2111
|
+
})).annotate({
|
|
2112
|
+
identifier: "SolanaTokenBalance",
|
|
2113
|
+
});
|
|
2114
|
+
export const ListSolanaTokenBalancesResponseBalancesList =
|
|
2115
|
+
/*@__PURE__*/ S.Array(SolanaTokenBalance);
|
|
2116
|
+
export const ListSolanaTokenBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2117
|
+
balances: ListSolanaTokenBalancesResponseBalancesList,
|
|
2118
|
+
nextPageToken: S.optional(S.String),
|
|
2119
|
+
})).annotate({
|
|
2120
|
+
identifier: "ListSolanaTokenBalancesResponse",
|
|
2121
|
+
});
|
|
2122
|
+
export const ListSpendPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2123
|
+
address: S.String.pipe(T.Label()),
|
|
2124
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2125
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2126
|
+
}).pipe(T.Http({
|
|
2127
|
+
method: "GET",
|
|
2128
|
+
uri: "/v2/evm/smart-accounts/{address}/spend-permissions/list",
|
|
2129
|
+
code: 200,
|
|
2130
|
+
}))).annotate({
|
|
2131
|
+
identifier: "ListSpendPermissionsRequest",
|
|
2132
|
+
});
|
|
2133
|
+
export const SpendPermission = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2134
|
+
account: S.String,
|
|
2135
|
+
spender: S.String,
|
|
2136
|
+
token: S.String,
|
|
2137
|
+
allowance: S.String,
|
|
2138
|
+
period: S.String,
|
|
2139
|
+
start: S.String,
|
|
2140
|
+
end: S.String,
|
|
2141
|
+
salt: S.String,
|
|
2142
|
+
extraData: S.String,
|
|
2143
|
+
})).annotate({
|
|
2144
|
+
identifier: "SpendPermission",
|
|
2145
|
+
});
|
|
2146
|
+
export const SpendPermissionResponseObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2147
|
+
permission: SpendPermission,
|
|
2148
|
+
permissionHash: S.String,
|
|
2149
|
+
revoked: S.Boolean,
|
|
2150
|
+
revokedAt: S.optional(S.String),
|
|
2151
|
+
createdAt: S.String,
|
|
2152
|
+
network: SpendPermissionNetwork,
|
|
2153
|
+
})).annotate({
|
|
2154
|
+
identifier: "SpendPermissionResponseObject",
|
|
2155
|
+
});
|
|
2156
|
+
export const ListSpendPermissionsResponseSpendPermissionsList =
|
|
2157
|
+
/*@__PURE__*/ S.Array(SpendPermissionResponseObject);
|
|
2158
|
+
export const ListSpendPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2159
|
+
spendPermissions: ListSpendPermissionsResponseSpendPermissionsList,
|
|
2160
|
+
nextPageToken: S.optional(S.String),
|
|
2161
|
+
})).annotate({
|
|
2162
|
+
identifier: "ListSpendPermissionsResponse",
|
|
2163
|
+
});
|
|
2164
|
+
export const ListTokensForAccountRequestNetwork = /*@__PURE__*/ S.String;
|
|
2165
|
+
export const ListTokensForAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2166
|
+
network: ListTokensForAccountRequestNetwork.pipe(T.Label()),
|
|
2167
|
+
address: S.String.pipe(T.Label()),
|
|
2168
|
+
}).pipe(T.Http({
|
|
2169
|
+
method: "GET",
|
|
2170
|
+
uri: "/v2/data/evm/token-ownership/{network}/{address}",
|
|
2171
|
+
code: 200,
|
|
2172
|
+
}))).annotate({
|
|
2173
|
+
identifier: "ListTokensForAccountRequest",
|
|
2174
|
+
});
|
|
2175
|
+
export const AccountTokenAddressesResponseTokenAddressesList =
|
|
2176
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2177
|
+
export const AccountTokenAddressesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2178
|
+
accountAddress: S.optional(S.String),
|
|
2179
|
+
tokenAddresses: S.optional(AccountTokenAddressesResponseTokenAddressesList),
|
|
2180
|
+
totalCount: S.optional(S.Number),
|
|
2181
|
+
})).annotate({
|
|
2182
|
+
identifier: "AccountTokenAddressesResponse",
|
|
2183
|
+
});
|
|
2184
|
+
export const ListTransfersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2185
|
+
status: S.optional(TransferStatus.pipe(T.Query())),
|
|
2186
|
+
accountId: S.optional(S.String.pipe(T.Query())),
|
|
2187
|
+
sourceAccountId: S.optional(S.String.pipe(T.Query())),
|
|
2188
|
+
targetAccountId: S.optional(S.String.pipe(T.Query())),
|
|
2189
|
+
createdAfter: S.optional(S.String.pipe(T.Query())),
|
|
2190
|
+
createdBefore: S.optional(S.String.pipe(T.Query())),
|
|
2191
|
+
updatedAfter: S.optional(S.String.pipe(T.Query())),
|
|
2192
|
+
updatedBefore: S.optional(S.String.pipe(T.Query())),
|
|
2193
|
+
sourceAsset: S.optional(S.String.pipe(T.Query())),
|
|
2194
|
+
targetAsset: S.optional(S.String.pipe(T.Query())),
|
|
2195
|
+
sourceAddress: S.optional(S.String.pipe(T.Query())),
|
|
2196
|
+
targetAddress: S.optional(S.String.pipe(T.Query())),
|
|
2197
|
+
targetEmail: S.optional(S.String.pipe(T.Query())),
|
|
2198
|
+
transferId: S.optional(S.String.pipe(T.Query())),
|
|
2199
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2200
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2201
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/transfers", code: 200 }))).annotate({
|
|
2202
|
+
identifier: "ListTransfersRequest",
|
|
2203
|
+
});
|
|
2204
|
+
export const ListTransfersResponseTransfersList = /*@__PURE__*/ S.Array(Transfer);
|
|
2205
|
+
export const ListTransfersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2206
|
+
transfers: ListTransfersResponseTransfersList,
|
|
2207
|
+
nextPageToken: S.optional(S.String),
|
|
2208
|
+
})).annotate({
|
|
2209
|
+
identifier: "ListTransfersResponse",
|
|
2210
|
+
});
|
|
2211
|
+
export const ListWebhookSubscriptionEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2212
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
2213
|
+
eventId: S.optional(S.String.pipe(T.Query())),
|
|
2214
|
+
minCreatedAt: S.optional(S.String.pipe(T.Query())),
|
|
2215
|
+
maxCreatedAt: S.optional(S.String.pipe(T.Query())),
|
|
2216
|
+
eventTypeNames: S.optional(S.String.pipe(T.Query())),
|
|
2217
|
+
}).pipe(T.Http({
|
|
2218
|
+
method: "GET",
|
|
2219
|
+
uri: "/v2/data/webhooks/subscriptions/{subscriptionId}/events",
|
|
2220
|
+
code: 200,
|
|
2221
|
+
}))).annotate({
|
|
2222
|
+
identifier: "ListWebhookSubscriptionEventsRequest",
|
|
2223
|
+
});
|
|
2224
|
+
export const WebhookEventResponseStatus = /*@__PURE__*/ S.String;
|
|
2225
|
+
export const WebhookEventResponseDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2226
|
+
httpCode: S.optional(S.Number),
|
|
2227
|
+
elapsedTimeMs: S.optional(S.Number),
|
|
2228
|
+
body: S.optional(S.String),
|
|
2229
|
+
errorName: S.optional(S.String),
|
|
2230
|
+
})).annotate({
|
|
2231
|
+
identifier: "WebhookEventResponseDetail",
|
|
2232
|
+
});
|
|
2233
|
+
export const WebhookEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2234
|
+
eventId: S.String,
|
|
2235
|
+
eventTypeName: S.String,
|
|
2236
|
+
status: WebhookEventResponseStatus,
|
|
2237
|
+
createdAt: S.String,
|
|
2238
|
+
succeededAt: S.optional(S.String),
|
|
2239
|
+
retryCount: S.Number,
|
|
2240
|
+
response: S.optional(WebhookEventResponseDetail),
|
|
2241
|
+
})).annotate({
|
|
2242
|
+
identifier: "WebhookEventResponse",
|
|
2243
|
+
});
|
|
2244
|
+
export const WebhookEventListResponseEventsList = /*@__PURE__*/ S.Array(WebhookEventResponse);
|
|
2245
|
+
export const WebhookEventListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2246
|
+
events: WebhookEventListResponseEventsList,
|
|
2247
|
+
})).annotate({
|
|
2248
|
+
identifier: "WebhookEventListResponse",
|
|
2249
|
+
});
|
|
2250
|
+
export const ListWebhookSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2251
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
2252
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
2253
|
+
}).pipe(T.Http({
|
|
2254
|
+
method: "GET",
|
|
2255
|
+
uri: "/v2/data/webhooks/subscriptions",
|
|
2256
|
+
code: 200,
|
|
2257
|
+
}))).annotate({
|
|
2258
|
+
identifier: "ListWebhookSubscriptionsRequest",
|
|
2259
|
+
});
|
|
2260
|
+
export const ListWebhookSubscriptionsResponseSubscriptionsList =
|
|
2261
|
+
/*@__PURE__*/ S.Array(WebhookSubscriptionResponse);
|
|
2262
|
+
export const ListWebhookSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2263
|
+
subscriptions: ListWebhookSubscriptionsResponseSubscriptionsList,
|
|
2264
|
+
nextPageToken: S.optional(S.String),
|
|
2265
|
+
})).annotate({
|
|
2266
|
+
identifier: "ListWebhookSubscriptionsResponse",
|
|
2267
|
+
});
|
|
2268
|
+
export const ListX402DiscoveryMerchantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2269
|
+
payTo: S.String.pipe(T.Query()),
|
|
2270
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2271
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
2272
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/merchant", code: 200 }))).annotate({
|
|
2273
|
+
identifier: "ListX402DiscoveryMerchantRequest",
|
|
2274
|
+
});
|
|
2275
|
+
export const X402Version = /*@__PURE__*/ S.Number;
|
|
2276
|
+
export const X402DiscoveryResourceType = /*@__PURE__*/ S.String;
|
|
2277
|
+
export const X402V2PaymentRequirementsScheme = /*@__PURE__*/ S.String;
|
|
2278
|
+
export const X402V2Network = /*@__PURE__*/ S.String;
|
|
2279
|
+
export const X402V2PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2280
|
+
export const X402V2PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2281
|
+
scheme: X402V2PaymentRequirementsScheme,
|
|
2282
|
+
network: X402V2Network,
|
|
2283
|
+
asset: S.String,
|
|
2284
|
+
amount: S.String,
|
|
2285
|
+
payTo: S.String,
|
|
2286
|
+
maxTimeoutSeconds: S.Number,
|
|
2287
|
+
extra: S.optional(X402V2PaymentRequirementsExtraMap),
|
|
2288
|
+
})).annotate({
|
|
2289
|
+
identifier: "X402V2PaymentRequirements",
|
|
2290
|
+
});
|
|
2291
|
+
export const X402V1PaymentRequirementsScheme = /*@__PURE__*/ S.String;
|
|
2292
|
+
export const X402V1Network = /*@__PURE__*/ S.String;
|
|
2293
|
+
export const X402V1PaymentRequirementsOutputSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2294
|
+
export const X402V1PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2295
|
+
export const X402V1PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2296
|
+
scheme: X402V1PaymentRequirementsScheme,
|
|
2297
|
+
network: X402V1Network,
|
|
2298
|
+
maxAmountRequired: S.String,
|
|
2299
|
+
resource: S.String,
|
|
2300
|
+
description: S.String,
|
|
2301
|
+
mimeType: S.String,
|
|
2302
|
+
outputSchema: S.optional(X402V1PaymentRequirementsOutputSchemaMap),
|
|
2303
|
+
payTo: S.String,
|
|
2304
|
+
maxTimeoutSeconds: S.Number,
|
|
2305
|
+
asset: S.String,
|
|
2306
|
+
extra: S.optional(X402V1PaymentRequirementsExtraMap),
|
|
2307
|
+
})).annotate({
|
|
2308
|
+
identifier: "X402V1PaymentRequirements",
|
|
2309
|
+
});
|
|
2310
|
+
export const X402PaymentRequirements =
|
|
2311
|
+
/*@__PURE__*/ S.Unknown;
|
|
2312
|
+
export const X402DiscoveryResourceAcceptsList = /*@__PURE__*/ S.Array(X402PaymentRequirements);
|
|
2313
|
+
export const X402DiscoveryResourceExtensionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2314
|
+
export const X402ResourceQuality = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2315
|
+
l30DaysTotalCalls: S.optional(S.Number),
|
|
2316
|
+
l30DaysUniquePayers: S.optional(S.Number),
|
|
2317
|
+
lastCalledAt: S.optional(S.String),
|
|
2318
|
+
})).annotate({
|
|
2319
|
+
identifier: "X402ResourceQuality",
|
|
2320
|
+
});
|
|
2321
|
+
export const X402DiscoveryResourceTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
2322
|
+
export const X402DiscoveryResource = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2323
|
+
resource: S.String,
|
|
2324
|
+
description: S.optional(S.String),
|
|
2325
|
+
type: X402DiscoveryResourceType,
|
|
2326
|
+
x402Version: X402Version,
|
|
2327
|
+
lastUpdated: S.optional(S.String),
|
|
2328
|
+
accepts: S.optional(X402DiscoveryResourceAcceptsList),
|
|
2329
|
+
extensions: S.optional(X402DiscoveryResourceExtensionsMap),
|
|
2330
|
+
quality: S.optional(X402ResourceQuality),
|
|
2331
|
+
serviceName: S.optional(S.String),
|
|
2332
|
+
tags: S.optional(X402DiscoveryResourceTagsList),
|
|
2333
|
+
iconUrl: S.optional(S.String),
|
|
2334
|
+
})).annotate({
|
|
2335
|
+
identifier: "X402DiscoveryResource",
|
|
2336
|
+
});
|
|
2337
|
+
export const X402DiscoveryMerchantResponseResourcesList = /*@__PURE__*/ S.Array(X402DiscoveryResource);
|
|
2338
|
+
export const X402DiscoveryMerchantResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2339
|
+
limit: S.optional(S.Number),
|
|
2340
|
+
offset: S.optional(S.Number),
|
|
2341
|
+
total: S.optional(S.Number),
|
|
2342
|
+
})).annotate({
|
|
2343
|
+
identifier: "X402DiscoveryMerchantResponsePagination",
|
|
2344
|
+
});
|
|
2345
|
+
export const X402DiscoveryMerchantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2346
|
+
x402Version: X402Version,
|
|
2347
|
+
payTo: S.String,
|
|
2348
|
+
resources: X402DiscoveryMerchantResponseResourcesList,
|
|
2349
|
+
pagination: X402DiscoveryMerchantResponsePagination,
|
|
2350
|
+
})).annotate({
|
|
2351
|
+
identifier: "X402DiscoveryMerchantResponse",
|
|
2352
|
+
});
|
|
2353
|
+
export const ListX402DiscoveryResourcesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2354
|
+
type: S.optional(S.String.pipe(T.Query())),
|
|
2355
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2356
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
2357
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/resources", code: 200 }))).annotate({
|
|
2358
|
+
identifier: "ListX402DiscoveryResourcesRequest",
|
|
2359
|
+
});
|
|
2360
|
+
export const X402DiscoveryResourcesResponseItemsList = /*@__PURE__*/ S.Array(X402DiscoveryResource);
|
|
2361
|
+
export const X402DiscoveryResourcesResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2362
|
+
limit: S.optional(S.Number),
|
|
2363
|
+
offset: S.optional(S.Number),
|
|
2364
|
+
total: S.optional(S.Number),
|
|
2365
|
+
})).annotate({
|
|
2366
|
+
identifier: "X402DiscoveryResourcesResponsePagination",
|
|
2367
|
+
});
|
|
2368
|
+
export const X402DiscoveryResourcesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2369
|
+
x402Version: X402Version,
|
|
2370
|
+
items: X402DiscoveryResourcesResponseItemsList,
|
|
2371
|
+
pagination: X402DiscoveryResourcesResponsePagination,
|
|
2372
|
+
})).annotate({
|
|
2373
|
+
identifier: "X402DiscoveryResourcesResponse",
|
|
2374
|
+
});
|
|
2375
|
+
export const LookupEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2376
|
+
email: S.optional(S.String.pipe(T.Query())),
|
|
2377
|
+
oauthProvider: S.optional(OAuth2ProviderType.pipe(T.Query())),
|
|
2378
|
+
oauthSubject: S.optional(S.String.pipe(T.Query())),
|
|
2379
|
+
phoneNumber: S.optional(S.String.pipe(T.Query())),
|
|
2380
|
+
siweAddress: S.optional(S.String.pipe(T.Query())),
|
|
2381
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/end-users/lookup", code: 200 }))).annotate({
|
|
2382
|
+
identifier: "LookupEndUserRequest",
|
|
2383
|
+
});
|
|
2384
|
+
export const LookupEndUserResponseEndUsersList = /*@__PURE__*/ S.Array(EndUser);
|
|
2385
|
+
export const LookupEndUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2386
|
+
endUsers: LookupEndUserResponseEndUsersList,
|
|
2387
|
+
})).annotate({
|
|
2388
|
+
identifier: "LookupEndUserResponse",
|
|
2389
|
+
});
|
|
2390
|
+
export const PostX402DiscoveryMcpRequestJsonrpc = /*@__PURE__*/ S.String;
|
|
2391
|
+
export const PostX402DiscoveryMcpRequestId =
|
|
2392
|
+
/*@__PURE__*/ S.Unknown;
|
|
2393
|
+
export const PostX402DiscoveryMcpRequestParamsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2394
|
+
export const PostX402DiscoveryMcpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2395
|
+
jsonrpc: PostX402DiscoveryMcpRequestJsonrpc,
|
|
2396
|
+
id: S.optional(PostX402DiscoveryMcpRequestId),
|
|
2397
|
+
method: S.String,
|
|
2398
|
+
params: S.optional(PostX402DiscoveryMcpRequestParamsMap),
|
|
2399
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/x402/discovery/mcp", code: 200 }))).annotate({
|
|
2400
|
+
identifier: "PostX402DiscoveryMcpRequest",
|
|
2401
|
+
});
|
|
2402
|
+
export const X402McpResponseJsonrpc = /*@__PURE__*/ S.String;
|
|
2403
|
+
export const X402McpResponseId =
|
|
2404
|
+
/*@__PURE__*/ S.Unknown;
|
|
2405
|
+
export const X402McpResponseResultMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2406
|
+
export const X402McpErrorDataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2407
|
+
export const X402McpError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2408
|
+
code: S.Number,
|
|
2409
|
+
message: S.String,
|
|
2410
|
+
data: S.optional(X402McpErrorDataMap),
|
|
2411
|
+
})).annotate({ identifier: "X402McpError" });
|
|
2412
|
+
export const X402McpResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2413
|
+
jsonrpc: X402McpResponseJsonrpc,
|
|
2414
|
+
id: S.optional(S.NullOr(X402McpResponseId)),
|
|
2415
|
+
result: S.optional(X402McpResponseResultMap),
|
|
2416
|
+
error: S.optional(X402McpError),
|
|
2417
|
+
})).annotate({
|
|
2418
|
+
identifier: "X402McpResponse",
|
|
2419
|
+
});
|
|
2420
|
+
export const PrepareAndSendUserOperationRequestCallsList =
|
|
2421
|
+
/*@__PURE__*/ S.Array(EvmCall);
|
|
2422
|
+
export const PaymasterContext = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2423
|
+
export const PrepareAndSendUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2424
|
+
address: S.String.pipe(T.Label()),
|
|
2425
|
+
network: EvmUserOperationNetwork,
|
|
2426
|
+
calls: PrepareAndSendUserOperationRequestCallsList,
|
|
2427
|
+
paymasterUrl: S.optional(S.String),
|
|
2428
|
+
paymasterContext: S.optional(PaymasterContext),
|
|
2429
|
+
}).pipe(T.Http({
|
|
2430
|
+
method: "POST",
|
|
2431
|
+
uri: "/v2/evm/smart-accounts/{address}/user-operations/prepare-and-send",
|
|
2432
|
+
code: 200,
|
|
2433
|
+
}))).annotate({
|
|
2434
|
+
identifier: "PrepareAndSendUserOperationRequest",
|
|
2435
|
+
});
|
|
2436
|
+
export const PrepareUserOperationRequestCallsList = /*@__PURE__*/ S.Array(EvmCall);
|
|
2437
|
+
export const PrepareUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2438
|
+
address: S.String.pipe(T.Label()),
|
|
2439
|
+
network: EvmUserOperationNetwork,
|
|
2440
|
+
calls: PrepareUserOperationRequestCallsList,
|
|
2441
|
+
paymasterUrl: S.optional(S.String),
|
|
2442
|
+
paymasterContext: S.optional(PaymasterContext),
|
|
2443
|
+
dataSuffix: S.optional(S.String),
|
|
2444
|
+
}).pipe(T.Http({
|
|
2445
|
+
method: "POST",
|
|
2446
|
+
uri: "/v2/evm/smart-accounts/{address}/user-operations",
|
|
2447
|
+
code: 200,
|
|
2448
|
+
}))).annotate({
|
|
2449
|
+
identifier: "PrepareUserOperationRequest",
|
|
2450
|
+
});
|
|
2451
|
+
export const RequestEvmFaucetRequestNetwork = /*@__PURE__*/ S.String;
|
|
2452
|
+
export const RequestEvmFaucetRequestToken = /*@__PURE__*/ S.String;
|
|
2453
|
+
export const RequestEvmFaucetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2454
|
+
network: RequestEvmFaucetRequestNetwork,
|
|
2455
|
+
address: S.String,
|
|
2456
|
+
token: RequestEvmFaucetRequestToken,
|
|
2457
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/evm/faucet", code: 200 }))).annotate({
|
|
2458
|
+
identifier: "RequestEvmFaucetRequest",
|
|
2459
|
+
});
|
|
2460
|
+
export const RequestEvmFaucetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2461
|
+
transactionHash: S.String,
|
|
2462
|
+
})).annotate({
|
|
2463
|
+
identifier: "RequestEvmFaucetResponse",
|
|
2464
|
+
});
|
|
2465
|
+
export const OnrampLimitUpgradeIdentityFields = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2466
|
+
ssnLast4: S.optional(S.String),
|
|
2467
|
+
dateOfBirth: S.optional(DateOfBirth),
|
|
2468
|
+
})).annotate({
|
|
2469
|
+
identifier: "OnrampLimitUpgradeIdentityFields",
|
|
2470
|
+
});
|
|
2471
|
+
export const RequestLimitsUpgradeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2472
|
+
userId: S.String,
|
|
2473
|
+
userIdType: OnrampUserIdType,
|
|
2474
|
+
fields: S.optional(OnrampLimitUpgradeIdentityFields),
|
|
2475
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/onramp/limits/upgrade", code: 200 }))).annotate({
|
|
2476
|
+
identifier: "RequestLimitsUpgradeRequest",
|
|
2477
|
+
});
|
|
2478
|
+
export const RequestLimitsUpgradeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2479
|
+
identifier: "RequestLimitsUpgradeResponse",
|
|
2480
|
+
});
|
|
2481
|
+
export const RequestSolanaFaucetRequestToken = /*@__PURE__*/ S.String;
|
|
2482
|
+
export const RequestSolanaFaucetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2483
|
+
address: S.String,
|
|
2484
|
+
token: RequestSolanaFaucetRequestToken,
|
|
2485
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/solana/faucet", code: 200 }))).annotate({
|
|
2486
|
+
identifier: "RequestSolanaFaucetRequest",
|
|
2487
|
+
});
|
|
2488
|
+
export const RequestSolanaFaucetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2489
|
+
transactionSignature: S.String,
|
|
2490
|
+
})).annotate({
|
|
2491
|
+
identifier: "RequestSolanaFaucetResponse",
|
|
2492
|
+
});
|
|
2493
|
+
export const RevokeDelegationForEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2494
|
+
userId: S.String.pipe(T.Label()),
|
|
2495
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2496
|
+
walletSecretId: S.optional(S.String),
|
|
2497
|
+
}).pipe(T.Http({
|
|
2498
|
+
method: "DELETE",
|
|
2499
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/delegation",
|
|
2500
|
+
code: 200,
|
|
2501
|
+
}))).annotate({
|
|
2502
|
+
identifier: "RevokeDelegationForEndUserRequest",
|
|
2503
|
+
});
|
|
2504
|
+
export const RevokeDelegationForEndUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2505
|
+
identifier: "RevokeDelegationForEndUserResponse",
|
|
2506
|
+
});
|
|
2507
|
+
export const RevokeDelegationForEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2508
|
+
userId: S.String.pipe(T.Label()),
|
|
2509
|
+
address: S.String.pipe(T.Label()),
|
|
2510
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2511
|
+
walletSecretId: S.optional(S.String),
|
|
2512
|
+
}).pipe(T.Http({
|
|
2513
|
+
method: "DELETE",
|
|
2514
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/address/{address}/delegation",
|
|
2515
|
+
code: 200,
|
|
2516
|
+
}))).annotate({
|
|
2517
|
+
identifier: "RevokeDelegationForEndUserAccountRequest",
|
|
2518
|
+
});
|
|
2519
|
+
export const RevokeDelegationForEndUserAccountResponse =
|
|
2520
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2521
|
+
identifier: "RevokeDelegationForEndUserAccountResponse",
|
|
2522
|
+
});
|
|
2523
|
+
export const RevokeSpendPermissionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2524
|
+
address: S.String.pipe(T.Label()),
|
|
2525
|
+
network: SpendPermissionNetwork,
|
|
2526
|
+
permissionHash: S.String,
|
|
2527
|
+
paymasterUrl: S.optional(S.String),
|
|
2528
|
+
}).pipe(T.Http({
|
|
2529
|
+
method: "POST",
|
|
2530
|
+
uri: "/v2/evm/smart-accounts/{address}/spend-permissions/revoke",
|
|
2531
|
+
code: 200,
|
|
2532
|
+
}))).annotate({
|
|
2533
|
+
identifier: "RevokeSpendPermissionRequest",
|
|
2534
|
+
});
|
|
2535
|
+
export const RunSQLQueryRequestCache = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2536
|
+
maxAgeMs: S.optional(S.Number),
|
|
2537
|
+
})).annotate({
|
|
2538
|
+
identifier: "RunSQLQueryRequestCache",
|
|
2539
|
+
});
|
|
2540
|
+
export const RunSQLQueryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2541
|
+
sql: S.String,
|
|
2542
|
+
cache: S.optional(RunSQLQueryRequestCache),
|
|
2543
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/data/query/run", code: 200 }))).annotate({
|
|
2544
|
+
identifier: "RunSQLQueryRequest",
|
|
2545
|
+
});
|
|
2546
|
+
export const OnchainDataResultResultItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2547
|
+
export const OnchainDataResultResultList = /*@__PURE__*/ S.Array(OnchainDataResultResultItemMap);
|
|
2548
|
+
export const OnchainDataResultSchemaColumnsItemType = /*@__PURE__*/ S.String;
|
|
2549
|
+
export const OnchainDataResultSchemaColumnsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2550
|
+
name: S.optional(S.String),
|
|
2551
|
+
type: S.optional(OnchainDataResultSchemaColumnsItemType),
|
|
2552
|
+
})).annotate({
|
|
2553
|
+
identifier: "OnchainDataResultSchemaColumnsItem",
|
|
2554
|
+
});
|
|
2555
|
+
export const OnchainDataResultSchemaColumnsList = /*@__PURE__*/ S.Array(OnchainDataResultSchemaColumnsItem);
|
|
2556
|
+
export const OnchainDataResultSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2557
|
+
columns: S.optional(OnchainDataResultSchemaColumnsList),
|
|
2558
|
+
})).annotate({
|
|
2559
|
+
identifier: "OnchainDataResultSchema",
|
|
2560
|
+
});
|
|
2561
|
+
export const OnchainDataResultMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2562
|
+
cached: S.optional(S.Boolean),
|
|
2563
|
+
executionTimestamp: S.optional(S.String),
|
|
2564
|
+
executionTimeMs: S.optional(S.Number),
|
|
2565
|
+
rowCount: S.optional(S.Number),
|
|
2566
|
+
})).annotate({
|
|
2567
|
+
identifier: "OnchainDataResultMetadata",
|
|
2568
|
+
});
|
|
2569
|
+
export const OnchainDataResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2570
|
+
result: S.optional(OnchainDataResultResultList),
|
|
2571
|
+
schema: S.optional(OnchainDataResultSchema),
|
|
2572
|
+
metadata: S.optional(OnchainDataResultMetadata),
|
|
2573
|
+
})).annotate({
|
|
2574
|
+
identifier: "OnchainDataResult",
|
|
2575
|
+
});
|
|
2576
|
+
export const SearchX402ResourcesRequestExtensionsList = /*@__PURE__*/ S.Array(S.String);
|
|
2577
|
+
export const SearchX402ResourcesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2578
|
+
query: S.optional(S.String.pipe(T.Query())),
|
|
2579
|
+
network: S.optional(S.String.pipe(T.Query())),
|
|
2580
|
+
asset: S.optional(S.String.pipe(T.Query())),
|
|
2581
|
+
scheme: S.optional(S.String.pipe(T.Query())),
|
|
2582
|
+
payTo: S.optional(S.String.pipe(T.Query())),
|
|
2583
|
+
urlSubstring: S.optional(S.String.pipe(T.Query())),
|
|
2584
|
+
maxUsdPrice: S.optional(S.String.pipe(T.Query())),
|
|
2585
|
+
extensions: S.optional(SearchX402ResourcesRequestExtensionsList.pipe(T.Query())),
|
|
2586
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2587
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/search", code: 200 }))).annotate({
|
|
2588
|
+
identifier: "SearchX402ResourcesRequest",
|
|
2589
|
+
});
|
|
2590
|
+
export const X402SearchResourcesResponseResourcesList = /*@__PURE__*/ S.Array(X402DiscoveryResource);
|
|
2591
|
+
export const X402SearchResourcesResponseSearchMethod = /*@__PURE__*/ S.String;
|
|
2592
|
+
export const X402SearchResourcesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2593
|
+
resources: X402SearchResourcesResponseResourcesList,
|
|
2594
|
+
partialResults: S.Boolean,
|
|
2595
|
+
searchMethod: S.optional(X402SearchResourcesResponseSearchMethod),
|
|
2596
|
+
x402Version: X402Version,
|
|
2597
|
+
})).annotate({
|
|
2598
|
+
identifier: "X402SearchResourcesResponse",
|
|
2599
|
+
});
|
|
2600
|
+
export const SendEvmAssetWithEndUserAccountRequestNetwork =
|
|
2601
|
+
/*@__PURE__*/ S.String;
|
|
2602
|
+
export const SendEvmAssetWithEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2603
|
+
userId: S.String.pipe(T.Label()),
|
|
2604
|
+
address: S.String.pipe(T.Label()),
|
|
2605
|
+
asset: S.String.pipe(T.Label()),
|
|
2606
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2607
|
+
to: S.String,
|
|
2608
|
+
amount: S.String,
|
|
2609
|
+
network: SendEvmAssetWithEndUserAccountRequestNetwork,
|
|
2610
|
+
useCdpPaymaster: S.optional(S.Boolean),
|
|
2611
|
+
paymasterUrl: S.optional(S.String),
|
|
2612
|
+
paymasterContext: S.optional(PaymasterContext),
|
|
2613
|
+
walletSecretId: S.optional(S.String),
|
|
2614
|
+
}).pipe(T.Http({
|
|
2615
|
+
method: "POST",
|
|
2616
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/{address}/send/{asset}",
|
|
2617
|
+
code: 200,
|
|
2618
|
+
}))).annotate({
|
|
2619
|
+
identifier: "SendEvmAssetWithEndUserAccountRequest",
|
|
2620
|
+
});
|
|
2621
|
+
export const SendEvmAssetWithEndUserAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2622
|
+
transactionHash: S.optional(S.NullOr(S.String)),
|
|
2623
|
+
userOpHash: S.optional(S.NullOr(S.String)),
|
|
2624
|
+
})).annotate({
|
|
2625
|
+
identifier: "SendEvmAssetWithEndUserAccountResponse",
|
|
2626
|
+
});
|
|
2627
|
+
export const SendEvmTransactionRequestNetwork = /*@__PURE__*/ S.String;
|
|
2628
|
+
export const SendEvmTransactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2629
|
+
address: S.String.pipe(T.Label()),
|
|
2630
|
+
network: SendEvmTransactionRequestNetwork,
|
|
2631
|
+
transaction: S.String,
|
|
2632
|
+
}).pipe(T.Http({
|
|
2633
|
+
method: "POST",
|
|
2634
|
+
uri: "/v2/evm/accounts/{address}/send/transaction",
|
|
2635
|
+
code: 200,
|
|
2636
|
+
}))).annotate({
|
|
2637
|
+
identifier: "SendEvmTransactionRequest",
|
|
2638
|
+
});
|
|
2639
|
+
export const SendEvmTransactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2640
|
+
transactionHash: S.String,
|
|
2641
|
+
})).annotate({
|
|
2642
|
+
identifier: "SendEvmTransactionResponse",
|
|
2643
|
+
});
|
|
2644
|
+
export const SendEvmTransactionWithEndUserAccountRequestNetwork =
|
|
2645
|
+
/*@__PURE__*/ S.String;
|
|
2646
|
+
export const SendEvmTransactionWithEndUserAccountRequest =
|
|
2647
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2648
|
+
userId: S.String.pipe(T.Label()),
|
|
2649
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2650
|
+
address: S.String,
|
|
2651
|
+
network: SendEvmTransactionWithEndUserAccountRequestNetwork,
|
|
2652
|
+
walletSecretId: S.optional(S.String),
|
|
2653
|
+
transaction: S.String,
|
|
2654
|
+
}).pipe(T.Http({
|
|
2655
|
+
method: "POST",
|
|
2656
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/send/transaction",
|
|
2657
|
+
code: 200,
|
|
2658
|
+
}))).annotate({
|
|
2659
|
+
identifier: "SendEvmTransactionWithEndUserAccountRequest",
|
|
2660
|
+
});
|
|
2661
|
+
export const SendEvmTransactionWithEndUserAccountResponse =
|
|
2662
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2663
|
+
transactionHash: S.String,
|
|
2664
|
+
})).annotate({
|
|
2665
|
+
identifier: "SendEvmTransactionWithEndUserAccountResponse",
|
|
2666
|
+
});
|
|
2667
|
+
export const SendSolanaAssetWithEndUserAccountRequestNetwork =
|
|
2668
|
+
/*@__PURE__*/ S.String;
|
|
2669
|
+
export const SendSolanaAssetWithEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2670
|
+
userId: S.String.pipe(T.Label()),
|
|
2671
|
+
address: S.String.pipe(T.Label()),
|
|
2672
|
+
asset: S.String.pipe(T.Label()),
|
|
2673
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2674
|
+
to: S.String,
|
|
2675
|
+
amount: S.String,
|
|
2676
|
+
network: SendSolanaAssetWithEndUserAccountRequestNetwork,
|
|
2677
|
+
createRecipientAta: S.optional(S.Boolean),
|
|
2678
|
+
walletSecretId: S.optional(S.String),
|
|
2679
|
+
useCdpSponsor: S.optional(S.Boolean),
|
|
2680
|
+
}).pipe(T.Http({
|
|
2681
|
+
method: "POST",
|
|
2682
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/solana/{address}/send/{asset}",
|
|
2683
|
+
code: 200,
|
|
2684
|
+
}))).annotate({
|
|
2685
|
+
identifier: "SendSolanaAssetWithEndUserAccountRequest",
|
|
2686
|
+
});
|
|
2687
|
+
export const SendSolanaAssetWithEndUserAccountResponse =
|
|
2688
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2689
|
+
transactionSignature: S.String,
|
|
2690
|
+
})).annotate({
|
|
2691
|
+
identifier: "SendSolanaAssetWithEndUserAccountResponse",
|
|
2692
|
+
});
|
|
2693
|
+
export const SendSolanaTransactionRequestNetwork = /*@__PURE__*/ S.String;
|
|
2694
|
+
export const SendSolanaTransactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2695
|
+
network: SendSolanaTransactionRequestNetwork,
|
|
2696
|
+
transaction: S.String,
|
|
2697
|
+
useCdpSponsor: S.optional(S.Boolean),
|
|
2698
|
+
}).pipe(T.Http({
|
|
2699
|
+
method: "POST",
|
|
2700
|
+
uri: "/v2/solana/accounts/send/transaction",
|
|
2701
|
+
code: 200,
|
|
2702
|
+
}))).annotate({
|
|
2703
|
+
identifier: "SendSolanaTransactionRequest",
|
|
2704
|
+
});
|
|
2705
|
+
export const SendSolanaTransactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2706
|
+
transactionSignature: S.String,
|
|
2707
|
+
})).annotate({
|
|
2708
|
+
identifier: "SendSolanaTransactionResponse",
|
|
2709
|
+
});
|
|
2710
|
+
export const SendSolanaTransactionWithEndUserAccountRequestNetwork =
|
|
2711
|
+
/*@__PURE__*/ S.String;
|
|
2712
|
+
export const SendSolanaTransactionWithEndUserAccountRequest =
|
|
2713
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2714
|
+
userId: S.String.pipe(T.Label()),
|
|
2715
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2716
|
+
address: S.String,
|
|
2717
|
+
network: SendSolanaTransactionWithEndUserAccountRequestNetwork,
|
|
2718
|
+
walletSecretId: S.optional(S.String),
|
|
2719
|
+
transaction: S.String,
|
|
2720
|
+
useCdpSponsor: S.optional(S.Boolean),
|
|
2721
|
+
}).pipe(T.Http({
|
|
2722
|
+
method: "POST",
|
|
2723
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/solana/send/transaction",
|
|
2724
|
+
code: 200,
|
|
2725
|
+
}))).annotate({
|
|
2726
|
+
identifier: "SendSolanaTransactionWithEndUserAccountRequest",
|
|
2727
|
+
});
|
|
2728
|
+
export const SendSolanaTransactionWithEndUserAccountResponse =
|
|
2729
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2730
|
+
transactionSignature: S.String,
|
|
2731
|
+
})).annotate({
|
|
2732
|
+
identifier: "SendSolanaTransactionWithEndUserAccountResponse",
|
|
2733
|
+
});
|
|
2734
|
+
export const SendUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2735
|
+
address: S.String.pipe(T.Label()),
|
|
2736
|
+
userOpHash: S.String.pipe(T.Label()),
|
|
2737
|
+
signature: S.String,
|
|
2738
|
+
}).pipe(T.Http({
|
|
2739
|
+
method: "POST",
|
|
2740
|
+
uri: "/v2/evm/smart-accounts/{address}/user-operations/{userOpHash}/send",
|
|
2741
|
+
code: 200,
|
|
2742
|
+
}))).annotate({
|
|
2743
|
+
identifier: "SendUserOperationRequest",
|
|
2744
|
+
});
|
|
2745
|
+
export const SendUserOperationWithEndUserAccountRequestCallsList =
|
|
2746
|
+
/*@__PURE__*/ S.Array(EvmCall);
|
|
2747
|
+
export const SendUserOperationWithEndUserAccountRequest =
|
|
2748
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2749
|
+
userId: S.String.pipe(T.Label()),
|
|
2750
|
+
address: S.String.pipe(T.Label()),
|
|
2751
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
2752
|
+
network: EvmUserOperationNetwork,
|
|
2753
|
+
calls: SendUserOperationWithEndUserAccountRequestCallsList,
|
|
2754
|
+
useCdpPaymaster: S.Boolean,
|
|
2755
|
+
paymasterUrl: S.optional(S.String),
|
|
2756
|
+
paymasterContext: S.optional(PaymasterContext),
|
|
2757
|
+
walletSecretId: S.optional(S.String),
|
|
2758
|
+
dataSuffix: S.optional(S.String),
|
|
2759
|
+
}).pipe(T.Http({
|
|
2760
|
+
method: "POST",
|
|
2761
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/smart-accounts/{address}/send",
|
|
2762
|
+
code: 200,
|
|
2763
|
+
}))).annotate({
|
|
2764
|
+
identifier: "SendUserOperationWithEndUserAccountRequest",
|
|
2765
|
+
});
|
|
2766
|
+
export const X402ExactEvmPayloadAuthorization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2767
|
+
from: S.String,
|
|
2768
|
+
to: S.String,
|
|
2769
|
+
value: S.String,
|
|
2770
|
+
validAfter: S.String,
|
|
2771
|
+
validBefore: S.String,
|
|
2772
|
+
nonce: S.String,
|
|
2773
|
+
})).annotate({
|
|
2774
|
+
identifier: "X402ExactEvmPayloadAuthorization",
|
|
2775
|
+
});
|
|
2776
|
+
export const X402ExactEvmPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2777
|
+
signature: S.String,
|
|
2778
|
+
authorization: X402ExactEvmPayloadAuthorization,
|
|
2779
|
+
})).annotate({
|
|
2780
|
+
identifier: "X402ExactEvmPayload",
|
|
2781
|
+
});
|
|
2782
|
+
export const X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted =
|
|
2783
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2784
|
+
token: S.String,
|
|
2785
|
+
amount: S.String,
|
|
2786
|
+
})).annotate({
|
|
2787
|
+
identifier: "X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted",
|
|
2788
|
+
});
|
|
2789
|
+
export const X402ExactEvmPermit2PayloadPermit2AuthorizationWitness =
|
|
2790
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2791
|
+
to: S.String,
|
|
2792
|
+
validAfter: S.String,
|
|
2793
|
+
extra: S.optional(S.String),
|
|
2794
|
+
})).annotate({
|
|
2795
|
+
identifier: "X402ExactEvmPermit2PayloadPermit2AuthorizationWitness",
|
|
2796
|
+
});
|
|
2797
|
+
export const X402ExactEvmPermit2PayloadPermit2Authorization =
|
|
2798
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2799
|
+
from: S.String,
|
|
2800
|
+
permitted: X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted,
|
|
2801
|
+
spender: S.String,
|
|
2802
|
+
nonce: S.String,
|
|
2803
|
+
deadline: S.String,
|
|
2804
|
+
witness: X402ExactEvmPermit2PayloadPermit2AuthorizationWitness,
|
|
2805
|
+
})).annotate({
|
|
2806
|
+
identifier: "X402ExactEvmPermit2PayloadPermit2Authorization",
|
|
2807
|
+
});
|
|
2808
|
+
export const X402ExactEvmPermit2Payload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2809
|
+
signature: S.String,
|
|
2810
|
+
permit2Authorization: X402ExactEvmPermit2PayloadPermit2Authorization,
|
|
2811
|
+
})).annotate({
|
|
2812
|
+
identifier: "X402ExactEvmPermit2Payload",
|
|
2813
|
+
});
|
|
2814
|
+
export const X402ExactSolanaPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2815
|
+
transaction: S.String,
|
|
2816
|
+
})).annotate({
|
|
2817
|
+
identifier: "X402ExactSolanaPayload",
|
|
2818
|
+
});
|
|
2819
|
+
export const X402UptoEvmPermit2PayloadPermit2AuthorizationPermitted =
|
|
2820
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2821
|
+
token: S.String,
|
|
2822
|
+
amount: S.String,
|
|
2823
|
+
})).annotate({
|
|
2824
|
+
identifier: "X402UptoEvmPermit2PayloadPermit2AuthorizationPermitted",
|
|
2825
|
+
});
|
|
2826
|
+
export const X402UptoEvmPermit2PayloadPermit2AuthorizationWitness =
|
|
2827
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2828
|
+
to: S.String,
|
|
2829
|
+
facilitator: S.String,
|
|
2830
|
+
validAfter: S.String,
|
|
2831
|
+
})).annotate({
|
|
2832
|
+
identifier: "X402UptoEvmPermit2PayloadPermit2AuthorizationWitness",
|
|
2833
|
+
});
|
|
2834
|
+
export const X402UptoEvmPermit2PayloadPermit2Authorization =
|
|
2835
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2836
|
+
from: S.String,
|
|
2837
|
+
permitted: X402UptoEvmPermit2PayloadPermit2AuthorizationPermitted,
|
|
2838
|
+
spender: S.String,
|
|
2839
|
+
nonce: S.String,
|
|
2840
|
+
deadline: S.String,
|
|
2841
|
+
witness: X402UptoEvmPermit2PayloadPermit2AuthorizationWitness,
|
|
2842
|
+
})).annotate({
|
|
2843
|
+
identifier: "X402UptoEvmPermit2PayloadPermit2Authorization",
|
|
2844
|
+
});
|
|
2845
|
+
export const X402UptoEvmPermit2Payload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2846
|
+
signature: S.String,
|
|
2847
|
+
permit2Authorization: X402UptoEvmPermit2PayloadPermit2Authorization,
|
|
2848
|
+
})).annotate({
|
|
2849
|
+
identifier: "X402UptoEvmPermit2Payload",
|
|
2850
|
+
});
|
|
2851
|
+
export const X402BatchSettlementDepositPayloadType = /*@__PURE__*/ S.String;
|
|
2852
|
+
export const X402BatchSettlementChannelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2853
|
+
payer: S.String,
|
|
2854
|
+
payerAuthorizer: S.String,
|
|
2855
|
+
receiver: S.String,
|
|
2856
|
+
receiverAuthorizer: S.String,
|
|
2857
|
+
token: S.String,
|
|
2858
|
+
withdrawDelay: S.Number,
|
|
2859
|
+
salt: S.String,
|
|
2860
|
+
})).annotate({
|
|
2861
|
+
identifier: "X402BatchSettlementChannelConfig",
|
|
2862
|
+
});
|
|
2863
|
+
export const X402BatchSettlementVoucher = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2864
|
+
channelId: S.String,
|
|
2865
|
+
maxClaimableAmount: S.String,
|
|
2866
|
+
signature: S.String,
|
|
2867
|
+
})).annotate({
|
|
2868
|
+
identifier: "X402BatchSettlementVoucher",
|
|
2869
|
+
});
|
|
2870
|
+
export const X402BatchSettlementDepositPayloadDepositAuthorizationErc3009Authorization =
|
|
2871
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2872
|
+
validAfter: S.String,
|
|
2873
|
+
validBefore: S.String,
|
|
2874
|
+
salt: S.String,
|
|
2875
|
+
signature: S.String,
|
|
2876
|
+
})).annotate({
|
|
2877
|
+
identifier: "X402BatchSettlementDepositPayloadDepositAuthorizationErc3009Authorization",
|
|
2878
|
+
});
|
|
2879
|
+
export const X402BatchSettlementDepositPayloadDepositAuthorization =
|
|
2880
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2881
|
+
erc3009Authorization: S.optional(X402BatchSettlementDepositPayloadDepositAuthorizationErc3009Authorization),
|
|
2882
|
+
})).annotate({
|
|
2883
|
+
identifier: "X402BatchSettlementDepositPayloadDepositAuthorization",
|
|
2884
|
+
});
|
|
2885
|
+
export const X402BatchSettlementDepositPayloadDeposit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2886
|
+
amount: S.String,
|
|
2887
|
+
authorization: X402BatchSettlementDepositPayloadDepositAuthorization,
|
|
2888
|
+
})).annotate({
|
|
2889
|
+
identifier: "X402BatchSettlementDepositPayloadDeposit",
|
|
2890
|
+
});
|
|
2891
|
+
export const X402BatchSettlementDepositPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2892
|
+
type: X402BatchSettlementDepositPayloadType,
|
|
2893
|
+
channelConfig: X402BatchSettlementChannelConfig,
|
|
2894
|
+
voucher: X402BatchSettlementVoucher,
|
|
2895
|
+
deposit: X402BatchSettlementDepositPayloadDeposit,
|
|
2896
|
+
})).annotate({
|
|
2897
|
+
identifier: "X402BatchSettlementDepositPayload",
|
|
2898
|
+
});
|
|
2899
|
+
export const X402BatchSettlementVoucherPayloadType = /*@__PURE__*/ S.String;
|
|
2900
|
+
export const X402BatchSettlementVoucherPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2901
|
+
type: X402BatchSettlementVoucherPayloadType,
|
|
2902
|
+
channelConfig: X402BatchSettlementChannelConfig,
|
|
2903
|
+
voucher: X402BatchSettlementVoucher,
|
|
2904
|
+
})).annotate({
|
|
2905
|
+
identifier: "X402BatchSettlementVoucherPayload",
|
|
2906
|
+
});
|
|
2907
|
+
export const X402BatchSettlementRefundPayloadType = /*@__PURE__*/ S.String;
|
|
2908
|
+
export const X402BatchSettlementClaimVoucher = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2909
|
+
channel: X402BatchSettlementChannelConfig,
|
|
2910
|
+
maxClaimableAmount: S.String,
|
|
2911
|
+
})).annotate({
|
|
2912
|
+
identifier: "X402BatchSettlementClaimVoucher",
|
|
2913
|
+
});
|
|
2914
|
+
export const X402BatchSettlementClaim = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2915
|
+
voucher: X402BatchSettlementClaimVoucher,
|
|
2916
|
+
signature: S.String,
|
|
2917
|
+
totalClaimed: S.String,
|
|
2918
|
+
})).annotate({
|
|
2919
|
+
identifier: "X402BatchSettlementClaim",
|
|
2920
|
+
});
|
|
2921
|
+
export const X402BatchSettlementRefundPayloadClaimsList = /*@__PURE__*/ S.Array(X402BatchSettlementClaim);
|
|
2922
|
+
export const X402BatchSettlementRefundPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2923
|
+
type: X402BatchSettlementRefundPayloadType,
|
|
2924
|
+
channelConfig: X402BatchSettlementChannelConfig,
|
|
2925
|
+
voucher: X402BatchSettlementVoucher,
|
|
2926
|
+
amount: S.optional(S.String),
|
|
2927
|
+
refundNonce: S.optional(S.String),
|
|
2928
|
+
claims: S.optional(X402BatchSettlementRefundPayloadClaimsList),
|
|
2929
|
+
refundAuthorizerSignature: S.optional(S.String),
|
|
2930
|
+
claimAuthorizerSignature: S.optional(S.String),
|
|
2931
|
+
})).annotate({
|
|
2932
|
+
identifier: "X402BatchSettlementRefundPayload",
|
|
2933
|
+
});
|
|
2934
|
+
export const X402BatchSettlementClaimPayloadType = /*@__PURE__*/ S.String;
|
|
2935
|
+
export const X402BatchSettlementClaimPayloadClaimsList = /*@__PURE__*/ S.Array(X402BatchSettlementClaim);
|
|
2936
|
+
export const X402BatchSettlementClaimPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2937
|
+
type: X402BatchSettlementClaimPayloadType,
|
|
2938
|
+
claims: X402BatchSettlementClaimPayloadClaimsList,
|
|
2939
|
+
claimAuthorizerSignature: S.optional(S.String),
|
|
2940
|
+
})).annotate({
|
|
2941
|
+
identifier: "X402BatchSettlementClaimPayload",
|
|
2942
|
+
});
|
|
2943
|
+
export const X402BatchSettlementSettlePayloadType = /*@__PURE__*/ S.String;
|
|
2944
|
+
export const X402BatchSettlementSettlePayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2945
|
+
type: X402BatchSettlementSettlePayloadType,
|
|
2946
|
+
receiver: S.String,
|
|
2947
|
+
token: S.String,
|
|
2948
|
+
})).annotate({
|
|
2949
|
+
identifier: "X402BatchSettlementSettlePayload",
|
|
2950
|
+
});
|
|
2951
|
+
export const X402BatchSettlementEvmPayload =
|
|
2952
|
+
/*@__PURE__*/ S.Unknown;
|
|
2953
|
+
export const X402V2PaymentPayloadPayload =
|
|
2954
|
+
/*@__PURE__*/ S.Unknown;
|
|
2955
|
+
export const X402ResourceInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2956
|
+
url: S.optional(S.String),
|
|
2957
|
+
description: S.optional(S.String),
|
|
2958
|
+
mimeType: S.optional(S.String),
|
|
2959
|
+
})).annotate({
|
|
2960
|
+
identifier: "X402ResourceInfo",
|
|
2961
|
+
});
|
|
2962
|
+
export const X402V2PaymentPayloadExtensionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2963
|
+
export const X402V2PaymentPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2964
|
+
x402Version: X402Version,
|
|
2965
|
+
payload: X402V2PaymentPayloadPayload,
|
|
2966
|
+
accepted: X402V2PaymentRequirements,
|
|
2967
|
+
resource: S.optional(X402ResourceInfo),
|
|
2968
|
+
extensions: S.optional(X402V2PaymentPayloadExtensionsMap),
|
|
2969
|
+
})).annotate({
|
|
2970
|
+
identifier: "X402V2PaymentPayload",
|
|
2971
|
+
});
|
|
2972
|
+
export const X402V1PaymentPayloadScheme = /*@__PURE__*/ S.String;
|
|
2973
|
+
export const X402V1PaymentPayloadPayload =
|
|
2974
|
+
/*@__PURE__*/ S.Unknown;
|
|
2975
|
+
export const X402V1PaymentPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2976
|
+
x402Version: X402Version,
|
|
2977
|
+
scheme: X402V1PaymentPayloadScheme,
|
|
2978
|
+
network: X402V1Network,
|
|
2979
|
+
payload: X402V1PaymentPayloadPayload,
|
|
2980
|
+
})).annotate({
|
|
2981
|
+
identifier: "X402V1PaymentPayload",
|
|
2982
|
+
});
|
|
2983
|
+
export const X402PaymentPayload =
|
|
2984
|
+
/*@__PURE__*/ S.Unknown;
|
|
2985
|
+
export const SettleX402PaymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2986
|
+
x402Version: X402Version,
|
|
2987
|
+
paymentPayload: X402PaymentPayload,
|
|
2988
|
+
paymentRequirements: X402PaymentRequirements,
|
|
2989
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/x402/settle", code: 200 }))).annotate({
|
|
2990
|
+
identifier: "SettleX402PaymentRequest",
|
|
2991
|
+
});
|
|
2992
|
+
export const X402SettleErrorReason = /*@__PURE__*/ S.String;
|
|
2993
|
+
export const SettleX402PaymentResponseExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
2994
|
+
export const SettleX402PaymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2995
|
+
success: S.Boolean,
|
|
2996
|
+
errorReason: S.optional(X402SettleErrorReason),
|
|
2997
|
+
errorMessage: S.optional(S.String),
|
|
2998
|
+
payer: S.String,
|
|
2999
|
+
transaction: S.String,
|
|
3000
|
+
network: S.String,
|
|
3001
|
+
amount: S.optional(S.String),
|
|
3002
|
+
extra: S.optional(SettleX402PaymentResponseExtraMap),
|
|
3003
|
+
})).annotate({
|
|
3004
|
+
identifier: "SettleX402PaymentResponse",
|
|
3005
|
+
});
|
|
3006
|
+
export const SignEvmHashRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3007
|
+
address: S.String.pipe(T.Label()),
|
|
3008
|
+
hash: S.String,
|
|
3009
|
+
}).pipe(T.Http({
|
|
3010
|
+
method: "POST",
|
|
3011
|
+
uri: "/v2/evm/accounts/{address}/sign",
|
|
3012
|
+
code: 200,
|
|
3013
|
+
}))).annotate({
|
|
3014
|
+
identifier: "SignEvmHashRequest",
|
|
3015
|
+
});
|
|
3016
|
+
export const SignEvmHashResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3017
|
+
signature: S.String,
|
|
3018
|
+
})).annotate({
|
|
3019
|
+
identifier: "SignEvmHashResponse",
|
|
3020
|
+
});
|
|
3021
|
+
export const SignEvmMessageRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3022
|
+
address: S.String.pipe(T.Label()),
|
|
3023
|
+
message: S.String,
|
|
3024
|
+
}).pipe(T.Http({
|
|
3025
|
+
method: "POST",
|
|
3026
|
+
uri: "/v2/evm/accounts/{address}/sign/message",
|
|
3027
|
+
code: 200,
|
|
3028
|
+
}))).annotate({
|
|
3029
|
+
identifier: "SignEvmMessageRequest",
|
|
3030
|
+
});
|
|
3031
|
+
export const SignEvmMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3032
|
+
signature: S.String,
|
|
3033
|
+
})).annotate({
|
|
3034
|
+
identifier: "SignEvmMessageResponse",
|
|
3035
|
+
});
|
|
3036
|
+
export const SignEvmMessageWithEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3037
|
+
userId: S.String.pipe(T.Label()),
|
|
3038
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
3039
|
+
address: S.String,
|
|
3040
|
+
message: S.String,
|
|
3041
|
+
walletSecretId: S.optional(S.String),
|
|
3042
|
+
}).pipe(T.Http({
|
|
3043
|
+
method: "POST",
|
|
3044
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/sign/message",
|
|
3045
|
+
code: 200,
|
|
3046
|
+
}))).annotate({
|
|
3047
|
+
identifier: "SignEvmMessageWithEndUserAccountRequest",
|
|
3048
|
+
});
|
|
3049
|
+
export const SignEvmMessageWithEndUserAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3050
|
+
signature: S.String,
|
|
3051
|
+
})).annotate({
|
|
3052
|
+
identifier: "SignEvmMessageWithEndUserAccountResponse",
|
|
3053
|
+
});
|
|
3054
|
+
export const SignEvmTransactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3055
|
+
address: S.String.pipe(T.Label()),
|
|
3056
|
+
transaction: S.String,
|
|
3057
|
+
}).pipe(T.Http({
|
|
3058
|
+
method: "POST",
|
|
3059
|
+
uri: "/v2/evm/accounts/{address}/sign/transaction",
|
|
3060
|
+
code: 200,
|
|
3061
|
+
}))).annotate({
|
|
3062
|
+
identifier: "SignEvmTransactionRequest",
|
|
3063
|
+
});
|
|
3064
|
+
export const SignEvmTransactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3065
|
+
signedTransaction: S.String,
|
|
3066
|
+
})).annotate({
|
|
3067
|
+
identifier: "SignEvmTransactionResponse",
|
|
3068
|
+
});
|
|
3069
|
+
export const SignEvmTransactionWithEndUserAccountRequest =
|
|
3070
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3071
|
+
userId: S.String.pipe(T.Label()),
|
|
3072
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
3073
|
+
address: S.String,
|
|
3074
|
+
transaction: S.String,
|
|
3075
|
+
walletSecretId: S.optional(S.String),
|
|
3076
|
+
}).pipe(T.Http({
|
|
3077
|
+
method: "POST",
|
|
3078
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/sign/transaction",
|
|
3079
|
+
code: 200,
|
|
3080
|
+
}))).annotate({
|
|
3081
|
+
identifier: "SignEvmTransactionWithEndUserAccountRequest",
|
|
3082
|
+
});
|
|
3083
|
+
export const SignEvmTransactionWithEndUserAccountResponse =
|
|
3084
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3085
|
+
signedTransaction: S.String,
|
|
3086
|
+
})).annotate({
|
|
3087
|
+
identifier: "SignEvmTransactionWithEndUserAccountResponse",
|
|
3088
|
+
});
|
|
3089
|
+
export const SignEvmTypedDataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3090
|
+
address: S.String.pipe(T.Label()),
|
|
3091
|
+
domain: EIP712Domain,
|
|
3092
|
+
types: S.Unknown,
|
|
3093
|
+
primaryType: S.String,
|
|
3094
|
+
message: S.Unknown,
|
|
3095
|
+
}).pipe(T.Http({
|
|
3096
|
+
method: "POST",
|
|
3097
|
+
uri: "/v2/evm/accounts/{address}/sign/typed-data",
|
|
3098
|
+
code: 200,
|
|
3099
|
+
}))).annotate({
|
|
3100
|
+
identifier: "SignEvmTypedDataRequest",
|
|
3101
|
+
});
|
|
3102
|
+
export const SignEvmTypedDataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3103
|
+
signature: S.String,
|
|
3104
|
+
})).annotate({
|
|
3105
|
+
identifier: "SignEvmTypedDataResponse",
|
|
3106
|
+
});
|
|
3107
|
+
export const SignEvmTypedDataWithEndUserAccountRequest =
|
|
3108
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3109
|
+
userId: S.String.pipe(T.Label()),
|
|
3110
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
3111
|
+
address: S.String,
|
|
3112
|
+
typedData: EIP712Message,
|
|
3113
|
+
walletSecretId: S.optional(S.String),
|
|
3114
|
+
}).pipe(T.Http({
|
|
3115
|
+
method: "POST",
|
|
3116
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/evm/sign/typed-data",
|
|
3117
|
+
code: 200,
|
|
3118
|
+
}))).annotate({
|
|
3119
|
+
identifier: "SignEvmTypedDataWithEndUserAccountRequest",
|
|
3120
|
+
});
|
|
3121
|
+
export const SignEvmTypedDataWithEndUserAccountResponse =
|
|
3122
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3123
|
+
signature: S.String,
|
|
3124
|
+
})).annotate({
|
|
3125
|
+
identifier: "SignEvmTypedDataWithEndUserAccountResponse",
|
|
3126
|
+
});
|
|
3127
|
+
export const SignSolanaMessageRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3128
|
+
address: S.String.pipe(T.Label()),
|
|
3129
|
+
message: S.String,
|
|
3130
|
+
}).pipe(T.Http({
|
|
3131
|
+
method: "POST",
|
|
3132
|
+
uri: "/v2/solana/accounts/{address}/sign/message",
|
|
3133
|
+
code: 200,
|
|
3134
|
+
}))).annotate({
|
|
3135
|
+
identifier: "SignSolanaMessageRequest",
|
|
3136
|
+
});
|
|
3137
|
+
export const SignSolanaMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3138
|
+
signature: S.String,
|
|
3139
|
+
})).annotate({
|
|
3140
|
+
identifier: "SignSolanaMessageResponse",
|
|
3141
|
+
});
|
|
3142
|
+
export const SignSolanaMessageWithEndUserAccountRequest =
|
|
3143
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3144
|
+
userId: S.String.pipe(T.Label()),
|
|
3145
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
3146
|
+
address: S.String,
|
|
3147
|
+
message: S.String,
|
|
3148
|
+
walletSecretId: S.optional(S.String),
|
|
3149
|
+
}).pipe(T.Http({
|
|
3150
|
+
method: "POST",
|
|
3151
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/solana/sign/message",
|
|
3152
|
+
code: 200,
|
|
3153
|
+
}))).annotate({
|
|
3154
|
+
identifier: "SignSolanaMessageWithEndUserAccountRequest",
|
|
3155
|
+
});
|
|
3156
|
+
export const SignSolanaMessageWithEndUserAccountResponse =
|
|
3157
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3158
|
+
signature: S.String,
|
|
3159
|
+
})).annotate({
|
|
3160
|
+
identifier: "SignSolanaMessageWithEndUserAccountResponse",
|
|
3161
|
+
});
|
|
3162
|
+
export const SignSolanaTransactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3163
|
+
address: S.String.pipe(T.Label()),
|
|
3164
|
+
transaction: S.String,
|
|
3165
|
+
}).pipe(T.Http({
|
|
3166
|
+
method: "POST",
|
|
3167
|
+
uri: "/v2/solana/accounts/{address}/sign/transaction",
|
|
3168
|
+
code: 200,
|
|
3169
|
+
}))).annotate({
|
|
3170
|
+
identifier: "SignSolanaTransactionRequest",
|
|
3171
|
+
});
|
|
3172
|
+
export const SignSolanaTransactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3173
|
+
signedTransaction: S.String,
|
|
3174
|
+
})).annotate({
|
|
3175
|
+
identifier: "SignSolanaTransactionResponse",
|
|
3176
|
+
});
|
|
3177
|
+
export const SignSolanaTransactionWithEndUserAccountRequest =
|
|
3178
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3179
|
+
userId: S.String.pipe(T.Label()),
|
|
3180
|
+
projectID: S.optional(S.String.pipe(T.Query())),
|
|
3181
|
+
address: S.String,
|
|
3182
|
+
transaction: S.String,
|
|
3183
|
+
walletSecretId: S.optional(S.String),
|
|
3184
|
+
}).pipe(T.Http({
|
|
3185
|
+
method: "POST",
|
|
3186
|
+
uri: "/v2/embedded-wallet-api/end-users/{userId}/solana/sign/transaction",
|
|
3187
|
+
code: 200,
|
|
3188
|
+
}))).annotate({
|
|
3189
|
+
identifier: "SignSolanaTransactionWithEndUserAccountRequest",
|
|
3190
|
+
});
|
|
3191
|
+
export const SignSolanaTransactionWithEndUserAccountResponse =
|
|
3192
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3193
|
+
signedTransaction: S.String,
|
|
3194
|
+
})).annotate({
|
|
3195
|
+
identifier: "SignSolanaTransactionWithEndUserAccountResponse",
|
|
3196
|
+
});
|
|
3197
|
+
export const DepositTravelRuleOriginatorWalletType = /*@__PURE__*/ S.String;
|
|
3198
|
+
export const DepositTravelRuleVasp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3199
|
+
identifier: S.optional(S.String),
|
|
3200
|
+
name: S.optional(S.String),
|
|
3201
|
+
})).annotate({
|
|
3202
|
+
identifier: "DepositTravelRuleVasp",
|
|
3203
|
+
});
|
|
3204
|
+
export const DepositTravelRuleOriginator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3205
|
+
name: S.optional(S.String),
|
|
3206
|
+
address: S.optional(PhysicalAddress),
|
|
3207
|
+
walletType: S.optional(DepositTravelRuleOriginatorWalletType),
|
|
3208
|
+
virtualAssetServiceProvider: S.optional(DepositTravelRuleVasp),
|
|
3209
|
+
personalId: S.optional(S.String),
|
|
3210
|
+
dateOfBirth: S.optional(DateOfBirth),
|
|
3211
|
+
})).annotate({
|
|
3212
|
+
identifier: "DepositTravelRuleOriginator",
|
|
3213
|
+
});
|
|
3214
|
+
export const DepositTravelRuleBeneficiary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3215
|
+
name: S.optional(S.String),
|
|
3216
|
+
})).annotate({
|
|
3217
|
+
identifier: "DepositTravelRuleBeneficiary",
|
|
3218
|
+
});
|
|
3219
|
+
export const SubmitDepositTravelRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3220
|
+
transferId: S.String.pipe(T.Label()),
|
|
3221
|
+
originator: S.optional(DepositTravelRuleOriginator),
|
|
3222
|
+
beneficiary: S.optional(DepositTravelRuleBeneficiary),
|
|
3223
|
+
isSelf: S.optional(S.Boolean),
|
|
3224
|
+
}).pipe(T.Http({
|
|
3225
|
+
method: "POST",
|
|
3226
|
+
uri: "/v2/transfers/{transferId}/travel-rule",
|
|
3227
|
+
code: 200,
|
|
3228
|
+
}))).annotate({
|
|
3229
|
+
identifier: "SubmitDepositTravelRuleRequest",
|
|
3230
|
+
});
|
|
3231
|
+
export const DepositTravelRuleResponseMissingFieldsList = /*@__PURE__*/ S.Array(S.String);
|
|
3232
|
+
export const DepositTravelRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3233
|
+
status: TravelRuleStatus,
|
|
3234
|
+
missingFields: S.optional(DepositTravelRuleResponseMissingFieldsList),
|
|
3235
|
+
reason: S.optional(S.String),
|
|
3236
|
+
})).annotate({
|
|
3237
|
+
identifier: "DepositTravelRuleResponse",
|
|
3238
|
+
});
|
|
3239
|
+
export const SubmitOnrampVerificationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3240
|
+
verificationId: S.String.pipe(T.Label()),
|
|
3241
|
+
otpCode: S.String,
|
|
3242
|
+
}).pipe(T.Http({
|
|
3243
|
+
method: "POST",
|
|
3244
|
+
uri: "/v2/onramp/verifications/{verificationId}/submit",
|
|
3245
|
+
code: 200,
|
|
3246
|
+
}))).annotate({
|
|
3247
|
+
identifier: "SubmitOnrampVerificationRequest",
|
|
3248
|
+
});
|
|
3249
|
+
export const OnrampVerificationConfirmation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3250
|
+
verificationId: S.String,
|
|
3251
|
+
verificationExpiresAt: S.String,
|
|
3252
|
+
})).annotate({
|
|
3253
|
+
identifier: "OnrampVerificationConfirmation",
|
|
3254
|
+
});
|
|
3255
|
+
export const SupportedX402PaymentKindsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2/x402/supported", code: 200 }))).annotate({
|
|
3256
|
+
identifier: "SupportedX402PaymentKindsRequest",
|
|
3257
|
+
});
|
|
3258
|
+
export const X402SupportedPaymentKindScheme = /*@__PURE__*/ S.String;
|
|
3259
|
+
export const X402SupportedPaymentKindNetwork = /*@__PURE__*/ S.String;
|
|
3260
|
+
export const X402SupportedPaymentKindExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
3261
|
+
export const X402SupportedPaymentKind = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3262
|
+
x402Version: X402Version,
|
|
3263
|
+
scheme: X402SupportedPaymentKindScheme,
|
|
3264
|
+
network: X402SupportedPaymentKindNetwork,
|
|
3265
|
+
extra: S.optional(X402SupportedPaymentKindExtraMap),
|
|
3266
|
+
})).annotate({
|
|
3267
|
+
identifier: "X402SupportedPaymentKind",
|
|
3268
|
+
});
|
|
3269
|
+
export const SupportedX402PaymentKindsResponseKindsList = /*@__PURE__*/ S.Array(X402SupportedPaymentKind);
|
|
3270
|
+
export const SupportedX402PaymentKindsResponseExtensionsList =
|
|
3271
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
3272
|
+
export const SupportedX402PaymentKindsResponseSignersValueList =
|
|
3273
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
3274
|
+
export const SupportedX402PaymentKindsResponseSignersMap =
|
|
3275
|
+
/*@__PURE__*/ S.Record(S.String, SupportedX402PaymentKindsResponseSignersValueList);
|
|
3276
|
+
export const SupportedX402PaymentKindsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3277
|
+
kinds: SupportedX402PaymentKindsResponseKindsList,
|
|
3278
|
+
extensions: SupportedX402PaymentKindsResponseExtensionsList,
|
|
3279
|
+
signers: SupportedX402PaymentKindsResponseSignersMap,
|
|
3280
|
+
})).annotate({
|
|
3281
|
+
identifier: "SupportedX402PaymentKindsResponse",
|
|
3282
|
+
});
|
|
3283
|
+
export const UpdateEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3284
|
+
address: S.String.pipe(T.Label()),
|
|
3285
|
+
name: S.optional(S.String),
|
|
3286
|
+
accountPolicy: S.optional(S.String),
|
|
3287
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v2/evm/accounts/{address}", code: 200 }))).annotate({
|
|
3288
|
+
identifier: "UpdateEvmAccountRequest",
|
|
3289
|
+
});
|
|
3290
|
+
export const UpdateEvmSmartAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3291
|
+
address: S.String.pipe(T.Label()),
|
|
3292
|
+
name: S.optional(S.String),
|
|
3293
|
+
}).pipe(T.Http({
|
|
3294
|
+
method: "PUT",
|
|
3295
|
+
uri: "/v2/evm/smart-accounts/{address}",
|
|
3296
|
+
code: 200,
|
|
3297
|
+
}))).annotate({
|
|
3298
|
+
identifier: "UpdateEvmSmartAccountRequest",
|
|
3299
|
+
});
|
|
3300
|
+
export const UpdatePolicyRequestRulesList = /*@__PURE__*/ S.Array(Rule);
|
|
3301
|
+
export const UpdatePolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3302
|
+
policyId: S.String.pipe(T.Label()),
|
|
3303
|
+
description: S.optional(S.String),
|
|
3304
|
+
rules: UpdatePolicyRequestRulesList,
|
|
3305
|
+
}).pipe(T.Http({
|
|
3306
|
+
method: "PUT",
|
|
3307
|
+
uri: "/v2/policy-engine/policies/{policyId}",
|
|
3308
|
+
code: 200,
|
|
3309
|
+
}))).annotate({
|
|
3310
|
+
identifier: "UpdatePolicyRequest",
|
|
3311
|
+
});
|
|
3312
|
+
export const UpdateSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3313
|
+
address: S.String.pipe(T.Label()),
|
|
3314
|
+
name: S.optional(S.String),
|
|
3315
|
+
accountPolicy: S.optional(S.String),
|
|
3316
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v2/solana/accounts/{address}", code: 200 }))).annotate({
|
|
3317
|
+
identifier: "UpdateSolanaAccountRequest",
|
|
3318
|
+
});
|
|
3319
|
+
export const UpdateWebhookSubscriptionRequestEventTypesList =
|
|
3320
|
+
/*@__PURE__*/ S.Array(EventType);
|
|
3321
|
+
export const UpdateWebhookSubscriptionRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
3322
|
+
export const UpdateWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3323
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
3324
|
+
description: S.optional(S.String),
|
|
3325
|
+
eventTypes: UpdateWebhookSubscriptionRequestEventTypesList,
|
|
3326
|
+
isEnabled: S.Boolean,
|
|
3327
|
+
target: WebhookTarget,
|
|
3328
|
+
metadata: S.optional(Metadata),
|
|
3329
|
+
labels: S.optional(UpdateWebhookSubscriptionRequestLabelsMap),
|
|
3330
|
+
}).pipe(T.Http({
|
|
3331
|
+
method: "PUT",
|
|
3332
|
+
uri: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
3333
|
+
code: 200,
|
|
3334
|
+
}))).annotate({
|
|
3335
|
+
identifier: "UpdateWebhookSubscriptionRequest",
|
|
3336
|
+
});
|
|
3337
|
+
export const ValidateEndUserAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3338
|
+
accessToken: S.String.pipe(T.SensitiveValue({})),
|
|
3339
|
+
}).pipe(T.Http({
|
|
3340
|
+
method: "POST",
|
|
3341
|
+
uri: "/v2/end-users/auth/validate-token",
|
|
3342
|
+
code: 200,
|
|
3343
|
+
}))).annotate({
|
|
3344
|
+
identifier: "ValidateEndUserAccessTokenRequest",
|
|
3345
|
+
});
|
|
3346
|
+
export const ValidateX402ResourceRequestMethod = /*@__PURE__*/ S.String;
|
|
3347
|
+
export const ValidateX402ResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3348
|
+
resource: S.String,
|
|
3349
|
+
method: S.optional(ValidateX402ResourceRequestMethod),
|
|
3350
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/x402/validate", code: 200 }))).annotate({
|
|
3351
|
+
identifier: "ValidateX402ResourceRequest",
|
|
3352
|
+
});
|
|
3353
|
+
export const X402ValidateCheckCheck = /*@__PURE__*/ S.String;
|
|
3354
|
+
export const X402ValidateCheckSeverity = /*@__PURE__*/ S.String;
|
|
3355
|
+
export const X402ValidateCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3356
|
+
check: X402ValidateCheckCheck,
|
|
3357
|
+
passed: S.Boolean,
|
|
3358
|
+
detail: S.String,
|
|
3359
|
+
expected: S.optional(S.String),
|
|
3360
|
+
actual: S.optional(S.String),
|
|
3361
|
+
severity: X402ValidateCheckSeverity,
|
|
3362
|
+
})).annotate({
|
|
3363
|
+
identifier: "X402ValidateCheck",
|
|
3364
|
+
});
|
|
3365
|
+
export const X402ValidateResponsePreflightList = /*@__PURE__*/ S.Array(X402ValidateCheck);
|
|
3366
|
+
export const X402ValidateResponseBazaarExtensionMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
3367
|
+
export const X402ValidateSimulationOutcome = /*@__PURE__*/ S.String;
|
|
3368
|
+
export const X402ValidateSimulation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3369
|
+
outcome: X402ValidateSimulationOutcome,
|
|
3370
|
+
rejectionReason: S.optional(S.String),
|
|
3371
|
+
})).annotate({
|
|
3372
|
+
identifier: "X402ValidateSimulation",
|
|
3373
|
+
});
|
|
3374
|
+
export const X402ValidateIndex = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3375
|
+
active: S.Boolean,
|
|
3376
|
+
lastCrawledAt: S.NullOr(S.String),
|
|
3377
|
+
quality: S.optional(X402ResourceQuality),
|
|
3378
|
+
})).annotate({
|
|
3379
|
+
identifier: "X402ValidateIndex",
|
|
3380
|
+
});
|
|
3381
|
+
export const X402ValidateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3382
|
+
valid: S.Boolean,
|
|
3383
|
+
statusCode: S.NullOr(S.Number),
|
|
3384
|
+
x402Version: S.NullOr(S.Number),
|
|
3385
|
+
preflight: X402ValidateResponsePreflightList,
|
|
3386
|
+
paymentRequirements: S.NullOr(X402PaymentRequirements),
|
|
3387
|
+
bazaarExtension: S.NullOr(X402ValidateResponseBazaarExtensionMap),
|
|
3388
|
+
simulation: X402ValidateSimulation,
|
|
3389
|
+
index: S.NullOr(X402ValidateIndex),
|
|
3390
|
+
})).annotate({
|
|
3391
|
+
identifier: "X402ValidateResponse",
|
|
3392
|
+
});
|
|
3393
|
+
export const VerifyX402PaymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3394
|
+
x402Version: X402Version,
|
|
3395
|
+
paymentPayload: X402PaymentPayload,
|
|
3396
|
+
paymentRequirements: X402PaymentRequirements,
|
|
3397
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/x402/verify", code: 200 }))).annotate({
|
|
3398
|
+
identifier: "VerifyX402PaymentRequest",
|
|
3399
|
+
});
|
|
3400
|
+
export const X402VerifyInvalidReason = /*@__PURE__*/ S.String;
|
|
3401
|
+
export const VerifyX402PaymentResponseExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
3402
|
+
export const VerifyX402PaymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3403
|
+
isValid: S.Boolean,
|
|
3404
|
+
invalidReason: S.optional(X402VerifyInvalidReason),
|
|
3405
|
+
invalidMessage: S.optional(S.String),
|
|
3406
|
+
payer: S.String,
|
|
3407
|
+
extra: S.optional(VerifyX402PaymentResponseExtraMap),
|
|
3408
|
+
})).annotate({
|
|
3409
|
+
identifier: "VerifyX402PaymentResponse",
|
|
3410
|
+
});
|
|
3411
|
+
/** Add EVM account to end user Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3412
|
+
export const addEndUserEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
3413
|
+
input: AddEndUserEvmAccountRequest,
|
|
3414
|
+
output: AddEndUserEvmAccountResponse,
|
|
3415
|
+
errors: [UnknownCoinbaseError],
|
|
3416
|
+
protocol: CoinbaseProtocol,
|
|
3417
|
+
retry: Retry.Retry,
|
|
3418
|
+
}));
|
|
3419
|
+
/** Add EVM smart account to end user Creates an EVM smart account for an existing end user. The backend will create a new EVM EOA account to serve as the owner of the smart account. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3420
|
+
export const addEndUserEvmSmartAccount = /*@__PURE__*/ API.make(() => ({
|
|
3421
|
+
input: AddEndUserEvmSmartAccountRequest,
|
|
3422
|
+
output: AddEndUserEvmSmartAccountResponse,
|
|
3423
|
+
errors: [UnknownCoinbaseError],
|
|
3424
|
+
protocol: CoinbaseProtocol,
|
|
3425
|
+
retry: Retry.Retry,
|
|
3426
|
+
}));
|
|
3427
|
+
/** Add Solana account to end user Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3428
|
+
export const addEndUserSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
3429
|
+
input: AddEndUserSolanaAccountRequest,
|
|
3430
|
+
output: AddEndUserSolanaAccountResponse,
|
|
3431
|
+
errors: [UnknownCoinbaseError],
|
|
3432
|
+
protocol: CoinbaseProtocol,
|
|
3433
|
+
retry: Retry.Retry,
|
|
3434
|
+
}));
|
|
3435
|
+
/** Create account-scoped delegation for end user Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation. Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user. When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner. */
|
|
3436
|
+
export const createDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
3437
|
+
input: CreateDelegationForEndUserAccountRequest,
|
|
3438
|
+
output: CreateDelegationForEndUserAccountResponse,
|
|
3439
|
+
errors: [UnknownCoinbaseError],
|
|
3440
|
+
protocol: CoinbaseProtocol,
|
|
3441
|
+
retry: Retry.Retry,
|
|
3442
|
+
}));
|
|
3443
|
+
/** Create deposit destination Create a new deposit destination for an account. A deposit destination is a cryptocurrency address that can be used to receive funds. The address will be generated for the specified network. */
|
|
3444
|
+
export const createDepositDestination = /*@__PURE__*/ API.make(() => ({
|
|
3445
|
+
input: CreateDepositDestinationRequest,
|
|
3446
|
+
output: CreateDepositDestinationResponse,
|
|
3447
|
+
errors: [UnknownCoinbaseError],
|
|
3448
|
+
protocol: CoinbaseProtocol,
|
|
3449
|
+
retry: Retry.Retry,
|
|
3450
|
+
}));
|
|
3451
|
+
/** Create end user Creates an end user. An end user is an entity that can own CDP EVM accounts, EVM smart accounts, and/or Solana accounts. 1 or more authentication methods must be associated with an end user. By default, no accounts are created unless the optional `evmAccount` and/or `solanaAccount` fields are provided. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3452
|
+
export const createEndUser = /*@__PURE__*/ API.make(() => ({
|
|
3453
|
+
input: CreateEndUserRequest,
|
|
3454
|
+
output: EndUser,
|
|
3455
|
+
errors: [UnknownCoinbaseError],
|
|
3456
|
+
protocol: CoinbaseProtocol,
|
|
3457
|
+
retry: Retry.Retry,
|
|
3458
|
+
}));
|
|
3459
|
+
/** Create EVM account Creates a new EVM account. */
|
|
3460
|
+
export const createEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
3461
|
+
input: CreateEvmAccountRequest,
|
|
3462
|
+
output: EvmAccount,
|
|
3463
|
+
errors: [UnknownCoinbaseError],
|
|
3464
|
+
protocol: CoinbaseProtocol,
|
|
3465
|
+
retry: Retry.Retry,
|
|
3466
|
+
}));
|
|
3467
|
+
/** Create EIP-7702 delegation Creates an EIP-7702 delegation for an EVM EOA account, upgrading it with smart account capabilities. This endpoint: - Retrieves delegation artifacts from onchain - Signs the EIP-7702 authorization for delegation - Assembles and submits a Type 4 transaction - Creates an associated smart account object The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster. */
|
|
3468
|
+
export const createEvmEip7702Delegation = /*@__PURE__*/ API.make(() => ({
|
|
3469
|
+
input: CreateEvmEip7702DelegationRequest,
|
|
3470
|
+
output: CreateEvmEip7702DelegationResponse,
|
|
3471
|
+
errors: [UnknownCoinbaseError],
|
|
3472
|
+
protocol: CoinbaseProtocol,
|
|
3473
|
+
retry: Retry.Retry,
|
|
3474
|
+
}));
|
|
3475
|
+
/** Create EIP-7702 delegation for end user EVM account Creates an EIP-7702 delegation for an end user's EVM EOA account, upgrading it with smart account capabilities. This endpoint: - Retrieves delegation artifacts from onchain - Signs the EIP-7702 authorization for delegation - Assembles and submits a Type 4 transaction - Creates an associated smart account object The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster. */
|
|
3476
|
+
export const createEvmEip7702DelegationWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
3477
|
+
input: CreateEvmEip7702DelegationWithEndUserAccountRequest,
|
|
3478
|
+
output: CreateEvmEip7702DelegationWithEndUserAccountResponse,
|
|
3479
|
+
errors: [UnknownCoinbaseError],
|
|
3480
|
+
protocol: CoinbaseProtocol,
|
|
3481
|
+
retry: Retry.Retry,
|
|
3482
|
+
}));
|
|
3483
|
+
/** Create Smart Account Creates a new Smart Account. */
|
|
3484
|
+
export const createEvmSmartAccount = /*@__PURE__*/ API.make(() => ({
|
|
3485
|
+
input: CreateEvmSmartAccountRequest,
|
|
3486
|
+
output: EvmSmartAccount,
|
|
3487
|
+
errors: [UnknownCoinbaseError],
|
|
3488
|
+
protocol: CoinbaseProtocol,
|
|
3489
|
+
retry: Retry.Retry,
|
|
3490
|
+
}));
|
|
3491
|
+
/** Create swap quote Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap. */
|
|
3492
|
+
export const createEvmSwapQuote = /*@__PURE__*/ API.make(() => ({
|
|
3493
|
+
input: CreateEvmSwapQuoteRequest,
|
|
3494
|
+
output: CreateEvmSwapQuoteResponse,
|
|
3495
|
+
errors: [UnknownCoinbaseError],
|
|
3496
|
+
protocol: CoinbaseProtocol,
|
|
3497
|
+
retry: Retry.Retry,
|
|
3498
|
+
}));
|
|
3499
|
+
/** Create account Create an account for your Entity. Support for creating Customer-owned accounts is in development. */
|
|
3500
|
+
export const createFoundationAccount = /*@__PURE__*/ API.make(() => ({
|
|
3501
|
+
input: CreateFoundationAccountRequest,
|
|
3502
|
+
output: Account,
|
|
3503
|
+
errors: [UnknownCoinbaseError],
|
|
3504
|
+
protocol: CoinbaseProtocol,
|
|
3505
|
+
retry: Retry.Retry,
|
|
3506
|
+
}));
|
|
3507
|
+
/** Create an onramp order Create a new Onramp order or get a quote for an Onramp order. Either `paymentAmount` or `purchaseAmount` must be provided. This API currently only supports the payment method `GUEST_CHECKOUT_APPLE_PAY`. For detailed integration instructions and to get access to this API, refer to the [Apple Pay Onramp API docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api). */
|
|
3508
|
+
export const createOnrampOrder = /*@__PURE__*/ API.make(() => ({
|
|
3509
|
+
input: CreateOnrampOrderRequest,
|
|
3510
|
+
output: CreateOnrampOrderResponse,
|
|
3511
|
+
errors: [UnknownCoinbaseError],
|
|
3512
|
+
protocol: CoinbaseProtocol,
|
|
3513
|
+
retry: Retry.Retry,
|
|
3514
|
+
}));
|
|
3515
|
+
/** Create an onramp session Returns a single-use URL for an Onramp session. This API provides flexible functionality based on the parameters provided, supporting three cases: **Important**: The returned URL is single-use only. Once a user visits the URL, no one else can access it. ## Use Cases ### 1. Basic Session (Minimum Parameters) **Required**: `destinationAddress`, `purchaseCurrency`, `destinationNetwork` **Returns**: Basic single-use onramp URL. The `quote` object will not be included in the response. ### 2. One-Click Onramp URL **Required**: Basic parameters + (`paymentAmount` OR `purchaseAmount`), `paymentCurrency` **Returns**: One-click onramp URL for streamlined checkout. The `quote` object will not be included in the response. ### 3. One-Click Onramp URL with Quote **Required**: One-Click Onramp parameters + `paymentMethod`, `country`, `subdivision` **Returns**: Complete pricing quote and one-click onramp URL. Both `session` and `quote` objects will be included in the response. **Note**: Only one of `paymentAmount` or `purchaseAmount` should be provided, not both. Providing both will result in an error. When `paymentAmount` is provided, the quote shows how much crypto the user will receive for the specified fiat amount (fee-inclusive). When `purchaseAmount` is provided, the quote shows how much fiat the user needs to pay for the specified crypto amount (fee-exclusive). */
|
|
3516
|
+
export const createOnrampSession = /*@__PURE__*/ API.make(() => ({
|
|
3517
|
+
input: CreateOnrampSessionRequest,
|
|
3518
|
+
output: CreateOnrampSessionResponse,
|
|
3519
|
+
errors: [UnknownCoinbaseError],
|
|
3520
|
+
protocol: CoinbaseProtocol,
|
|
3521
|
+
retry: Retry.Retry,
|
|
3522
|
+
}));
|
|
3523
|
+
/** Create policy Create a policy that can be used to govern the behavior of accounts. */
|
|
3524
|
+
export const createPolicy = /*@__PURE__*/ API.make(() => ({
|
|
3525
|
+
input: CreatePolicyRequest,
|
|
3526
|
+
output: Policy,
|
|
3527
|
+
errors: [UnknownCoinbaseError],
|
|
3528
|
+
protocol: CoinbaseProtocol,
|
|
3529
|
+
retry: Retry.Retry,
|
|
3530
|
+
}));
|
|
3531
|
+
/** Create Solana account Creates a new Solana account. */
|
|
3532
|
+
export const createSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
3533
|
+
input: CreateSolanaAccountRequest,
|
|
3534
|
+
output: SolanaAccount,
|
|
3535
|
+
errors: [UnknownCoinbaseError],
|
|
3536
|
+
protocol: CoinbaseProtocol,
|
|
3537
|
+
retry: Retry.Retry,
|
|
3538
|
+
}));
|
|
3539
|
+
/** Create spend permission Creates a spend permission for the given smart account address. */
|
|
3540
|
+
export const createSpendPermission = /*@__PURE__*/ API.make(() => ({
|
|
3541
|
+
input: CreateSpendPermissionRequest,
|
|
3542
|
+
output: EvmUserOperation,
|
|
3543
|
+
errors: [UnknownCoinbaseError],
|
|
3544
|
+
protocol: CoinbaseProtocol,
|
|
3545
|
+
retry: Retry.Retry,
|
|
3546
|
+
}));
|
|
3547
|
+
/** Create transfer Create a new transfer to move funds from a source to a target. All transfers first transition to `quoted`. If `execute: false`, the transfer stays quoted until you call `/v2/transfers/{transferId}/execute`. If `execute: true`, quoted status emits momentarily before the transfer moves to `processing`, where execution proceeds. Subscribe to the transfers webhook to follow progress in real time instead of polling. */
|
|
3548
|
+
export const createTransfer = /*@__PURE__*/ API.make(() => ({
|
|
3549
|
+
input: CreateTransferRequest,
|
|
3550
|
+
output: Transfer,
|
|
3551
|
+
errors: [UnknownCoinbaseError],
|
|
3552
|
+
protocol: CoinbaseProtocol,
|
|
3553
|
+
retry: Retry.Retry,
|
|
3554
|
+
}));
|
|
3555
|
+
/** Create webhook subscription Subscribe to real-time events across CDP products. ### Filtering Onchain events can utilize multi-label filtering to only receive events that match all the specified labels. Allows labels are: - `network` (required) — Blockchain network - `contract_address` — Smart contract address - `event_name` — Event name (e.g., "Transfer", "Burn") - `event_signature` — Event signature (e.g., "Transfer(address,address,uint256)") - `transaction_from` — Transaction sender address - `transaction_to` — Transaction recipient address - `params.*` — Any event parameter from the log event (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`) For webhook types that aren't `onchain.*`, labels are ignored. ### Webhook Signature Verification All webhooks include an HMAC-SHA256 signed header for security. The signature is signed with the secret that is returned in the `secret` field when creating a subscription. Do not lose the secret, as you will not be able to recreate it. If you lose the secret, you will need to create a new subscription. See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details. */
|
|
3556
|
+
export const createWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
3557
|
+
input: CreateWebhookSubscriptionRequest,
|
|
3558
|
+
output: WebhookSubscriptionResponse,
|
|
3559
|
+
errors: [UnknownCoinbaseError],
|
|
3560
|
+
protocol: CoinbaseProtocol,
|
|
3561
|
+
retry: Retry.Retry,
|
|
3562
|
+
}));
|
|
3563
|
+
/** Delete policy Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. */
|
|
3564
|
+
export const deletePolicy = /*@__PURE__*/ API.make(() => ({
|
|
3565
|
+
input: DeletePolicyRequest,
|
|
3566
|
+
output: DeletePolicyResponse,
|
|
3567
|
+
errors: [UnknownCoinbaseError],
|
|
3568
|
+
protocol: CoinbaseProtocol,
|
|
3569
|
+
retry: Retry.Retry,
|
|
3570
|
+
}));
|
|
3571
|
+
/** Delete webhook subscription Permanently delete a webhook subscription and stop all event deliveries. This action cannot be undone. ### Important Notes - All webhook deliveries will cease immediately - Subscription cannot be recovered after deletion - Consider disabling instead of deleting for temporary pauses */
|
|
3572
|
+
export const deleteWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
3573
|
+
input: DeleteWebhookSubscriptionRequest,
|
|
3574
|
+
output: DeleteWebhookSubscriptionResponse,
|
|
3575
|
+
errors: [UnknownCoinbaseError],
|
|
3576
|
+
protocol: CoinbaseProtocol,
|
|
3577
|
+
retry: Retry.Retry,
|
|
3578
|
+
}));
|
|
3579
|
+
/** Execute transfer Executes a transfer which was created using the Create a transfer endpoint. */
|
|
3580
|
+
export const executeFundTransfer = /*@__PURE__*/ API.make(() => ({
|
|
3581
|
+
input: ExecuteFundTransferRequest,
|
|
3582
|
+
output: Transfer,
|
|
3583
|
+
errors: [UnknownCoinbaseError],
|
|
3584
|
+
protocol: CoinbaseProtocol,
|
|
3585
|
+
retry: Retry.Retry,
|
|
3586
|
+
}));
|
|
3587
|
+
/** Export EVM account Export an existing EVM account's private key. It is important to store the private key in a secure place after it's exported. */
|
|
3588
|
+
export const exportEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
3589
|
+
input: ExportEvmAccountRequest,
|
|
3590
|
+
output: ExportEvmAccountResponse,
|
|
3591
|
+
errors: [UnknownCoinbaseError],
|
|
3592
|
+
protocol: CoinbaseProtocol,
|
|
3593
|
+
retry: Retry.Retry,
|
|
3594
|
+
}));
|
|
3595
|
+
/** Export EVM account by name Export an existing EVM account's private key by its name. It is important to store the private key in a secure place after it's exported. */
|
|
3596
|
+
export const exportEvmAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
3597
|
+
input: ExportEvmAccountByNameRequest,
|
|
3598
|
+
output: ExportEvmAccountByNameResponse,
|
|
3599
|
+
errors: [UnknownCoinbaseError],
|
|
3600
|
+
protocol: CoinbaseProtocol,
|
|
3601
|
+
retry: Retry.Retry,
|
|
3602
|
+
}));
|
|
3603
|
+
/** Export Solana account Export an existing Solana account's private key. It is important to store the private key in a secure place after it's exported. */
|
|
3604
|
+
export const exportSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
3605
|
+
input: ExportSolanaAccountRequest,
|
|
3606
|
+
output: ExportSolanaAccountResponse,
|
|
3607
|
+
errors: [UnknownCoinbaseError],
|
|
3608
|
+
protocol: CoinbaseProtocol,
|
|
3609
|
+
retry: Retry.Retry,
|
|
3610
|
+
}));
|
|
3611
|
+
/** Export Solana account by name Export an existing Solana account's private key by its name. It is important to store the private key in a secure place after it's exported. */
|
|
3612
|
+
export const exportSolanaAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
3613
|
+
input: ExportSolanaAccountByNameRequest,
|
|
3614
|
+
output: ExportSolanaAccountByNameResponse,
|
|
3615
|
+
errors: [UnknownCoinbaseError],
|
|
3616
|
+
protocol: CoinbaseProtocol,
|
|
3617
|
+
retry: Retry.Retry,
|
|
3618
|
+
}));
|
|
3619
|
+
/** Get balance for account Get the balance for an account by asset. */
|
|
3620
|
+
export const getBalanceByAsset = /*@__PURE__*/ API.make(() => ({
|
|
3621
|
+
input: GetBalanceByAssetRequest,
|
|
3622
|
+
output: Balance,
|
|
3623
|
+
errors: [UnknownCoinbaseError],
|
|
3624
|
+
protocol: CoinbaseProtocol,
|
|
3625
|
+
retry: Retry.Retry,
|
|
3626
|
+
}));
|
|
3627
|
+
/** Get delegation for end user Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key. */
|
|
3628
|
+
export const getDelegationForEndUser = /*@__PURE__*/ API.make(() => ({
|
|
3629
|
+
input: GetDelegationForEndUserRequest,
|
|
3630
|
+
output: GetDelegationForEndUserResponse,
|
|
3631
|
+
errors: [UnknownCoinbaseError],
|
|
3632
|
+
protocol: CoinbaseProtocol,
|
|
3633
|
+
retry: Retry.Retry,
|
|
3634
|
+
}));
|
|
3635
|
+
/** Get account-scoped delegation for end user Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI. When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA. */
|
|
3636
|
+
export const getDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
3637
|
+
input: GetDelegationForEndUserAccountRequest,
|
|
3638
|
+
output: GetDelegationForEndUserAccountResponse,
|
|
3639
|
+
errors: [UnknownCoinbaseError],
|
|
3640
|
+
protocol: CoinbaseProtocol,
|
|
3641
|
+
retry: Retry.Retry,
|
|
3642
|
+
}));
|
|
3643
|
+
/** Get deposit destination Get a specific deposit destination by its ID. */
|
|
3644
|
+
export const getDepositDestinationById = /*@__PURE__*/ API.make(() => ({
|
|
3645
|
+
input: GetDepositDestinationByIdRequest,
|
|
3646
|
+
output: GetDepositDestinationByIdResponse,
|
|
3647
|
+
errors: [UnknownCoinbaseError],
|
|
3648
|
+
protocol: CoinbaseProtocol,
|
|
3649
|
+
retry: Retry.Retry,
|
|
3650
|
+
}));
|
|
3651
|
+
/** Get end user Gets an end user by ID. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3652
|
+
export const getEndUser = /*@__PURE__*/ API.make(() => ({
|
|
3653
|
+
input: GetEndUserRequest,
|
|
3654
|
+
output: EndUser,
|
|
3655
|
+
errors: [UnknownCoinbaseError],
|
|
3656
|
+
protocol: CoinbaseProtocol,
|
|
3657
|
+
retry: Retry.Retry,
|
|
3658
|
+
}));
|
|
3659
|
+
/** Get EVM account by address Gets an EVM account by its address. */
|
|
3660
|
+
export const getEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
3661
|
+
input: GetEvmAccountRequest,
|
|
3662
|
+
output: EvmAccount,
|
|
3663
|
+
errors: [UnknownCoinbaseError],
|
|
3664
|
+
protocol: CoinbaseProtocol,
|
|
3665
|
+
retry: Retry.Retry,
|
|
3666
|
+
}));
|
|
3667
|
+
/** Get EVM account by name Gets an EVM account by its name. */
|
|
3668
|
+
export const getEvmAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
3669
|
+
input: GetEvmAccountByNameRequest,
|
|
3670
|
+
output: EvmAccount,
|
|
3671
|
+
errors: [UnknownCoinbaseError],
|
|
3672
|
+
protocol: CoinbaseProtocol,
|
|
3673
|
+
retry: Retry.Retry,
|
|
3674
|
+
}));
|
|
3675
|
+
/** Get EIP-7702 delegation operation by ID Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. */
|
|
3676
|
+
export const getEvmEip7702DelegationOperationById = /*@__PURE__*/ API.make(() => ({
|
|
3677
|
+
input: GetEvmEip7702DelegationOperationByIdRequest,
|
|
3678
|
+
output: EvmEip7702DelegationOperation,
|
|
3679
|
+
errors: [UnknownCoinbaseError],
|
|
3680
|
+
protocol: CoinbaseProtocol,
|
|
3681
|
+
retry: Retry.Retry,
|
|
3682
|
+
}));
|
|
3683
|
+
/** Get Smart Account by address Gets a Smart Account by its address. */
|
|
3684
|
+
export const getEvmSmartAccount = /*@__PURE__*/ API.make(() => ({
|
|
3685
|
+
input: GetEvmSmartAccountRequest,
|
|
3686
|
+
output: EvmSmartAccount,
|
|
3687
|
+
errors: [UnknownCoinbaseError],
|
|
3688
|
+
protocol: CoinbaseProtocol,
|
|
3689
|
+
retry: Retry.Retry,
|
|
3690
|
+
}));
|
|
3691
|
+
/** Get Smart Account by name Gets a Smart Account by its name. */
|
|
3692
|
+
export const getEvmSmartAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
3693
|
+
input: GetEvmSmartAccountByNameRequest,
|
|
3694
|
+
output: EvmSmartAccount,
|
|
3695
|
+
errors: [UnknownCoinbaseError],
|
|
3696
|
+
protocol: CoinbaseProtocol,
|
|
3697
|
+
retry: Retry.Retry,
|
|
3698
|
+
}));
|
|
3699
|
+
/** Get swap price estimate Get a price estimate for a swap between two tokens on an EVM network. */
|
|
3700
|
+
export const getEvmSwapPrice = /*@__PURE__*/ API.make(() => ({
|
|
3701
|
+
input: GetEvmSwapPriceRequest,
|
|
3702
|
+
output: GetEvmSwapPriceResponse,
|
|
3703
|
+
errors: [UnknownCoinbaseError],
|
|
3704
|
+
protocol: CoinbaseProtocol,
|
|
3705
|
+
retry: Retry.Retry,
|
|
3706
|
+
}));
|
|
3707
|
+
/** Get account Get an account by its ID. */
|
|
3708
|
+
export const getFoundationAccountById = /*@__PURE__*/ API.make(() => ({
|
|
3709
|
+
input: GetFoundationAccountByIdRequest,
|
|
3710
|
+
output: Account,
|
|
3711
|
+
errors: [UnknownCoinbaseError],
|
|
3712
|
+
protocol: CoinbaseProtocol,
|
|
3713
|
+
retry: Retry.Retry,
|
|
3714
|
+
}));
|
|
3715
|
+
/** Get an onramp order by ID Get an onramp order by ID. */
|
|
3716
|
+
export const getOnrampOrderById = /*@__PURE__*/ API.make(() => ({
|
|
3717
|
+
input: GetOnrampOrderByIdRequest,
|
|
3718
|
+
output: GetOnrampOrderByIdResponse,
|
|
3719
|
+
errors: [UnknownCoinbaseError],
|
|
3720
|
+
protocol: CoinbaseProtocol,
|
|
3721
|
+
retry: Retry.Retry,
|
|
3722
|
+
}));
|
|
3723
|
+
/** Get onramp user limits Returns the transaction limits for an onramp user based on their payment method and user identifier. Use this API to show users their remaining purchase capacity before initiating an onramp transaction. Currently supports `GUEST_CHECKOUT_APPLE_PAY` payment method with phone number identification. The phone number must have been previously verified via OTP. */
|
|
3724
|
+
export const getOnrampUserLimits = /*@__PURE__*/ API.make(() => ({
|
|
3725
|
+
input: GetOnrampUserLimitsRequest,
|
|
3726
|
+
output: GetOnrampUserLimitsResponse,
|
|
3727
|
+
errors: [UnknownCoinbaseError],
|
|
3728
|
+
protocol: CoinbaseProtocol,
|
|
3729
|
+
retry: Retry.Retry,
|
|
3730
|
+
}));
|
|
3731
|
+
/** Get payment method Get details of a specific payment method by its ID. Returns 404 if the payment method is not found or not owned by the requesting entity. */
|
|
3732
|
+
export const getPaymentMethod = /*@__PURE__*/ API.make(() => ({
|
|
3733
|
+
input: GetPaymentMethodRequest,
|
|
3734
|
+
output: GetPaymentMethodResponse,
|
|
3735
|
+
errors: [UnknownCoinbaseError],
|
|
3736
|
+
protocol: CoinbaseProtocol,
|
|
3737
|
+
retry: Retry.Retry,
|
|
3738
|
+
}));
|
|
3739
|
+
/** Get policy by ID Get a policy by its ID. */
|
|
3740
|
+
export const getPolicyById = /*@__PURE__*/ API.make(() => ({
|
|
3741
|
+
input: GetPolicyByIdRequest,
|
|
3742
|
+
output: Policy,
|
|
3743
|
+
errors: [UnknownCoinbaseError],
|
|
3744
|
+
protocol: CoinbaseProtocol,
|
|
3745
|
+
retry: Retry.Retry,
|
|
3746
|
+
}));
|
|
3747
|
+
/** Get Solana account by address Gets a Solana account by its address. */
|
|
3748
|
+
export const getSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
3749
|
+
input: GetSolanaAccountRequest,
|
|
3750
|
+
output: SolanaAccount,
|
|
3751
|
+
errors: [UnknownCoinbaseError],
|
|
3752
|
+
protocol: CoinbaseProtocol,
|
|
3753
|
+
retry: Retry.Retry,
|
|
3754
|
+
}));
|
|
3755
|
+
/** Get Solana account by name Gets a Solana account by its name. */
|
|
3756
|
+
export const getSolanaAccountByName = /*@__PURE__*/ API.make(() => ({
|
|
3757
|
+
input: GetSolanaAccountByNameRequest,
|
|
3758
|
+
output: SolanaAccount,
|
|
3759
|
+
errors: [UnknownCoinbaseError],
|
|
3760
|
+
protocol: CoinbaseProtocol,
|
|
3761
|
+
retry: Retry.Retry,
|
|
3762
|
+
}));
|
|
3763
|
+
/** Get SQL grammar Retrieve the SQL grammar for the SQL API. The SQL queries that are supported by the SQL API are defined in ANTLR4 grammar which is evaluated by server before executing the query. This ensures the safety and soundness of the SQL query before execution. This endpoint returns the ANTLR4 grammar that is used to evaluate the SQL queries so that developers can understand the SQL API and build SQL queries with high confidence and correctness. LLMs interact well with ANTLR4 grammar. You can feed the grammar directly into the LLMs to help generate SQL queries. */
|
|
3764
|
+
export const getSQLGrammar = /*@__PURE__*/ API.make(() => ({
|
|
3765
|
+
input: GetSQLGrammarRequest,
|
|
3766
|
+
output: GetSQLGrammarResponse,
|
|
3767
|
+
errors: [UnknownCoinbaseError],
|
|
3768
|
+
protocol: CoinbaseProtocol,
|
|
3769
|
+
retry: Retry.Retry,
|
|
3770
|
+
}));
|
|
3771
|
+
/** Get schema details Retrieve the schema information for the available tables in the SQL API's indexed data. This includes table names, column definitions, data types, and indexed fields. */
|
|
3772
|
+
export const getSQLSchema = /*@__PURE__*/ API.make(() => ({
|
|
3773
|
+
input: GetSQLSchemaRequest,
|
|
3774
|
+
output: OnchainDataSchemaResponse,
|
|
3775
|
+
errors: [UnknownCoinbaseError],
|
|
3776
|
+
protocol: CoinbaseProtocol,
|
|
3777
|
+
retry: Retry.Retry,
|
|
3778
|
+
}));
|
|
3779
|
+
/** Get transfer Get a transfer by its ID. */
|
|
3780
|
+
export const getTransferById = /*@__PURE__*/ API.make(() => ({
|
|
3781
|
+
input: GetTransferByIdRequest,
|
|
3782
|
+
output: Transfer,
|
|
3783
|
+
errors: [UnknownCoinbaseError],
|
|
3784
|
+
protocol: CoinbaseProtocol,
|
|
3785
|
+
retry: Retry.Retry,
|
|
3786
|
+
}));
|
|
3787
|
+
/** Get user operation Gets a user operation by its hash. */
|
|
3788
|
+
export const getUserOperation = /*@__PURE__*/ API.make(() => ({
|
|
3789
|
+
input: GetUserOperationRequest,
|
|
3790
|
+
output: EvmUserOperation,
|
|
3791
|
+
errors: [UnknownCoinbaseError],
|
|
3792
|
+
protocol: CoinbaseProtocol,
|
|
3793
|
+
retry: Retry.Retry,
|
|
3794
|
+
}));
|
|
3795
|
+
/** Get webhook subscription Retrieve detailed information about a specific webhook subscription including configuration, status, creation timestamp, and webhook signature secret. ### Response Includes - Subscription configuration and filters - Target URL and custom headers - Webhook signature secret for verification - Creation timestamp and status */
|
|
3796
|
+
export const getWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
3797
|
+
input: GetWebhookSubscriptionRequest,
|
|
3798
|
+
output: WebhookSubscriptionResponse,
|
|
3799
|
+
errors: [UnknownCoinbaseError],
|
|
3800
|
+
protocol: CoinbaseProtocol,
|
|
3801
|
+
retry: Retry.Retry,
|
|
3802
|
+
}));
|
|
3803
|
+
/** Import end user private key Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. */
|
|
3804
|
+
export const importEndUser = /*@__PURE__*/ API.make(() => ({
|
|
3805
|
+
input: ImportEndUserRequest,
|
|
3806
|
+
output: EndUser,
|
|
3807
|
+
errors: [UnknownCoinbaseError],
|
|
3808
|
+
protocol: CoinbaseProtocol,
|
|
3809
|
+
retry: Retry.Retry,
|
|
3810
|
+
}));
|
|
3811
|
+
/** Import EVM account Import an existing EVM account into the developer's CDP Project. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. */
|
|
3812
|
+
export const importEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
3813
|
+
input: ImportEvmAccountRequest,
|
|
3814
|
+
output: EvmAccount,
|
|
3815
|
+
errors: [UnknownCoinbaseError],
|
|
3816
|
+
protocol: CoinbaseProtocol,
|
|
3817
|
+
retry: Retry.Retry,
|
|
3818
|
+
}));
|
|
3819
|
+
/** Import Solana account Import an existing Solana account into the developer's CDP Project. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. */
|
|
3820
|
+
export const importSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
3821
|
+
input: ImportSolanaAccountRequest,
|
|
3822
|
+
output: SolanaAccount,
|
|
3823
|
+
errors: [UnknownCoinbaseError],
|
|
3824
|
+
protocol: CoinbaseProtocol,
|
|
3825
|
+
retry: Retry.Retry,
|
|
3826
|
+
}));
|
|
3827
|
+
/** Initiate onramp verification Initiates OTP verification by sending a 6-digit code to the user via the specified channel (SMS or email). Returns a `verificationId` that must be passed to the Submit Onramp Verification endpoint along with the OTP code within 10 minutes. **Access to this API requires allowlisting.** During Onramp Headless API onboarding, contact the Onramp team to enable Onramp-managed verification for your application. */
|
|
3828
|
+
export const initiateOnrampVerification = /*@__PURE__*/ API.make(() => ({
|
|
3829
|
+
input: InitiateOnrampVerificationRequest,
|
|
3830
|
+
output: OnrampVerificationInitiation,
|
|
3831
|
+
errors: [UnknownCoinbaseError],
|
|
3832
|
+
protocol: CoinbaseProtocol,
|
|
3833
|
+
retry: Retry.Retry,
|
|
3834
|
+
}));
|
|
3835
|
+
/** List balances for account List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. */
|
|
3836
|
+
export const listBalances = /*@__PURE__*/ API.make(() => ({
|
|
3837
|
+
input: ListBalancesRequest,
|
|
3838
|
+
output: ListBalancesResponse,
|
|
3839
|
+
errors: [UnknownCoinbaseError],
|
|
3840
|
+
protocol: CoinbaseProtocol,
|
|
3841
|
+
retry: Retry.Retry,
|
|
3842
|
+
}));
|
|
3843
|
+
/** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. **Note:** This endpoint provides <1 second freshness from chain tip, <500ms response latency for wallets with reasonable token history, and 99.9% uptime for production use. */
|
|
3844
|
+
export const listDataTokenBalances = /*@__PURE__*/ API.make(() => ({
|
|
3845
|
+
input: ListDataTokenBalancesRequest,
|
|
3846
|
+
output: ListDataTokenBalancesResponse,
|
|
3847
|
+
errors: [UnknownCoinbaseError],
|
|
3848
|
+
protocol: CoinbaseProtocol,
|
|
3849
|
+
retry: Retry.Retry,
|
|
3850
|
+
}));
|
|
3851
|
+
/** List deposit destinations List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first). */
|
|
3852
|
+
export const listDepositDestinations = /*@__PURE__*/ API.make(() => ({
|
|
3853
|
+
input: ListDepositDestinationsRequest,
|
|
3854
|
+
output: ListDepositDestinationsResponse,
|
|
3855
|
+
errors: [UnknownCoinbaseError],
|
|
3856
|
+
protocol: CoinbaseProtocol,
|
|
3857
|
+
retry: Retry.Retry,
|
|
3858
|
+
}));
|
|
3859
|
+
/** List end users Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. */
|
|
3860
|
+
export const listEndUsers = /*@__PURE__*/ API.make(() => ({
|
|
3861
|
+
input: ListEndUsersRequest,
|
|
3862
|
+
output: ListEndUsersResponse,
|
|
3863
|
+
errors: [UnknownCoinbaseError],
|
|
3864
|
+
protocol: CoinbaseProtocol,
|
|
3865
|
+
retry: Retry.Retry,
|
|
3866
|
+
}));
|
|
3867
|
+
/** List EVM accounts Lists the EVM accounts belonging to the developer's CDP Project. The response is paginated, and by default, returns 20 accounts per page. */
|
|
3868
|
+
export const listEvmAccounts = /*@__PURE__*/ API.make(() => ({
|
|
3869
|
+
input: ListEvmAccountsRequest,
|
|
3870
|
+
output: ListEvmAccountsResponse,
|
|
3871
|
+
errors: [UnknownCoinbaseError],
|
|
3872
|
+
protocol: CoinbaseProtocol,
|
|
3873
|
+
retry: Retry.Retry,
|
|
3874
|
+
}));
|
|
3875
|
+
/** List Smart Accounts Lists the Smart Accounts belonging to the developer's CDP Project. The response is paginated, and by default, returns 20 accounts per page. */
|
|
3876
|
+
export const listEvmSmartAccounts = /*@__PURE__*/ API.make(() => ({
|
|
3877
|
+
input: ListEvmSmartAccountsRequest,
|
|
3878
|
+
output: ListEvmSmartAccountsResponse,
|
|
3879
|
+
errors: [UnknownCoinbaseError],
|
|
3880
|
+
protocol: CoinbaseProtocol,
|
|
3881
|
+
retry: Retry.Retry,
|
|
3882
|
+
}));
|
|
3883
|
+
/** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. **Note:** This endpoint is still under development and does not yet provide strong freshness guarantees. Specifically, balances of new tokens can, on occasion, take up to ~30 seconds to appear, while balances of tokens already belonging to an address will generally be close to chain tip. Freshness of new token balances will improve over the coming weeks. */
|
|
3884
|
+
export const listEvmTokenBalances = /*@__PURE__*/ API.make(() => ({
|
|
3885
|
+
input: ListEvmTokenBalancesRequest,
|
|
3886
|
+
output: ListEvmTokenBalancesResponse,
|
|
3887
|
+
errors: [UnknownCoinbaseError],
|
|
3888
|
+
protocol: CoinbaseProtocol,
|
|
3889
|
+
retry: Retry.Retry,
|
|
3890
|
+
}));
|
|
3891
|
+
/** List accounts List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). */
|
|
3892
|
+
export const listFoundationAccounts = /*@__PURE__*/ API.make(() => ({
|
|
3893
|
+
input: ListFoundationAccountsRequest,
|
|
3894
|
+
output: ListFoundationAccountsResponse,
|
|
3895
|
+
errors: [UnknownCoinbaseError],
|
|
3896
|
+
protocol: CoinbaseProtocol,
|
|
3897
|
+
retry: Retry.Retry,
|
|
3898
|
+
}));
|
|
3899
|
+
/** List payment methods List payment methods linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers. The list will not include disabled or deleted payment methods. **Currently Supported Types:** - `fedwire`: Domestic USD wire transfers - `swift`: International wire transfers - `sepa`: SEPA EUR transfers **Note:** Payment methods are created and verified through your linked CDP entity. Currently, fetching payment methods is only supported for Prime investment vehicles linked to CDP. */
|
|
3900
|
+
export const listPaymentMethods = /*@__PURE__*/ API.make(() => ({
|
|
3901
|
+
input: ListPaymentMethodsRequest,
|
|
3902
|
+
output: ListPaymentMethodsResponse,
|
|
3903
|
+
errors: [UnknownCoinbaseError],
|
|
3904
|
+
protocol: CoinbaseProtocol,
|
|
3905
|
+
retry: Retry.Retry,
|
|
3906
|
+
}));
|
|
3907
|
+
/** List policies Lists the policies belonging to the developer's CDP Project. Use the `scope` parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. */
|
|
3908
|
+
export const listPolicies = /*@__PURE__*/ API.make(() => ({
|
|
3909
|
+
input: ListPoliciesRequest,
|
|
3910
|
+
output: ListPoliciesResponse,
|
|
3911
|
+
errors: [UnknownCoinbaseError],
|
|
3912
|
+
protocol: CoinbaseProtocol,
|
|
3913
|
+
retry: Retry.Retry,
|
|
3914
|
+
}));
|
|
3915
|
+
/** List Solana accounts Lists the Solana accounts belonging to the developer. The response is paginated, and by default, returns 20 accounts per page. If a name is provided, the response will contain only the account with that name. */
|
|
3916
|
+
export const listSolanaAccounts = /*@__PURE__*/ API.make(() => ({
|
|
3917
|
+
input: ListSolanaAccountsRequest,
|
|
3918
|
+
output: ListSolanaAccountsResponse,
|
|
3919
|
+
errors: [UnknownCoinbaseError],
|
|
3920
|
+
protocol: CoinbaseProtocol,
|
|
3921
|
+
retry: Retry.Retry,
|
|
3922
|
+
}));
|
|
3923
|
+
/** List Solana token balances Lists the token balances of a Solana address on a given network. The balances include SPL tokens and the native SOL token. The response is paginated, and by default, returns 20 balances per page. **Note:** This endpoint is still under development and does not yet provide strong availability or freshness guarantees. Freshness and availability of new token balances will improve over the coming weeks. */
|
|
3924
|
+
export const listSolanaTokenBalances = /*@__PURE__*/ API.make(() => ({
|
|
3925
|
+
input: ListSolanaTokenBalancesRequest,
|
|
3926
|
+
output: ListSolanaTokenBalancesResponse,
|
|
3927
|
+
errors: [UnknownCoinbaseError],
|
|
3928
|
+
protocol: CoinbaseProtocol,
|
|
3929
|
+
retry: Retry.Retry,
|
|
3930
|
+
}));
|
|
3931
|
+
/** List spend permissions Lists spend permission for the given smart account address. */
|
|
3932
|
+
export const listSpendPermissions = /*@__PURE__*/ API.make(() => ({
|
|
3933
|
+
input: ListSpendPermissionsRequest,
|
|
3934
|
+
output: ListSpendPermissionsResponse,
|
|
3935
|
+
errors: [UnknownCoinbaseError],
|
|
3936
|
+
protocol: CoinbaseProtocol,
|
|
3937
|
+
retry: Retry.Retry,
|
|
3938
|
+
}));
|
|
3939
|
+
/** List token addresses for account Retrieve all ERC-20 token contract addresses that an account has ever received tokens from. Analyzes transaction history to discover token interactions. */
|
|
3940
|
+
export const listTokensForAccount = /*@__PURE__*/ API.make(() => ({
|
|
3941
|
+
input: ListTokensForAccountRequest,
|
|
3942
|
+
output: AccountTokenAddressesResponse,
|
|
3943
|
+
errors: [UnknownCoinbaseError],
|
|
3944
|
+
protocol: CoinbaseProtocol,
|
|
3945
|
+
retry: Retry.Retry,
|
|
3946
|
+
}));
|
|
3947
|
+
/** List transfers List transfers for your organization. Use this to view and monitor your transfer activity. **Status Filtering**: Filter by specific status to efficiently manage transfers: * `?status=processing` - Monitor active transfers. * `?status=quoted` - Find transfers awaiting execution. * `?status=failed` - Review failed transfers for troubleshooting. * `?status=completed` - Find completed transfers. **Account Filtering**: Filter by account ID to find transfers involving a specific account: * `?accountId=<ID>` - All transfers where the account is either source or target (OR semantics). * `?sourceAccountId=<ID>` - Only transfers where the account is the source (outbound). * `?targetAccountId=<ID>` - Only transfers where the account is the target (inbound). Providing `accountId` together with `sourceAccountId` or `targetAccountId` is a validation error and returns HTTP 400. **Date Range Filtering**: Filter by creation or last-updated time for reconciliation: * `?createdAfter=2026-01-01T00:00:00Z&createdBefore=2026-01-31T23:59:59Z` - Transfers created within a date range. * `?updatedAfter=2026-01-01T00:00:00Z` - Transfers updated since a given time. Useful for incremental sync. **Asset Filtering**: Filter by source or target asset symbol: * `?sourceAsset=usd` - Transfers funded from a USD account. * `?targetAsset=usdc` - Transfers delivering USDC to the target. **Other Filters**: * `?sourceAddress=0x...` - Transfers from a specific on-chain source address. * `?targetAddress=0x...` - Transfers to a specific on-chain destination address. * `?targetEmail=user@example.com` - Transfers to a specific email recipient. * `?transferId=transfer_...` - Look up a single transfer by ID; bypasses pagination. */
|
|
3948
|
+
export const listTransfers = /*@__PURE__*/ API.make(() => ({
|
|
3949
|
+
input: ListTransfersRequest,
|
|
3950
|
+
output: ListTransfersResponse,
|
|
3951
|
+
errors: [UnknownCoinbaseError],
|
|
3952
|
+
protocol: CoinbaseProtocol,
|
|
3953
|
+
retry: Retry.Retry,
|
|
3954
|
+
}));
|
|
3955
|
+
/** List webhook subscription events Retrieve webhook event delivery attempts for a specific subscription. Returns event deliveries in descending order by creation time (newest first), including delivery status, retry count, and response details. ### Use Cases - Debug webhook delivery failures and inspect response codes - Monitor delivery status and retry counts - Audit event delivery history for a subscription - Verify that expected events were sent to webhook URLs ### Filtering Use optional query parameters to narrow results: - `eventId` — find a specific event by ID - `minCreatedAt` / `maxCreatedAt` — filter by time range - `eventTypeNames` — filter by event type (comma-separated) **Note:** Results are limited to the 50 most recent events (newest first). No pagination is supported. */
|
|
3956
|
+
export const listWebhookSubscriptionEvents = /*@__PURE__*/ API.make(() => ({
|
|
3957
|
+
input: ListWebhookSubscriptionEventsRequest,
|
|
3958
|
+
output: WebhookEventListResponse,
|
|
3959
|
+
errors: [UnknownCoinbaseError],
|
|
3960
|
+
protocol: CoinbaseProtocol,
|
|
3961
|
+
retry: Retry.Retry,
|
|
3962
|
+
}));
|
|
3963
|
+
/** List webhook subscriptions Retrieve a paginated list of webhook subscriptions for the authenticated project. Returns subscriptions for all CDP product events (onchain, onramp/offramp, wallet, etc.) in descending order by creation time. ### Use Cases - Monitor all active webhook subscriptions across CDP products - Audit webhook configurations - Manage subscription lifecycle */
|
|
3964
|
+
export const listWebhookSubscriptions = /*@__PURE__*/ API.make(() => ({
|
|
3965
|
+
input: ListWebhookSubscriptionsRequest,
|
|
3966
|
+
output: ListWebhookSubscriptionsResponse,
|
|
3967
|
+
errors: [UnknownCoinbaseError],
|
|
3968
|
+
protocol: CoinbaseProtocol,
|
|
3969
|
+
retry: Retry.Retry,
|
|
3970
|
+
}));
|
|
3971
|
+
/** List merchant discovery info Gets x402 merchant discovery information for a given merchant payment address. 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. If no active resources are found for the `payTo` address, the endpoint returns an empty `resources` list. The response is paginated, and by default, returns 20 items per page. */
|
|
3972
|
+
export const listX402DiscoveryMerchant = /*@__PURE__*/ API.make(() => ({
|
|
3973
|
+
input: ListX402DiscoveryMerchantRequest,
|
|
3974
|
+
output: X402DiscoveryMerchantResponse,
|
|
3975
|
+
errors: [UnknownCoinbaseError],
|
|
3976
|
+
protocol: CoinbaseProtocol,
|
|
3977
|
+
retry: Retry.Retry,
|
|
3978
|
+
}));
|
|
3979
|
+
/** List x402 resources Lists all active discovered x402 resources. This endpoint returns resources that have been discovered and cached by the x402 facilitator, including their payment requirements and metadata. The response is paginated, and by default, returns 100 items per page. */
|
|
3980
|
+
export const listX402DiscoveryResources = /*@__PURE__*/ API.make(() => ({
|
|
3981
|
+
input: ListX402DiscoveryResourcesRequest,
|
|
3982
|
+
output: X402DiscoveryResourcesResponse,
|
|
3983
|
+
errors: [UnknownCoinbaseError],
|
|
3984
|
+
protocol: CoinbaseProtocol,
|
|
3985
|
+
retry: Retry.Retry,
|
|
3986
|
+
}));
|
|
3987
|
+
/** Look up end users by identity Looks up end users. Exactly one lookup type must be provided per request: - **email**: searches across all email-based authentication methods (email, Google, Apple, GitHub). May return multiple end users if the same email address appears across different auth methods. - **oauthProvider + oauthSubject**: looks up a user by their OAuth provider and subject (the `sub` claim from the provider's ID token). Both params must be provided together. - **phoneNumber**: looks up a user by their SMS-verified phone number. - **siweAddress**: looks up a user by the Ethereum address they authenticated with via Sign In With Ethereum (EIP-4361). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
3988
|
+
export const lookupEndUser = /*@__PURE__*/ API.make(() => ({
|
|
3989
|
+
input: LookupEndUserRequest,
|
|
3990
|
+
output: LookupEndUserResponse,
|
|
3991
|
+
errors: [UnknownCoinbaseError],
|
|
3992
|
+
protocol: CoinbaseProtocol,
|
|
3993
|
+
retry: Retry.Retry,
|
|
3994
|
+
}));
|
|
3995
|
+
/** Handle MCP JSON-RPC request Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools. */
|
|
3996
|
+
export const postX402DiscoveryMcp = /*@__PURE__*/ API.make(() => ({
|
|
3997
|
+
input: PostX402DiscoveryMcpRequest,
|
|
3998
|
+
output: X402McpResponse,
|
|
3999
|
+
errors: [UnknownCoinbaseError],
|
|
4000
|
+
protocol: CoinbaseProtocol,
|
|
4001
|
+
retry: Retry.Retry,
|
|
4002
|
+
}));
|
|
4003
|
+
/** Prepare and send user operation 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. */
|
|
4004
|
+
export const prepareAndSendUserOperation = /*@__PURE__*/ API.make(() => ({
|
|
4005
|
+
input: PrepareAndSendUserOperationRequest,
|
|
4006
|
+
output: EvmUserOperation,
|
|
4007
|
+
errors: [UnknownCoinbaseError],
|
|
4008
|
+
protocol: CoinbaseProtocol,
|
|
4009
|
+
retry: Retry.Retry,
|
|
4010
|
+
}));
|
|
4011
|
+
/** Prepare user operation Prepares a new user operation on a Smart Account for a specific network. */
|
|
4012
|
+
export const prepareUserOperation = /*@__PURE__*/ API.make(() => ({
|
|
4013
|
+
input: PrepareUserOperationRequest,
|
|
4014
|
+
output: EvmUserOperation,
|
|
4015
|
+
errors: [UnknownCoinbaseError],
|
|
4016
|
+
protocol: CoinbaseProtocol,
|
|
4017
|
+
retry: Retry.Retry,
|
|
4018
|
+
}));
|
|
4019
|
+
/** Request funds on EVM test networks Request funds from the CDP Faucet on supported EVM test networks. Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia, and for ETH only on Ethereum Hoodi. To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested. These limits are applied at both the CDP User level and the blockchain address level. A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address. */
|
|
4020
|
+
export const requestEvmFaucet = /*@__PURE__*/ API.make(() => ({
|
|
4021
|
+
input: RequestEvmFaucetRequest,
|
|
4022
|
+
output: RequestEvmFaucetResponse,
|
|
4023
|
+
errors: [UnknownCoinbaseError],
|
|
4024
|
+
protocol: CoinbaseProtocol,
|
|
4025
|
+
retry: Retry.Retry,
|
|
4026
|
+
}));
|
|
4027
|
+
/** Request limit upgrade Requests a limit upgrade for an onramp user by submitting identity information. Only phone number is currently supported as a userId. The verification process is asynchronous. After calling this endpoint, use the [Get Onramp User Limits](https://docs.cdp.coinbase.com/api-reference/v2/rest-api/onramp/get-onramp-user-limits) endpoint to check the status in the `limitUpgradeOptions` array. **Prerequisites:** - The phone number must have been previously verified by your app via OTP. - Upgrades may not be available until a certain number of successful transactions by the user. **Supported fields:** - `ssnLast4`: Last 4 digits of the Social Security Number (no dashes or spaces). - `dateOfBirth`: Date of birth (day, month, year as zero-padded strings). */
|
|
4028
|
+
export const requestLimitsUpgrade = /*@__PURE__*/ API.make(() => ({
|
|
4029
|
+
input: RequestLimitsUpgradeRequest,
|
|
4030
|
+
output: RequestLimitsUpgradeResponse,
|
|
4031
|
+
errors: [UnknownCoinbaseError],
|
|
4032
|
+
protocol: CoinbaseProtocol,
|
|
4033
|
+
retry: Retry.Retry,
|
|
4034
|
+
}));
|
|
4035
|
+
/** Request funds on Solana devnet Request funds from the CDP Faucet on Solana devnet. Faucets are available for SOL, USDC, and CBTUSD. To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested. These limits are applied at both the CDP Project level and the blockchain address level. A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address. */
|
|
4036
|
+
export const requestSolanaFaucet = /*@__PURE__*/ API.make(() => ({
|
|
4037
|
+
input: RequestSolanaFaucetRequest,
|
|
4038
|
+
output: RequestSolanaFaucetResponse,
|
|
4039
|
+
errors: [UnknownCoinbaseError],
|
|
4040
|
+
protocol: CoinbaseProtocol,
|
|
4041
|
+
retry: Retry.Retry,
|
|
4042
|
+
}));
|
|
4043
|
+
/** Revoke delegation for end user Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key. */
|
|
4044
|
+
export const revokeDelegationForEndUser = /*@__PURE__*/ API.make(() => ({
|
|
4045
|
+
input: RevokeDelegationForEndUserRequest,
|
|
4046
|
+
output: RevokeDelegationForEndUserResponse,
|
|
4047
|
+
errors: [UnknownCoinbaseError],
|
|
4048
|
+
protocol: CoinbaseProtocol,
|
|
4049
|
+
retry: Retry.Retry,
|
|
4050
|
+
}));
|
|
4051
|
+
/** Revoke account-scoped delegation for end user Revokes the active account-scoped delegation for the specified end user account. Other account-scoped delegations for the same user are unaffected. This operation can be performed by the end user themselves or by a developer using their API key. When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA. */
|
|
4052
|
+
export const revokeDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4053
|
+
input: RevokeDelegationForEndUserAccountRequest,
|
|
4054
|
+
output: RevokeDelegationForEndUserAccountResponse,
|
|
4055
|
+
errors: [UnknownCoinbaseError],
|
|
4056
|
+
protocol: CoinbaseProtocol,
|
|
4057
|
+
retry: Retry.Retry,
|
|
4058
|
+
}));
|
|
4059
|
+
/** Revoke spend permission Revokes an existing spend permission. */
|
|
4060
|
+
export const revokeSpendPermission = /*@__PURE__*/ API.make(() => ({
|
|
4061
|
+
input: RevokeSpendPermissionRequest,
|
|
4062
|
+
output: EvmUserOperation,
|
|
4063
|
+
errors: [UnknownCoinbaseError],
|
|
4064
|
+
protocol: CoinbaseProtocol,
|
|
4065
|
+
retry: Retry.Retry,
|
|
4066
|
+
}));
|
|
4067
|
+
/** Run SQL Query Run a read-only SQL query against indexed blockchain data including transactions, events, and decoded logs. This endpoint provides direct SQL access to comprehensive blockchain data across supported networks. Queries are executed against optimized data structures for high-performance analytics. ### Allowed Queries - Standard SQL syntax (CoinbaSeQL dialect, based on ClickHouse dialect) - Read-only queries (SELECT statements) - No DDL or DML operations - Query that follow limits (defined below) ### Supported Networks - Base Mainnet: `base` - Base Sepolia: `base_sepolia` - Solana Mainnet: `solana` - Hyperevm Mainnet: `hyperevm` ### Supported Tables The below tables are supported for `base` and `base_sepolia` networks. Following the above, the valid tables on Base Mainnet are `base.events`, `base.transactions`, `base.blocks`, `base.encoded_logs`, `base.decoded_user_operations`, and `base.transaction_attributions`. Separately, there is a limited set of tables supported for `solana` and `hyperevm` networks: ### Query Limits - Maximum result set: 50,000 rows - Maximum query length: 10,000 characters - Maximum on-disk data to read: 100GB - Maximum memory usage: 15GB - Query timeout: 30 seconds - Maximum JOINs: 12 ### Query Caching By default, each query result is returned from cache so long as the result is from an identical query and less than 750ms old. This freshness tolerance can be modified upwards, to a maximum of 900000ms (i.e. 900s, 15m). This can be helpful for users who wish to reduce expensive calls to the SQL API by reusing cached results. */
|
|
4068
|
+
export const runSQLQuery = /*@__PURE__*/ API.make(() => ({
|
|
4069
|
+
input: RunSQLQueryRequest,
|
|
4070
|
+
output: OnchainDataResult,
|
|
4071
|
+
errors: [UnknownCoinbaseError],
|
|
4072
|
+
protocol: CoinbaseProtocol,
|
|
4073
|
+
retry: Retry.Retry,
|
|
4074
|
+
}));
|
|
4075
|
+
/** Search x402 resources Searches for active x402 resources using a text query and optional filters. Supports both text-based and vector-based search depending on availability. Results are sorted by relevance and quality score. Legacy network names (e.g., `base`, `base-sepolia`, `solana`) are automatically normalized to their CAIP-2 equivalents. The response is limited to 20 items per request. If more results exist, `partialResults` will be `true`. */
|
|
4076
|
+
export const searchX402Resources = /*@__PURE__*/ API.make(() => ({
|
|
4077
|
+
input: SearchX402ResourcesRequest,
|
|
4078
|
+
output: X402SearchResourcesResponse,
|
|
4079
|
+
errors: [UnknownCoinbaseError],
|
|
4080
|
+
protocol: CoinbaseProtocol,
|
|
4081
|
+
retry: Retry.Retry,
|
|
4082
|
+
}));
|
|
4083
|
+
/** Send USDC on EVM Sends USDC from an end user's EVM account (EOA or Smart Account) to a recipient address on a supported EVM network. This endpoint simplifies USDC transfers by automatically handling contract resolution, decimal conversion, gas estimation, and transaction encoding. The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50"). */
|
|
4084
|
+
export const sendEvmAssetWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4085
|
+
input: SendEvmAssetWithEndUserAccountRequest,
|
|
4086
|
+
output: SendEvmAssetWithEndUserAccountResponse,
|
|
4087
|
+
errors: [UnknownCoinbaseError],
|
|
4088
|
+
protocol: CoinbaseProtocol,
|
|
4089
|
+
retry: Retry.Retry,
|
|
4090
|
+
}));
|
|
4091
|
+
/** Send transaction Signs a transaction with the given EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/). The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). **Transaction fields and API behavior** - `to` *(Required)*: The address of the contract or account to send the transaction to. - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored. The transaction will be sent to the network indicated by the `network` field in the request body. - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign a nonce to the transaction based on the current state of the account. - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions. - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions. - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value based on the `to` and `data` fields of the transaction. - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction. - `data` *(Optional)*: The data to send with the transaction; only used for contract calls. - `accessList` *(Optional)*: The access list to use for the transaction. */
|
|
4092
|
+
export const sendEvmTransaction = /*@__PURE__*/ API.make(() => ({
|
|
4093
|
+
input: SendEvmTransactionRequest,
|
|
4094
|
+
output: SendEvmTransactionResponse,
|
|
4095
|
+
errors: [UnknownCoinbaseError],
|
|
4096
|
+
protocol: CoinbaseProtocol,
|
|
4097
|
+
retry: Retry.Retry,
|
|
4098
|
+
}));
|
|
4099
|
+
/** Send transaction via end user EVM account Signs a transaction with the given end user EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/). The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). **Transaction fields and API behavior** - `to` *(Required)*: The address of the contract or account to send the transaction to. - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored. The transaction will be sent to the network indicated by the `network` field in the request body. - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign a nonce to the transaction based on the current state of the account. - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions. - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions. - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value based on the `to` and `data` fields of the transaction. - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction. - `data` *(Optional)*: The data to send with the transaction; only used for contract calls. - `accessList` *(Optional)*: The access list to use for the transaction. */
|
|
4100
|
+
export const sendEvmTransactionWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4101
|
+
input: SendEvmTransactionWithEndUserAccountRequest,
|
|
4102
|
+
output: SendEvmTransactionWithEndUserAccountResponse,
|
|
4103
|
+
errors: [UnknownCoinbaseError],
|
|
4104
|
+
protocol: CoinbaseProtocol,
|
|
4105
|
+
retry: Retry.Retry,
|
|
4106
|
+
}));
|
|
4107
|
+
/** Send USDC on Solana Sends USDC from an end user's Solana account to a recipient address on the Solana network. This endpoint simplifies USDC transfers by automatically handling mint resolution, Associated Token Account (ATA) creation, decimal conversion, and transaction encoding. The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50"). Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist. */
|
|
4108
|
+
export const sendSolanaAssetWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4109
|
+
input: SendSolanaAssetWithEndUserAccountRequest,
|
|
4110
|
+
output: SendSolanaAssetWithEndUserAccountResponse,
|
|
4111
|
+
errors: [UnknownCoinbaseError],
|
|
4112
|
+
protocol: CoinbaseProtocol,
|
|
4113
|
+
retry: Retry.Retry,
|
|
4114
|
+
}));
|
|
4115
|
+
/** Send Solana transaction Signs and sends a single Solana transaction using multiple Solana accounts. The transaction may contain contain several instructions, each of which may require signatures from different account keys. The transaction should be serialized into a byte array and base64 encoded. The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. **Transaction types** The following transaction types are supported: * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions) * [Versioned transactions](https://solana.com/developers/guides/advanced/versions) **Instruction Batching** To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back. **Network Support** The following Solana networks are supported: * `solana` - Solana Mainnet * `solana-devnet` - Solana Devnet The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4116
|
+
export const sendSolanaTransaction = /*@__PURE__*/ API.make(() => ({
|
|
4117
|
+
input: SendSolanaTransactionRequest,
|
|
4118
|
+
output: SendSolanaTransactionResponse,
|
|
4119
|
+
errors: [UnknownCoinbaseError],
|
|
4120
|
+
protocol: CoinbaseProtocol,
|
|
4121
|
+
retry: Retry.Retry,
|
|
4122
|
+
}));
|
|
4123
|
+
/** Send transaction via end user Solana account Signs a transaction with the given end user Solana account and sends it to the indicated supported network. The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The unsigned transaction should be serialized into a byte array and then encoded as base64. **Transaction types** The following transaction types are supported: * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions) * [Versioned transactions](https://solana.com/developers/guides/advanced/versions) **Instruction Batching** To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back. **Network Support** The following Solana networks are supported: * `solana` - Solana Mainnet * `solana-devnet` - Solana Devnet The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4124
|
+
export const sendSolanaTransactionWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4125
|
+
input: SendSolanaTransactionWithEndUserAccountRequest,
|
|
4126
|
+
output: SendSolanaTransactionWithEndUserAccountResponse,
|
|
4127
|
+
errors: [UnknownCoinbaseError],
|
|
4128
|
+
protocol: CoinbaseProtocol,
|
|
4129
|
+
retry: Retry.Retry,
|
|
4130
|
+
}));
|
|
4131
|
+
/** Send user operation Sends a user operation with a signature. The payload to sign must be the `userOpHash` field of the user operation. This hash should be signed directly (not using `personal_sign` or EIP-191 message hashing). The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r` value - 32 bytes for the `s` value - 1 byte for the `v` value (must be 27 or 28) If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared. */
|
|
4132
|
+
export const sendUserOperation = /*@__PURE__*/ API.make(() => ({
|
|
4133
|
+
input: SendUserOperationRequest,
|
|
4134
|
+
output: EvmUserOperation,
|
|
4135
|
+
errors: [UnknownCoinbaseError],
|
|
4136
|
+
protocol: CoinbaseProtocol,
|
|
4137
|
+
retry: Retry.Retry,
|
|
4138
|
+
}));
|
|
4139
|
+
/** Send user operation for end user Smart Account Prepares, signs, and sends a user operation for an end user's Smart Account. */
|
|
4140
|
+
export const sendUserOperationWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4141
|
+
input: SendUserOperationWithEndUserAccountRequest,
|
|
4142
|
+
output: EvmUserOperation,
|
|
4143
|
+
errors: [UnknownCoinbaseError],
|
|
4144
|
+
protocol: CoinbaseProtocol,
|
|
4145
|
+
retry: Retry.Retry,
|
|
4146
|
+
}));
|
|
4147
|
+
/** Settle payment Settle an x402 protocol payment with a specific scheme and network. */
|
|
4148
|
+
export const settleX402Payment = /*@__PURE__*/ API.make(() => ({
|
|
4149
|
+
input: SettleX402PaymentRequest,
|
|
4150
|
+
output: SettleX402PaymentResponse,
|
|
4151
|
+
errors: [UnknownCoinbaseError],
|
|
4152
|
+
protocol: CoinbaseProtocol,
|
|
4153
|
+
retry: Retry.Retry,
|
|
4154
|
+
}));
|
|
4155
|
+
/** Sign hash Signs an arbitrary 32 byte hash with the given EVM account. */
|
|
4156
|
+
export const signEvmHash = /*@__PURE__*/ API.make(() => ({
|
|
4157
|
+
input: SignEvmHashRequest,
|
|
4158
|
+
output: SignEvmHashResponse,
|
|
4159
|
+
errors: [UnknownCoinbaseError],
|
|
4160
|
+
protocol: CoinbaseProtocol,
|
|
4161
|
+
retry: Retry.Retry,
|
|
4162
|
+
}));
|
|
4163
|
+
/** Sign EIP-191 message Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account. Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed. */
|
|
4164
|
+
export const signEvmMessage = /*@__PURE__*/ API.make(() => ({
|
|
4165
|
+
input: SignEvmMessageRequest,
|
|
4166
|
+
output: SignEvmMessageResponse,
|
|
4167
|
+
errors: [UnknownCoinbaseError],
|
|
4168
|
+
protocol: CoinbaseProtocol,
|
|
4169
|
+
retry: Retry.Retry,
|
|
4170
|
+
}));
|
|
4171
|
+
/** Sign EIP-191 message via end user EVM account Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account. Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed. */
|
|
4172
|
+
export const signEvmMessageWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4173
|
+
input: SignEvmMessageWithEndUserAccountRequest,
|
|
4174
|
+
output: SignEvmMessageWithEndUserAccountResponse,
|
|
4175
|
+
errors: [UnknownCoinbaseError],
|
|
4176
|
+
protocol: CoinbaseProtocol,
|
|
4177
|
+
retry: Retry.Retry,
|
|
4178
|
+
}));
|
|
4179
|
+
/** Sign transaction Signs a transaction with the given EVM account. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/). The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4180
|
+
export const signEvmTransaction = /*@__PURE__*/ API.make(() => ({
|
|
4181
|
+
input: SignEvmTransactionRequest,
|
|
4182
|
+
output: SignEvmTransactionResponse,
|
|
4183
|
+
errors: [UnknownCoinbaseError],
|
|
4184
|
+
protocol: CoinbaseProtocol,
|
|
4185
|
+
retry: Retry.Retry,
|
|
4186
|
+
}));
|
|
4187
|
+
/** Sign transaction via end user EVM account Signs a transaction with the given end user EVM account. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/). The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4188
|
+
export const signEvmTransactionWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4189
|
+
input: SignEvmTransactionWithEndUserAccountRequest,
|
|
4190
|
+
output: SignEvmTransactionWithEndUserAccountResponse,
|
|
4191
|
+
errors: [UnknownCoinbaseError],
|
|
4192
|
+
protocol: CoinbaseProtocol,
|
|
4193
|
+
retry: Retry.Retry,
|
|
4194
|
+
}));
|
|
4195
|
+
/** Sign EIP-712 typed data Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given EVM account. */
|
|
4196
|
+
export const signEvmTypedData = /*@__PURE__*/ API.make(() => ({
|
|
4197
|
+
input: SignEvmTypedDataRequest,
|
|
4198
|
+
output: SignEvmTypedDataResponse,
|
|
4199
|
+
errors: [UnknownCoinbaseError],
|
|
4200
|
+
protocol: CoinbaseProtocol,
|
|
4201
|
+
retry: Retry.Retry,
|
|
4202
|
+
}));
|
|
4203
|
+
/** Sign EIP-712 typed data via end user EVM account Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account. */
|
|
4204
|
+
export const signEvmTypedDataWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4205
|
+
input: SignEvmTypedDataWithEndUserAccountRequest,
|
|
4206
|
+
output: SignEvmTypedDataWithEndUserAccountResponse,
|
|
4207
|
+
errors: [UnknownCoinbaseError],
|
|
4208
|
+
protocol: CoinbaseProtocol,
|
|
4209
|
+
retry: Retry.Retry,
|
|
4210
|
+
}));
|
|
4211
|
+
/** Sign message Signs an arbitrary message with the given Solana account. **WARNING:** Never sign a message that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker. */
|
|
4212
|
+
export const signSolanaMessage = /*@__PURE__*/ API.make(() => ({
|
|
4213
|
+
input: SignSolanaMessageRequest,
|
|
4214
|
+
output: SignSolanaMessageResponse,
|
|
4215
|
+
errors: [UnknownCoinbaseError],
|
|
4216
|
+
protocol: CoinbaseProtocol,
|
|
4217
|
+
retry: Retry.Retry,
|
|
4218
|
+
}));
|
|
4219
|
+
/** Sign Base64-encoded message Signs an arbitrary Base64 encoded message with the given Solana account. **WARNING:** Never sign a message that you didn't generate as it may put your funds at risk. */
|
|
4220
|
+
export const signSolanaMessageWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4221
|
+
input: SignSolanaMessageWithEndUserAccountRequest,
|
|
4222
|
+
output: SignSolanaMessageWithEndUserAccountResponse,
|
|
4223
|
+
errors: [UnknownCoinbaseError],
|
|
4224
|
+
protocol: CoinbaseProtocol,
|
|
4225
|
+
retry: Retry.Retry,
|
|
4226
|
+
}));
|
|
4227
|
+
/** Sign transaction Signs a transaction with the given Solana account. The unsigned transaction should be serialized into a byte array and then encoded as base64. **Transaction types** The following transaction types are supported: * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html) * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html) The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4228
|
+
export const signSolanaTransaction = /*@__PURE__*/ API.make(() => ({
|
|
4229
|
+
input: SignSolanaTransactionRequest,
|
|
4230
|
+
output: SignSolanaTransactionResponse,
|
|
4231
|
+
errors: [UnknownCoinbaseError],
|
|
4232
|
+
protocol: CoinbaseProtocol,
|
|
4233
|
+
retry: Retry.Retry,
|
|
4234
|
+
}));
|
|
4235
|
+
/** Sign transaction via end user Solana account Signs a transaction with the given end user Solana account. The unsigned transaction should be serialized into a byte array and then encoded as base64. **Transaction types** The following transaction types are supported: * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html) * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html) The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. */
|
|
4236
|
+
export const signSolanaTransactionWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
|
|
4237
|
+
input: SignSolanaTransactionWithEndUserAccountRequest,
|
|
4238
|
+
output: SignSolanaTransactionWithEndUserAccountResponse,
|
|
4239
|
+
errors: [UnknownCoinbaseError],
|
|
4240
|
+
protocol: CoinbaseProtocol,
|
|
4241
|
+
retry: Retry.Retry,
|
|
4242
|
+
}));
|
|
4243
|
+
/** Submit deposit travel rule information Submit travel rule information for a deposit transfer held pending compliance review. Required fields vary by jurisdiction and may include originator name, address, date of birth, personal ID, and VASP information. If the submitted information satisfies all jurisdictional requirements, `status` will be `completed` and the transfer will proceed. Otherwise, `status` will be `incomplete` and `missingFields` will indicate which fields still need to be provided. */
|
|
4244
|
+
export const submitDepositTravelRule = /*@__PURE__*/ API.make(() => ({
|
|
4245
|
+
input: SubmitDepositTravelRuleRequest,
|
|
4246
|
+
output: DepositTravelRuleResponse,
|
|
4247
|
+
errors: [UnknownCoinbaseError],
|
|
4248
|
+
protocol: CoinbaseProtocol,
|
|
4249
|
+
retry: Retry.Retry,
|
|
4250
|
+
}));
|
|
4251
|
+
/** Submit onramp verification Submits the OTP code to complete verification. On success, marks the verification as verified and returns the same `verificationId`. The destination does not need to be re-sent. Onramp uses the value captured at initiation time. The returned `verificationId` should be stored on the user's device and passed to the Create Onramp Order endpoint. It is valid for 60 days. **Access to this API requires allowlisting.** During Onramp Headless API onboarding, contact the Onramp team to enable Onramp-managed verification for your application. */
|
|
4252
|
+
export const submitOnrampVerification = /*@__PURE__*/ API.make(() => ({
|
|
4253
|
+
input: SubmitOnrampVerificationRequest,
|
|
4254
|
+
output: OnrampVerificationConfirmation,
|
|
4255
|
+
errors: [UnknownCoinbaseError],
|
|
4256
|
+
protocol: CoinbaseProtocol,
|
|
4257
|
+
retry: Retry.Retry,
|
|
4258
|
+
}));
|
|
4259
|
+
/** Get supported payment schemes and networks Get the supported x402 protocol payment schemes and networks that the facilitator is able to verify and settle payments for. */
|
|
4260
|
+
export const supportedX402PaymentKinds = /*@__PURE__*/ API.make(() => ({
|
|
4261
|
+
input: SupportedX402PaymentKindsRequest,
|
|
4262
|
+
output: SupportedX402PaymentKindsResponse,
|
|
4263
|
+
errors: [UnknownCoinbaseError],
|
|
4264
|
+
protocol: CoinbaseProtocol,
|
|
4265
|
+
retry: Retry.Retry,
|
|
4266
|
+
}));
|
|
4267
|
+
/** Update EVM account Updates an existing EVM account. Use this to update the account's name or account-level policy. */
|
|
4268
|
+
export const updateEvmAccount = /*@__PURE__*/ API.make(() => ({
|
|
4269
|
+
input: UpdateEvmAccountRequest,
|
|
4270
|
+
output: EvmAccount,
|
|
4271
|
+
errors: [UnknownCoinbaseError],
|
|
4272
|
+
protocol: CoinbaseProtocol,
|
|
4273
|
+
retry: Retry.Retry,
|
|
4274
|
+
}));
|
|
4275
|
+
/** Update EVM Smart Account Updates an existing EVM smart account. Use this to update the smart account's name. */
|
|
4276
|
+
export const updateEvmSmartAccount = /*@__PURE__*/ API.make(() => ({
|
|
4277
|
+
input: UpdateEvmSmartAccountRequest,
|
|
4278
|
+
output: EvmSmartAccount,
|
|
4279
|
+
errors: [UnknownCoinbaseError],
|
|
4280
|
+
protocol: CoinbaseProtocol,
|
|
4281
|
+
retry: Retry.Retry,
|
|
4282
|
+
}));
|
|
4283
|
+
/** Update policy Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it. */
|
|
4284
|
+
export const updatePolicy = /*@__PURE__*/ API.make(() => ({
|
|
4285
|
+
input: UpdatePolicyRequest,
|
|
4286
|
+
output: Policy,
|
|
4287
|
+
errors: [UnknownCoinbaseError],
|
|
4288
|
+
protocol: CoinbaseProtocol,
|
|
4289
|
+
retry: Retry.Retry,
|
|
4290
|
+
}));
|
|
4291
|
+
/** Update Solana account Updates an existing Solana account. Use this to update the account's name or account-level policy. */
|
|
4292
|
+
export const updateSolanaAccount = /*@__PURE__*/ API.make(() => ({
|
|
4293
|
+
input: UpdateSolanaAccountRequest,
|
|
4294
|
+
output: SolanaAccount,
|
|
4295
|
+
errors: [UnknownCoinbaseError],
|
|
4296
|
+
protocol: CoinbaseProtocol,
|
|
4297
|
+
retry: Retry.Retry,
|
|
4298
|
+
}));
|
|
4299
|
+
/** Update webhook subscription Update an existing webhook subscription's configuration including event types, target URL, filtering criteria, and enabled status. All required fields must be provided, even if they are not being changed. ### Common Updates - Change target URL or headers - Add/remove event type filters - Update multi-label filtering criteria - Enable/disable subscription */
|
|
4300
|
+
export const updateWebhookSubscription = /*@__PURE__*/ API.make(() => ({
|
|
4301
|
+
input: UpdateWebhookSubscriptionRequest,
|
|
4302
|
+
output: WebhookSubscriptionResponse,
|
|
4303
|
+
errors: [UnknownCoinbaseError],
|
|
4304
|
+
protocol: CoinbaseProtocol,
|
|
4305
|
+
retry: Retry.Retry,
|
|
4306
|
+
}));
|
|
4307
|
+
/** Validate end user access token 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. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
|
|
4308
|
+
export const validateEndUserAccessToken = /*@__PURE__*/ API.make(() => ({
|
|
4309
|
+
input: ValidateEndUserAccessTokenRequest,
|
|
4310
|
+
output: EndUser,
|
|
4311
|
+
errors: [UnknownCoinbaseError],
|
|
4312
|
+
protocol: CoinbaseProtocol,
|
|
4313
|
+
retry: Retry.Retry,
|
|
4314
|
+
}));
|
|
4315
|
+
/** Validate x402 endpoint Validates an x402 endpoint's bazaar-discovery configuration by probing the seller's URL live. 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. This operation is read-only: it performs no payment and does not index the resource. */
|
|
4316
|
+
export const validateX402Resource = /*@__PURE__*/ API.make(() => ({
|
|
4317
|
+
input: ValidateX402ResourceRequest,
|
|
4318
|
+
output: X402ValidateResponse,
|
|
4319
|
+
errors: [UnknownCoinbaseError],
|
|
4320
|
+
protocol: CoinbaseProtocol,
|
|
4321
|
+
retry: Retry.Retry,
|
|
4322
|
+
}));
|
|
4323
|
+
/** Verify payment Verify an x402 protocol payment with a specific scheme and network. */
|
|
4324
|
+
export const verifyX402Payment = /*@__PURE__*/ API.make(() => ({
|
|
4325
|
+
input: VerifyX402PaymentRequest,
|
|
4326
|
+
output: VerifyX402PaymentResponse,
|
|
4327
|
+
errors: [UnknownCoinbaseError],
|
|
4328
|
+
protocol: CoinbaseProtocol,
|
|
4329
|
+
retry: Retry.Retry,
|
|
4330
|
+
}));
|
|
4331
|
+
//# sourceMappingURL=cdp.js.map
|