@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,52 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetEndUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
userId: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/end-users/{userId}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const GetEndUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
userId: Schema.String,
|
|
11
|
+
authenticationMethods: Schema.Array(Schema.Unknown),
|
|
12
|
+
mfaMethods: Schema.optional(Schema.Struct({
|
|
13
|
+
enrollmentPromptedAt: Schema.optional(Schema.String),
|
|
14
|
+
totp: Schema.optional(Schema.Struct({
|
|
15
|
+
enrolledAt: Schema.String,
|
|
16
|
+
})),
|
|
17
|
+
sms: Schema.optional(Schema.Struct({
|
|
18
|
+
enrolledAt: Schema.String,
|
|
19
|
+
})),
|
|
20
|
+
})),
|
|
21
|
+
evmAccounts: Schema.Array(Schema.String),
|
|
22
|
+
evmAccountObjects: Schema.Array(Schema.Struct({
|
|
23
|
+
address: Schema.String,
|
|
24
|
+
createdAt: Schema.String,
|
|
25
|
+
})),
|
|
26
|
+
evmSmartAccounts: Schema.Array(Schema.String),
|
|
27
|
+
evmSmartAccountObjects: Schema.Array(Schema.Struct({
|
|
28
|
+
address: Schema.String,
|
|
29
|
+
ownerAddresses: Schema.Array(Schema.String),
|
|
30
|
+
createdAt: Schema.String,
|
|
31
|
+
})),
|
|
32
|
+
solanaAccounts: Schema.Array(Schema.String),
|
|
33
|
+
solanaAccountObjects: Schema.Array(Schema.Struct({
|
|
34
|
+
address: Schema.String,
|
|
35
|
+
createdAt: Schema.String,
|
|
36
|
+
})),
|
|
37
|
+
createdAt: Schema.String,
|
|
38
|
+
});
|
|
39
|
+
// The operation
|
|
40
|
+
/**
|
|
41
|
+
* Get an end user
|
|
42
|
+
*
|
|
43
|
+
* Gets an end user by ID.
|
|
44
|
+
* This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
45
|
+
*
|
|
46
|
+
* @param userId - The ID of the end user to get.
|
|
47
|
+
*/
|
|
48
|
+
export const getEndUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
49
|
+
inputSchema: GetEndUserInput,
|
|
50
|
+
outputSchema: GetEndUserOutput,
|
|
51
|
+
}));
|
|
52
|
+
//# sourceMappingURL=getEndUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEndUser.js","sourceRoot":"","sources":["../../src/operations/getEndUser.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,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC1C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAGnE,gBAAgB;AAChB,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBAAgB;CAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmAccountInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetEvmAccountInput = typeof GetEvmAccountInput.Type;
|
|
6
|
+
export declare const GetEvmAccountOutput: 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 GetEvmAccountOutput = typeof GetEvmAccountOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* Get an EVM account by address
|
|
16
|
+
*
|
|
17
|
+
* Gets an EVM account by its address.
|
|
18
|
+
*
|
|
19
|
+
* @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getEvmAccount: any;
|
|
22
|
+
//# sourceMappingURL=getEvmAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmAccount.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB;;EAEuC,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,KAGvB,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 GetEvmAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/accounts/{address}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const GetEvmAccountOutput = /*@__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 an EVM account by address
|
|
19
|
+
*
|
|
20
|
+
* Gets an EVM account by its address.
|
|
21
|
+
*
|
|
22
|
+
* @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
|
|
23
|
+
*/
|
|
24
|
+
export const getEvmAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: GetEvmAccountInput,
|
|
26
|
+
outputSchema: GetEvmAccountOutput,
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=getEvmAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmAccount.js","sourceRoot":"","sources":["../../src/operations/getEvmAccount.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,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,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAGvE,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,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;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,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmAccountByNameInput: Schema.Struct<{
|
|
3
|
+
readonly name: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetEvmAccountByNameInput = typeof GetEvmAccountByNameInput.Type;
|
|
6
|
+
export declare const GetEvmAccountByNameOutput: 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 GetEvmAccountByNameOutput = typeof GetEvmAccountByNameOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* Get an EVM account by name
|
|
16
|
+
*
|
|
17
|
+
* Gets an EVM account by its name.
|
|
18
|
+
*
|
|
19
|
+
* @param name - The name of the EVM account.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getEvmAccountByName: any;
|
|
22
|
+
//# sourceMappingURL=getEvmAccountByName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmAccountByName.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmAccountByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;EAGwC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;EAOlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,KAG7B,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 GetEvmAccountByNameInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
name: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/accounts/by-name/{name}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetEvmAccountByNameOutput =
|
|
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 an EVM account by name
|
|
21
|
+
*
|
|
22
|
+
* Gets an EVM account by its name.
|
|
23
|
+
*
|
|
24
|
+
* @param name - The name of the EVM account.
|
|
25
|
+
*/
|
|
26
|
+
export const getEvmAccountByName = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
27
|
+
inputSchema: GetEvmAccountByNameInput,
|
|
28
|
+
outputSchema: GetEvmAccountByNameOutput,
|
|
29
|
+
}));
|
|
30
|
+
//# sourceMappingURL=getEvmAccountByName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmAccountByName.js","sourceRoot":"","sources":["../../src/operations/getEvmAccountByName.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,wBAAwB;AACnC,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,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,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;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmEip7702DelegationOperationByIdInput: Schema.Struct<{
|
|
3
|
+
readonly delegationOperationId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetEvmEip7702DelegationOperationByIdInput = typeof GetEvmEip7702DelegationOperationByIdInput.Type;
|
|
6
|
+
export declare const GetEvmEip7702DelegationOperationByIdOutput: Schema.Struct<{
|
|
7
|
+
readonly delegationOperationId: Schema.String;
|
|
8
|
+
readonly status: Schema.Literals<readonly ["UNSPECIFIED", "PENDING", "SUBMITTED", "COMPLETED", "FAILED"]>;
|
|
9
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
10
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "polygon", "ethereum", "ethereum-sepolia"]>;
|
|
11
|
+
readonly delegateAddress: Schema.optional<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
export type GetEvmEip7702DelegationOperationByIdOutput = typeof GetEvmEip7702DelegationOperationByIdOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* Get EIP-7702 delegation operation for an operationID
|
|
16
|
+
*
|
|
17
|
+
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
18
|
+
*
|
|
19
|
+
* @param delegationOperationId - The unique identifier for the delegation operation.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getEvmEip7702DelegationOperationById: any;
|
|
22
|
+
//# sourceMappingURL=getEvmEip7702DelegationOperationById.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmEip7702DelegationOperationById.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmEip7702DelegationOperationById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yCAAyC;;EAQnD,CAAC;AACJ,MAAM,MAAM,yCAAyC,GACnD,OAAO,yCAAyC,CAAC,IAAI,CAAC;AAGxD,eAAO,MAAM,0CAA0C;;;;;;EAqBnD,CAAC;AACL,MAAM,MAAM,0CAA0C,GACpD,OAAO,0CAA0C,CAAC,IAAI,CAAC;AAGzD;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,KAI5C,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 GetEvmEip7702DelegationOperationByIdInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
delegationOperationId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v2/evm/eip7702/delegation-operations/{delegationOperationId}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetEvmEip7702DelegationOperationByIdOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
delegationOperationId: Schema.String,
|
|
16
|
+
status: Schema.Literals([
|
|
17
|
+
"UNSPECIFIED",
|
|
18
|
+
"PENDING",
|
|
19
|
+
"SUBMITTED",
|
|
20
|
+
"COMPLETED",
|
|
21
|
+
"FAILED",
|
|
22
|
+
]),
|
|
23
|
+
transactionHash: Schema.optional(Schema.String),
|
|
24
|
+
network: Schema.Literals([
|
|
25
|
+
"base-sepolia",
|
|
26
|
+
"base",
|
|
27
|
+
"arbitrum",
|
|
28
|
+
"optimism",
|
|
29
|
+
"polygon",
|
|
30
|
+
"ethereum",
|
|
31
|
+
"ethereum-sepolia",
|
|
32
|
+
]),
|
|
33
|
+
delegateAddress: Schema.optional(Schema.String),
|
|
34
|
+
});
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Get EIP-7702 delegation operation for an operationID
|
|
38
|
+
*
|
|
39
|
+
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
40
|
+
*
|
|
41
|
+
* @param delegationOperationId - The unique identifier for the delegation operation.
|
|
42
|
+
*/
|
|
43
|
+
export const getEvmEip7702DelegationOperationById =
|
|
44
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
45
|
+
inputSchema: GetEvmEip7702DelegationOperationByIdInput,
|
|
46
|
+
outputSchema: GetEvmEip7702DelegationOperationByIdOutput,
|
|
47
|
+
}));
|
|
48
|
+
//# sourceMappingURL=getEvmEip7702DelegationOperationById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmEip7702DelegationOperationById.js","sourceRoot":"","sources":["../../src/operations/getEvmEip7702DelegationOperationById.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,yCAAyC;AACpD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,+DAA+D;CACtE,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C;AACrD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,qBAAqB,EAAE,MAAM,CAAC,MAAM;IACpC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACtB,aAAa;QACb,SAAS;QACT,WAAW;QACX,WAAW;QACX,QAAQ;KACT,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;QACV,SAAS;QACT,UAAU;QACV,kBAAkB;KACnB,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAChD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,yCAAyC;IACtD,YAAY,EAAE,0CAA0C;CACzD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmSmartAccountInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetEvmSmartAccountInput = typeof GetEvmSmartAccountInput.Type;
|
|
6
|
+
export declare const GetEvmSmartAccountOutput: Schema.Struct<{
|
|
7
|
+
readonly address: Schema.String;
|
|
8
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
9
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
|
|
11
|
+
readonly createdAt: Schema.optional<Schema.String>;
|
|
12
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetEvmSmartAccountOutput = typeof GetEvmSmartAccountOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Get a Smart Account by address
|
|
17
|
+
*
|
|
18
|
+
* Gets a Smart Account by its address.
|
|
19
|
+
*
|
|
20
|
+
* @param address - The 0x-prefixed address of the Smart Account.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getEvmSmartAccount: any;
|
|
23
|
+
//# sourceMappingURL=getEvmSmartAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSmartAccount.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;EAG0C,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;EAQjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetEvmSmartAccountInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/smart-accounts/{address}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetEvmSmartAccountOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
address: Schema.String,
|
|
13
|
+
owners: Schema.Array(Schema.String),
|
|
14
|
+
name: Schema.optional(Schema.String),
|
|
15
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
16
|
+
createdAt: Schema.optional(Schema.String),
|
|
17
|
+
updatedAt: Schema.optional(Schema.String),
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Get a Smart Account by address
|
|
22
|
+
*
|
|
23
|
+
* Gets a Smart Account by its address.
|
|
24
|
+
*
|
|
25
|
+
* @param address - The 0x-prefixed address of the Smart Account.
|
|
26
|
+
*/
|
|
27
|
+
export const getEvmSmartAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetEvmSmartAccountInput,
|
|
29
|
+
outputSchema: GetEvmSmartAccountOutput,
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=getEvmSmartAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSmartAccount.js","sourceRoot":"","sources":["../../src/operations/getEvmSmartAccount.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,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,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,kCAAkC,EAAE,CAAC,CAAC,CAAC;AAG/E,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,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;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmSmartAccountByNameInput: Schema.Struct<{
|
|
3
|
+
readonly name: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetEvmSmartAccountByNameInput = typeof GetEvmSmartAccountByNameInput.Type;
|
|
6
|
+
export declare const GetEvmSmartAccountByNameOutput: Schema.Struct<{
|
|
7
|
+
readonly address: Schema.String;
|
|
8
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
9
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
|
|
11
|
+
readonly createdAt: Schema.optional<Schema.String>;
|
|
12
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetEvmSmartAccountByNameOutput = typeof GetEvmSmartAccountByNameOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Get a Smart Account by name
|
|
17
|
+
*
|
|
18
|
+
* Gets a Smart Account by its name.
|
|
19
|
+
*
|
|
20
|
+
* @param name - The name of the Smart Account.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getEvmSmartAccountByName: any;
|
|
23
|
+
//# sourceMappingURL=getEvmSmartAccountByName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSmartAccountByName.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmSmartAccountByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6BAA6B;;EAKvC,CAAC;AACJ,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B;;;;;;;EAQvC,CAAC;AACL,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,KAKpC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetEvmSmartAccountByNameInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
name: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/smart-accounts/by-name/{name}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetEvmSmartAccountByNameOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
address: Schema.String,
|
|
13
|
+
owners: Schema.Array(Schema.String),
|
|
14
|
+
name: Schema.optional(Schema.String),
|
|
15
|
+
policies: Schema.optional(Schema.Array(Schema.String)),
|
|
16
|
+
createdAt: Schema.optional(Schema.String),
|
|
17
|
+
updatedAt: Schema.optional(Schema.String),
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Get a Smart Account by name
|
|
22
|
+
*
|
|
23
|
+
* Gets a Smart Account by its name.
|
|
24
|
+
*
|
|
25
|
+
* @param name - The name of the Smart Account.
|
|
26
|
+
*/
|
|
27
|
+
export const getEvmSmartAccountByName = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetEvmSmartAccountByNameInput,
|
|
29
|
+
outputSchema: GetEvmSmartAccountByNameOutput,
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=getEvmSmartAccountByName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSmartAccountByName.js","sourceRoot":"","sources":["../../src/operations/getEvmSmartAccountByName.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,6BAA6B;AACxC,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,uCAAuC,EAAE,CAAC,CACzE,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,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,wBAAwB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC1E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;CAC7C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetEvmSwapPriceInput: Schema.Struct<{
|
|
3
|
+
readonly network: Schema.String;
|
|
4
|
+
readonly toToken: Schema.String;
|
|
5
|
+
readonly fromToken: Schema.String;
|
|
6
|
+
readonly fromAmount: Schema.String;
|
|
7
|
+
readonly taker: Schema.String;
|
|
8
|
+
readonly signerAddress: Schema.optional<Schema.String>;
|
|
9
|
+
readonly gasPrice: Schema.optional<Schema.String>;
|
|
10
|
+
readonly slippageBps: Schema.optional<Schema.String>;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetEvmSwapPriceInput = typeof GetEvmSwapPriceInput.Type;
|
|
13
|
+
export declare const GetEvmSwapPriceOutput: Schema.Unknown;
|
|
14
|
+
export type GetEvmSwapPriceOutput = typeof GetEvmSwapPriceOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Get a price estimate for a swap
|
|
17
|
+
*
|
|
18
|
+
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
19
|
+
*/
|
|
20
|
+
export declare const getEvmSwapPrice: any;
|
|
21
|
+
//# sourceMappingURL=getEvmSwapPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSwapPrice.d.ts","sourceRoot":"","sources":["../../src/operations/getEvmSwapPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oBAAoB;;;;;;;;;EAS8B,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB,gBAA6C,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;GAIG;AACH,eAAO,MAAM,eAAe,KAGzB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetEvmSwapPriceInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
network: Schema.String,
|
|
7
|
+
toToken: Schema.String,
|
|
8
|
+
fromToken: Schema.String,
|
|
9
|
+
fromAmount: Schema.String,
|
|
10
|
+
taker: Schema.String,
|
|
11
|
+
signerAddress: Schema.optional(Schema.String),
|
|
12
|
+
gasPrice: Schema.optional(Schema.String),
|
|
13
|
+
slippageBps: Schema.optional(Schema.String),
|
|
14
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/evm/swaps/quote" }));
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetEvmSwapPriceOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Get a price estimate for a swap
|
|
20
|
+
*
|
|
21
|
+
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
22
|
+
*/
|
|
23
|
+
export const getEvmSwapPrice = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: GetEvmSwapPriceInput,
|
|
25
|
+
outputSchema: GetEvmSwapPriceOutput,
|
|
26
|
+
}));
|
|
27
|
+
//# sourceMappingURL=getEvmSwapPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvmSwapPrice.js","sourceRoot":"","sources":["../../src/operations/getEvmSwapPrice.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,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAGhE,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;AAGhF,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetOnrampOrderByIdInput: Schema.Struct<{
|
|
3
|
+
readonly orderId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetOnrampOrderByIdInput = typeof GetOnrampOrderByIdInput.Type;
|
|
6
|
+
export declare const GetOnrampOrderByIdOutput: Schema.Struct<{
|
|
7
|
+
readonly order: Schema.Struct<{
|
|
8
|
+
readonly orderId: Schema.String;
|
|
9
|
+
readonly paymentTotal: Schema.String;
|
|
10
|
+
readonly paymentSubtotal: Schema.String;
|
|
11
|
+
readonly paymentCurrency: Schema.String;
|
|
12
|
+
readonly paymentMethod: Schema.Literals<readonly ["GUEST_CHECKOUT_APPLE_PAY", "GUEST_CHECKOUT_GOOGLE_PAY"]>;
|
|
13
|
+
readonly purchaseAmount: Schema.String;
|
|
14
|
+
readonly purchaseCurrency: Schema.String;
|
|
15
|
+
readonly fees: Schema.$Array<Schema.Struct<{
|
|
16
|
+
readonly type: Schema.Literals<readonly ["FEE_TYPE_NETWORK", "FEE_TYPE_EXCHANGE"]>;
|
|
17
|
+
readonly amount: Schema.String;
|
|
18
|
+
readonly currency: Schema.String;
|
|
19
|
+
}>>;
|
|
20
|
+
readonly exchangeRate: Schema.String;
|
|
21
|
+
readonly destinationAddress: Schema.Struct<{}>;
|
|
22
|
+
readonly destinationNetwork: Schema.String;
|
|
23
|
+
readonly status: Schema.Literals<readonly ["ONRAMP_ORDER_STATUS_PENDING_AUTH", "ONRAMP_ORDER_STATUS_PENDING_PAYMENT", "ONRAMP_ORDER_STATUS_PROCESSING", "ONRAMP_ORDER_STATUS_COMPLETED", "ONRAMP_ORDER_STATUS_FAILED"]>;
|
|
24
|
+
readonly txHash: Schema.optional<Schema.String>;
|
|
25
|
+
readonly createdAt: Schema.String;
|
|
26
|
+
readonly updatedAt: Schema.String;
|
|
27
|
+
readonly partnerUserRef: Schema.optional<Schema.String>;
|
|
28
|
+
}>;
|
|
29
|
+
}>;
|
|
30
|
+
export type GetOnrampOrderByIdOutput = typeof GetOnrampOrderByIdOutput.Type;
|
|
31
|
+
/**
|
|
32
|
+
* Get an onramp order by ID
|
|
33
|
+
*
|
|
34
|
+
* Get an onramp order by ID.
|
|
35
|
+
*
|
|
36
|
+
* @param orderId - The ID of the onramp order to retrieve.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getOnrampOrderById: any;
|
|
39
|
+
//# sourceMappingURL=getOnrampOrderById.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOnrampOrderById.d.ts","sourceRoot":"","sources":["../../src/operations/getOnrampOrderById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;EAGqC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;EAmCjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetOnrampOrderByIdInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
orderId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/onramp/orders/{orderId}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetOnrampOrderByIdOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
order: Schema.Struct({
|
|
13
|
+
orderId: Schema.String,
|
|
14
|
+
paymentTotal: Schema.String,
|
|
15
|
+
paymentSubtotal: Schema.String,
|
|
16
|
+
paymentCurrency: Schema.String,
|
|
17
|
+
paymentMethod: Schema.Literals([
|
|
18
|
+
"GUEST_CHECKOUT_APPLE_PAY",
|
|
19
|
+
"GUEST_CHECKOUT_GOOGLE_PAY",
|
|
20
|
+
]),
|
|
21
|
+
purchaseAmount: Schema.String,
|
|
22
|
+
purchaseCurrency: Schema.String,
|
|
23
|
+
fees: Schema.Array(Schema.Struct({
|
|
24
|
+
type: Schema.Literals(["FEE_TYPE_NETWORK", "FEE_TYPE_EXCHANGE"]),
|
|
25
|
+
amount: Schema.String,
|
|
26
|
+
currency: Schema.String,
|
|
27
|
+
})),
|
|
28
|
+
exchangeRate: Schema.String,
|
|
29
|
+
destinationAddress: Schema.Struct({}),
|
|
30
|
+
destinationNetwork: Schema.String,
|
|
31
|
+
status: Schema.Literals([
|
|
32
|
+
"ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
33
|
+
"ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
34
|
+
"ONRAMP_ORDER_STATUS_PROCESSING",
|
|
35
|
+
"ONRAMP_ORDER_STATUS_COMPLETED",
|
|
36
|
+
"ONRAMP_ORDER_STATUS_FAILED",
|
|
37
|
+
]),
|
|
38
|
+
txHash: Schema.optional(Schema.String),
|
|
39
|
+
createdAt: Schema.String,
|
|
40
|
+
updatedAt: Schema.String,
|
|
41
|
+
partnerUserRef: Schema.optional(Schema.String),
|
|
42
|
+
}),
|
|
43
|
+
});
|
|
44
|
+
// The operation
|
|
45
|
+
/**
|
|
46
|
+
* Get an onramp order by ID
|
|
47
|
+
*
|
|
48
|
+
* Get an onramp order by ID.
|
|
49
|
+
*
|
|
50
|
+
* @param orderId - The ID of the onramp order to retrieve.
|
|
51
|
+
*/
|
|
52
|
+
export const getOnrampOrderById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
53
|
+
inputSchema: GetOnrampOrderByIdInput,
|
|
54
|
+
outputSchema: GetOnrampOrderByIdOutput,
|
|
55
|
+
}));
|
|
56
|
+
//# sourceMappingURL=getOnrampOrderById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOnrampOrderById.js","sourceRoot":"","sources":["../../src/operations/getOnrampOrderById.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,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,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,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAG1E,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,YAAY,EAAE,MAAM,CAAC,MAAM;QAC3B,eAAe,EAAE,MAAM,CAAC,MAAM;QAC9B,eAAe,EAAE,MAAM,CAAC,MAAM;QAC9B,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC7B,0BAA0B;YAC1B,2BAA2B;SAC5B,CAAC;QACF,cAAc,EAAE,MAAM,CAAC,MAAM;QAC7B,gBAAgB,EAAE,MAAM,CAAC,MAAM;QAC/B,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;YAChE,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,MAAM;SACxB,CAAC,CACH;QACD,YAAY,EAAE,MAAM,CAAC,MAAM;QAC3B,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACrC,kBAAkB,EAAE,MAAM,CAAC,MAAM;QACjC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;YACtB,kCAAkC;YAClC,qCAAqC;YACrC,gCAAgC;YAChC,+BAA+B;YAC/B,4BAA4B;SAC7B,CAAC;QACF,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetOnrampUserLimitsInput: Schema.Struct<{
|
|
3
|
+
readonly paymentMethodType: Schema.Literals<readonly ["GUEST_CHECKOUT_APPLE_PAY", "GUEST_CHECKOUT_GOOGLE_PAY"]>;
|
|
4
|
+
readonly userId: Schema.String;
|
|
5
|
+
readonly userIdType: Schema.Literals<readonly ["phone_number"]>;
|
|
6
|
+
}>;
|
|
7
|
+
export type GetOnrampUserLimitsInput = typeof GetOnrampUserLimitsInput.Type;
|
|
8
|
+
export declare const GetOnrampUserLimitsOutput: Schema.Struct<{
|
|
9
|
+
readonly limits: Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly limitType: Schema.Literals<readonly ["weekly_spending", "lifetime_transactions"]>;
|
|
11
|
+
readonly currency: Schema.optional<Schema.String>;
|
|
12
|
+
readonly limit: Schema.String;
|
|
13
|
+
readonly remaining: Schema.String;
|
|
14
|
+
}>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type GetOnrampUserLimitsOutput = typeof GetOnrampUserLimitsOutput.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Get onramp user limits
|
|
19
|
+
*
|
|
20
|
+
* 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.
|
|
21
|
+
* Currently supports `GUEST_CHECKOUT_APPLE_PAY` payment method with phone number identification. The phone number must have been previously verified via OTP.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getOnrampUserLimits: any;
|
|
24
|
+
//# sourceMappingURL=getOnrampUserLimits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOnrampUserLimits.d.ts","sourceRoot":"","sources":["../../src/operations/getOnrampUserLimits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;;EAQ2B,CAAC;AACjE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;;EAalC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetOnrampUserLimitsInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
paymentMethodType: Schema.Literals([
|
|
8
|
+
"GUEST_CHECKOUT_APPLE_PAY",
|
|
9
|
+
"GUEST_CHECKOUT_GOOGLE_PAY",
|
|
10
|
+
]),
|
|
11
|
+
userId: Schema.String,
|
|
12
|
+
userIdType: Schema.Literals(["phone_number"]),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/onramp/limits" }));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const GetOnrampUserLimitsOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
limits: Schema.Array(Schema.Struct({
|
|
18
|
+
limitType: Schema.Literals([
|
|
19
|
+
"weekly_spending",
|
|
20
|
+
"lifetime_transactions",
|
|
21
|
+
]),
|
|
22
|
+
currency: Schema.optional(Schema.String),
|
|
23
|
+
limit: Schema.String,
|
|
24
|
+
remaining: Schema.String,
|
|
25
|
+
})),
|
|
26
|
+
});
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Get onramp user limits
|
|
30
|
+
*
|
|
31
|
+
* 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.
|
|
32
|
+
* Currently supports `GUEST_CHECKOUT_APPLE_PAY` payment method with phone number identification. The phone number must have been previously verified via OTP.
|
|
33
|
+
*/
|
|
34
|
+
export const getOnrampUserLimits = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
35
|
+
inputSchema: GetOnrampUserLimitsInput,
|
|
36
|
+
outputSchema: GetOnrampUserLimitsOutput,
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=getOnrampUserLimits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOnrampUserLimits.js","sourceRoot":"","sources":["../../src/operations/getOnrampUserLimits.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,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC;QACjC,0BAA0B;QAC1B,2BAA2B;KAC5B,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC;CAC9C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAGjE,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,KAAK,CAClB,MAAM,CAAC,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;YACzB,iBAAiB;YACjB,uBAAuB;SACxB,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
|