@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,35 @@
|
|
|
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 GetEvmSmartAccountInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/smart-accounts/{address}" }));
|
|
10
|
+
export type GetEvmSmartAccountInput = typeof GetEvmSmartAccountInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetEvmSmartAccountOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
address: Schema.String,
|
|
16
|
+
owners: Schema.Array(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
|
+
export type GetEvmSmartAccountOutput = typeof GetEvmSmartAccountOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Get a Smart Account by address
|
|
27
|
+
*
|
|
28
|
+
* Gets a Smart Account by its address.
|
|
29
|
+
*
|
|
30
|
+
* @param address - The 0x-prefixed address of the Smart Account.
|
|
31
|
+
*/
|
|
32
|
+
export const getEvmSmartAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: GetEvmSmartAccountInput,
|
|
34
|
+
outputSchema: GetEvmSmartAccountOutput,
|
|
35
|
+
}));
|
|
@@ -0,0 +1,41 @@
|
|
|
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 GetEvmSmartAccountByNameInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
name: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/v2/evm/smart-accounts/by-name/{name}" }),
|
|
11
|
+
);
|
|
12
|
+
export type GetEvmSmartAccountByNameInput =
|
|
13
|
+
typeof GetEvmSmartAccountByNameInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetEvmSmartAccountByNameOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ 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
|
+
export type GetEvmSmartAccountByNameOutput =
|
|
26
|
+
typeof GetEvmSmartAccountByNameOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Get a Smart Account by name
|
|
31
|
+
*
|
|
32
|
+
* Gets a Smart Account by its name.
|
|
33
|
+
*
|
|
34
|
+
* @param name - The name of the Smart Account.
|
|
35
|
+
*/
|
|
36
|
+
export const getEvmSmartAccountByName = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
37
|
+
() => ({
|
|
38
|
+
inputSchema: GetEvmSmartAccountByNameInput,
|
|
39
|
+
outputSchema: GetEvmSmartAccountByNameOutput,
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
@@ -0,0 +1,31 @@
|
|
|
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 GetEvmSwapPriceInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
network: Schema.String,
|
|
8
|
+
toToken: Schema.String,
|
|
9
|
+
fromToken: Schema.String,
|
|
10
|
+
fromAmount: Schema.String,
|
|
11
|
+
taker: Schema.String,
|
|
12
|
+
signerAddress: Schema.optional(Schema.String),
|
|
13
|
+
gasPrice: Schema.optional(Schema.String),
|
|
14
|
+
slippageBps: Schema.optional(Schema.String),
|
|
15
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/swaps/quote" }));
|
|
16
|
+
export type GetEvmSwapPriceInput = typeof GetEvmSwapPriceInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const GetEvmSwapPriceOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
20
|
+
export type GetEvmSwapPriceOutput = typeof GetEvmSwapPriceOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Get a price estimate for a swap
|
|
25
|
+
*
|
|
26
|
+
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
27
|
+
*/
|
|
28
|
+
export const getEvmSwapPrice = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: GetEvmSwapPriceInput,
|
|
30
|
+
outputSchema: GetEvmSwapPriceOutput,
|
|
31
|
+
}));
|
|
@@ -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 GetOnrampOrderByIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
orderId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/onramp/orders/{orderId}" }));
|
|
10
|
+
export type GetOnrampOrderByIdInput = typeof GetOnrampOrderByIdInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetOnrampOrderByIdOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
order: Schema.Struct({
|
|
16
|
+
orderId: Schema.String,
|
|
17
|
+
paymentTotal: Schema.String,
|
|
18
|
+
paymentSubtotal: Schema.String,
|
|
19
|
+
paymentCurrency: Schema.String,
|
|
20
|
+
paymentMethod: Schema.Literals([
|
|
21
|
+
"GUEST_CHECKOUT_APPLE_PAY",
|
|
22
|
+
"GUEST_CHECKOUT_GOOGLE_PAY",
|
|
23
|
+
]),
|
|
24
|
+
purchaseAmount: Schema.String,
|
|
25
|
+
purchaseCurrency: Schema.String,
|
|
26
|
+
fees: Schema.Array(
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
type: Schema.Literals(["FEE_TYPE_NETWORK", "FEE_TYPE_EXCHANGE"]),
|
|
29
|
+
amount: Schema.String,
|
|
30
|
+
currency: Schema.String,
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
exchangeRate: Schema.String,
|
|
34
|
+
destinationAddress: Schema.Struct({}),
|
|
35
|
+
destinationNetwork: Schema.String,
|
|
36
|
+
status: Schema.Literals([
|
|
37
|
+
"ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
38
|
+
"ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
39
|
+
"ONRAMP_ORDER_STATUS_PROCESSING",
|
|
40
|
+
"ONRAMP_ORDER_STATUS_COMPLETED",
|
|
41
|
+
"ONRAMP_ORDER_STATUS_FAILED",
|
|
42
|
+
]),
|
|
43
|
+
txHash: Schema.optional(Schema.String),
|
|
44
|
+
createdAt: Schema.String,
|
|
45
|
+
updatedAt: Schema.String,
|
|
46
|
+
partnerUserRef: Schema.optional(Schema.String),
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
49
|
+
export type GetOnrampOrderByIdOutput = typeof GetOnrampOrderByIdOutput.Type;
|
|
50
|
+
|
|
51
|
+
// The operation
|
|
52
|
+
/**
|
|
53
|
+
* Get an onramp order by ID
|
|
54
|
+
*
|
|
55
|
+
* Get an onramp order by ID.
|
|
56
|
+
*
|
|
57
|
+
* @param orderId - The ID of the onramp order to retrieve.
|
|
58
|
+
*/
|
|
59
|
+
export const getOnrampOrderById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
60
|
+
inputSchema: GetOnrampOrderByIdInput,
|
|
61
|
+
outputSchema: GetOnrampOrderByIdOutput,
|
|
62
|
+
}));
|
|
@@ -0,0 +1,44 @@
|
|
|
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 GetOnrampUserLimitsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
paymentMethodType: Schema.Literals([
|
|
9
|
+
"GUEST_CHECKOUT_APPLE_PAY",
|
|
10
|
+
"GUEST_CHECKOUT_GOOGLE_PAY",
|
|
11
|
+
]),
|
|
12
|
+
userId: Schema.String,
|
|
13
|
+
userIdType: Schema.Literals(["phone_number"]),
|
|
14
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/onramp/limits" }));
|
|
15
|
+
export type GetOnrampUserLimitsInput = typeof GetOnrampUserLimitsInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const GetOnrampUserLimitsOutput =
|
|
19
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
|
+
limits: Schema.Array(
|
|
21
|
+
Schema.Struct({
|
|
22
|
+
limitType: Schema.Literals([
|
|
23
|
+
"weekly_spending",
|
|
24
|
+
"lifetime_transactions",
|
|
25
|
+
]),
|
|
26
|
+
currency: Schema.optional(Schema.String),
|
|
27
|
+
limit: Schema.String,
|
|
28
|
+
remaining: Schema.String,
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
});
|
|
32
|
+
export type GetOnrampUserLimitsOutput = typeof GetOnrampUserLimitsOutput.Type;
|
|
33
|
+
|
|
34
|
+
// The operation
|
|
35
|
+
/**
|
|
36
|
+
* Get onramp user limits
|
|
37
|
+
*
|
|
38
|
+
* 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.
|
|
39
|
+
* Currently supports `GUEST_CHECKOUT_APPLE_PAY` payment method with phone number identification. The phone number must have been previously verified via OTP.
|
|
40
|
+
*/
|
|
41
|
+
export const getOnrampUserLimits = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
42
|
+
inputSchema: GetOnrampUserLimitsInput,
|
|
43
|
+
outputSchema: GetOnrampUserLimitsOutput,
|
|
44
|
+
}));
|
|
@@ -0,0 +1,35 @@
|
|
|
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 GetPolicyByIdInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
policyId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(
|
|
9
|
+
T.Http({ method: "GET", path: "/v2/policy-engine/policies/{policyId}" }),
|
|
10
|
+
);
|
|
11
|
+
export type GetPolicyByIdInput = typeof GetPolicyByIdInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetPolicyByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
id: Schema.String,
|
|
16
|
+
description: Schema.optional(Schema.String),
|
|
17
|
+
scope: Schema.Literals(["project", "account"]),
|
|
18
|
+
rules: Schema.Array(Schema.Unknown),
|
|
19
|
+
createdAt: Schema.String,
|
|
20
|
+
updatedAt: Schema.String,
|
|
21
|
+
});
|
|
22
|
+
export type GetPolicyByIdOutput = typeof GetPolicyByIdOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Get a policy by ID
|
|
27
|
+
*
|
|
28
|
+
* Get a policy by its ID.
|
|
29
|
+
*
|
|
30
|
+
* @param policyId - The ID of the policy to get.
|
|
31
|
+
*/
|
|
32
|
+
export const getPolicyById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: GetPolicyByIdInput,
|
|
34
|
+
outputSchema: GetPolicyByIdOutput,
|
|
35
|
+
}));
|
|
@@ -0,0 +1,26 @@
|
|
|
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 GetSQLGrammarInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "GET", path: "/v2/data/query/grammar" }));
|
|
9
|
+
export type GetSQLGrammarInput = typeof GetSQLGrammarInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetSQLGrammarOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
13
|
+
export type GetSQLGrammarOutput = typeof GetSQLGrammarOutput.Type;
|
|
14
|
+
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Get SQL grammar
|
|
18
|
+
*
|
|
19
|
+
* Retrieve the SQL grammar for the SQL API.
|
|
20
|
+
* The SQL queries that are supported by the SQL API are defined via an ANTLR4 grammar which is evaluated by server before executing the query. This ensures the safety and soundness of the SQL API.
|
|
21
|
+
* 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 as well.
|
|
22
|
+
*/
|
|
23
|
+
export const getSQLGrammar = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: GetSQLGrammarInput,
|
|
25
|
+
outputSchema: GetSQLGrammarOutput,
|
|
26
|
+
}));
|
|
@@ -0,0 +1,34 @@
|
|
|
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 GetSolanaAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/solana/accounts/{address}" }));
|
|
9
|
+
export type GetSolanaAccountInput = typeof GetSolanaAccountInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetSolanaAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
13
|
+
{
|
|
14
|
+
address: Schema.String,
|
|
15
|
+
name: Schema.optional(Schema.String),
|
|
16
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
17
|
+
createdAt: Schema.optional(Schema.String),
|
|
18
|
+
updatedAt: Schema.optional(Schema.String),
|
|
19
|
+
},
|
|
20
|
+
);
|
|
21
|
+
export type GetSolanaAccountOutput = typeof GetSolanaAccountOutput.Type;
|
|
22
|
+
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Get a Solana account by address
|
|
26
|
+
*
|
|
27
|
+
* Gets a Solana account by its address.
|
|
28
|
+
*
|
|
29
|
+
* @param address - The base58 encoded address of the Solana account.
|
|
30
|
+
*/
|
|
31
|
+
export const getSolanaAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetSolanaAccountInput,
|
|
33
|
+
outputSchema: GetSolanaAccountOutput,
|
|
34
|
+
}));
|
|
@@ -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 GetSolanaAccountByNameInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
name: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/v2/solana/accounts/by-name/{name}" }),
|
|
11
|
+
);
|
|
12
|
+
export type GetSolanaAccountByNameInput =
|
|
13
|
+
typeof GetSolanaAccountByNameInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetSolanaAccountByNameOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ 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
|
+
export type GetSolanaAccountByNameOutput =
|
|
25
|
+
typeof GetSolanaAccountByNameOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Get a Solana account by name
|
|
30
|
+
*
|
|
31
|
+
* Gets a Solana account by its name.
|
|
32
|
+
*
|
|
33
|
+
* @param name - The name of the Solana account.
|
|
34
|
+
*/
|
|
35
|
+
export const getSolanaAccountByName = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
36
|
+
() => ({
|
|
37
|
+
inputSchema: GetSolanaAccountByNameInput,
|
|
38
|
+
outputSchema: GetSolanaAccountByNameOutput,
|
|
39
|
+
}),
|
|
40
|
+
);
|
|
@@ -0,0 +1,82 @@
|
|
|
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 GetUserOperationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
userOpHash: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v2/evm/smart-accounts/{address}/user-operations/{userOpHash}",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type GetUserOperationInput = typeof GetUserOperationInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const GetUserOperationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
19
|
+
{
|
|
20
|
+
network: Schema.Literals([
|
|
21
|
+
"base-sepolia",
|
|
22
|
+
"base",
|
|
23
|
+
"arbitrum",
|
|
24
|
+
"optimism",
|
|
25
|
+
"zora",
|
|
26
|
+
"polygon",
|
|
27
|
+
"bnb",
|
|
28
|
+
"avalanche",
|
|
29
|
+
"ethereum",
|
|
30
|
+
"ethereum-sepolia",
|
|
31
|
+
]),
|
|
32
|
+
userOpHash: Schema.String,
|
|
33
|
+
calls: Schema.Array(
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
to: Schema.String,
|
|
36
|
+
value: Schema.String,
|
|
37
|
+
data: Schema.String,
|
|
38
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
status: Schema.Literals([
|
|
42
|
+
"pending",
|
|
43
|
+
"signed",
|
|
44
|
+
"broadcast",
|
|
45
|
+
"complete",
|
|
46
|
+
"dropped",
|
|
47
|
+
"failed",
|
|
48
|
+
]),
|
|
49
|
+
transactionHash: Schema.optional(Schema.String),
|
|
50
|
+
receipts: Schema.optional(
|
|
51
|
+
Schema.Array(
|
|
52
|
+
Schema.Struct({
|
|
53
|
+
revert: Schema.optional(
|
|
54
|
+
Schema.Struct({
|
|
55
|
+
data: Schema.String,
|
|
56
|
+
message: Schema.String,
|
|
57
|
+
}),
|
|
58
|
+
),
|
|
59
|
+
transactionHash: Schema.optional(Schema.String),
|
|
60
|
+
blockHash: Schema.optional(Schema.String),
|
|
61
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
62
|
+
gasUsed: Schema.optional(Schema.String),
|
|
63
|
+
}),
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
},
|
|
67
|
+
);
|
|
68
|
+
export type GetUserOperationOutput = typeof GetUserOperationOutput.Type;
|
|
69
|
+
|
|
70
|
+
// The operation
|
|
71
|
+
/**
|
|
72
|
+
* Get a user operation
|
|
73
|
+
*
|
|
74
|
+
* Gets a user operation by its hash.
|
|
75
|
+
*
|
|
76
|
+
* @param address - The address of the Smart Account the user operation belongs to.
|
|
77
|
+
* @param userOpHash - The hash of the user operation to fetch.
|
|
78
|
+
*/
|
|
79
|
+
export const getUserOperation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
80
|
+
inputSchema: GetUserOperationInput,
|
|
81
|
+
outputSchema: GetUserOperationOutput,
|
|
82
|
+
}));
|
|
@@ -0,0 +1,60 @@
|
|
|
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 GetWebhookSubscriptionInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type GetWebhookSubscriptionInput =
|
|
16
|
+
typeof GetWebhookSubscriptionInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const GetWebhookSubscriptionOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
createdAt: Schema.String,
|
|
22
|
+
description: Schema.optional(Schema.Struct({})),
|
|
23
|
+
eventTypes: Schema.Array(Schema.String),
|
|
24
|
+
isEnabled: Schema.Boolean,
|
|
25
|
+
metadata: Schema.optional(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
secret: Schema.optional(Schema.String),
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
secret: Schema.String,
|
|
31
|
+
subscriptionId: Schema.String,
|
|
32
|
+
target: Schema.Struct({
|
|
33
|
+
url: Schema.Struct({}),
|
|
34
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
35
|
+
}),
|
|
36
|
+
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
37
|
+
});
|
|
38
|
+
export type GetWebhookSubscriptionOutput =
|
|
39
|
+
typeof GetWebhookSubscriptionOutput.Type;
|
|
40
|
+
|
|
41
|
+
// The operation
|
|
42
|
+
/**
|
|
43
|
+
* Get webhook subscription details
|
|
44
|
+
*
|
|
45
|
+
* Retrieve detailed information about a specific webhook subscription including
|
|
46
|
+
* configuration, status, creation timestamp, and webhook signature secret.
|
|
47
|
+
* ### Response Includes
|
|
48
|
+
* - Subscription configuration and filters
|
|
49
|
+
* - Target URL and custom headers
|
|
50
|
+
* - Webhook signature secret for verification
|
|
51
|
+
* - Creation timestamp and status
|
|
52
|
+
*
|
|
53
|
+
* @param subscriptionId - Unique identifier for the webhook subscription.
|
|
54
|
+
*/
|
|
55
|
+
export const getWebhookSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
56
|
+
() => ({
|
|
57
|
+
inputSchema: GetWebhookSubscriptionInput,
|
|
58
|
+
outputSchema: GetWebhookSubscriptionOutput,
|
|
59
|
+
}),
|
|
60
|
+
);
|
|
@@ -0,0 +1,78 @@
|
|
|
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 ImportEndUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
userId: Schema.String,
|
|
8
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
9
|
+
encryptedPrivateKey: Schema.String,
|
|
10
|
+
keyType: Schema.Literals(["evm", "solana"]),
|
|
11
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/end-users/import" }));
|
|
12
|
+
export type ImportEndUserInput = typeof ImportEndUserInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const ImportEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
userId: Schema.String,
|
|
17
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
18
|
+
mfaMethods: Schema.optional(
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
21
|
+
totp: Schema.optional(
|
|
22
|
+
Schema.Struct({
|
|
23
|
+
enrolledAt: Schema.String,
|
|
24
|
+
}),
|
|
25
|
+
),
|
|
26
|
+
sms: Schema.optional(
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
enrolledAt: Schema.String,
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
evmAccounts: Schema.Array(Schema.String),
|
|
34
|
+
evmAccountObjects: Schema.Array(
|
|
35
|
+
Schema.Struct({
|
|
36
|
+
address: Schema.String,
|
|
37
|
+
createdAt: Schema.String,
|
|
38
|
+
}),
|
|
39
|
+
),
|
|
40
|
+
evmSmartAccounts: Schema.Array(Schema.String),
|
|
41
|
+
evmSmartAccountObjects: Schema.Array(
|
|
42
|
+
Schema.Struct({
|
|
43
|
+
address: Schema.String,
|
|
44
|
+
ownerAddresses: Schema.Array(Schema.String),
|
|
45
|
+
createdAt: Schema.String,
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
solanaAccounts: Schema.Array(Schema.String),
|
|
49
|
+
solanaAccountObjects: Schema.Array(
|
|
50
|
+
Schema.Struct({
|
|
51
|
+
address: Schema.String,
|
|
52
|
+
createdAt: Schema.String,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
createdAt: Schema.String,
|
|
56
|
+
});
|
|
57
|
+
export type ImportEndUserOutput = typeof ImportEndUserOutput.Type;
|
|
58
|
+
|
|
59
|
+
// The operation
|
|
60
|
+
/**
|
|
61
|
+
* Import a private key for an end user
|
|
62
|
+
*
|
|
63
|
+
* 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.
|
|
64
|
+
* 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.
|
|
65
|
+
*
|
|
66
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
67
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
68
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
69
|
+
|
|
70
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
71
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
72
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
73
|
+
|
|
74
|
+
*/
|
|
75
|
+
export const importEndUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
76
|
+
inputSchema: ImportEndUserInput,
|
|
77
|
+
outputSchema: ImportEndUserOutput,
|
|
78
|
+
}));
|
|
@@ -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 ImportEvmAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
encryptedPrivateKey: Schema.String,
|
|
8
|
+
name: Schema.optional(Schema.String),
|
|
9
|
+
accountPolicy: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/evm/accounts/import" }));
|
|
11
|
+
export type ImportEvmAccountInput = typeof ImportEvmAccountInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ImportEvmAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
15
|
+
{
|
|
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
|
+
export type ImportEvmAccountOutput = typeof ImportEvmAccountOutput.Type;
|
|
24
|
+
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Import an EVM account
|
|
28
|
+
*
|
|
29
|
+
* 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.
|
|
30
|
+
*
|
|
31
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
32
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
33
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
34
|
+
|
|
35
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
36
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
37
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
38
|
+
|
|
39
|
+
*/
|
|
40
|
+
export const importEvmAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: ImportEvmAccountInput,
|
|
42
|
+
outputSchema: ImportEvmAccountOutput,
|
|
43
|
+
}));
|
|
@@ -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 ImportSolanaAccountInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
encryptedPrivateKey: Schema.String,
|
|
9
|
+
name: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/solana/accounts/import" }));
|
|
11
|
+
export type ImportSolanaAccountInput = typeof ImportSolanaAccountInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ImportSolanaAccountOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ 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
|
+
export type ImportSolanaAccountOutput = typeof ImportSolanaAccountOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Import a Solana account
|
|
27
|
+
*
|
|
28
|
+
* 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.
|
|
29
|
+
*
|
|
30
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
31
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
32
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
33
|
+
|
|
34
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
35
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
36
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
37
|
+
|
|
38
|
+
*/
|
|
39
|
+
export const importSolanaAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
40
|
+
inputSchema: ImportSolanaAccountInput,
|
|
41
|
+
outputSchema: ImportSolanaAccountOutput,
|
|
42
|
+
}));
|