@distilled.cloud/coinbase 0.0.0-john
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/README.md +77 -0
- 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 +12 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +245 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +33 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +30 -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 +89 -0
- package/src/category.ts +4 -0
- package/src/client.ts +291 -0
- package/src/credentials.ts +66 -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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetPolicyByIdInput: Schema.Struct<{
|
|
3
|
+
readonly policyId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetPolicyByIdInput = typeof GetPolicyByIdInput.Type;
|
|
6
|
+
export declare const GetPolicyByIdOutput: Schema.Struct<{
|
|
7
|
+
readonly id: Schema.String;
|
|
8
|
+
readonly description: Schema.optional<Schema.String>;
|
|
9
|
+
readonly scope: Schema.Literals<readonly ["project", "account"]>;
|
|
10
|
+
readonly rules: Schema.$Array<Schema.Unknown>;
|
|
11
|
+
readonly createdAt: Schema.String;
|
|
12
|
+
readonly updatedAt: Schema.String;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetPolicyByIdOutput = typeof GetPolicyByIdOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Get a policy by ID
|
|
17
|
+
*
|
|
18
|
+
* Get a policy by its ID.
|
|
19
|
+
*
|
|
20
|
+
* @param policyId - The ID of the policy to get.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getPolicyById: any;
|
|
23
|
+
//# sourceMappingURL=getPolicyById.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicyById.d.ts","sourceRoot":"","sources":["../../src/operations/getPolicyById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB;;EAI9B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB;;;;;;;EAO9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,KAGvB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetPolicyByIdInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
policyId: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/policy-engine/policies/{policyId}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const GetPolicyByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
id: Schema.String,
|
|
11
|
+
description: Schema.optional(Schema.String),
|
|
12
|
+
scope: Schema.Literals(["project", "account"]),
|
|
13
|
+
rules: Schema.Array(Schema.Unknown),
|
|
14
|
+
createdAt: Schema.String,
|
|
15
|
+
updatedAt: Schema.String,
|
|
16
|
+
});
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Get a policy by ID
|
|
20
|
+
*
|
|
21
|
+
* Get a policy by its ID.
|
|
22
|
+
*
|
|
23
|
+
* @param policyId - The ID of the policy to get.
|
|
24
|
+
*/
|
|
25
|
+
export const getPolicyById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: GetPolicyByIdInput,
|
|
27
|
+
outputSchema: GetPolicyByIdOutput,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=getPolicyById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicyById.js","sourceRoot":"","sources":["../../src/operations/getPolicyById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC5C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC,CACzE,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetSQLGrammarInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetSQLGrammarInput = typeof GetSQLGrammarInput.Type;
|
|
4
|
+
export declare const GetSQLGrammarOutput: Schema.String;
|
|
5
|
+
export type GetSQLGrammarOutput = typeof GetSQLGrammarOutput.Type;
|
|
6
|
+
/**
|
|
7
|
+
* Get SQL grammar
|
|
8
|
+
*
|
|
9
|
+
* Retrieve the SQL grammar for the SQL API.
|
|
10
|
+
* 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.
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getSQLGrammar: any;
|
|
14
|
+
//# sourceMappingURL=getSQLGrammar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSQLGrammar.d.ts","sourceRoot":"","sources":["../../src/operations/getSQLGrammar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB,mBAEkC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB,eAA4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,KAGvB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetSQLGrammarInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v2/data/query/grammar" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const GetSQLGrammarOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
8
|
+
// The operation
|
|
9
|
+
/**
|
|
10
|
+
* Get SQL grammar
|
|
11
|
+
*
|
|
12
|
+
* Retrieve the SQL grammar for the SQL API.
|
|
13
|
+
* 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.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
export const getSQLGrammar = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
17
|
+
inputSchema: GetSQLGrammarInput,
|
|
18
|
+
outputSchema: GetSQLGrammarOutput,
|
|
19
|
+
}));
|
|
20
|
+
//# sourceMappingURL=getSQLGrammar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSQLGrammar.js","sourceRoot":"","sources":["../../src/operations/getSQLGrammar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CACzE,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAGlE,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;AAG7E,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetSolanaAccountInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetSolanaAccountInput = typeof GetSolanaAccountInput.Type;
|
|
6
|
+
export declare const GetSolanaAccountOutput: Schema.Struct<{
|
|
7
|
+
readonly address: Schema.String;
|
|
8
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9
|
+
readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
|
|
10
|
+
readonly createdAt: Schema.optional<Schema.String>;
|
|
11
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
export type GetSolanaAccountOutput = typeof GetSolanaAccountOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* Get a Solana account by address
|
|
16
|
+
*
|
|
17
|
+
* Gets a Solana account by its address.
|
|
18
|
+
*
|
|
19
|
+
* @param address - The base58 encoded address of the Solana account.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getSolanaAccount: any;
|
|
22
|
+
//# sourceMappingURL=getSolanaAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSolanaAccount.d.ts","sourceRoot":"","sources":["../../src/operations/getSolanaAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;EAEuC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;EAQlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetSolanaAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/solana/accounts/{address}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const GetSolanaAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
address: Schema.String,
|
|
11
|
+
name: Schema.optional(Schema.String),
|
|
12
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
13
|
+
createdAt: Schema.optional(Schema.String),
|
|
14
|
+
updatedAt: Schema.optional(Schema.String),
|
|
15
|
+
});
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Get a Solana account by address
|
|
19
|
+
*
|
|
20
|
+
* Gets a Solana account by its address.
|
|
21
|
+
*
|
|
22
|
+
* @param address - The base58 encoded address of the Solana account.
|
|
23
|
+
*/
|
|
24
|
+
export const getSolanaAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: GetSolanaAccountInput,
|
|
26
|
+
outputSchema: GetSolanaAccountOutput,
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=getSolanaAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSolanaAccount.js","sourceRoot":"","sources":["../../src/operations/getSolanaAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC3C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAG1E,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1C,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetSolanaAccountByNameInput: Schema.Struct<{
|
|
3
|
+
readonly name: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetSolanaAccountByNameInput = typeof GetSolanaAccountByNameInput.Type;
|
|
6
|
+
export declare const GetSolanaAccountByNameOutput: Schema.Struct<{
|
|
7
|
+
readonly address: Schema.String;
|
|
8
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9
|
+
readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
|
|
10
|
+
readonly createdAt: Schema.optional<Schema.String>;
|
|
11
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
export type GetSolanaAccountByNameOutput = typeof GetSolanaAccountByNameOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* Get a Solana account by name
|
|
16
|
+
*
|
|
17
|
+
* Gets a Solana account by its name.
|
|
18
|
+
*
|
|
19
|
+
* @param name - The name of the Solana account.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getSolanaAccountByName: any;
|
|
22
|
+
//# sourceMappingURL=getSolanaAccountByName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSolanaAccountByName.d.ts","sourceRoot":"","sources":["../../src/operations/getSolanaAccountByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,2BAA2B;;EAKrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C,eAAO,MAAM,4BAA4B;;;;;;EAOrC,CAAC;AACL,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,KAKlC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetSolanaAccountByNameInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
name: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/solana/accounts/by-name/{name}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetSolanaAccountByNameOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
address: Schema.String,
|
|
13
|
+
name: Schema.optional(Schema.String),
|
|
14
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
15
|
+
createdAt: Schema.optional(Schema.String),
|
|
16
|
+
updatedAt: Schema.optional(Schema.String),
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Get a Solana account by name
|
|
21
|
+
*
|
|
22
|
+
* Gets a Solana account by its name.
|
|
23
|
+
*
|
|
24
|
+
* @param name - The name of the Solana account.
|
|
25
|
+
*/
|
|
26
|
+
export const getSolanaAccountByName = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
27
|
+
inputSchema: GetSolanaAccountByNameInput,
|
|
28
|
+
outputSchema: GetSolanaAccountByNameOutput,
|
|
29
|
+
}));
|
|
30
|
+
//# sourceMappingURL=getSolanaAccountByName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSolanaAccountByName.js","sourceRoot":"","sources":["../../src/operations/getSolanaAccountByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACxC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oCAAoC,EAAE,CAAC,CACtE,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1C,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACxE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,2BAA2B;IACxC,YAAY,EAAE,4BAA4B;CAC3C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetUserOperationInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly userOpHash: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetUserOperationInput = typeof GetUserOperationInput.Type;
|
|
7
|
+
export declare const GetUserOperationOutput: Schema.Struct<{
|
|
8
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
9
|
+
readonly userOpHash: Schema.String;
|
|
10
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly to: Schema.String;
|
|
12
|
+
readonly value: Schema.String;
|
|
13
|
+
readonly data: Schema.String;
|
|
14
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
15
|
+
}>>;
|
|
16
|
+
readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
|
|
17
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
18
|
+
readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
19
|
+
readonly revert: Schema.optional<Schema.Struct<{
|
|
20
|
+
readonly data: Schema.String;
|
|
21
|
+
readonly message: Schema.String;
|
|
22
|
+
}>>;
|
|
23
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
24
|
+
readonly blockHash: Schema.optional<Schema.String>;
|
|
25
|
+
readonly blockNumber: Schema.optional<Schema.Number>;
|
|
26
|
+
readonly gasUsed: Schema.optional<Schema.String>;
|
|
27
|
+
}>>>;
|
|
28
|
+
}>;
|
|
29
|
+
export type GetUserOperationOutput = typeof GetUserOperationOutput.Type;
|
|
30
|
+
/**
|
|
31
|
+
* Get a user operation
|
|
32
|
+
*
|
|
33
|
+
* Gets a user operation by its hash.
|
|
34
|
+
*
|
|
35
|
+
* @param address - The address of the Smart Account the user operation belongs to.
|
|
36
|
+
* @param userOpHash - The hash of the user operation to fetch.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getUserOperation: any;
|
|
39
|
+
//# sourceMappingURL=getUserOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperation.d.ts","sourceRoot":"","sources":["../../src/operations/getUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;EAQjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAiDlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetUserOperationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
userOpHash: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v2/evm/smart-accounts/{address}/user-operations/{userOpHash}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetUserOperationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
network: Schema.Literals([
|
|
15
|
+
"base-sepolia",
|
|
16
|
+
"base",
|
|
17
|
+
"arbitrum",
|
|
18
|
+
"optimism",
|
|
19
|
+
"zora",
|
|
20
|
+
"polygon",
|
|
21
|
+
"bnb",
|
|
22
|
+
"avalanche",
|
|
23
|
+
"ethereum",
|
|
24
|
+
"ethereum-sepolia",
|
|
25
|
+
]),
|
|
26
|
+
userOpHash: Schema.String,
|
|
27
|
+
calls: Schema.Array(Schema.Struct({
|
|
28
|
+
to: Schema.String,
|
|
29
|
+
value: Schema.String,
|
|
30
|
+
data: Schema.String,
|
|
31
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
32
|
+
})),
|
|
33
|
+
status: Schema.Literals([
|
|
34
|
+
"pending",
|
|
35
|
+
"signed",
|
|
36
|
+
"broadcast",
|
|
37
|
+
"complete",
|
|
38
|
+
"dropped",
|
|
39
|
+
"failed",
|
|
40
|
+
]),
|
|
41
|
+
transactionHash: Schema.optional(Schema.String),
|
|
42
|
+
receipts: Schema.optional(Schema.Array(Schema.Struct({
|
|
43
|
+
revert: Schema.optional(Schema.Struct({
|
|
44
|
+
data: Schema.String,
|
|
45
|
+
message: Schema.String,
|
|
46
|
+
})),
|
|
47
|
+
transactionHash: Schema.optional(Schema.String),
|
|
48
|
+
blockHash: Schema.optional(Schema.String),
|
|
49
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
50
|
+
gasUsed: Schema.optional(Schema.String),
|
|
51
|
+
}))),
|
|
52
|
+
});
|
|
53
|
+
// The operation
|
|
54
|
+
/**
|
|
55
|
+
* Get a user operation
|
|
56
|
+
*
|
|
57
|
+
* Gets a user operation by its hash.
|
|
58
|
+
*
|
|
59
|
+
* @param address - The address of the Smart Account the user operation belongs to.
|
|
60
|
+
* @param userOpHash - The hash of the user operation to fetch.
|
|
61
|
+
*/
|
|
62
|
+
export const getUserOperation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
63
|
+
inputSchema: GetUserOperationInput,
|
|
64
|
+
outputSchema: GetUserOperationOutput,
|
|
65
|
+
}));
|
|
66
|
+
//# sourceMappingURL=getUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperation.js","sourceRoot":"","sources":["../../src/operations/getUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC9C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,+DAA+D;CACtE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;QACV,MAAM;QACN,SAAS;QACT,KAAK;QACL,WAAW;QACX,UAAU;QACV,kBAAkB;KACnB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACjD,CAAC,CACH;IACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACtB,SAAS;QACT,QAAQ;QACR,WAAW;QACX,UAAU;QACV,SAAS;QACT,QAAQ;KACT,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,OAAO,EAAE,MAAM,CAAC,MAAM;SACvB,CAAC,CACH;QACD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACxC,CAAC,CACH,CACF;CACF,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetWebhookSubscriptionInput: Schema.Struct<{
|
|
3
|
+
readonly subscriptionId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetWebhookSubscriptionInput = typeof GetWebhookSubscriptionInput.Type;
|
|
6
|
+
export declare const GetWebhookSubscriptionOutput: Schema.Struct<{
|
|
7
|
+
readonly createdAt: Schema.String;
|
|
8
|
+
readonly description: Schema.optional<Schema.Struct<{}>>;
|
|
9
|
+
readonly eventTypes: Schema.$Array<Schema.String>;
|
|
10
|
+
readonly isEnabled: Schema.Boolean;
|
|
11
|
+
readonly metadata: Schema.optional<Schema.Struct<{
|
|
12
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
13
|
+
}>>;
|
|
14
|
+
readonly secret: Schema.String;
|
|
15
|
+
readonly subscriptionId: Schema.String;
|
|
16
|
+
readonly target: Schema.Struct<{
|
|
17
|
+
readonly url: Schema.Struct<{}>;
|
|
18
|
+
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
19
|
+
}>;
|
|
20
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
21
|
+
}>;
|
|
22
|
+
export type GetWebhookSubscriptionOutput = typeof GetWebhookSubscriptionOutput.Type;
|
|
23
|
+
/**
|
|
24
|
+
* Get webhook subscription details
|
|
25
|
+
*
|
|
26
|
+
* Retrieve detailed information about a specific webhook subscription including
|
|
27
|
+
* configuration, status, creation timestamp, and webhook signature secret.
|
|
28
|
+
* ### Response Includes
|
|
29
|
+
* - Subscription configuration and filters
|
|
30
|
+
* - Target URL and custom headers
|
|
31
|
+
* - Webhook signature secret for verification
|
|
32
|
+
* - Creation timestamp and status
|
|
33
|
+
*
|
|
34
|
+
* @param subscriptionId - Unique identifier for the webhook subscription.
|
|
35
|
+
*/
|
|
36
|
+
export declare const getWebhookSubscription: any;
|
|
37
|
+
//# sourceMappingURL=getWebhookSubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebhookSubscription.d.ts","sourceRoot":"","sources":["../../src/operations/getWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,2BAA2B;;EAQrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAkBrC,CAAC;AACL,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,KAKlC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetWebhookSubscriptionInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v2/data/webhooks/subscriptions/{subscriptionId}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetWebhookSubscriptionOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
createdAt: Schema.String,
|
|
16
|
+
description: Schema.optional(Schema.Struct({})),
|
|
17
|
+
eventTypes: Schema.Array(Schema.String),
|
|
18
|
+
isEnabled: Schema.Boolean,
|
|
19
|
+
metadata: Schema.optional(Schema.Struct({
|
|
20
|
+
secret: Schema.optional(Schema.String),
|
|
21
|
+
})),
|
|
22
|
+
secret: Schema.String,
|
|
23
|
+
subscriptionId: Schema.String,
|
|
24
|
+
target: Schema.Struct({
|
|
25
|
+
url: Schema.Struct({}),
|
|
26
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
27
|
+
}),
|
|
28
|
+
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
29
|
+
});
|
|
30
|
+
// The operation
|
|
31
|
+
/**
|
|
32
|
+
* Get webhook subscription details
|
|
33
|
+
*
|
|
34
|
+
* Retrieve detailed information about a specific webhook subscription including
|
|
35
|
+
* configuration, status, creation timestamp, and webhook signature secret.
|
|
36
|
+
* ### Response Includes
|
|
37
|
+
* - Subscription configuration and filters
|
|
38
|
+
* - Target URL and custom headers
|
|
39
|
+
* - Webhook signature secret for verification
|
|
40
|
+
* - Creation timestamp and status
|
|
41
|
+
*
|
|
42
|
+
* @param subscriptionId - Unique identifier for the webhook subscription.
|
|
43
|
+
*/
|
|
44
|
+
export const getWebhookSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
45
|
+
inputSchema: GetWebhookSubscriptionInput,
|
|
46
|
+
outputSchema: GetWebhookSubscriptionOutput,
|
|
47
|
+
}));
|
|
48
|
+
//# sourceMappingURL=getWebhookSubscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/getWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAClD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,kDAAkD;CACzD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,OAAO;IACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACvC,CAAC,CACH;IACD,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACtE,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACrE,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACxE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,2BAA2B;IACxC,YAAY,EAAE,4BAA4B;CAC3C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ImportEndUserInput: Schema.Struct<{
|
|
3
|
+
readonly userId: Schema.String;
|
|
4
|
+
readonly authenticationMethods: Schema.$Array<Schema.Unknown>;
|
|
5
|
+
readonly encryptedPrivateKey: Schema.String;
|
|
6
|
+
readonly keyType: Schema.Literals<readonly ["evm", "solana"]>;
|
|
7
|
+
}>;
|
|
8
|
+
export type ImportEndUserInput = typeof ImportEndUserInput.Type;
|
|
9
|
+
export declare const ImportEndUserOutput: Schema.Struct<{
|
|
10
|
+
readonly userId: Schema.String;
|
|
11
|
+
readonly authenticationMethods: Schema.$Array<Schema.Unknown>;
|
|
12
|
+
readonly mfaMethods: Schema.optional<Schema.Struct<{
|
|
13
|
+
readonly enrollmentPromptedAt: Schema.optional<Schema.String>;
|
|
14
|
+
readonly totp: Schema.optional<Schema.Struct<{
|
|
15
|
+
readonly enrolledAt: Schema.String;
|
|
16
|
+
}>>;
|
|
17
|
+
readonly sms: Schema.optional<Schema.Struct<{
|
|
18
|
+
readonly enrolledAt: Schema.String;
|
|
19
|
+
}>>;
|
|
20
|
+
}>>;
|
|
21
|
+
readonly evmAccounts: Schema.$Array<Schema.String>;
|
|
22
|
+
readonly evmAccountObjects: Schema.$Array<Schema.Struct<{
|
|
23
|
+
readonly address: Schema.String;
|
|
24
|
+
readonly createdAt: Schema.String;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly evmSmartAccounts: Schema.$Array<Schema.String>;
|
|
27
|
+
readonly evmSmartAccountObjects: Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly address: Schema.String;
|
|
29
|
+
readonly ownerAddresses: Schema.$Array<Schema.String>;
|
|
30
|
+
readonly createdAt: Schema.String;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly solanaAccounts: Schema.$Array<Schema.String>;
|
|
33
|
+
readonly solanaAccountObjects: Schema.$Array<Schema.Struct<{
|
|
34
|
+
readonly address: Schema.String;
|
|
35
|
+
readonly createdAt: Schema.String;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly createdAt: Schema.String;
|
|
38
|
+
}>;
|
|
39
|
+
export type ImportEndUserOutput = typeof ImportEndUserOutput.Type;
|
|
40
|
+
/**
|
|
41
|
+
* Import a private key for an end user
|
|
42
|
+
*
|
|
43
|
+
* 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.
|
|
44
|
+
* 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.
|
|
45
|
+
*
|
|
46
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
47
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
48
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
49
|
+
|
|
50
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
51
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
52
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
53
|
+
|
|
54
|
+
*/
|
|
55
|
+
export declare const importEndUser: any;
|
|
56
|
+
//# sourceMappingURL=importEndUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importEndUser.d.ts","sourceRoot":"","sources":["../../src/operations/importEndUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB;;;;;EAKkC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyC9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,KAGvB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ImportEndUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
userId: Schema.String,
|
|
7
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
8
|
+
encryptedPrivateKey: Schema.String,
|
|
9
|
+
keyType: Schema.Literals(["evm", "solana"]),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/end-users/import" }));
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const ImportEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
userId: Schema.String,
|
|
14
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
15
|
+
mfaMethods: Schema.optional(Schema.Struct({
|
|
16
|
+
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
17
|
+
totp: Schema.optional(Schema.Struct({
|
|
18
|
+
enrolledAt: Schema.String,
|
|
19
|
+
})),
|
|
20
|
+
sms: Schema.optional(Schema.Struct({
|
|
21
|
+
enrolledAt: Schema.String,
|
|
22
|
+
})),
|
|
23
|
+
})),
|
|
24
|
+
evmAccounts: Schema.Array(Schema.String),
|
|
25
|
+
evmAccountObjects: Schema.Array(Schema.Struct({
|
|
26
|
+
address: Schema.String,
|
|
27
|
+
createdAt: Schema.String,
|
|
28
|
+
})),
|
|
29
|
+
evmSmartAccounts: Schema.Array(Schema.String),
|
|
30
|
+
evmSmartAccountObjects: Schema.Array(Schema.Struct({
|
|
31
|
+
address: Schema.String,
|
|
32
|
+
ownerAddresses: Schema.Array(Schema.String),
|
|
33
|
+
createdAt: Schema.String,
|
|
34
|
+
})),
|
|
35
|
+
solanaAccounts: Schema.Array(Schema.String),
|
|
36
|
+
solanaAccountObjects: Schema.Array(Schema.Struct({
|
|
37
|
+
address: Schema.String,
|
|
38
|
+
createdAt: Schema.String,
|
|
39
|
+
})),
|
|
40
|
+
createdAt: Schema.String,
|
|
41
|
+
});
|
|
42
|
+
// The operation
|
|
43
|
+
/**
|
|
44
|
+
* Import a private key for an end user
|
|
45
|
+
*
|
|
46
|
+
* 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.
|
|
47
|
+
* 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.
|
|
48
|
+
*
|
|
49
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
50
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
51
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
52
|
+
|
|
53
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
54
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
55
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
export const importEndUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
59
|
+
inputSchema: ImportEndUserInput,
|
|
60
|
+
outputSchema: ImportEndUserOutput,
|
|
61
|
+
}));
|
|
62
|
+
//# sourceMappingURL=importEndUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importEndUser.js","sourceRoot":"","sources":["../../src/operations/importEndUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACnD,mBAAmB,EAAE,MAAM,CAAC,MAAM;IAClC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;CAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC,CAAC;AAGlE,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpD,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;YACZ,UAAU,EAAE,MAAM,CAAC,MAAM;SAC1B,CAAC,CACH;QACD,GAAG,EAAE,MAAM,CAAC,QAAQ,CAClB,MAAM,CAAC,MAAM,CAAC;YACZ,UAAU,EAAE,MAAM,CAAC,MAAM;SAC1B,CAAC,CACH;KACF,CAAC,CACH;IACD,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAC7B,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAClC,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAChC,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ImportEvmAccountInput: Schema.Struct<{
|
|
3
|
+
readonly encryptedPrivateKey: Schema.String;
|
|
4
|
+
readonly name: Schema.optional<Schema.String>;
|
|
5
|
+
readonly accountPolicy: Schema.optional<Schema.String>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ImportEvmAccountInput = typeof ImportEvmAccountInput.Type;
|
|
8
|
+
export declare const ImportEvmAccountOutput: Schema.Struct<{
|
|
9
|
+
readonly address: Schema.String;
|
|
10
|
+
readonly name: Schema.optional<Schema.String>;
|
|
11
|
+
readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
|
|
12
|
+
readonly createdAt: Schema.optional<Schema.String>;
|
|
13
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
14
|
+
}>;
|
|
15
|
+
export type ImportEvmAccountOutput = typeof ImportEvmAccountOutput.Type;
|
|
16
|
+
/**
|
|
17
|
+
* Import an EVM account
|
|
18
|
+
*
|
|
19
|
+
* 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.
|
|
20
|
+
*
|
|
21
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
22
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
23
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
24
|
+
|
|
25
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
26
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
27
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
export declare const importEvmAccount: any;
|
|
31
|
+
//# sourceMappingURL=importEvmAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importEvmAccount.d.ts","sourceRoot":"","sources":["../../src/operations/importEvmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;EAIkC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;EAQlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|