@distilled.cloud/coinbase 0.0.0 → 0.2.5-alpha2
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/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +45 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +244 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +32 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +29 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +855 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +466 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/addEndUserEvmAccount.d.ts +30 -0
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmAccount.js +38 -0
- package/lib/operations/addEndUserEvmAccount.js.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +32 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.js +43 -0
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts +30 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.js +38 -0
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +61 -0
- package/lib/operations/createEndUser.d.ts.map +1 -0
- package/lib/operations/createEndUser.js +67 -0
- package/lib/operations/createEndUser.js.map +1 -0
- package/lib/operations/createEvmAccount.d.ts +30 -0
- package/lib/operations/createEvmAccount.d.ts.map +1 -0
- package/lib/operations/createEvmAccount.js +36 -0
- package/lib/operations/createEvmAccount.js.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts +34 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.js +53 -0
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -0
- package/lib/operations/createEvmSmartAccount.d.ts +27 -0
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/createEvmSmartAccount.js +35 -0
- package/lib/operations/createEvmSmartAccount.js.map +1 -0
- package/lib/operations/createEvmSwapQuote.d.ts +26 -0
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -0
- package/lib/operations/createEvmSwapQuote.js +40 -0
- package/lib/operations/createEvmSwapQuote.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +58 -0
- package/lib/operations/createOnrampOrder.d.ts.map +1 -0
- package/lib/operations/createOnrampOrder.js +79 -0
- package/lib/operations/createOnrampOrder.js.map +1 -0
- package/lib/operations/createOnrampSession.d.ts +55 -0
- package/lib/operations/createOnrampSession.d.ts.map +1 -0
- package/lib/operations/createOnrampSession.js +70 -0
- package/lib/operations/createOnrampSession.js.map +1 -0
- package/lib/operations/createPolicy.d.ts +28 -0
- package/lib/operations/createPolicy.d.ts.map +1 -0
- package/lib/operations/createPolicy.js +34 -0
- package/lib/operations/createPolicy.js.map +1 -0
- package/lib/operations/createSolanaAccount.d.ts +30 -0
- package/lib/operations/createSolanaAccount.d.ts.map +1 -0
- package/lib/operations/createSolanaAccount.js +38 -0
- package/lib/operations/createSolanaAccount.js.map +1 -0
- package/lib/operations/createSpendPermission.d.ts +55 -0
- package/lib/operations/createSpendPermission.d.ts.map +1 -0
- package/lib/operations/createSpendPermission.js +93 -0
- package/lib/operations/createSpendPermission.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +74 -0
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/createWebhookSubscription.js +82 -0
- package/lib/operations/createWebhookSubscription.js.map +1 -0
- package/lib/operations/deletePolicy.d.ts +20 -0
- package/lib/operations/deletePolicy.d.ts.map +1 -0
- package/lib/operations/deletePolicy.js +26 -0
- package/lib/operations/deletePolicy.js.map +1 -0
- package/lib/operations/deleteWebhookSubscription.d.ts +21 -0
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/deleteWebhookSubscription.js +32 -0
- package/lib/operations/deleteWebhookSubscription.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +27 -0
- package/lib/operations/exportEvmAccount.d.ts.map +1 -0
- package/lib/operations/exportEvmAccount.js +33 -0
- package/lib/operations/exportEvmAccount.js.map +1 -0
- package/lib/operations/exportEvmAccountByName.d.ts +27 -0
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/exportEvmAccountByName.js +35 -0
- package/lib/operations/exportEvmAccountByName.js.map +1 -0
- package/lib/operations/exportSolanaAccount.d.ts +27 -0
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccount.js +35 -0
- package/lib/operations/exportSolanaAccount.js.map +1 -0
- package/lib/operations/exportSolanaAccountByName.d.ts +27 -0
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccountByName.js +38 -0
- package/lib/operations/exportSolanaAccountByName.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +46 -0
- package/lib/operations/getEndUser.d.ts.map +1 -0
- package/lib/operations/getEndUser.js +52 -0
- package/lib/operations/getEndUser.js.map +1 -0
- package/lib/operations/getEvmAccount.d.ts +22 -0
- package/lib/operations/getEvmAccount.d.ts.map +1 -0
- package/lib/operations/getEvmAccount.js +28 -0
- package/lib/operations/getEvmAccount.js.map +1 -0
- package/lib/operations/getEvmAccountByName.d.ts +22 -0
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmAccountByName.js +30 -0
- package/lib/operations/getEvmAccountByName.js.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +22 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js +48 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -0
- package/lib/operations/getEvmSmartAccount.d.ts +23 -0
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccount.js +31 -0
- package/lib/operations/getEvmSmartAccount.js.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts +23 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.js +31 -0
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -0
- package/lib/operations/getEvmSwapPrice.d.ts +21 -0
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -0
- package/lib/operations/getEvmSwapPrice.js +27 -0
- package/lib/operations/getEvmSwapPrice.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +39 -0
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -0
- package/lib/operations/getOnrampOrderById.js +56 -0
- package/lib/operations/getOnrampOrderById.js.map +1 -0
- package/lib/operations/getOnrampUserLimits.d.ts +24 -0
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -0
- package/lib/operations/getOnrampUserLimits.js +38 -0
- package/lib/operations/getOnrampUserLimits.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +23 -0
- package/lib/operations/getPolicyById.d.ts.map +1 -0
- package/lib/operations/getPolicyById.js +29 -0
- package/lib/operations/getPolicyById.js.map +1 -0
- package/lib/operations/getSQLGrammar.d.ts +14 -0
- package/lib/operations/getSQLGrammar.d.ts.map +1 -0
- package/lib/operations/getSQLGrammar.js +20 -0
- package/lib/operations/getSQLGrammar.js.map +1 -0
- package/lib/operations/getSolanaAccount.d.ts +22 -0
- package/lib/operations/getSolanaAccount.d.ts.map +1 -0
- package/lib/operations/getSolanaAccount.js +28 -0
- package/lib/operations/getSolanaAccount.js.map +1 -0
- package/lib/operations/getSolanaAccountByName.d.ts +22 -0
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/getSolanaAccountByName.js +30 -0
- package/lib/operations/getSolanaAccountByName.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +39 -0
- package/lib/operations/getUserOperation.d.ts.map +1 -0
- package/lib/operations/getUserOperation.js +66 -0
- package/lib/operations/getUserOperation.js.map +1 -0
- package/lib/operations/getWebhookSubscription.d.ts +37 -0
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/getWebhookSubscription.js +48 -0
- package/lib/operations/getWebhookSubscription.js.map +1 -0
- package/lib/operations/importEndUser.d.ts +56 -0
- package/lib/operations/importEndUser.d.ts.map +1 -0
- package/lib/operations/importEndUser.js +62 -0
- package/lib/operations/importEndUser.js.map +1 -0
- package/lib/operations/importEvmAccount.d.ts +31 -0
- package/lib/operations/importEvmAccount.d.ts.map +1 -0
- package/lib/operations/importEvmAccount.js +37 -0
- package/lib/operations/importEvmAccount.js.map +1 -0
- package/lib/operations/importSolanaAccount.d.ts +30 -0
- package/lib/operations/importSolanaAccount.d.ts.map +1 -0
- package/lib/operations/importSolanaAccount.js +38 -0
- package/lib/operations/importSolanaAccount.js.map +1 -0
- package/lib/operations/index.d.ts +74 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +74 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +37 -0
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -0
- package/lib/operations/listDataTokenBalances.js +48 -0
- package/lib/operations/listDataTokenBalances.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +53 -0
- package/lib/operations/listEndUsers.d.ts.map +1 -0
- package/lib/operations/listEndUsers.js +59 -0
- package/lib/operations/listEndUsers.js.map +1 -0
- package/lib/operations/listEvmAccounts.d.ts +28 -0
- package/lib/operations/listEvmAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmAccounts.js +34 -0
- package/lib/operations/listEvmAccounts.js.map +1 -0
- package/lib/operations/listEvmSmartAccounts.d.ts +29 -0
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmSmartAccounts.js +37 -0
- package/lib/operations/listEvmSmartAccounts.js.map +1 -0
- package/lib/operations/listEvmTokenBalances.d.ts +37 -0
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -0
- package/lib/operations/listEvmTokenBalances.js +48 -0
- package/lib/operations/listEvmTokenBalances.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +31 -0
- package/lib/operations/listPolicies.d.ts.map +1 -0
- package/lib/operations/listPolicies.js +37 -0
- package/lib/operations/listPolicies.js.map +1 -0
- package/lib/operations/listSolanaAccounts.d.ts +29 -0
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -0
- package/lib/operations/listSolanaAccounts.js +37 -0
- package/lib/operations/listSolanaAccounts.js.map +1 -0
- package/lib/operations/listSolanaTokenBalances.d.ts +36 -0
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -0
- package/lib/operations/listSolanaTokenBalances.js +47 -0
- package/lib/operations/listSolanaTokenBalances.js.map +1 -0
- package/lib/operations/listSpendPermissions.d.ts +40 -0
- package/lib/operations/listSpendPermissions.d.ts.map +1 -0
- package/lib/operations/listSpendPermissions.js +60 -0
- package/lib/operations/listSpendPermissions.js.map +1 -0
- package/lib/operations/listTokensForAccount.d.ts +23 -0
- package/lib/operations/listTokensForAccount.d.ts.map +1 -0
- package/lib/operations/listTokensForAccount.js +34 -0
- package/lib/operations/listTokensForAccount.js.map +1 -0
- package/lib/operations/listWebhookSubscriptions.d.ts +42 -0
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -0
- package/lib/operations/listWebhookSubscriptions.js +50 -0
- package/lib/operations/listWebhookSubscriptions.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +53 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.js +93 -0
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -0
- package/lib/operations/prepareUserOperation.d.ts +46 -0
- package/lib/operations/prepareUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareUserOperation.js +86 -0
- package/lib/operations/prepareUserOperation.js.map +1 -0
- package/lib/operations/requestEvmFaucet.d.ts +22 -0
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -0
- package/lib/operations/requestEvmFaucet.js +32 -0
- package/lib/operations/requestEvmFaucet.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +21 -0
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -0
- package/lib/operations/requestSolanaFaucet.js +29 -0
- package/lib/operations/requestSolanaFaucet.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +48 -0
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -0
- package/lib/operations/revokeSpendPermission.js +86 -0
- package/lib/operations/revokeSpendPermission.js.map +1 -0
- package/lib/operations/runSQLQuery.d.ts +47 -0
- package/lib/operations/runSQLQuery.d.ts.map +1 -0
- package/lib/operations/runSQLQuery.js +74 -0
- package/lib/operations/runSQLQuery.js.map +1 -0
- package/lib/operations/sendEvmTransaction.d.ts +44 -0
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -0
- package/lib/operations/sendEvmTransaction.js +64 -0
- package/lib/operations/sendEvmTransaction.js.map +1 -0
- package/lib/operations/sendSolanaTransaction.d.ts +38 -0
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/sendSolanaTransaction.js +46 -0
- package/lib/operations/sendSolanaTransaction.js.map +1 -0
- package/lib/operations/sendUserOperation.d.ts +43 -0
- package/lib/operations/sendUserOperation.d.ts.map +1 -0
- package/lib/operations/sendUserOperation.js +71 -0
- package/lib/operations/sendUserOperation.js.map +1 -0
- package/lib/operations/settleX402Payment.d.ts +23 -0
- package/lib/operations/settleX402Payment.d.ts.map +1 -0
- package/lib/operations/settleX402Payment.js +79 -0
- package/lib/operations/settleX402Payment.js.map +1 -0
- package/lib/operations/signEvmHash.d.ts +27 -0
- package/lib/operations/signEvmHash.d.ts.map +1 -0
- package/lib/operations/signEvmHash.js +33 -0
- package/lib/operations/signEvmHash.js.map +1 -0
- package/lib/operations/signEvmMessage.d.ts +28 -0
- package/lib/operations/signEvmMessage.d.ts.map +1 -0
- package/lib/operations/signEvmMessage.js +34 -0
- package/lib/operations/signEvmMessage.js.map +1 -0
- package/lib/operations/signEvmTransaction.d.ts +29 -0
- package/lib/operations/signEvmTransaction.d.ts.map +1 -0
- package/lib/operations/signEvmTransaction.js +40 -0
- package/lib/operations/signEvmTransaction.js.map +1 -0
- package/lib/operations/signEvmTypedData.d.ts +36 -0
- package/lib/operations/signEvmTypedData.d.ts.map +1 -0
- package/lib/operations/signEvmTypedData.js +45 -0
- package/lib/operations/signEvmTypedData.js.map +1 -0
- package/lib/operations/signSolanaMessage.d.ts +28 -0
- package/lib/operations/signSolanaMessage.d.ts.map +1 -0
- package/lib/operations/signSolanaMessage.js +38 -0
- package/lib/operations/signSolanaMessage.js.map +1 -0
- package/lib/operations/signSolanaTransaction.d.ts +33 -0
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/signSolanaTransaction.js +44 -0
- package/lib/operations/signSolanaTransaction.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +21 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.js +40 -0
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -0
- package/lib/operations/updateEvmAccount.d.ts +28 -0
- package/lib/operations/updateEvmAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmAccount.js +34 -0
- package/lib/operations/updateEvmAccount.js.map +1 -0
- package/lib/operations/updateEvmSmartAccount.d.ts +24 -0
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmSmartAccount.js +32 -0
- package/lib/operations/updateEvmSmartAccount.js.map +1 -0
- package/lib/operations/updatePolicy.d.ts +29 -0
- package/lib/operations/updatePolicy.d.ts.map +1 -0
- package/lib/operations/updatePolicy.js +35 -0
- package/lib/operations/updatePolicy.js.map +1 -0
- package/lib/operations/updateSolanaAccount.d.ts +28 -0
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -0
- package/lib/operations/updateSolanaAccount.js +36 -0
- package/lib/operations/updateSolanaAccount.js.map +1 -0
- package/lib/operations/updateWebhookSubscription.d.ts +47 -0
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/updateWebhookSubscription.js +58 -0
- package/lib/operations/updateWebhookSubscription.js.map +1 -0
- package/lib/operations/validateEndUserAccessToken.d.ts +44 -0
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -0
- package/lib/operations/validateEndUserAccessToken.js +52 -0
- package/lib/operations/validateEndUserAccessToken.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +21 -0
- package/lib/operations/verifyX402Payment.d.ts.map +1 -0
- package/lib/operations/verifyX402Payment.js +72 -0
- package/lib/operations/verifyX402Payment.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -9
- package/src/category.ts +4 -0
- package/src/client.ts +290 -0
- package/src/credentials.ts +65 -0
- package/src/errors.ts +694 -0
- package/src/index.ts +15 -0
- package/src/operations/addEndUserEvmAccount.ts +44 -0
- package/src/operations/addEndUserEvmSmartAccount.ts +53 -0
- package/src/operations/addEndUserSolanaAccount.ts +46 -0
- package/src/operations/createEndUser.ts +87 -0
- package/src/operations/createEvmAccount.ts +42 -0
- package/src/operations/createEvmEip7702Delegation.ts +63 -0
- package/src/operations/createEvmSmartAccount.ts +42 -0
- package/src/operations/createEvmSwapQuote.ts +44 -0
- package/src/operations/createOnrampOrder.ts +89 -0
- package/src/operations/createOnrampSession.ts +80 -0
- package/src/operations/createPolicy.ts +38 -0
- package/src/operations/createSolanaAccount.ts +42 -0
- package/src/operations/createSpendPermission.ts +110 -0
- package/src/operations/createWebhookSubscription.ts +92 -0
- package/src/operations/deletePolicy.ts +32 -0
- package/src/operations/deleteWebhookSubscription.ts +42 -0
- package/src/operations/exportEvmAccount.ts +39 -0
- package/src/operations/exportEvmAccountByName.ts +45 -0
- package/src/operations/exportSolanaAccount.ts +41 -0
- package/src/operations/exportSolanaAccountByName.ts +48 -0
- package/src/operations/getEndUser.ts +68 -0
- package/src/operations/getEvmAccount.ts +32 -0
- package/src/operations/getEvmAccountByName.ts +34 -0
- package/src/operations/getEvmEip7702DelegationOperationById.ts +56 -0
- package/src/operations/getEvmSmartAccount.ts +35 -0
- package/src/operations/getEvmSmartAccountByName.ts +41 -0
- package/src/operations/getEvmSwapPrice.ts +31 -0
- package/src/operations/getOnrampOrderById.ts +62 -0
- package/src/operations/getOnrampUserLimits.ts +44 -0
- package/src/operations/getPolicyById.ts +35 -0
- package/src/operations/getSQLGrammar.ts +26 -0
- package/src/operations/getSolanaAccount.ts +34 -0
- package/src/operations/getSolanaAccountByName.ts +40 -0
- package/src/operations/getUserOperation.ts +82 -0
- package/src/operations/getWebhookSubscription.ts +60 -0
- package/src/operations/importEndUser.ts +78 -0
- package/src/operations/importEvmAccount.ts +43 -0
- package/src/operations/importSolanaAccount.ts +42 -0
- package/src/operations/index.ts +73 -0
- package/src/operations/listDataTokenBalances.ts +59 -0
- package/src/operations/listEndUsers.ts +77 -0
- package/src/operations/listEvmAccounts.ts +40 -0
- package/src/operations/listEvmSmartAccounts.ts +45 -0
- package/src/operations/listEvmTokenBalances.ts +58 -0
- package/src/operations/listPolicies.ts +43 -0
- package/src/operations/listSolanaAccounts.ts +43 -0
- package/src/operations/listSolanaTokenBalances.ts +59 -0
- package/src/operations/listSpendPermissions.ts +70 -0
- package/src/operations/listTokensForAccount.ts +42 -0
- package/src/operations/listWebhookSubscriptions.ts +62 -0
- package/src/operations/prepareAndSendUserOperation.ts +113 -0
- package/src/operations/prepareUserOperation.ts +104 -0
- package/src/operations/requestEvmFaucet.ts +38 -0
- package/src/operations/requestSolanaFaucet.ts +33 -0
- package/src/operations/revokeSpendPermission.ts +103 -0
- package/src/operations/runSQLQuery.ts +92 -0
- package/src/operations/sendEvmTransaction.ts +70 -0
- package/src/operations/sendSolanaTransaction.ts +55 -0
- package/src/operations/sendUserOperation.ts +87 -0
- package/src/operations/settleX402Payment.ts +87 -0
- package/src/operations/signEvmHash.ts +37 -0
- package/src/operations/signEvmMessage.ts +40 -0
- package/src/operations/signEvmTransaction.ts +46 -0
- package/src/operations/signEvmTypedData.ts +53 -0
- package/src/operations/signSolanaMessage.ts +46 -0
- package/src/operations/signSolanaTransaction.ts +53 -0
- package/src/operations/supportedX402PaymentKinds.ts +52 -0
- package/src/operations/updateEvmAccount.ts +40 -0
- package/src/operations/updateEvmSmartAccount.ts +39 -0
- package/src/operations/updatePolicy.ts +41 -0
- package/src/operations/updateSolanaAccount.ts +40 -0
- package/src/operations/updateWebhookSubscription.ts +70 -0
- package/src/operations/validateEndUserAccessToken.ts +74 -0
- package/src/operations/verifyX402Payment.ts +80 -0
- package/src/retry.ts +37 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- package/index.js +0 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export * from "./listEndUsers";
|
|
2
|
+
export * from "./createEndUser";
|
|
3
|
+
export * from "./validateEndUserAccessToken";
|
|
4
|
+
export * from "./getEndUser";
|
|
5
|
+
export * from "./addEndUserEvmAccount";
|
|
6
|
+
export * from "./addEndUserEvmSmartAccount";
|
|
7
|
+
export * from "./addEndUserSolanaAccount";
|
|
8
|
+
export * from "./importEndUser";
|
|
9
|
+
export * from "./listEvmAccounts";
|
|
10
|
+
export * from "./createEvmAccount";
|
|
11
|
+
export * from "./getEvmAccount";
|
|
12
|
+
export * from "./updateEvmAccount";
|
|
13
|
+
export * from "./getEvmAccountByName";
|
|
14
|
+
export * from "./sendEvmTransaction";
|
|
15
|
+
export * from "./signEvmTransaction";
|
|
16
|
+
export * from "./signEvmHash";
|
|
17
|
+
export * from "./signEvmMessage";
|
|
18
|
+
export * from "./signEvmTypedData";
|
|
19
|
+
export * from "./createEvmEip7702Delegation";
|
|
20
|
+
export * from "./getEvmEip7702DelegationOperationById";
|
|
21
|
+
export * from "./listEvmSmartAccounts";
|
|
22
|
+
export * from "./createEvmSmartAccount";
|
|
23
|
+
export * from "./getEvmSmartAccountByName";
|
|
24
|
+
export * from "./importEvmAccount";
|
|
25
|
+
export * from "./exportEvmAccount";
|
|
26
|
+
export * from "./exportEvmAccountByName";
|
|
27
|
+
export * from "./getEvmSmartAccount";
|
|
28
|
+
export * from "./updateEvmSmartAccount";
|
|
29
|
+
export * from "./prepareUserOperation";
|
|
30
|
+
export * from "./prepareAndSendUserOperation";
|
|
31
|
+
export * from "./getUserOperation";
|
|
32
|
+
export * from "./sendUserOperation";
|
|
33
|
+
export * from "./createSpendPermission";
|
|
34
|
+
export * from "./listSpendPermissions";
|
|
35
|
+
export * from "./revokeSpendPermission";
|
|
36
|
+
export * from "./getEvmSwapPrice";
|
|
37
|
+
export * from "./createEvmSwapQuote";
|
|
38
|
+
export * from "./listEvmTokenBalances";
|
|
39
|
+
export * from "./requestEvmFaucet";
|
|
40
|
+
export * from "./listPolicies";
|
|
41
|
+
export * from "./createPolicy";
|
|
42
|
+
export * from "./getPolicyById";
|
|
43
|
+
export * from "./updatePolicy";
|
|
44
|
+
export * from "./deletePolicy";
|
|
45
|
+
export * from "./listSolanaAccounts";
|
|
46
|
+
export * from "./createSolanaAccount";
|
|
47
|
+
export * from "./getSolanaAccount";
|
|
48
|
+
export * from "./updateSolanaAccount";
|
|
49
|
+
export * from "./getSolanaAccountByName";
|
|
50
|
+
export * from "./importSolanaAccount";
|
|
51
|
+
export * from "./exportSolanaAccount";
|
|
52
|
+
export * from "./exportSolanaAccountByName";
|
|
53
|
+
export * from "./signSolanaTransaction";
|
|
54
|
+
export * from "./signSolanaMessage";
|
|
55
|
+
export * from "./sendSolanaTransaction";
|
|
56
|
+
export * from "./requestSolanaFaucet";
|
|
57
|
+
export * from "./listSolanaTokenBalances";
|
|
58
|
+
export * from "./runSQLQuery";
|
|
59
|
+
export * from "./getSQLGrammar";
|
|
60
|
+
export * from "./listTokensForAccount";
|
|
61
|
+
export * from "./listDataTokenBalances";
|
|
62
|
+
export * from "./listWebhookSubscriptions";
|
|
63
|
+
export * from "./createWebhookSubscription";
|
|
64
|
+
export * from "./getWebhookSubscription";
|
|
65
|
+
export * from "./updateWebhookSubscription";
|
|
66
|
+
export * from "./deleteWebhookSubscription";
|
|
67
|
+
export * from "./verifyX402Payment";
|
|
68
|
+
export * from "./settleX402Payment";
|
|
69
|
+
export * from "./supportedX402PaymentKinds";
|
|
70
|
+
export * from "./createOnrampOrder";
|
|
71
|
+
export * from "./getOnrampOrderById";
|
|
72
|
+
export * from "./createOnrampSession";
|
|
73
|
+
export * from "./getOnrampUserLimits";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListDataTokenBalancesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
network: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
pageSize: Schema.optional(Schema.Number),
|
|
11
|
+
pageToken: Schema.optional(Schema.String),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v2/data/evm/token-balances/{network}/{address}",
|
|
16
|
+
}),
|
|
17
|
+
);
|
|
18
|
+
export type ListDataTokenBalancesInput = typeof ListDataTokenBalancesInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const ListDataTokenBalancesOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
balances: Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
amount: Schema.Struct({
|
|
26
|
+
amount: Schema.String,
|
|
27
|
+
decimals: Schema.Number,
|
|
28
|
+
}),
|
|
29
|
+
token: Schema.Struct({
|
|
30
|
+
network: Schema.Literals(["base", "base-sepolia", "ethereum"]),
|
|
31
|
+
symbol: Schema.optional(Schema.String),
|
|
32
|
+
name: Schema.optional(Schema.String),
|
|
33
|
+
contractAddress: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
38
|
+
});
|
|
39
|
+
export type ListDataTokenBalancesOutput =
|
|
40
|
+
typeof ListDataTokenBalancesOutput.Type;
|
|
41
|
+
|
|
42
|
+
// The operation
|
|
43
|
+
/**
|
|
44
|
+
* List EVM token balances
|
|
45
|
+
*
|
|
46
|
+
* 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.
|
|
47
|
+
* **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.
|
|
48
|
+
*
|
|
49
|
+
* @param address - The 0x-prefixed EVM address to get balances for. The address does not need to be checksummed.
|
|
50
|
+
* @param network - The human-readable network name to get the balances for.
|
|
51
|
+
* @param pageSize - The number of resources to return per page.
|
|
52
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
53
|
+
*/
|
|
54
|
+
export const listDataTokenBalances = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
55
|
+
() => ({
|
|
56
|
+
inputSchema: ListDataTokenBalancesInput,
|
|
57
|
+
outputSchema: ListDataTokenBalancesOutput,
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListEndUsersInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
pageSize: Schema.optional(Schema.Number),
|
|
8
|
+
pageToken: Schema.optional(Schema.String),
|
|
9
|
+
sort: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/end-users" }));
|
|
11
|
+
export type ListEndUsersInput = typeof ListEndUsersInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListEndUsersOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
endUsers: Schema.Array(
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
userId: Schema.String,
|
|
18
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
19
|
+
mfaMethods: Schema.optional(
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
22
|
+
totp: Schema.optional(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
enrolledAt: Schema.String,
|
|
25
|
+
}),
|
|
26
|
+
),
|
|
27
|
+
sms: Schema.optional(
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
enrolledAt: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
}),
|
|
33
|
+
),
|
|
34
|
+
evmAccounts: Schema.Array(Schema.String),
|
|
35
|
+
evmAccountObjects: Schema.Array(
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
address: Schema.String,
|
|
38
|
+
createdAt: Schema.String,
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
evmSmartAccounts: Schema.Array(Schema.String),
|
|
42
|
+
evmSmartAccountObjects: Schema.Array(
|
|
43
|
+
Schema.Struct({
|
|
44
|
+
address: Schema.String,
|
|
45
|
+
ownerAddresses: Schema.Array(Schema.String),
|
|
46
|
+
createdAt: Schema.String,
|
|
47
|
+
}),
|
|
48
|
+
),
|
|
49
|
+
solanaAccounts: Schema.Array(Schema.String),
|
|
50
|
+
solanaAccountObjects: Schema.Array(
|
|
51
|
+
Schema.Struct({
|
|
52
|
+
address: Schema.String,
|
|
53
|
+
createdAt: Schema.String,
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
createdAt: Schema.String,
|
|
57
|
+
}),
|
|
58
|
+
),
|
|
59
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
60
|
+
});
|
|
61
|
+
export type ListEndUsersOutput = typeof ListEndUsersOutput.Type;
|
|
62
|
+
|
|
63
|
+
// The operation
|
|
64
|
+
/**
|
|
65
|
+
* List end users
|
|
66
|
+
*
|
|
67
|
+
* Lists the end users belonging to the developer's CDP Project.
|
|
68
|
+
* By default, the response is sorted by creation date in ascending order and paginated to 20 users per page.
|
|
69
|
+
*
|
|
70
|
+
* @param pageSize - The number of end users to return per page.
|
|
71
|
+
* @param pageToken - The token for the desired page of end users. Will be empty if there are no more end users to fetch.
|
|
72
|
+
* @param sort - Sort end users. Defaults to ascending order (oldest first).
|
|
73
|
+
*/
|
|
74
|
+
export const listEndUsers = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
75
|
+
inputSchema: ListEndUsersInput,
|
|
76
|
+
outputSchema: ListEndUsersOutput,
|
|
77
|
+
}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListEvmAccountsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
pageSize: Schema.optional(Schema.Number),
|
|
8
|
+
pageToken: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/accounts" }));
|
|
10
|
+
export type ListEvmAccountsInput = typeof ListEvmAccountsInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const ListEvmAccountsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
accounts: Schema.Array(
|
|
15
|
+
Schema.Struct({
|
|
16
|
+
address: Schema.String,
|
|
17
|
+
name: Schema.optional(Schema.String),
|
|
18
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
+
createdAt: Schema.optional(Schema.String),
|
|
20
|
+
updatedAt: Schema.optional(Schema.String),
|
|
21
|
+
}),
|
|
22
|
+
),
|
|
23
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
24
|
+
});
|
|
25
|
+
export type ListEvmAccountsOutput = typeof ListEvmAccountsOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* List EVM accounts
|
|
30
|
+
*
|
|
31
|
+
* Lists the EVM accounts belonging to the developer's CDP Project.
|
|
32
|
+
* The response is paginated, and by default, returns 20 accounts per page.
|
|
33
|
+
*
|
|
34
|
+
* @param pageSize - The number of resources to return per page.
|
|
35
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
36
|
+
*/
|
|
37
|
+
export const listEvmAccounts = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
38
|
+
inputSchema: ListEvmAccountsInput,
|
|
39
|
+
outputSchema: ListEvmAccountsOutput,
|
|
40
|
+
}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListEvmSmartAccountsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
pageSize: Schema.optional(Schema.Number),
|
|
9
|
+
pageToken: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/smart-accounts" }));
|
|
11
|
+
export type ListEvmSmartAccountsInput = typeof ListEvmSmartAccountsInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListEvmSmartAccountsOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
accounts: Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
address: Schema.String,
|
|
19
|
+
owners: Schema.Array(Schema.String),
|
|
20
|
+
name: Schema.optional(Schema.String),
|
|
21
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
22
|
+
createdAt: Schema.optional(Schema.String),
|
|
23
|
+
updatedAt: Schema.optional(Schema.String),
|
|
24
|
+
}),
|
|
25
|
+
),
|
|
26
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
27
|
+
});
|
|
28
|
+
export type ListEvmSmartAccountsOutput = typeof ListEvmSmartAccountsOutput.Type;
|
|
29
|
+
|
|
30
|
+
// The operation
|
|
31
|
+
/**
|
|
32
|
+
* List Smart Accounts
|
|
33
|
+
*
|
|
34
|
+
* Lists the Smart Accounts belonging to the developer's CDP Project.
|
|
35
|
+
* The response is paginated, and by default, returns 20 accounts per page.
|
|
36
|
+
*
|
|
37
|
+
* @param pageSize - The number of resources to return per page.
|
|
38
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
39
|
+
*/
|
|
40
|
+
export const listEvmSmartAccounts = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
41
|
+
() => ({
|
|
42
|
+
inputSchema: ListEvmSmartAccountsInput,
|
|
43
|
+
outputSchema: ListEvmSmartAccountsOutput,
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListEvmTokenBalancesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
network: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
pageSize: Schema.optional(Schema.Number),
|
|
11
|
+
pageToken: Schema.optional(Schema.String),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v2/evm/token-balances/{network}/{address}",
|
|
16
|
+
}),
|
|
17
|
+
);
|
|
18
|
+
export type ListEvmTokenBalancesInput = typeof ListEvmTokenBalancesInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const ListEvmTokenBalancesOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
balances: Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
amount: Schema.Struct({
|
|
26
|
+
amount: Schema.String,
|
|
27
|
+
decimals: Schema.Number,
|
|
28
|
+
}),
|
|
29
|
+
token: Schema.Struct({
|
|
30
|
+
network: Schema.Literals(["base", "base-sepolia", "ethereum"]),
|
|
31
|
+
symbol: Schema.optional(Schema.String),
|
|
32
|
+
name: Schema.optional(Schema.String),
|
|
33
|
+
contractAddress: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
38
|
+
});
|
|
39
|
+
export type ListEvmTokenBalancesOutput = typeof ListEvmTokenBalancesOutput.Type;
|
|
40
|
+
|
|
41
|
+
// The operation
|
|
42
|
+
/**
|
|
43
|
+
* List EVM token balances
|
|
44
|
+
*
|
|
45
|
+
* 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.
|
|
46
|
+
* **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.
|
|
47
|
+
*
|
|
48
|
+
* @param address - The 0x-prefixed EVM address to get balances for. The address does not need to be checksummed.
|
|
49
|
+
* @param network - The human-readable network name to get the balances for.
|
|
50
|
+
* @param pageSize - The number of resources to return per page.
|
|
51
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
52
|
+
*/
|
|
53
|
+
export const listEvmTokenBalances = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
54
|
+
() => ({
|
|
55
|
+
inputSchema: ListEvmTokenBalancesInput,
|
|
56
|
+
outputSchema: ListEvmTokenBalancesOutput,
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListPoliciesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
pageSize: Schema.optional(Schema.Number),
|
|
8
|
+
pageToken: Schema.optional(Schema.String),
|
|
9
|
+
scope: Schema.optional(Schema.Literals(["project", "account"])),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/policy-engine/policies" }));
|
|
11
|
+
export type ListPoliciesInput = typeof ListPoliciesInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListPoliciesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
policies: Schema.Array(
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
description: Schema.optional(Schema.String),
|
|
19
|
+
scope: Schema.Literals(["project", "account"]),
|
|
20
|
+
rules: Schema.Array(Schema.Unknown),
|
|
21
|
+
createdAt: Schema.String,
|
|
22
|
+
updatedAt: Schema.String,
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
26
|
+
});
|
|
27
|
+
export type ListPoliciesOutput = typeof ListPoliciesOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* List policies
|
|
32
|
+
*
|
|
33
|
+
* Lists the policies belonging to the developer's CDP Project. Use the `scope` parameter to filter the policies by scope.
|
|
34
|
+
* The response is paginated, and by default, returns 20 policies per page.
|
|
35
|
+
*
|
|
36
|
+
* @param pageSize - The number of resources to return per page.
|
|
37
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
38
|
+
* @param scope - The scope of the policies to return. If `project`, the response will include exactly one policy, which is the project-level policy. If `account`, the response will include all account-level policies for the developer's CDP Project.
|
|
39
|
+
*/
|
|
40
|
+
export const listPolicies = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: ListPoliciesInput,
|
|
42
|
+
outputSchema: ListPoliciesOutput,
|
|
43
|
+
}));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListSolanaAccountsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
pageSize: Schema.optional(Schema.Number),
|
|
9
|
+
pageToken: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/solana/accounts" }));
|
|
11
|
+
export type ListSolanaAccountsInput = typeof ListSolanaAccountsInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListSolanaAccountsOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
accounts: Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
address: Schema.String,
|
|
19
|
+
name: Schema.optional(Schema.String),
|
|
20
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
createdAt: Schema.optional(Schema.String),
|
|
22
|
+
updatedAt: Schema.optional(Schema.String),
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
26
|
+
});
|
|
27
|
+
export type ListSolanaAccountsOutput = typeof ListSolanaAccountsOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* List Solana accounts or get account by name
|
|
32
|
+
*
|
|
33
|
+
* Lists the Solana accounts belonging to the developer.
|
|
34
|
+
* The response is paginated, and by default, returns 20 accounts per page.
|
|
35
|
+
* If a name is provided, the response will contain only the account with that name.
|
|
36
|
+
*
|
|
37
|
+
* @param pageSize - The number of resources to return per page.
|
|
38
|
+
* @param pageToken - The token for the next page of resources, if any.
|
|
39
|
+
*/
|
|
40
|
+
export const listSolanaAccounts = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: ListSolanaAccountsInput,
|
|
42
|
+
outputSchema: ListSolanaAccountsOutput,
|
|
43
|
+
}));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListSolanaTokenBalancesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
network: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
pageSize: Schema.optional(Schema.Number),
|
|
11
|
+
pageToken: Schema.optional(Schema.String),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v2/solana/token-balances/{network}/{address}",
|
|
16
|
+
}),
|
|
17
|
+
);
|
|
18
|
+
export type ListSolanaTokenBalancesInput =
|
|
19
|
+
typeof ListSolanaTokenBalancesInput.Type;
|
|
20
|
+
|
|
21
|
+
// Output Schema
|
|
22
|
+
export const ListSolanaTokenBalancesOutput =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
24
|
+
balances: Schema.Array(
|
|
25
|
+
Schema.Struct({
|
|
26
|
+
amount: Schema.Struct({
|
|
27
|
+
amount: Schema.String,
|
|
28
|
+
decimals: Schema.Number,
|
|
29
|
+
}),
|
|
30
|
+
token: Schema.Struct({
|
|
31
|
+
symbol: Schema.optional(Schema.String),
|
|
32
|
+
name: Schema.optional(Schema.String),
|
|
33
|
+
mintAddress: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
38
|
+
});
|
|
39
|
+
export type ListSolanaTokenBalancesOutput =
|
|
40
|
+
typeof ListSolanaTokenBalancesOutput.Type;
|
|
41
|
+
|
|
42
|
+
// The operation
|
|
43
|
+
/**
|
|
44
|
+
* List Solana token balances
|
|
45
|
+
*
|
|
46
|
+
* 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.
|
|
47
|
+
* **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.
|
|
48
|
+
*
|
|
49
|
+
* @param address - The base58 encoded Solana address to get balances for.
|
|
50
|
+
* @param network - The human-readable network name to get the balances for.
|
|
51
|
+
* @param pageSize - The number of balances to return per page.
|
|
52
|
+
* @param pageToken - The token for the next page of balances. Will be empty if there are no more balances to fetch.
|
|
53
|
+
*/
|
|
54
|
+
export const listSolanaTokenBalances = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
55
|
+
() => ({
|
|
56
|
+
inputSchema: ListSolanaTokenBalancesInput,
|
|
57
|
+
outputSchema: ListSolanaTokenBalancesOutput,
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListSpendPermissionsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
pageSize: Schema.optional(Schema.Number),
|
|
10
|
+
pageToken: Schema.optional(Schema.String),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "GET",
|
|
14
|
+
path: "/v2/evm/smart-accounts/{address}/spend-permissions/list",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type ListSpendPermissionsInput = typeof ListSpendPermissionsInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const ListSpendPermissionsOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
spendPermissions: Schema.Array(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
permission: Schema.Struct({
|
|
25
|
+
account: Schema.String,
|
|
26
|
+
spender: Schema.String,
|
|
27
|
+
token: Schema.String,
|
|
28
|
+
allowance: Schema.String,
|
|
29
|
+
period: Schema.String,
|
|
30
|
+
start: Schema.String,
|
|
31
|
+
end: Schema.String,
|
|
32
|
+
salt: Schema.String,
|
|
33
|
+
extraData: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
permissionHash: Schema.String,
|
|
36
|
+
revoked: Schema.Boolean,
|
|
37
|
+
revokedAt: Schema.optional(Schema.String),
|
|
38
|
+
createdAt: Schema.String,
|
|
39
|
+
network: Schema.Literals([
|
|
40
|
+
"base",
|
|
41
|
+
"base-sepolia",
|
|
42
|
+
"ethereum",
|
|
43
|
+
"ethereum-sepolia",
|
|
44
|
+
"optimism",
|
|
45
|
+
"arbitrum",
|
|
46
|
+
"avalanche",
|
|
47
|
+
"polygon",
|
|
48
|
+
]),
|
|
49
|
+
}),
|
|
50
|
+
),
|
|
51
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
52
|
+
});
|
|
53
|
+
export type ListSpendPermissionsOutput = typeof ListSpendPermissionsOutput.Type;
|
|
54
|
+
|
|
55
|
+
// The operation
|
|
56
|
+
/**
|
|
57
|
+
* List spend permissions
|
|
58
|
+
*
|
|
59
|
+
* Lists spend permission for the given smart account address.
|
|
60
|
+
*
|
|
61
|
+
* @param address - The address of the Smart account to list spend permissions for.
|
|
62
|
+
* @param pageSize - The number of spend permissions to return per page.
|
|
63
|
+
* @param pageToken - The token for the next page of spend permissions. Will be empty if there are no more spend permissions to fetch.
|
|
64
|
+
*/
|
|
65
|
+
export const listSpendPermissions = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
66
|
+
() => ({
|
|
67
|
+
inputSchema: ListSpendPermissionsInput,
|
|
68
|
+
outputSchema: ListSpendPermissionsOutput,
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListTokensForAccountInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
network: Schema.Literals(["base", "base-sepolia"]).pipe(T.PathParam()),
|
|
9
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/v2/data/evm/token-ownership/{network}/{address}",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type ListTokensForAccountInput = typeof ListTokensForAccountInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const ListTokensForAccountOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
accountAddress: Schema.optional(Schema.String),
|
|
22
|
+
tokenAddresses: Schema.optional(Schema.Array(Schema.String)),
|
|
23
|
+
totalCount: Schema.optional(Schema.Number),
|
|
24
|
+
});
|
|
25
|
+
export type ListTokensForAccountOutput = typeof ListTokensForAccountOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* List token addresses for account
|
|
30
|
+
*
|
|
31
|
+
* Retrieve all ERC-20 token contract addresses that an account has ever received tokens from.
|
|
32
|
+
* Analyzes transaction history to discover token interactions.
|
|
33
|
+
*
|
|
34
|
+
* @param network - The blockchain network to query.
|
|
35
|
+
* @param address - The account address to analyze for token interactions.
|
|
36
|
+
*/
|
|
37
|
+
export const listTokensForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
38
|
+
() => ({
|
|
39
|
+
inputSchema: ListTokensForAccountInput,
|
|
40
|
+
outputSchema: ListTokensForAccountOutput,
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListWebhookSubscriptionsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
pageSize: Schema.optional(Schema.Number),
|
|
9
|
+
pageToken: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/data/webhooks/subscriptions" }));
|
|
11
|
+
export type ListWebhookSubscriptionsInput =
|
|
12
|
+
typeof ListWebhookSubscriptionsInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const ListWebhookSubscriptionsOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
subscriptions: Schema.Array(
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
createdAt: Schema.String,
|
|
20
|
+
description: Schema.optional(Schema.Struct({})),
|
|
21
|
+
eventTypes: Schema.Array(Schema.String),
|
|
22
|
+
isEnabled: Schema.Boolean,
|
|
23
|
+
metadata: Schema.optional(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
secret: Schema.optional(Schema.String),
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
28
|
+
secret: Schema.String,
|
|
29
|
+
subscriptionId: Schema.String,
|
|
30
|
+
target: Schema.Struct({
|
|
31
|
+
url: Schema.Struct({}),
|
|
32
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
33
|
+
}),
|
|
34
|
+
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
38
|
+
});
|
|
39
|
+
export type ListWebhookSubscriptionsOutput =
|
|
40
|
+
typeof ListWebhookSubscriptionsOutput.Type;
|
|
41
|
+
|
|
42
|
+
// The operation
|
|
43
|
+
/**
|
|
44
|
+
* List webhook subscriptions
|
|
45
|
+
*
|
|
46
|
+
* Retrieve a paginated list of webhook subscriptions for the authenticated project.
|
|
47
|
+
* Returns subscriptions for all CDP product events (onchain, onramp/offramp, wallet, etc.)
|
|
48
|
+
* in descending order by creation time.
|
|
49
|
+
* ### Use Cases
|
|
50
|
+
* - Monitor all active webhook subscriptions across CDP products
|
|
51
|
+
* - Audit webhook configurations
|
|
52
|
+
* - Manage subscription lifecycle
|
|
53
|
+
*
|
|
54
|
+
* @param pageSize - The number of subscriptions to return per page.
|
|
55
|
+
* @param pageToken - The token for the next page of subscriptions, if any.
|
|
56
|
+
*/
|
|
57
|
+
export const listWebhookSubscriptions = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
58
|
+
() => ({
|
|
59
|
+
inputSchema: ListWebhookSubscriptionsInput,
|
|
60
|
+
outputSchema: ListWebhookSubscriptionsOutput,
|
|
61
|
+
}),
|
|
62
|
+
);
|