@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
package/lib/errors.d.ts
ADDED
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coinbase-specific error types.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports common HTTP errors from sdk-core and adds Coinbase CDP-specific
|
|
5
|
+
* error types based on the `ErrorType` enum from the OpenAPI spec.
|
|
6
|
+
*
|
|
7
|
+
* Coinbase errors have the shape:
|
|
8
|
+
* ```json
|
|
9
|
+
* {
|
|
10
|
+
* "errorType": "invalid_request",
|
|
11
|
+
* "errorMessage": "Invalid request.",
|
|
12
|
+
* "correlationId": "41deb8d59a9dc9a7-IAD",
|
|
13
|
+
* "errorLink": "https://docs.cdp.coinbase.com/api-reference/v2/errors#invalid-request"
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
18
|
+
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
19
|
+
import * as Schema from "effect/Schema";
|
|
20
|
+
import * as Category from "@distilled.cloud/core/category";
|
|
21
|
+
declare const PaymentRequired_base: Schema.ErrorClass<PaymentRequired, Schema.TaggedStruct<"PaymentRequired", {
|
|
22
|
+
errorType: Schema.optional<Schema.String>;
|
|
23
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
24
|
+
correlationId: Schema.optional<Schema.String>;
|
|
25
|
+
errorLink: Schema.optional<Schema.String>;
|
|
26
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
27
|
+
"@distilled.cloud/error/categories": {
|
|
28
|
+
BadRequestError: true;
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Payment method required — a valid payment method is required (HTTP 402).
|
|
33
|
+
* errorType: "payment_method_required" | "payment_required"
|
|
34
|
+
*/
|
|
35
|
+
export declare class PaymentRequired extends PaymentRequired_base {
|
|
36
|
+
}
|
|
37
|
+
declare const IdempotencyError_base: Schema.ErrorClass<IdempotencyError, Schema.TaggedStruct<"IdempotencyError", {
|
|
38
|
+
errorType: Schema.optional<Schema.String>;
|
|
39
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
40
|
+
correlationId: Schema.optional<Schema.String>;
|
|
41
|
+
errorLink: Schema.optional<Schema.String>;
|
|
42
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
ConflictError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* Idempotency key conflict — the same key was used with different request params (HTTP 422).
|
|
49
|
+
* errorType: "idempotency_error"
|
|
50
|
+
*/
|
|
51
|
+
export declare class IdempotencyError extends IdempotencyError_base {
|
|
52
|
+
}
|
|
53
|
+
declare const AlreadyExists_base: Schema.ErrorClass<AlreadyExists, Schema.TaggedStruct<"AlreadyExists", {
|
|
54
|
+
errorType: Schema.optional<Schema.String>;
|
|
55
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
56
|
+
correlationId: Schema.optional<Schema.String>;
|
|
57
|
+
errorLink: Schema.optional<Schema.String>;
|
|
58
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
59
|
+
"@distilled.cloud/error/categories": {
|
|
60
|
+
AlreadyExistsError: true;
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Resource already exists — trying to create a duplicate resource (HTTP 409).
|
|
65
|
+
* errorType: "already_exists"
|
|
66
|
+
*/
|
|
67
|
+
export declare class AlreadyExists extends AlreadyExists_base {
|
|
68
|
+
}
|
|
69
|
+
declare const FaucetLimitExceeded_base: Schema.ErrorClass<FaucetLimitExceeded, Schema.TaggedStruct<"FaucetLimitExceeded", {
|
|
70
|
+
errorType: Schema.optional<Schema.String>;
|
|
71
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
72
|
+
correlationId: Schema.optional<Schema.String>;
|
|
73
|
+
errorLink: Schema.optional<Schema.String>;
|
|
74
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
75
|
+
"@distilled.cloud/error/categories": {
|
|
76
|
+
QuotaError: true;
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* Faucet limit exceeded — too many faucet requests.
|
|
81
|
+
* errorType: "faucet_limit_exceeded"
|
|
82
|
+
*/
|
|
83
|
+
export declare class FaucetLimitExceeded extends FaucetLimitExceeded_base {
|
|
84
|
+
}
|
|
85
|
+
declare const InvalidSqlQuery_base: Schema.ErrorClass<InvalidSqlQuery, Schema.TaggedStruct<"InvalidSqlQuery", {
|
|
86
|
+
errorType: Schema.optional<Schema.String>;
|
|
87
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
88
|
+
correlationId: Schema.optional<Schema.String>;
|
|
89
|
+
errorLink: Schema.optional<Schema.String>;
|
|
90
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
91
|
+
"@distilled.cloud/error/categories": {
|
|
92
|
+
BadRequestError: true;
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Invalid SQL query — the underlying SQL string is invalid.
|
|
97
|
+
* errorType: "invalid_sql_query"
|
|
98
|
+
*/
|
|
99
|
+
export declare class InvalidSqlQuery extends InvalidSqlQuery_base {
|
|
100
|
+
}
|
|
101
|
+
declare const InvalidSignature_base: Schema.ErrorClass<InvalidSignature, Schema.TaggedStruct<"InvalidSignature", {
|
|
102
|
+
errorType: Schema.optional<Schema.String>;
|
|
103
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
104
|
+
correlationId: Schema.optional<Schema.String>;
|
|
105
|
+
errorLink: Schema.optional<Schema.String>;
|
|
106
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
107
|
+
"@distilled.cloud/error/categories": {
|
|
108
|
+
BadRequestError: true;
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* Invalid signature — the transaction or message signature is invalid.
|
|
113
|
+
* errorType: "invalid_signature"
|
|
114
|
+
*/
|
|
115
|
+
export declare class InvalidSignature extends InvalidSignature_base {
|
|
116
|
+
}
|
|
117
|
+
declare const MalformedTransaction_base: Schema.ErrorClass<MalformedTransaction, Schema.TaggedStruct<"MalformedTransaction", {
|
|
118
|
+
errorType: Schema.optional<Schema.String>;
|
|
119
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
120
|
+
correlationId: Schema.optional<Schema.String>;
|
|
121
|
+
errorLink: Schema.optional<Schema.String>;
|
|
122
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
123
|
+
"@distilled.cloud/error/categories": {
|
|
124
|
+
BadRequestError: true;
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* Malformed transaction — the transaction data is malformed.
|
|
129
|
+
* errorType: "malformed_transaction"
|
|
130
|
+
*/
|
|
131
|
+
export declare class MalformedTransaction extends MalformedTransaction_base {
|
|
132
|
+
}
|
|
133
|
+
declare const SettlementFailed_base: Schema.ErrorClass<SettlementFailed, Schema.TaggedStruct<"SettlementFailed", {
|
|
134
|
+
errorType: Schema.optional<Schema.String>;
|
|
135
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
136
|
+
correlationId: Schema.optional<Schema.String>;
|
|
137
|
+
errorLink: Schema.optional<Schema.String>;
|
|
138
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
139
|
+
"@distilled.cloud/error/categories": {
|
|
140
|
+
ServerError: true;
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
/**
|
|
144
|
+
* Settlement failed — payment settlement could not be completed.
|
|
145
|
+
* errorType: "settlement_failed"
|
|
146
|
+
*/
|
|
147
|
+
export declare class SettlementFailed extends SettlementFailed_base {
|
|
148
|
+
}
|
|
149
|
+
declare const TimedOut_base: Schema.ErrorClass<TimedOut, Schema.TaggedStruct<"TimedOut", {
|
|
150
|
+
errorType: Schema.optional<Schema.String>;
|
|
151
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
152
|
+
correlationId: Schema.optional<Schema.String>;
|
|
153
|
+
errorLink: Schema.optional<Schema.String>;
|
|
154
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
155
|
+
"@distilled.cloud/error/categories": {
|
|
156
|
+
TimeoutError: true;
|
|
157
|
+
};
|
|
158
|
+
}) & (new (...args: any[]) => {
|
|
159
|
+
"@distilled.cloud/error/retryable": Category.RetryableInfo;
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* Request timed out — the server did not respond in time.
|
|
163
|
+
* errorType: "timed_out"
|
|
164
|
+
*/
|
|
165
|
+
export declare class TimedOut extends TimedOut_base {
|
|
166
|
+
}
|
|
167
|
+
declare const ClientClosedRequest_base: Schema.ErrorClass<ClientClosedRequest, Schema.TaggedStruct<"ClientClosedRequest", {
|
|
168
|
+
errorType: Schema.optional<Schema.String>;
|
|
169
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
170
|
+
correlationId: Schema.optional<Schema.String>;
|
|
171
|
+
errorLink: Schema.optional<Schema.String>;
|
|
172
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
173
|
+
"@distilled.cloud/error/categories": {
|
|
174
|
+
AbortedError: true;
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
/**
|
|
178
|
+
* Client closed request — the client disconnected before the response.
|
|
179
|
+
* errorType: "client_closed_request"
|
|
180
|
+
*/
|
|
181
|
+
export declare class ClientClosedRequest extends ClientClosedRequest_base {
|
|
182
|
+
}
|
|
183
|
+
declare const RequestCanceled_base: Schema.ErrorClass<RequestCanceled, Schema.TaggedStruct<"RequestCanceled", {
|
|
184
|
+
errorType: Schema.optional<Schema.String>;
|
|
185
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
186
|
+
correlationId: Schema.optional<Schema.String>;
|
|
187
|
+
errorLink: Schema.optional<Schema.String>;
|
|
188
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
189
|
+
"@distilled.cloud/error/categories": {
|
|
190
|
+
AbortedError: true;
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
/**
|
|
194
|
+
* Request canceled — the request was canceled.
|
|
195
|
+
* errorType: "request_canceled"
|
|
196
|
+
*/
|
|
197
|
+
export declare class RequestCanceled extends RequestCanceled_base {
|
|
198
|
+
}
|
|
199
|
+
declare const PolicyViolation_base: Schema.ErrorClass<PolicyViolation, Schema.TaggedStruct<"PolicyViolation", {
|
|
200
|
+
errorType: Schema.optional<Schema.String>;
|
|
201
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
202
|
+
correlationId: Schema.optional<Schema.String>;
|
|
203
|
+
errorLink: Schema.optional<Schema.String>;
|
|
204
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
205
|
+
"@distilled.cloud/error/categories": {
|
|
206
|
+
BadRequestError: true;
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
/**
|
|
210
|
+
* Policy violation — the request violated an account or project policy.
|
|
211
|
+
* errorType: "policy_violation"
|
|
212
|
+
*/
|
|
213
|
+
export declare class PolicyViolation extends PolicyViolation_base {
|
|
214
|
+
}
|
|
215
|
+
declare const PolicyInUse_base: Schema.ErrorClass<PolicyInUse, Schema.TaggedStruct<"PolicyInUse", {
|
|
216
|
+
errorType: Schema.optional<Schema.String>;
|
|
217
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
218
|
+
correlationId: Schema.optional<Schema.String>;
|
|
219
|
+
errorLink: Schema.optional<Schema.String>;
|
|
220
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
221
|
+
"@distilled.cloud/error/categories": {
|
|
222
|
+
ConflictError: true;
|
|
223
|
+
};
|
|
224
|
+
});
|
|
225
|
+
/**
|
|
226
|
+
* Policy in use — the policy cannot be deleted because it's in use.
|
|
227
|
+
* errorType: "policy_in_use"
|
|
228
|
+
*/
|
|
229
|
+
export declare class PolicyInUse extends PolicyInUse_base {
|
|
230
|
+
}
|
|
231
|
+
declare const AccountLimitExceeded_base: Schema.ErrorClass<AccountLimitExceeded, Schema.TaggedStruct<"AccountLimitExceeded", {
|
|
232
|
+
errorType: Schema.optional<Schema.String>;
|
|
233
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
234
|
+
correlationId: Schema.optional<Schema.String>;
|
|
235
|
+
errorLink: Schema.optional<Schema.String>;
|
|
236
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
237
|
+
"@distilled.cloud/error/categories": {
|
|
238
|
+
QuotaError: true;
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* Account limit exceeded — too many accounts created.
|
|
243
|
+
* errorType: "account_limit_exceeded"
|
|
244
|
+
*/
|
|
245
|
+
export declare class AccountLimitExceeded extends AccountLimitExceeded_base {
|
|
246
|
+
}
|
|
247
|
+
declare const InsufficientBalance_base: Schema.ErrorClass<InsufficientBalance, Schema.TaggedStruct<"InsufficientBalance", {
|
|
248
|
+
errorType: Schema.optional<Schema.String>;
|
|
249
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
250
|
+
correlationId: Schema.optional<Schema.String>;
|
|
251
|
+
errorLink: Schema.optional<Schema.String>;
|
|
252
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
253
|
+
"@distilled.cloud/error/categories": {
|
|
254
|
+
BadRequestError: true;
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
* Insufficient balance — the account does not have enough funds.
|
|
259
|
+
* errorType: "insufficient_balance"
|
|
260
|
+
*/
|
|
261
|
+
export declare class InsufficientBalance extends InsufficientBalance_base {
|
|
262
|
+
}
|
|
263
|
+
declare const AccountNotReady_base: Schema.ErrorClass<AccountNotReady, Schema.TaggedStruct<"AccountNotReady", {
|
|
264
|
+
errorType: Schema.optional<Schema.String>;
|
|
265
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
266
|
+
correlationId: Schema.optional<Schema.String>;
|
|
267
|
+
errorLink: Schema.optional<Schema.String>;
|
|
268
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
269
|
+
"@distilled.cloud/error/categories": {
|
|
270
|
+
RetryableError: true;
|
|
271
|
+
};
|
|
272
|
+
}) & (new (...args: any[]) => {
|
|
273
|
+
"@distilled.cloud/error/retryable": Category.RetryableInfo;
|
|
274
|
+
});
|
|
275
|
+
/**
|
|
276
|
+
* Account not ready — the account is not in a ready state for the operation.
|
|
277
|
+
* errorType: "account_not_ready"
|
|
278
|
+
*/
|
|
279
|
+
export declare class AccountNotReady extends AccountNotReady_base {
|
|
280
|
+
}
|
|
281
|
+
declare const MfaRequired_base: Schema.ErrorClass<MfaRequired, Schema.TaggedStruct<"MfaRequired", {
|
|
282
|
+
errorType: Schema.optional<Schema.String>;
|
|
283
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
284
|
+
correlationId: Schema.optional<Schema.String>;
|
|
285
|
+
errorLink: Schema.optional<Schema.String>;
|
|
286
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
287
|
+
"@distilled.cloud/error/categories": {
|
|
288
|
+
AuthError: true;
|
|
289
|
+
};
|
|
290
|
+
});
|
|
291
|
+
/**
|
|
292
|
+
* MFA required — multi-factor authentication is required.
|
|
293
|
+
* errorType: "mfa_required"
|
|
294
|
+
*/
|
|
295
|
+
export declare class MfaRequired extends MfaRequired_base {
|
|
296
|
+
}
|
|
297
|
+
declare const MfaAlreadyEnrolled_base: Schema.ErrorClass<MfaAlreadyEnrolled, Schema.TaggedStruct<"MfaAlreadyEnrolled", {
|
|
298
|
+
errorType: Schema.optional<Schema.String>;
|
|
299
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
300
|
+
correlationId: Schema.optional<Schema.String>;
|
|
301
|
+
errorLink: Schema.optional<Schema.String>;
|
|
302
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
303
|
+
"@distilled.cloud/error/categories": {
|
|
304
|
+
ConflictError: true;
|
|
305
|
+
};
|
|
306
|
+
});
|
|
307
|
+
/**
|
|
308
|
+
* MFA already enrolled — the user already has MFA set up.
|
|
309
|
+
* errorType: "mfa_already_enrolled"
|
|
310
|
+
*/
|
|
311
|
+
export declare class MfaAlreadyEnrolled extends MfaAlreadyEnrolled_base {
|
|
312
|
+
}
|
|
313
|
+
declare const MfaInvalidCode_base: Schema.ErrorClass<MfaInvalidCode, Schema.TaggedStruct<"MfaInvalidCode", {
|
|
314
|
+
errorType: Schema.optional<Schema.String>;
|
|
315
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
316
|
+
correlationId: Schema.optional<Schema.String>;
|
|
317
|
+
errorLink: Schema.optional<Schema.String>;
|
|
318
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
319
|
+
"@distilled.cloud/error/categories": {
|
|
320
|
+
AuthError: true;
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
/**
|
|
324
|
+
* MFA invalid code — the provided MFA code is incorrect.
|
|
325
|
+
* errorType: "mfa_invalid_code"
|
|
326
|
+
*/
|
|
327
|
+
export declare class MfaInvalidCode extends MfaInvalidCode_base {
|
|
328
|
+
}
|
|
329
|
+
declare const MfaFlowExpired_base: Schema.ErrorClass<MfaFlowExpired, Schema.TaggedStruct<"MfaFlowExpired", {
|
|
330
|
+
errorType: Schema.optional<Schema.String>;
|
|
331
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
332
|
+
correlationId: Schema.optional<Schema.String>;
|
|
333
|
+
errorLink: Schema.optional<Schema.String>;
|
|
334
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
335
|
+
"@distilled.cloud/error/categories": {
|
|
336
|
+
AuthError: true;
|
|
337
|
+
};
|
|
338
|
+
});
|
|
339
|
+
/**
|
|
340
|
+
* MFA flow expired — the MFA verification flow has expired.
|
|
341
|
+
* errorType: "mfa_flow_expired"
|
|
342
|
+
*/
|
|
343
|
+
export declare class MfaFlowExpired extends MfaFlowExpired_base {
|
|
344
|
+
}
|
|
345
|
+
declare const MfaNotEnrolled_base: Schema.ErrorClass<MfaNotEnrolled, Schema.TaggedStruct<"MfaNotEnrolled", {
|
|
346
|
+
errorType: Schema.optional<Schema.String>;
|
|
347
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
348
|
+
correlationId: Schema.optional<Schema.String>;
|
|
349
|
+
errorLink: Schema.optional<Schema.String>;
|
|
350
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
351
|
+
"@distilled.cloud/error/categories": {
|
|
352
|
+
BadRequestError: true;
|
|
353
|
+
};
|
|
354
|
+
});
|
|
355
|
+
/**
|
|
356
|
+
* MFA not enrolled — the user has not set up MFA.
|
|
357
|
+
* errorType: "mfa_not_enrolled"
|
|
358
|
+
*/
|
|
359
|
+
export declare class MfaNotEnrolled extends MfaNotEnrolled_base {
|
|
360
|
+
}
|
|
361
|
+
declare const NetworkNotTradable_base: Schema.ErrorClass<NetworkNotTradable, Schema.TaggedStruct<"NetworkNotTradable", {
|
|
362
|
+
errorType: Schema.optional<Schema.String>;
|
|
363
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
364
|
+
correlationId: Schema.optional<Schema.String>;
|
|
365
|
+
errorLink: Schema.optional<Schema.String>;
|
|
366
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
367
|
+
"@distilled.cloud/error/categories": {
|
|
368
|
+
BadRequestError: true;
|
|
369
|
+
};
|
|
370
|
+
});
|
|
371
|
+
/**
|
|
372
|
+
* Network not tradable — the specified network does not support trading.
|
|
373
|
+
* errorType: "network_not_tradable"
|
|
374
|
+
*/
|
|
375
|
+
export declare class NetworkNotTradable extends NetworkNotTradable_base {
|
|
376
|
+
}
|
|
377
|
+
declare const GuestPermissionDenied_base: Schema.ErrorClass<GuestPermissionDenied, Schema.TaggedStruct<"GuestPermissionDenied", {
|
|
378
|
+
errorType: Schema.optional<Schema.String>;
|
|
379
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
380
|
+
correlationId: Schema.optional<Schema.String>;
|
|
381
|
+
errorLink: Schema.optional<Schema.String>;
|
|
382
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
383
|
+
"@distilled.cloud/error/categories": {
|
|
384
|
+
AuthError: true;
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
/**
|
|
388
|
+
* Guest permission denied — the guest user does not have permission for this action.
|
|
389
|
+
* errorType: "guest_permission_denied"
|
|
390
|
+
*/
|
|
391
|
+
export declare class GuestPermissionDenied extends GuestPermissionDenied_base {
|
|
392
|
+
}
|
|
393
|
+
declare const GuestRegionForbidden_base: Schema.ErrorClass<GuestRegionForbidden, Schema.TaggedStruct<"GuestRegionForbidden", {
|
|
394
|
+
errorType: Schema.optional<Schema.String>;
|
|
395
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
396
|
+
correlationId: Schema.optional<Schema.String>;
|
|
397
|
+
errorLink: Schema.optional<Schema.String>;
|
|
398
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
399
|
+
"@distilled.cloud/error/categories": {
|
|
400
|
+
AuthError: true;
|
|
401
|
+
};
|
|
402
|
+
});
|
|
403
|
+
/**
|
|
404
|
+
* Guest region forbidden — the guest user's region is not supported.
|
|
405
|
+
* errorType: "guest_region_forbidden"
|
|
406
|
+
*/
|
|
407
|
+
export declare class GuestRegionForbidden extends GuestRegionForbidden_base {
|
|
408
|
+
}
|
|
409
|
+
declare const GuestTransactionLimit_base: Schema.ErrorClass<GuestTransactionLimit, Schema.TaggedStruct<"GuestTransactionLimit", {
|
|
410
|
+
errorType: Schema.optional<Schema.String>;
|
|
411
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
412
|
+
correlationId: Schema.optional<Schema.String>;
|
|
413
|
+
errorLink: Schema.optional<Schema.String>;
|
|
414
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
415
|
+
"@distilled.cloud/error/categories": {
|
|
416
|
+
QuotaError: true;
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
/**
|
|
420
|
+
* Guest transaction limit — the guest user has exceeded their transaction amount limit.
|
|
421
|
+
* errorType: "guest_transaction_limit"
|
|
422
|
+
*/
|
|
423
|
+
export declare class GuestTransactionLimit extends GuestTransactionLimit_base {
|
|
424
|
+
}
|
|
425
|
+
declare const GuestTransactionCount_base: Schema.ErrorClass<GuestTransactionCount, Schema.TaggedStruct<"GuestTransactionCount", {
|
|
426
|
+
errorType: Schema.optional<Schema.String>;
|
|
427
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
428
|
+
correlationId: Schema.optional<Schema.String>;
|
|
429
|
+
errorLink: Schema.optional<Schema.String>;
|
|
430
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
431
|
+
"@distilled.cloud/error/categories": {
|
|
432
|
+
QuotaError: true;
|
|
433
|
+
};
|
|
434
|
+
});
|
|
435
|
+
/**
|
|
436
|
+
* Guest transaction count — the guest user has exceeded their transaction count limit.
|
|
437
|
+
* errorType: "guest_transaction_count"
|
|
438
|
+
*/
|
|
439
|
+
export declare class GuestTransactionCount extends GuestTransactionCount_base {
|
|
440
|
+
}
|
|
441
|
+
declare const PhoneNumberVerificationExpired_base: Schema.ErrorClass<PhoneNumberVerificationExpired, Schema.TaggedStruct<"PhoneNumberVerificationExpired", {
|
|
442
|
+
errorType: Schema.optional<Schema.String>;
|
|
443
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
444
|
+
correlationId: Schema.optional<Schema.String>;
|
|
445
|
+
errorLink: Schema.optional<Schema.String>;
|
|
446
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
447
|
+
"@distilled.cloud/error/categories": {
|
|
448
|
+
BadRequestError: true;
|
|
449
|
+
};
|
|
450
|
+
});
|
|
451
|
+
/**
|
|
452
|
+
* Phone number verification expired — the phone number verification has expired.
|
|
453
|
+
* errorType: "phone_number_verification_expired"
|
|
454
|
+
*/
|
|
455
|
+
export declare class PhoneNumberVerificationExpired extends PhoneNumberVerificationExpired_base {
|
|
456
|
+
}
|
|
457
|
+
declare const DocumentVerificationFailed_base: Schema.ErrorClass<DocumentVerificationFailed, Schema.TaggedStruct<"DocumentVerificationFailed", {
|
|
458
|
+
errorType: Schema.optional<Schema.String>;
|
|
459
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
460
|
+
correlationId: Schema.optional<Schema.String>;
|
|
461
|
+
errorLink: Schema.optional<Schema.String>;
|
|
462
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
463
|
+
"@distilled.cloud/error/categories": {
|
|
464
|
+
BadRequestError: true;
|
|
465
|
+
};
|
|
466
|
+
});
|
|
467
|
+
/**
|
|
468
|
+
* Document verification failed — the document verification check failed.
|
|
469
|
+
* errorType: "document_verification_failed"
|
|
470
|
+
*/
|
|
471
|
+
export declare class DocumentVerificationFailed extends DocumentVerificationFailed_base {
|
|
472
|
+
}
|
|
473
|
+
declare const RecipientAllowlistViolation_base: Schema.ErrorClass<RecipientAllowlistViolation, Schema.TaggedStruct<"RecipientAllowlistViolation", {
|
|
474
|
+
errorType: Schema.optional<Schema.String>;
|
|
475
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
476
|
+
correlationId: Schema.optional<Schema.String>;
|
|
477
|
+
errorLink: Schema.optional<Schema.String>;
|
|
478
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
479
|
+
"@distilled.cloud/error/categories": {
|
|
480
|
+
BadRequestError: true;
|
|
481
|
+
};
|
|
482
|
+
});
|
|
483
|
+
/**
|
|
484
|
+
* Recipient allowlist violation — the recipient address is not on the allowlist.
|
|
485
|
+
* errorType: "recipient_allowlist_violation"
|
|
486
|
+
*/
|
|
487
|
+
export declare class RecipientAllowlistViolation extends RecipientAllowlistViolation_base {
|
|
488
|
+
}
|
|
489
|
+
declare const RecipientAllowlistPending_base: Schema.ErrorClass<RecipientAllowlistPending, Schema.TaggedStruct<"RecipientAllowlistPending", {
|
|
490
|
+
errorType: Schema.optional<Schema.String>;
|
|
491
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
492
|
+
correlationId: Schema.optional<Schema.String>;
|
|
493
|
+
errorLink: Schema.optional<Schema.String>;
|
|
494
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
495
|
+
"@distilled.cloud/error/categories": {
|
|
496
|
+
BadRequestError: true;
|
|
497
|
+
};
|
|
498
|
+
});
|
|
499
|
+
/**
|
|
500
|
+
* Recipient allowlist pending — the recipient address is pending allowlist approval.
|
|
501
|
+
* errorType: "recipient_allowlist_pending"
|
|
502
|
+
*/
|
|
503
|
+
export declare class RecipientAllowlistPending extends RecipientAllowlistPending_base {
|
|
504
|
+
}
|
|
505
|
+
declare const TravelRulesRecipientViolation_base: Schema.ErrorClass<TravelRulesRecipientViolation, Schema.TaggedStruct<"TravelRulesRecipientViolation", {
|
|
506
|
+
errorType: Schema.optional<Schema.String>;
|
|
507
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
508
|
+
correlationId: Schema.optional<Schema.String>;
|
|
509
|
+
errorLink: Schema.optional<Schema.String>;
|
|
510
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
511
|
+
"@distilled.cloud/error/categories": {
|
|
512
|
+
BadRequestError: true;
|
|
513
|
+
};
|
|
514
|
+
});
|
|
515
|
+
/**
|
|
516
|
+
* Travel rules recipient violation — the recipient violates travel rule requirements.
|
|
517
|
+
* errorType: "travel_rules_recipient_violation"
|
|
518
|
+
*/
|
|
519
|
+
export declare class TravelRulesRecipientViolation extends TravelRulesRecipientViolation_base {
|
|
520
|
+
}
|
|
521
|
+
declare const TravelRulesFieldMissing_base: Schema.ErrorClass<TravelRulesFieldMissing, Schema.TaggedStruct<"TravelRulesFieldMissing", {
|
|
522
|
+
errorType: Schema.optional<Schema.String>;
|
|
523
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
524
|
+
correlationId: Schema.optional<Schema.String>;
|
|
525
|
+
errorLink: Schema.optional<Schema.String>;
|
|
526
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
527
|
+
"@distilled.cloud/error/categories": {
|
|
528
|
+
BadRequestError: true;
|
|
529
|
+
};
|
|
530
|
+
});
|
|
531
|
+
/**
|
|
532
|
+
* Travel rules field missing — a required travel rules field is missing.
|
|
533
|
+
* errorType: "travel_rules_field_missing"
|
|
534
|
+
*/
|
|
535
|
+
export declare class TravelRulesFieldMissing extends TravelRulesFieldMissing_base {
|
|
536
|
+
}
|
|
537
|
+
declare const SourceAccountInvalid_base: Schema.ErrorClass<SourceAccountInvalid, Schema.TaggedStruct<"SourceAccountInvalid", {
|
|
538
|
+
errorType: Schema.optional<Schema.String>;
|
|
539
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
540
|
+
correlationId: Schema.optional<Schema.String>;
|
|
541
|
+
errorLink: Schema.optional<Schema.String>;
|
|
542
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
543
|
+
"@distilled.cloud/error/categories": {
|
|
544
|
+
BadRequestError: true;
|
|
545
|
+
};
|
|
546
|
+
});
|
|
547
|
+
/**
|
|
548
|
+
* Source account invalid — the source account is not valid for this operation.
|
|
549
|
+
* errorType: "source_account_invalid"
|
|
550
|
+
*/
|
|
551
|
+
export declare class SourceAccountInvalid extends SourceAccountInvalid_base {
|
|
552
|
+
}
|
|
553
|
+
declare const TargetAccountInvalid_base: Schema.ErrorClass<TargetAccountInvalid, Schema.TaggedStruct<"TargetAccountInvalid", {
|
|
554
|
+
errorType: Schema.optional<Schema.String>;
|
|
555
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
556
|
+
correlationId: Schema.optional<Schema.String>;
|
|
557
|
+
errorLink: Schema.optional<Schema.String>;
|
|
558
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
559
|
+
"@distilled.cloud/error/categories": {
|
|
560
|
+
BadRequestError: true;
|
|
561
|
+
};
|
|
562
|
+
});
|
|
563
|
+
/**
|
|
564
|
+
* Target account invalid — the target account is not valid for this operation.
|
|
565
|
+
* errorType: "target_account_invalid"
|
|
566
|
+
*/
|
|
567
|
+
export declare class TargetAccountInvalid extends TargetAccountInvalid_base {
|
|
568
|
+
}
|
|
569
|
+
declare const SourceAccountNotFound_base: Schema.ErrorClass<SourceAccountNotFound, Schema.TaggedStruct<"SourceAccountNotFound", {
|
|
570
|
+
errorType: Schema.optional<Schema.String>;
|
|
571
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
572
|
+
correlationId: Schema.optional<Schema.String>;
|
|
573
|
+
errorLink: Schema.optional<Schema.String>;
|
|
574
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
575
|
+
"@distilled.cloud/error/categories": {
|
|
576
|
+
NotFoundError: true;
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
/**
|
|
580
|
+
* Source account not found — the source account does not exist.
|
|
581
|
+
* errorType: "source_account_not_found"
|
|
582
|
+
*/
|
|
583
|
+
export declare class SourceAccountNotFound extends SourceAccountNotFound_base {
|
|
584
|
+
}
|
|
585
|
+
declare const TargetAccountNotFound_base: Schema.ErrorClass<TargetAccountNotFound, Schema.TaggedStruct<"TargetAccountNotFound", {
|
|
586
|
+
errorType: Schema.optional<Schema.String>;
|
|
587
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
588
|
+
correlationId: Schema.optional<Schema.String>;
|
|
589
|
+
errorLink: Schema.optional<Schema.String>;
|
|
590
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
591
|
+
"@distilled.cloud/error/categories": {
|
|
592
|
+
NotFoundError: true;
|
|
593
|
+
};
|
|
594
|
+
});
|
|
595
|
+
/**
|
|
596
|
+
* Target account not found — the target account does not exist.
|
|
597
|
+
* errorType: "target_account_not_found"
|
|
598
|
+
*/
|
|
599
|
+
export declare class TargetAccountNotFound extends TargetAccountNotFound_base {
|
|
600
|
+
}
|
|
601
|
+
declare const SourceAssetNotSupported_base: Schema.ErrorClass<SourceAssetNotSupported, Schema.TaggedStruct<"SourceAssetNotSupported", {
|
|
602
|
+
errorType: Schema.optional<Schema.String>;
|
|
603
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
604
|
+
correlationId: Schema.optional<Schema.String>;
|
|
605
|
+
errorLink: Schema.optional<Schema.String>;
|
|
606
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
607
|
+
"@distilled.cloud/error/categories": {
|
|
608
|
+
BadRequestError: true;
|
|
609
|
+
};
|
|
610
|
+
});
|
|
611
|
+
/**
|
|
612
|
+
* Source asset not supported — the source asset is not supported for this operation.
|
|
613
|
+
* errorType: "source_asset_not_supported"
|
|
614
|
+
*/
|
|
615
|
+
export declare class SourceAssetNotSupported extends SourceAssetNotSupported_base {
|
|
616
|
+
}
|
|
617
|
+
declare const TargetAssetNotSupported_base: Schema.ErrorClass<TargetAssetNotSupported, Schema.TaggedStruct<"TargetAssetNotSupported", {
|
|
618
|
+
errorType: Schema.optional<Schema.String>;
|
|
619
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
620
|
+
correlationId: Schema.optional<Schema.String>;
|
|
621
|
+
errorLink: Schema.optional<Schema.String>;
|
|
622
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
623
|
+
"@distilled.cloud/error/categories": {
|
|
624
|
+
BadRequestError: true;
|
|
625
|
+
};
|
|
626
|
+
});
|
|
627
|
+
/**
|
|
628
|
+
* Target asset not supported — the target asset is not supported for this operation.
|
|
629
|
+
* errorType: "target_asset_not_supported"
|
|
630
|
+
*/
|
|
631
|
+
export declare class TargetAssetNotSupported extends TargetAssetNotSupported_base {
|
|
632
|
+
}
|
|
633
|
+
declare const TransferAssetNotSupported_base: Schema.ErrorClass<TransferAssetNotSupported, Schema.TaggedStruct<"TransferAssetNotSupported", {
|
|
634
|
+
errorType: Schema.optional<Schema.String>;
|
|
635
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
636
|
+
correlationId: Schema.optional<Schema.String>;
|
|
637
|
+
errorLink: Schema.optional<Schema.String>;
|
|
638
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
639
|
+
"@distilled.cloud/error/categories": {
|
|
640
|
+
BadRequestError: true;
|
|
641
|
+
};
|
|
642
|
+
});
|
|
643
|
+
/**
|
|
644
|
+
* Transfer asset not supported — the asset is not supported for transfers.
|
|
645
|
+
* errorType: "transfer_asset_not_supported"
|
|
646
|
+
*/
|
|
647
|
+
export declare class TransferAssetNotSupported extends TransferAssetNotSupported_base {
|
|
648
|
+
}
|
|
649
|
+
declare const AssetMismatch_base: Schema.ErrorClass<AssetMismatch, Schema.TaggedStruct<"AssetMismatch", {
|
|
650
|
+
errorType: Schema.optional<Schema.String>;
|
|
651
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
652
|
+
correlationId: Schema.optional<Schema.String>;
|
|
653
|
+
errorLink: Schema.optional<Schema.String>;
|
|
654
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
655
|
+
"@distilled.cloud/error/categories": {
|
|
656
|
+
BadRequestError: true;
|
|
657
|
+
};
|
|
658
|
+
});
|
|
659
|
+
/**
|
|
660
|
+
* Asset mismatch — the source and target assets do not match as expected.
|
|
661
|
+
* errorType: "asset_mismatch"
|
|
662
|
+
*/
|
|
663
|
+
export declare class AssetMismatch extends AssetMismatch_base {
|
|
664
|
+
}
|
|
665
|
+
declare const TargetEmailInvalid_base: Schema.ErrorClass<TargetEmailInvalid, Schema.TaggedStruct<"TargetEmailInvalid", {
|
|
666
|
+
errorType: Schema.optional<Schema.String>;
|
|
667
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
668
|
+
correlationId: Schema.optional<Schema.String>;
|
|
669
|
+
errorLink: Schema.optional<Schema.String>;
|
|
670
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
671
|
+
"@distilled.cloud/error/categories": {
|
|
672
|
+
BadRequestError: true;
|
|
673
|
+
};
|
|
674
|
+
});
|
|
675
|
+
/**
|
|
676
|
+
* Target email invalid — the target email address is not valid.
|
|
677
|
+
* errorType: "target_email_invalid"
|
|
678
|
+
*/
|
|
679
|
+
export declare class TargetEmailInvalid extends TargetEmailInvalid_base {
|
|
680
|
+
}
|
|
681
|
+
declare const TargetOnchainAddressInvalid_base: Schema.ErrorClass<TargetOnchainAddressInvalid, Schema.TaggedStruct<"TargetOnchainAddressInvalid", {
|
|
682
|
+
errorType: Schema.optional<Schema.String>;
|
|
683
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
684
|
+
correlationId: Schema.optional<Schema.String>;
|
|
685
|
+
errorLink: Schema.optional<Schema.String>;
|
|
686
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
687
|
+
"@distilled.cloud/error/categories": {
|
|
688
|
+
BadRequestError: true;
|
|
689
|
+
};
|
|
690
|
+
});
|
|
691
|
+
/**
|
|
692
|
+
* Target onchain address invalid — the target onchain address is not valid.
|
|
693
|
+
* errorType: "target_onchain_address_invalid"
|
|
694
|
+
*/
|
|
695
|
+
export declare class TargetOnchainAddressInvalid extends TargetOnchainAddressInvalid_base {
|
|
696
|
+
}
|
|
697
|
+
declare const TransferAmountInvalid_base: Schema.ErrorClass<TransferAmountInvalid, Schema.TaggedStruct<"TransferAmountInvalid", {
|
|
698
|
+
errorType: Schema.optional<Schema.String>;
|
|
699
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
700
|
+
correlationId: Schema.optional<Schema.String>;
|
|
701
|
+
errorLink: Schema.optional<Schema.String>;
|
|
702
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
703
|
+
"@distilled.cloud/error/categories": {
|
|
704
|
+
BadRequestError: true;
|
|
705
|
+
};
|
|
706
|
+
});
|
|
707
|
+
/**
|
|
708
|
+
* Transfer amount invalid — the transfer amount is not valid.
|
|
709
|
+
* errorType: "transfer_amount_invalid"
|
|
710
|
+
*/
|
|
711
|
+
export declare class TransferAmountInvalid extends TransferAmountInvalid_base {
|
|
712
|
+
}
|
|
713
|
+
declare const MetadataTooManyEntries_base: Schema.ErrorClass<MetadataTooManyEntries, Schema.TaggedStruct<"MetadataTooManyEntries", {
|
|
714
|
+
errorType: Schema.optional<Schema.String>;
|
|
715
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
716
|
+
correlationId: Schema.optional<Schema.String>;
|
|
717
|
+
errorLink: Schema.optional<Schema.String>;
|
|
718
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
719
|
+
"@distilled.cloud/error/categories": {
|
|
720
|
+
BadRequestError: true;
|
|
721
|
+
};
|
|
722
|
+
});
|
|
723
|
+
/**
|
|
724
|
+
* Metadata too many entries — too many metadata entries were provided.
|
|
725
|
+
* errorType: "metadata_too_many_entries"
|
|
726
|
+
*/
|
|
727
|
+
export declare class MetadataTooManyEntries extends MetadataTooManyEntries_base {
|
|
728
|
+
}
|
|
729
|
+
declare const MetadataKeyTooLong_base: Schema.ErrorClass<MetadataKeyTooLong, Schema.TaggedStruct<"MetadataKeyTooLong", {
|
|
730
|
+
errorType: Schema.optional<Schema.String>;
|
|
731
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
732
|
+
correlationId: Schema.optional<Schema.String>;
|
|
733
|
+
errorLink: Schema.optional<Schema.String>;
|
|
734
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
735
|
+
"@distilled.cloud/error/categories": {
|
|
736
|
+
BadRequestError: true;
|
|
737
|
+
};
|
|
738
|
+
});
|
|
739
|
+
/**
|
|
740
|
+
* Metadata key too long — a metadata key exceeds the maximum length.
|
|
741
|
+
* errorType: "metadata_key_too_long"
|
|
742
|
+
*/
|
|
743
|
+
export declare class MetadataKeyTooLong extends MetadataKeyTooLong_base {
|
|
744
|
+
}
|
|
745
|
+
declare const MetadataValueTooLong_base: Schema.ErrorClass<MetadataValueTooLong, Schema.TaggedStruct<"MetadataValueTooLong", {
|
|
746
|
+
errorType: Schema.optional<Schema.String>;
|
|
747
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
748
|
+
correlationId: Schema.optional<Schema.String>;
|
|
749
|
+
errorLink: Schema.optional<Schema.String>;
|
|
750
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
751
|
+
"@distilled.cloud/error/categories": {
|
|
752
|
+
BadRequestError: true;
|
|
753
|
+
};
|
|
754
|
+
});
|
|
755
|
+
/**
|
|
756
|
+
* Metadata value too long — a metadata value exceeds the maximum length.
|
|
757
|
+
* errorType: "metadata_value_too_long"
|
|
758
|
+
*/
|
|
759
|
+
export declare class MetadataValueTooLong extends MetadataValueTooLong_base {
|
|
760
|
+
}
|
|
761
|
+
declare const OrderQuoteExpired_base: Schema.ErrorClass<OrderQuoteExpired, Schema.TaggedStruct<"OrderQuoteExpired", {
|
|
762
|
+
errorType: Schema.optional<Schema.String>;
|
|
763
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
764
|
+
correlationId: Schema.optional<Schema.String>;
|
|
765
|
+
errorLink: Schema.optional<Schema.String>;
|
|
766
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
767
|
+
"@distilled.cloud/error/categories": {
|
|
768
|
+
BadRequestError: true;
|
|
769
|
+
};
|
|
770
|
+
});
|
|
771
|
+
/**
|
|
772
|
+
* Order quote expired — the order quote has expired and must be refreshed.
|
|
773
|
+
* errorType: "order_quote_expired"
|
|
774
|
+
*/
|
|
775
|
+
export declare class OrderQuoteExpired extends OrderQuoteExpired_base {
|
|
776
|
+
}
|
|
777
|
+
declare const OrderAlreadyFilled_base: Schema.ErrorClass<OrderAlreadyFilled, Schema.TaggedStruct<"OrderAlreadyFilled", {
|
|
778
|
+
errorType: Schema.optional<Schema.String>;
|
|
779
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
780
|
+
correlationId: Schema.optional<Schema.String>;
|
|
781
|
+
errorLink: Schema.optional<Schema.String>;
|
|
782
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
783
|
+
"@distilled.cloud/error/categories": {
|
|
784
|
+
ConflictError: true;
|
|
785
|
+
};
|
|
786
|
+
});
|
|
787
|
+
/**
|
|
788
|
+
* Order already filled — the order has already been filled.
|
|
789
|
+
* errorType: "order_already_filled"
|
|
790
|
+
*/
|
|
791
|
+
export declare class OrderAlreadyFilled extends OrderAlreadyFilled_base {
|
|
792
|
+
}
|
|
793
|
+
declare const OrderAlreadyCanceled_base: Schema.ErrorClass<OrderAlreadyCanceled, Schema.TaggedStruct<"OrderAlreadyCanceled", {
|
|
794
|
+
errorType: Schema.optional<Schema.String>;
|
|
795
|
+
errorMessage: Schema.optional<Schema.String>;
|
|
796
|
+
correlationId: Schema.optional<Schema.String>;
|
|
797
|
+
errorLink: Schema.optional<Schema.String>;
|
|
798
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
799
|
+
"@distilled.cloud/error/categories": {
|
|
800
|
+
ConflictError: true;
|
|
801
|
+
};
|
|
802
|
+
});
|
|
803
|
+
/**
|
|
804
|
+
* Order already canceled — the order has already been canceled.
|
|
805
|
+
* errorType: "order_already_canceled"
|
|
806
|
+
*/
|
|
807
|
+
export declare class OrderAlreadyCanceled extends OrderAlreadyCanceled_base {
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Coinbase HTTP status code to error class mapping.
|
|
811
|
+
* Extends core HTTP_STATUS_MAP with Coinbase-specific statuses.
|
|
812
|
+
*/
|
|
813
|
+
export declare const COINBASE_HTTP_STATUS_MAP: {
|
|
814
|
+
readonly 402: typeof PaymentRequired;
|
|
815
|
+
};
|
|
816
|
+
/**
|
|
817
|
+
* Maps standard Coinbase `errorType` values to core HTTP error classes.
|
|
818
|
+
* These represent generic error types that map directly to HTTP status codes.
|
|
819
|
+
*/
|
|
820
|
+
export declare const STANDARD_ERROR_TYPE_MAP: Record<string, new (props: any) => unknown>;
|
|
821
|
+
/**
|
|
822
|
+
* Maps Coinbase-specific `errorType` values to their corresponding error classes.
|
|
823
|
+
* Used by the client's matchError function for type-based error dispatching.
|
|
824
|
+
*/
|
|
825
|
+
export declare const ERROR_TYPE_MAP: Record<string, new (props: any) => unknown>;
|
|
826
|
+
declare const UnknownCoinbaseError_base: Schema.ErrorClass<UnknownCoinbaseError, Schema.TaggedStruct<"UnknownCoinbaseError", {
|
|
827
|
+
readonly errorType: Schema.optional<Schema.String>;
|
|
828
|
+
readonly errorMessage: Schema.optional<Schema.String>;
|
|
829
|
+
readonly correlationId: Schema.optional<Schema.String>;
|
|
830
|
+
readonly errorLink: Schema.optional<Schema.String>;
|
|
831
|
+
readonly body: Schema.Unknown;
|
|
832
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
833
|
+
"@distilled.cloud/error/categories": {
|
|
834
|
+
ServerError: true;
|
|
835
|
+
};
|
|
836
|
+
});
|
|
837
|
+
/**
|
|
838
|
+
* Unknown Coinbase error — returned when an errorType is not recognized.
|
|
839
|
+
*/
|
|
840
|
+
export declare class UnknownCoinbaseError extends UnknownCoinbaseError_base {
|
|
841
|
+
}
|
|
842
|
+
declare const CoinbaseParseError_base: Schema.ErrorClass<CoinbaseParseError, Schema.TaggedStruct<"CoinbaseParseError", {
|
|
843
|
+
readonly body: Schema.Unknown;
|
|
844
|
+
readonly cause: Schema.Unknown;
|
|
845
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
846
|
+
"@distilled.cloud/error/categories": {
|
|
847
|
+
ParseError: true;
|
|
848
|
+
};
|
|
849
|
+
});
|
|
850
|
+
/**
|
|
851
|
+
* Schema parse error wrapper — returned when the response body fails schema decoding.
|
|
852
|
+
*/
|
|
853
|
+
export declare class CoinbaseParseError extends CoinbaseParseError_base {
|
|
854
|
+
}
|
|
855
|
+
//# sourceMappingURL=errors.d.ts.map
|