@coinbase/cdp-sdk 1.44.1 → 1.46.0
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/CHANGELOG.md +28 -2
- package/README.md +164 -43
- package/_cjs/accounts/evm/eip6492.js +49 -0
- package/_cjs/accounts/evm/eip6492.js.map +1 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js +27 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_cjs/accounts/evm/toEvmServerAccount.js +127 -55
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/solana/toSolanaAccount.js +49 -19
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js +37 -0
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/utils.js +9 -9
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/analytics.js +10 -228
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/auth/utils/http.js +1 -0
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/client/cdp.js +4 -7
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +385 -4
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +201 -23
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/evm/evm.js +482 -227
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/policies/policies.js +41 -11
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/solana/solana.js +215 -118
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js +3 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +32 -0
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +178 -9
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +261 -0
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +30 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/faucets/faucets.js +6 -5
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js +15 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js +75 -0
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +4 -1
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +127 -1
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +102 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +7 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/utils/export.js +6 -5
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/eip6492.js +46 -0
- package/_esm/accounts/evm/eip6492.js.map +1 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js +24 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_esm/accounts/evm/toEvmServerAccount.js +127 -55
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/solana/toSolanaAccount.js +49 -19
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js +34 -0
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/utils.js +9 -9
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/analytics.js +9 -227
- package/_esm/analytics.js.map +1 -1
- package/_esm/auth/utils/http.js +1 -0
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/client/cdp.js +4 -7
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +385 -4
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +201 -23
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/evm/evm.js +482 -227
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/policies/policies.js +41 -11
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/solana/solana.js +215 -118
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +32 -0
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +175 -7
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +243 -0
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +27 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/faucets/faucets.js +6 -5
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js +13 -0
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js +70 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +4 -1
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +126 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js +101 -0
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +9 -2
- package/_esm/policies/types.js.map +1 -1
- package/_esm/utils/export.js +6 -5
- package/_esm/utils/export.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/eip6492.d.ts +17 -0
- package/_types/accounts/evm/eip6492.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts +13 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -2
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts +32 -0
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -0
- package/_types/actions/solana/transfer.d.ts +3 -4
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts +79 -29
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts +10 -9
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/analytics.d.ts +5 -38
- package/_types/analytics.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +4 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +272 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +491 -1
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +4 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +54 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +29 -2
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +38 -12
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/index.d.ts +3 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +884 -90
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +163 -0
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +9 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +35 -15
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +14 -14
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +3 -3
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts +9 -8
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +3 -3
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts +12 -5
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +6 -6
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +12 -12
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +73 -0
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +4 -4
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +23 -3
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +3128 -1064
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +1411 -47
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +8427 -2942
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/export.d.ts +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/eip6492.ts +60 -0
- package/accounts/evm/toEvmDelegatedAccount.ts +26 -0
- package/accounts/evm/toEvmServerAccount.ts +115 -67
- package/accounts/evm/toEvmSmartAccount.ts +114 -57
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +44 -5
- package/accounts/evm/types.ts +8 -3
- package/accounts/solana/toSolanaAccount.ts +44 -24
- package/actions/evm/waitForEvmEip7702DelegationStatus.ts +57 -0
- package/actions/solana/transfer.ts +3 -3
- package/actions/solana/types.ts +79 -29
- package/actions/solana/utils.ts +13 -11
- package/analytics.ts +8 -294
- package/auth/utils/http.ts +1 -0
- package/client/cdp.ts +6 -8
- package/client/end-user/endUser.ts +513 -4
- package/client/end-user/endUser.types.ts +598 -0
- package/client/end-user/toEndUserAccount.ts +330 -26
- package/client/evm/evm.ts +517 -282
- package/client/evm/evm.types.ts +45 -2
- package/client/policies/policies.ts +41 -16
- package/client/solana/solana.ts +233 -153
- package/index.ts +36 -1
- package/openapi-client/cdpApiClient.ts +34 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +1155 -172
- package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +455 -0
- package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +12 -9
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +66 -14
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +16 -16
- package/openapi-client/generated/evm-swaps/evm-swaps.ts +3 -3
- package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +2 -2
- package/openapi-client/generated/faucets/faucets.ts +9 -8
- package/openapi-client/generated/onchain-data/onchain-data.ts +3 -3
- package/openapi-client/generated/onramp/onramp.ts +28 -4
- package/openapi-client/generated/policy-engine/policy-engine.ts +12 -6
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +12 -12
- package/openapi-client/generated/solana-token-balances/solana-token-balances.ts +2 -2
- package/openapi-client/generated/sql-api/sql-api.ts +92 -0
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +6 -4
- package/openapi-client/index.ts +4 -1
- package/package.json +7 -8
- package/policies/evmSchema.ts +164 -0
- package/policies/solanaSchema.ts +130 -0
- package/policies/types.ts +14 -0
- package/types/contract.ts +2 -4
- package/utils/export.ts +6 -5
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -55
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -50
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +0 -53
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +0 -1
- package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +0 -72
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -66,6 +66,8 @@ export declare const OAuth2ProviderType: {
|
|
|
66
66
|
readonly google: "google";
|
|
67
67
|
readonly apple: "apple";
|
|
68
68
|
readonly x: "x";
|
|
69
|
+
readonly telegram: "telegram";
|
|
70
|
+
readonly github: "github";
|
|
69
71
|
};
|
|
70
72
|
/**
|
|
71
73
|
* Information about an end user who authenticates using a third-party provider.
|
|
@@ -81,10 +83,28 @@ export interface OAuth2Authentication {
|
|
|
81
83
|
/** The username of the end user if available from third-party OAuth2 provider's token exchange. */
|
|
82
84
|
username?: string;
|
|
83
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Information about an end user who authenticates using Telegram.
|
|
88
|
+
*/
|
|
89
|
+
export interface TelegramAuthentication {
|
|
90
|
+
type: OAuth2ProviderType;
|
|
91
|
+
/** The Telegram ID for the end user. */
|
|
92
|
+
id: number;
|
|
93
|
+
/** The Telegram user's first name. */
|
|
94
|
+
firstName?: string;
|
|
95
|
+
/** The Telegram user's last name. */
|
|
96
|
+
lastName?: string;
|
|
97
|
+
/** The Telegram user's profile picture. */
|
|
98
|
+
photoUrl?: string;
|
|
99
|
+
/** The Telegram user's last login as a Unix timestamp. */
|
|
100
|
+
authDate: number;
|
|
101
|
+
/** The Telegram user's username. */
|
|
102
|
+
username?: string;
|
|
103
|
+
}
|
|
84
104
|
/**
|
|
85
105
|
* Information about how the end user is authenticated.
|
|
86
106
|
*/
|
|
87
|
-
export type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication;
|
|
107
|
+
export type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication | TelegramAuthentication;
|
|
88
108
|
/**
|
|
89
109
|
* The list of valid authentication methods linked to the end user.
|
|
90
110
|
*/
|
|
@@ -199,6 +219,7 @@ export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
|
199
219
|
export declare const ErrorType: {
|
|
200
220
|
readonly already_exists: "already_exists";
|
|
201
221
|
readonly bad_gateway: "bad_gateway";
|
|
222
|
+
readonly client_closed_request: "client_closed_request";
|
|
202
223
|
readonly faucet_limit_exceeded: "faucet_limit_exceeded";
|
|
203
224
|
readonly forbidden: "forbidden";
|
|
204
225
|
readonly idempotency_error: "idempotency_error";
|
|
@@ -209,6 +230,8 @@ export declare const ErrorType: {
|
|
|
209
230
|
readonly malformed_transaction: "malformed_transaction";
|
|
210
231
|
readonly not_found: "not_found";
|
|
211
232
|
readonly payment_method_required: "payment_method_required";
|
|
233
|
+
readonly payment_required: "payment_required";
|
|
234
|
+
readonly settlement_failed: "settlement_failed";
|
|
212
235
|
readonly rate_limit_exceeded: "rate_limit_exceeded";
|
|
213
236
|
readonly request_canceled: "request_canceled";
|
|
214
237
|
readonly service_unavailable: "service_unavailable";
|
|
@@ -227,14 +250,34 @@ export declare const ErrorType: {
|
|
|
227
250
|
readonly recipient_allowlist_violation: "recipient_allowlist_violation";
|
|
228
251
|
readonly recipient_allowlist_pending: "recipient_allowlist_pending";
|
|
229
252
|
readonly travel_rules_recipient_violation: "travel_rules_recipient_violation";
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
253
|
+
readonly source_account_invalid: "source_account_invalid";
|
|
254
|
+
readonly target_account_invalid: "target_account_invalid";
|
|
255
|
+
readonly source_account_not_found: "source_account_not_found";
|
|
256
|
+
readonly target_account_not_found: "target_account_not_found";
|
|
257
|
+
readonly source_asset_not_supported: "source_asset_not_supported";
|
|
258
|
+
readonly target_asset_not_supported: "target_asset_not_supported";
|
|
259
|
+
readonly target_email_invalid: "target_email_invalid";
|
|
260
|
+
readonly target_onchain_address_invalid: "target_onchain_address_invalid";
|
|
261
|
+
readonly transfer_amount_invalid: "transfer_amount_invalid";
|
|
262
|
+
readonly transfer_asset_not_supported: "transfer_asset_not_supported";
|
|
263
|
+
readonly insufficient_balance: "insufficient_balance";
|
|
264
|
+
readonly metadata_too_many_entries: "metadata_too_many_entries";
|
|
265
|
+
readonly metadata_key_too_long: "metadata_key_too_long";
|
|
266
|
+
readonly metadata_value_too_long: "metadata_value_too_long";
|
|
267
|
+
readonly travel_rules_field_missing: "travel_rules_field_missing";
|
|
268
|
+
readonly asset_mismatch: "asset_mismatch";
|
|
233
269
|
readonly mfa_already_enrolled: "mfa_already_enrolled";
|
|
234
270
|
readonly mfa_invalid_code: "mfa_invalid_code";
|
|
235
271
|
readonly mfa_flow_expired: "mfa_flow_expired";
|
|
236
272
|
readonly mfa_required: "mfa_required";
|
|
237
273
|
readonly mfa_not_enrolled: "mfa_not_enrolled";
|
|
274
|
+
readonly order_quote_expired: "order_quote_expired";
|
|
275
|
+
readonly order_already_filled: "order_already_filled";
|
|
276
|
+
readonly order_already_canceled: "order_already_canceled";
|
|
277
|
+
readonly account_not_ready: "account_not_ready";
|
|
278
|
+
readonly insufficient_liquidity: "insufficient_liquidity";
|
|
279
|
+
readonly insufficient_allowance: "insufficient_allowance";
|
|
280
|
+
readonly transaction_simulation_failed: "transaction_simulation_failed";
|
|
238
281
|
};
|
|
239
282
|
/**
|
|
240
283
|
* A valid HTTP or HTTPS URL.
|
|
@@ -255,26 +298,18 @@ export interface Error {
|
|
|
255
298
|
/** A link to the corresponding error documentation. */
|
|
256
299
|
errorLink?: Url;
|
|
257
300
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
name?: string;
|
|
271
|
-
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
272
|
-
policies?: string[];
|
|
273
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
274
|
-
createdAt?: string;
|
|
275
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
276
|
-
updatedAt?: string;
|
|
277
|
-
}
|
|
301
|
+
/**
|
|
302
|
+
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
303
|
+
* @minLength 1
|
|
304
|
+
* @maxLength 128
|
|
305
|
+
*/
|
|
306
|
+
export type BlockchainAddress = string;
|
|
307
|
+
/**
|
|
308
|
+
* The symbol of the asset (e.g., eth, usd, usdc, usdt).
|
|
309
|
+
* @minLength 1
|
|
310
|
+
* @maxLength 42
|
|
311
|
+
*/
|
|
312
|
+
export type Asset = string;
|
|
278
313
|
/**
|
|
279
314
|
* The domain of the EIP-712 typed data.
|
|
280
315
|
*/
|
|
@@ -321,28 +356,19 @@ export interface EIP712Message {
|
|
|
321
356
|
/** The message to sign. The structure of this message must match the `primaryType` struct in the `types` object. */
|
|
322
357
|
message: EIP712MessageMessage;
|
|
323
358
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
*/
|
|
338
|
-
name?: string;
|
|
339
|
-
/** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
340
|
-
policies?: string[];
|
|
341
|
-
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
342
|
-
createdAt?: string;
|
|
343
|
-
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
344
|
-
updatedAt?: string;
|
|
345
|
-
}
|
|
359
|
+
/**
|
|
360
|
+
* The network for the EIP-7702 delegation.
|
|
361
|
+
*/
|
|
362
|
+
export type EvmEip7702DelegationNetwork = (typeof EvmEip7702DelegationNetwork)[keyof typeof EvmEip7702DelegationNetwork];
|
|
363
|
+
export declare const EvmEip7702DelegationNetwork: {
|
|
364
|
+
readonly "base-sepolia": "base-sepolia";
|
|
365
|
+
readonly base: "base";
|
|
366
|
+
readonly arbitrum: "arbitrum";
|
|
367
|
+
readonly optimism: "optimism";
|
|
368
|
+
readonly polygon: "polygon";
|
|
369
|
+
readonly ethereum: "ethereum";
|
|
370
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
371
|
+
};
|
|
346
372
|
/**
|
|
347
373
|
* The network the user operation is for.
|
|
348
374
|
*/
|
|
@@ -452,6 +478,98 @@ export declare const SpendPermissionNetwork: {
|
|
|
452
478
|
readonly avalanche: "avalanche";
|
|
453
479
|
readonly polygon: "polygon";
|
|
454
480
|
};
|
|
481
|
+
/**
|
|
482
|
+
* Request parameters for revoking a Spend Permission.
|
|
483
|
+
*/
|
|
484
|
+
export interface RevokeSpendPermissionRequest {
|
|
485
|
+
/**
|
|
486
|
+
* The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
487
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
488
|
+
*/
|
|
489
|
+
walletSecretId: string;
|
|
490
|
+
network: SpendPermissionNetwork;
|
|
491
|
+
/** The hash of the spend permission to revoke. */
|
|
492
|
+
permissionHash: string;
|
|
493
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
494
|
+
useCdpPaymaster: boolean;
|
|
495
|
+
/** The paymaster URL of the spend permission. */
|
|
496
|
+
paymasterUrl?: Url;
|
|
497
|
+
}
|
|
498
|
+
export interface EvmAccount {
|
|
499
|
+
/**
|
|
500
|
+
* The 0x-prefixed, checksum EVM address.
|
|
501
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
502
|
+
*/
|
|
503
|
+
address: string;
|
|
504
|
+
/**
|
|
505
|
+
* An optional name for the account.
|
|
506
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
507
|
+
Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
|
|
508
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
509
|
+
*/
|
|
510
|
+
name?: string;
|
|
511
|
+
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
512
|
+
policies?: string[];
|
|
513
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
514
|
+
createdAt?: string;
|
|
515
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
516
|
+
updatedAt?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* The current status of the delegation operation.
|
|
520
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
|
|
521
|
+
*/
|
|
522
|
+
export type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
523
|
+
export declare const EvmEip7702DelegationOperationStatus: {
|
|
524
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
525
|
+
readonly PENDING: "PENDING";
|
|
526
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
527
|
+
readonly COMPLETED: "COMPLETED";
|
|
528
|
+
readonly FAILED: "FAILED";
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* The status of an EIP-7702 delegation operation.
|
|
532
|
+
*/
|
|
533
|
+
export interface EvmEip7702DelegationOperation {
|
|
534
|
+
/** The unique identifier for the delegation operation. */
|
|
535
|
+
delegationOperationId: string;
|
|
536
|
+
/** The current status of the delegation operation.
|
|
537
|
+
UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
|
|
538
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
539
|
+
/**
|
|
540
|
+
* The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
|
|
541
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
542
|
+
*/
|
|
543
|
+
transactionHash?: string;
|
|
544
|
+
network: EvmEip7702DelegationNetwork;
|
|
545
|
+
/**
|
|
546
|
+
* The address the account has delegated to, if any. Only present when the account has an active delegation.
|
|
547
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
548
|
+
*/
|
|
549
|
+
delegateAddress?: string;
|
|
550
|
+
}
|
|
551
|
+
export interface EvmSmartAccount {
|
|
552
|
+
/**
|
|
553
|
+
* The 0x-prefixed, checksum address of the Smart Account.
|
|
554
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
555
|
+
*/
|
|
556
|
+
address: string;
|
|
557
|
+
/** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
|
|
558
|
+
owners: string[];
|
|
559
|
+
/**
|
|
560
|
+
* An optional name for the account.
|
|
561
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
562
|
+
Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
|
|
563
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
564
|
+
*/
|
|
565
|
+
name?: string;
|
|
566
|
+
/** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
567
|
+
policies?: string[];
|
|
568
|
+
/** The UTC ISO 8601 timestamp at which the account was created. */
|
|
569
|
+
createdAt?: string;
|
|
570
|
+
/** The UTC ISO 8601 timestamp at which the account was last updated. */
|
|
571
|
+
updatedAt?: string;
|
|
572
|
+
}
|
|
455
573
|
/**
|
|
456
574
|
* Request parameters for creating a Spend Permission.
|
|
457
575
|
*/
|
|
@@ -529,7 +647,7 @@ export interface SpendPermissionResponseObject {
|
|
|
529
647
|
/**
|
|
530
648
|
* Request parameters for revoking a Spend Permission.
|
|
531
649
|
*/
|
|
532
|
-
export interface
|
|
650
|
+
export interface EvmSpendPermissionsRevokeSpendPermissionRequest {
|
|
533
651
|
network: SpendPermissionNetwork;
|
|
534
652
|
/** The hash of the spend permission to revoke. */
|
|
535
653
|
permissionHash: string;
|
|
@@ -545,6 +663,7 @@ export declare const EvmSwapsNetwork: {
|
|
|
545
663
|
readonly ethereum: "ethereum";
|
|
546
664
|
readonly arbitrum: "arbitrum";
|
|
547
665
|
readonly optimism: "optimism";
|
|
666
|
+
readonly polygon: "polygon";
|
|
548
667
|
};
|
|
549
668
|
/**
|
|
550
669
|
* The 0x-prefixed contract address of the token to receive.
|
|
@@ -864,6 +983,7 @@ export interface EthValueCriterion {
|
|
|
864
983
|
type: EthValueCriterionType;
|
|
865
984
|
/**
|
|
866
985
|
* The amount of ETH, in wei, that the transaction's `value` field should be compared to.
|
|
986
|
+
* @maxLength 78
|
|
867
987
|
* @pattern ^[0-9]+$
|
|
868
988
|
*/
|
|
869
989
|
ethValue: string;
|
|
@@ -1870,10 +1990,197 @@ export interface SendUserOperationRule {
|
|
|
1870
1990
|
operation: SendUserOperationRuleOperation;
|
|
1871
1991
|
criteria: SendUserOperationCriteria;
|
|
1872
1992
|
}
|
|
1993
|
+
export type SignEndUserEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
1994
|
+
/**
|
|
1995
|
+
* A schema for specifying criteria for the signEndUserEvmTransaction operation.
|
|
1996
|
+
*/
|
|
1997
|
+
export type SignEndUserEvmTransactionCriteria = SignEndUserEvmTransactionCriteriaItem[];
|
|
1998
|
+
/**
|
|
1999
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2000
|
+
*/
|
|
2001
|
+
export type SignEndUserEvmTransactionRuleAction = (typeof SignEndUserEvmTransactionRuleAction)[keyof typeof SignEndUserEvmTransactionRuleAction];
|
|
2002
|
+
export declare const SignEndUserEvmTransactionRuleAction: {
|
|
2003
|
+
readonly reject: "reject";
|
|
2004
|
+
readonly accept: "accept";
|
|
2005
|
+
};
|
|
2006
|
+
/**
|
|
2007
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2008
|
+
*/
|
|
2009
|
+
export type SignEndUserEvmTransactionRuleOperation = (typeof SignEndUserEvmTransactionRuleOperation)[keyof typeof SignEndUserEvmTransactionRuleOperation];
|
|
2010
|
+
export declare const SignEndUserEvmTransactionRuleOperation: {
|
|
2011
|
+
readonly signEndUserEvmTransaction: "signEndUserEvmTransaction";
|
|
2012
|
+
};
|
|
2013
|
+
export interface SignEndUserEvmTransactionRule {
|
|
2014
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2015
|
+
action: SignEndUserEvmTransactionRuleAction;
|
|
2016
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2017
|
+
operation: SignEndUserEvmTransactionRuleOperation;
|
|
2018
|
+
criteria: SignEndUserEvmTransactionCriteria;
|
|
2019
|
+
}
|
|
2020
|
+
export type SendEndUserEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2021
|
+
/**
|
|
2022
|
+
* A schema for specifying criteria for the sendEndUserEvmTransaction operation.
|
|
2023
|
+
*/
|
|
2024
|
+
export type SendEndUserEvmTransactionCriteria = SendEndUserEvmTransactionCriteriaItem[];
|
|
2025
|
+
/**
|
|
2026
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2027
|
+
*/
|
|
2028
|
+
export type SendEndUserEvmTransactionRuleAction = (typeof SendEndUserEvmTransactionRuleAction)[keyof typeof SendEndUserEvmTransactionRuleAction];
|
|
2029
|
+
export declare const SendEndUserEvmTransactionRuleAction: {
|
|
2030
|
+
readonly reject: "reject";
|
|
2031
|
+
readonly accept: "accept";
|
|
2032
|
+
};
|
|
2033
|
+
/**
|
|
2034
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2035
|
+
*/
|
|
2036
|
+
export type SendEndUserEvmTransactionRuleOperation = (typeof SendEndUserEvmTransactionRuleOperation)[keyof typeof SendEndUserEvmTransactionRuleOperation];
|
|
2037
|
+
export declare const SendEndUserEvmTransactionRuleOperation: {
|
|
2038
|
+
readonly sendEndUserEvmTransaction: "sendEndUserEvmTransaction";
|
|
2039
|
+
};
|
|
2040
|
+
export interface SendEndUserEvmTransactionRule {
|
|
2041
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2042
|
+
action: SendEndUserEvmTransactionRuleAction;
|
|
2043
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2044
|
+
operation: SendEndUserEvmTransactionRuleOperation;
|
|
2045
|
+
criteria: SendEndUserEvmTransactionCriteria;
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* A schema for specifying criteria for the signEndUserEvmMessage operation.
|
|
2049
|
+
*/
|
|
2050
|
+
export type SignEndUserEvmMessageCriteria = EvmMessageCriterion[];
|
|
2051
|
+
/**
|
|
2052
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2053
|
+
*/
|
|
2054
|
+
export type SignEndUserEvmMessageRuleAction = (typeof SignEndUserEvmMessageRuleAction)[keyof typeof SignEndUserEvmMessageRuleAction];
|
|
2055
|
+
export declare const SignEndUserEvmMessageRuleAction: {
|
|
2056
|
+
readonly reject: "reject";
|
|
2057
|
+
readonly accept: "accept";
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2061
|
+
*/
|
|
2062
|
+
export type SignEndUserEvmMessageRuleOperation = (typeof SignEndUserEvmMessageRuleOperation)[keyof typeof SignEndUserEvmMessageRuleOperation];
|
|
2063
|
+
export declare const SignEndUserEvmMessageRuleOperation: {
|
|
2064
|
+
readonly signEndUserEvmMessage: "signEndUserEvmMessage";
|
|
2065
|
+
};
|
|
2066
|
+
export interface SignEndUserEvmMessageRule {
|
|
2067
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2068
|
+
action: SignEndUserEvmMessageRuleAction;
|
|
2069
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2070
|
+
operation: SignEndUserEvmMessageRuleOperation;
|
|
2071
|
+
criteria: SignEndUserEvmMessageCriteria;
|
|
2072
|
+
}
|
|
2073
|
+
export type SignEndUserEvmTypedDataCriteriaItem = SignEvmTypedDataFieldCriterion | SignEvmTypedDataVerifyingContractCriterion;
|
|
2074
|
+
/**
|
|
2075
|
+
* A schema for specifying criteria for the signEndUserEvmTypedData operation.
|
|
2076
|
+
*/
|
|
2077
|
+
export type SignEndUserEvmTypedDataCriteria = SignEndUserEvmTypedDataCriteriaItem[];
|
|
2078
|
+
/**
|
|
2079
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2080
|
+
*/
|
|
2081
|
+
export type SignEndUserEvmTypedDataRuleAction = (typeof SignEndUserEvmTypedDataRuleAction)[keyof typeof SignEndUserEvmTypedDataRuleAction];
|
|
2082
|
+
export declare const SignEndUserEvmTypedDataRuleAction: {
|
|
2083
|
+
readonly reject: "reject";
|
|
2084
|
+
readonly accept: "accept";
|
|
2085
|
+
};
|
|
2086
|
+
/**
|
|
2087
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2088
|
+
*/
|
|
2089
|
+
export type SignEndUserEvmTypedDataRuleOperation = (typeof SignEndUserEvmTypedDataRuleOperation)[keyof typeof SignEndUserEvmTypedDataRuleOperation];
|
|
2090
|
+
export declare const SignEndUserEvmTypedDataRuleOperation: {
|
|
2091
|
+
readonly signEndUserEvmTypedData: "signEndUserEvmTypedData";
|
|
2092
|
+
};
|
|
2093
|
+
export interface SignEndUserEvmTypedDataRule {
|
|
2094
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2095
|
+
action: SignEndUserEvmTypedDataRuleAction;
|
|
2096
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2097
|
+
operation: SignEndUserEvmTypedDataRuleOperation;
|
|
2098
|
+
criteria: SignEndUserEvmTypedDataCriteria;
|
|
2099
|
+
}
|
|
2100
|
+
export type SignEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion;
|
|
2101
|
+
/**
|
|
2102
|
+
* A schema for specifying criteria for the signEndUserSolTransaction operation.
|
|
2103
|
+
*/
|
|
2104
|
+
export type SignEndUserSolTransactionCriteria = SignEndUserSolTransactionCriteriaItem[];
|
|
2105
|
+
/**
|
|
2106
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2107
|
+
*/
|
|
2108
|
+
export type SignEndUserSolTransactionRuleAction = (typeof SignEndUserSolTransactionRuleAction)[keyof typeof SignEndUserSolTransactionRuleAction];
|
|
2109
|
+
export declare const SignEndUserSolTransactionRuleAction: {
|
|
2110
|
+
readonly reject: "reject";
|
|
2111
|
+
readonly accept: "accept";
|
|
2112
|
+
};
|
|
2113
|
+
/**
|
|
2114
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2115
|
+
*/
|
|
2116
|
+
export type SignEndUserSolTransactionRuleOperation = (typeof SignEndUserSolTransactionRuleOperation)[keyof typeof SignEndUserSolTransactionRuleOperation];
|
|
2117
|
+
export declare const SignEndUserSolTransactionRuleOperation: {
|
|
2118
|
+
readonly signEndUserSolTransaction: "signEndUserSolTransaction";
|
|
2119
|
+
};
|
|
2120
|
+
export interface SignEndUserSolTransactionRule {
|
|
2121
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2122
|
+
action: SignEndUserSolTransactionRuleAction;
|
|
2123
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2124
|
+
operation: SignEndUserSolTransactionRuleOperation;
|
|
2125
|
+
criteria: SignEndUserSolTransactionCriteria;
|
|
2126
|
+
}
|
|
2127
|
+
export type SendEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion;
|
|
2128
|
+
/**
|
|
2129
|
+
* A schema for specifying criteria for the sendEndUserSolTransaction operation.
|
|
2130
|
+
*/
|
|
2131
|
+
export type SendEndUserSolTransactionCriteria = SendEndUserSolTransactionCriteriaItem[];
|
|
2132
|
+
/**
|
|
2133
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2134
|
+
*/
|
|
2135
|
+
export type SendEndUserSolTransactionRuleAction = (typeof SendEndUserSolTransactionRuleAction)[keyof typeof SendEndUserSolTransactionRuleAction];
|
|
2136
|
+
export declare const SendEndUserSolTransactionRuleAction: {
|
|
2137
|
+
readonly reject: "reject";
|
|
2138
|
+
readonly accept: "accept";
|
|
2139
|
+
};
|
|
2140
|
+
/**
|
|
2141
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2142
|
+
*/
|
|
2143
|
+
export type SendEndUserSolTransactionRuleOperation = (typeof SendEndUserSolTransactionRuleOperation)[keyof typeof SendEndUserSolTransactionRuleOperation];
|
|
2144
|
+
export declare const SendEndUserSolTransactionRuleOperation: {
|
|
2145
|
+
readonly sendEndUserSolTransaction: "sendEndUserSolTransaction";
|
|
2146
|
+
};
|
|
2147
|
+
export interface SendEndUserSolTransactionRule {
|
|
2148
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2149
|
+
action: SendEndUserSolTransactionRuleAction;
|
|
2150
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2151
|
+
operation: SendEndUserSolTransactionRuleOperation;
|
|
2152
|
+
criteria: SendEndUserSolTransactionCriteria;
|
|
2153
|
+
}
|
|
2154
|
+
/**
|
|
2155
|
+
* A schema for specifying criteria for the signEndUserSolMessage operation.
|
|
2156
|
+
*/
|
|
2157
|
+
export type SignEndUserSolMessageCriteria = SolMessageCriterion[];
|
|
2158
|
+
/**
|
|
2159
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
2160
|
+
*/
|
|
2161
|
+
export type SignEndUserSolMessageRuleAction = (typeof SignEndUserSolMessageRuleAction)[keyof typeof SignEndUserSolMessageRuleAction];
|
|
2162
|
+
export declare const SignEndUserSolMessageRuleAction: {
|
|
2163
|
+
readonly reject: "reject";
|
|
2164
|
+
readonly accept: "accept";
|
|
2165
|
+
};
|
|
2166
|
+
/**
|
|
2167
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
2168
|
+
*/
|
|
2169
|
+
export type SignEndUserSolMessageRuleOperation = (typeof SignEndUserSolMessageRuleOperation)[keyof typeof SignEndUserSolMessageRuleOperation];
|
|
2170
|
+
export declare const SignEndUserSolMessageRuleOperation: {
|
|
2171
|
+
readonly signEndUserSolMessage: "signEndUserSolMessage";
|
|
2172
|
+
};
|
|
2173
|
+
export interface SignEndUserSolMessageRule {
|
|
2174
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
2175
|
+
action: SignEndUserSolMessageRuleAction;
|
|
2176
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
2177
|
+
operation: SignEndUserSolMessageRuleOperation;
|
|
2178
|
+
criteria: SignEndUserSolMessageCriteria;
|
|
2179
|
+
}
|
|
1873
2180
|
/**
|
|
1874
2181
|
* A rule that limits the behavior of an account.
|
|
1875
2182
|
*/
|
|
1876
|
-
export type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
|
|
2183
|
+
export type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule;
|
|
1877
2184
|
/**
|
|
1878
2185
|
* The scope of the policy. Only one project-level policy can exist at any time.
|
|
1879
2186
|
*/
|
|
@@ -2138,6 +2445,8 @@ export type WebhookSubscriptionResponseLabels = {
|
|
|
2138
2445
|
export interface WebhookSubscriptionResponse {
|
|
2139
2446
|
/** When the subscription was created. */
|
|
2140
2447
|
createdAt: string;
|
|
2448
|
+
/** When the subscription was last updated. */
|
|
2449
|
+
updatedAt?: string;
|
|
2141
2450
|
/** Description of the webhook subscription. */
|
|
2142
2451
|
description?: Description;
|
|
2143
2452
|
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
@@ -2269,57 +2578,97 @@ export type X402ExactEvmPayloadAuthorization = {
|
|
|
2269
2578
|
validAfter: string;
|
|
2270
2579
|
/** The unix timestamp before which the payment is valid. */
|
|
2271
2580
|
validBefore: string;
|
|
2272
|
-
/**
|
|
2581
|
+
/**
|
|
2582
|
+
* The hex-encoded nonce of the payment (bytes32).
|
|
2583
|
+
* @pattern ^0x[0-9a-fA-F]{64}$
|
|
2584
|
+
*/
|
|
2273
2585
|
nonce: string;
|
|
2274
2586
|
};
|
|
2275
2587
|
/**
|
|
2276
2588
|
* The x402 protocol exact scheme payload for EVM networks. The scheme is implemented using ERC-3009. For more details, please see [EVM Exact Scheme Details](https://github.com/coinbase/x402/blob/main/specs/schemes/exact/scheme_exact_evm.md).
|
|
2277
2589
|
*/
|
|
2278
2590
|
export interface X402ExactEvmPayload {
|
|
2279
|
-
/**
|
|
2591
|
+
/**
|
|
2592
|
+
* The EIP-712 hex-encoded signature of the ERC-3009 authorization message. Smart account signatures may be longer than 65 bytes.
|
|
2593
|
+
* @pattern ^0x[0-9a-fA-F]{130,}$
|
|
2594
|
+
*/
|
|
2280
2595
|
signature: string;
|
|
2281
2596
|
/** The authorization data for the ERC-3009 authorization message. */
|
|
2282
2597
|
authorization: X402ExactEvmPayloadAuthorization;
|
|
2283
2598
|
}
|
|
2284
2599
|
/**
|
|
2285
|
-
* The
|
|
2286
|
-
*/
|
|
2287
|
-
export interface X402ExactSolanaPayload {
|
|
2288
|
-
/** The base64-encoded Solana transaction. */
|
|
2289
|
-
transaction: string;
|
|
2290
|
-
}
|
|
2291
|
-
/**
|
|
2292
|
-
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2600
|
+
* The token permissions for the transfer.
|
|
2293
2601
|
*/
|
|
2294
|
-
export type
|
|
2295
|
-
|
|
2296
|
-
|
|
2602
|
+
export type X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted = {
|
|
2603
|
+
/**
|
|
2604
|
+
* The 0x-prefixed, checksum EVM address of the token to transfer.
|
|
2605
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
2606
|
+
*/
|
|
2607
|
+
token: string;
|
|
2608
|
+
/** The amount to transfer in atomic units. */
|
|
2609
|
+
amount: string;
|
|
2297
2610
|
};
|
|
2298
2611
|
/**
|
|
2299
|
-
* The
|
|
2612
|
+
* The witness data containing payment details.
|
|
2300
2613
|
*/
|
|
2301
|
-
export type
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2614
|
+
export type X402ExactEvmPermit2PayloadPermit2AuthorizationWitness = {
|
|
2615
|
+
/**
|
|
2616
|
+
* The 0x-prefixed, checksum EVM address of the recipient.
|
|
2617
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
2618
|
+
*/
|
|
2619
|
+
to: string;
|
|
2620
|
+
/** The unix timestamp after which the payment is valid. */
|
|
2621
|
+
validAfter: string;
|
|
2622
|
+
/**
|
|
2623
|
+
* Optional hex-encoded extra data.
|
|
2624
|
+
* @pattern ^0x[0-9a-fA-F]*$
|
|
2625
|
+
*/
|
|
2626
|
+
extra?: string;
|
|
2307
2627
|
};
|
|
2308
2628
|
/**
|
|
2309
|
-
* The
|
|
2629
|
+
* The authorization data for the Permit2 PermitWitnessTransferFrom message.
|
|
2310
2630
|
*/
|
|
2311
|
-
export type
|
|
2631
|
+
export type X402ExactEvmPermit2PayloadPermit2Authorization = {
|
|
2632
|
+
/**
|
|
2633
|
+
* The 0x-prefixed, checksum EVM address of the sender of the payment.
|
|
2634
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
2635
|
+
*/
|
|
2636
|
+
from: string;
|
|
2637
|
+
/** The token permissions for the transfer. */
|
|
2638
|
+
permitted: X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted;
|
|
2639
|
+
/**
|
|
2640
|
+
* The 0x-prefixed, checksum EVM address of the spender (x402 Permit2 proxy contract).
|
|
2641
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
2642
|
+
*/
|
|
2643
|
+
spender: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* The Permit2 nonce as a decimal string (uint256).
|
|
2646
|
+
* @pattern ^[0-9]+$
|
|
2647
|
+
*/
|
|
2648
|
+
nonce: string;
|
|
2649
|
+
/** The unix timestamp before which the permit is valid. */
|
|
2650
|
+
deadline: string;
|
|
2651
|
+
/** The witness data containing payment details. */
|
|
2652
|
+
witness: X402ExactEvmPermit2PayloadPermit2AuthorizationWitness;
|
|
2653
|
+
};
|
|
2312
2654
|
/**
|
|
2313
|
-
* The x402 protocol
|
|
2655
|
+
* The x402 protocol exact scheme payload for EVM networks using Permit2. Permit2 is a universal token approval mechanism that works with any ERC-20 token, unlike ERC-3009 which requires token-level support.
|
|
2314
2656
|
*/
|
|
2315
|
-
export interface
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
/** The
|
|
2322
|
-
|
|
2657
|
+
export interface X402ExactEvmPermit2Payload {
|
|
2658
|
+
/**
|
|
2659
|
+
* The EIP-712 hex-encoded signature of the Permit2 PermitWitnessTransferFrom message. Smart account signatures may be longer than 65 bytes.
|
|
2660
|
+
* @pattern ^0x[0-9a-fA-F]{130,}$
|
|
2661
|
+
*/
|
|
2662
|
+
signature: string;
|
|
2663
|
+
/** The authorization data for the Permit2 PermitWitnessTransferFrom message. */
|
|
2664
|
+
permit2Authorization: X402ExactEvmPermit2PayloadPermit2Authorization;
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* The x402 protocol exact scheme payload for Solana networks. For more details, please see [Solana Exact Scheme Details](https://github.com/coinbase/x402/blob/main/specs/schemes/exact/scheme_exact_svm.md).
|
|
2668
|
+
*/
|
|
2669
|
+
export interface X402ExactSolanaPayload {
|
|
2670
|
+
/** The base64-encoded Solana transaction. */
|
|
2671
|
+
transaction: string;
|
|
2323
2672
|
}
|
|
2324
2673
|
/**
|
|
2325
2674
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
@@ -2381,7 +2730,7 @@ export interface X402ResourceInfo {
|
|
|
2381
2730
|
/**
|
|
2382
2731
|
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2383
2732
|
*/
|
|
2384
|
-
export type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
2733
|
+
export type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
2385
2734
|
/**
|
|
2386
2735
|
* Optional protocol extensions.
|
|
2387
2736
|
*/
|
|
@@ -2400,10 +2749,45 @@ export interface X402V2PaymentPayload {
|
|
|
2400
2749
|
/** Optional protocol extensions. */
|
|
2401
2750
|
extensions?: X402V2PaymentPayloadExtensions;
|
|
2402
2751
|
}
|
|
2752
|
+
/**
|
|
2753
|
+
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2754
|
+
*/
|
|
2755
|
+
export type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
2756
|
+
export declare const X402V1PaymentPayloadScheme: {
|
|
2757
|
+
readonly exact: "exact";
|
|
2758
|
+
};
|
|
2759
|
+
/**
|
|
2760
|
+
* The network of the blockchain to send payment on.
|
|
2761
|
+
*/
|
|
2762
|
+
export type X402V1PaymentPayloadNetwork = (typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
2763
|
+
export declare const X402V1PaymentPayloadNetwork: {
|
|
2764
|
+
readonly "base-sepolia": "base-sepolia";
|
|
2765
|
+
readonly base: "base";
|
|
2766
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2767
|
+
readonly solana: "solana";
|
|
2768
|
+
readonly polygon: "polygon";
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2772
|
+
*/
|
|
2773
|
+
export type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
2403
2774
|
/**
|
|
2404
2775
|
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2405
2776
|
*/
|
|
2406
|
-
export
|
|
2777
|
+
export interface X402V1PaymentPayload {
|
|
2778
|
+
x402Version: X402Version;
|
|
2779
|
+
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2780
|
+
scheme: X402V1PaymentPayloadScheme;
|
|
2781
|
+
/** The network of the blockchain to send payment on. */
|
|
2782
|
+
network: X402V1PaymentPayloadNetwork;
|
|
2783
|
+
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
2784
|
+
payload: X402V1PaymentPayloadPayload;
|
|
2785
|
+
}
|
|
2786
|
+
/**
|
|
2787
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2788
|
+
For EVM networks, smart account signatures can be longer than 65 bytes.
|
|
2789
|
+
*/
|
|
2790
|
+
export type X402PaymentPayload = X402V2PaymentPayload | X402V1PaymentPayload;
|
|
2407
2791
|
/**
|
|
2408
2792
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2409
2793
|
*/
|
|
@@ -2420,6 +2804,7 @@ export declare const X402V1PaymentRequirementsNetwork: {
|
|
|
2420
2804
|
readonly base: "base";
|
|
2421
2805
|
readonly "solana-devnet": "solana-devnet";
|
|
2422
2806
|
readonly solana: "solana";
|
|
2807
|
+
readonly polygon: "polygon";
|
|
2423
2808
|
};
|
|
2424
2809
|
/**
|
|
2425
2810
|
* The optional JSON schema describing the resource output.
|
|
@@ -2477,7 +2862,7 @@ export interface X402V1PaymentRequirements {
|
|
|
2477
2862
|
/**
|
|
2478
2863
|
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
2479
2864
|
*/
|
|
2480
|
-
export type X402PaymentRequirements =
|
|
2865
|
+
export type X402PaymentRequirements = X402V2PaymentRequirements | X402V1PaymentRequirements;
|
|
2481
2866
|
/**
|
|
2482
2867
|
* The reason the payment is invalid on the x402 protocol.
|
|
2483
2868
|
*/
|
|
@@ -2498,6 +2883,13 @@ export declare const X402VerifyInvalidReason: {
|
|
|
2498
2883
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
2499
2884
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
2500
2885
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
2886
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
2887
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
2888
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
2889
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
2890
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
2891
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
2892
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
2501
2893
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
2502
2894
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
2503
2895
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|
|
@@ -2559,6 +2951,13 @@ export declare const X402SettleErrorReason: {
|
|
|
2559
2951
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
2560
2952
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
2561
2953
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
2954
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
2955
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
2956
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
2957
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
2958
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
2959
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
2960
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
2562
2961
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
2563
2962
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
2564
2963
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|
|
@@ -2630,8 +3029,10 @@ export declare const X402SupportedPaymentKindNetwork: {
|
|
|
2630
3029
|
readonly base: "base";
|
|
2631
3030
|
readonly "solana-devnet": "solana-devnet";
|
|
2632
3031
|
readonly solana: "solana";
|
|
3032
|
+
readonly polygon: "polygon";
|
|
2633
3033
|
readonly "eip155:8453": "eip155:8453";
|
|
2634
3034
|
readonly "eip155:84532": "eip155:84532";
|
|
3035
|
+
readonly "eip155:137": "eip155:137";
|
|
2635
3036
|
readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
2636
3037
|
readonly "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2637
3038
|
};
|
|
@@ -2653,18 +3054,13 @@ export interface X402SupportedPaymentKind {
|
|
|
2653
3054
|
/** The optional additional scheme-specific payment info. */
|
|
2654
3055
|
extra?: X402SupportedPaymentKindExtra;
|
|
2655
3056
|
}
|
|
2656
|
-
/**
|
|
2657
|
-
* A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
|
|
2658
|
-
* @minLength 1
|
|
2659
|
-
* @maxLength 128
|
|
2660
|
-
*/
|
|
2661
|
-
export type BlockchainAddress = string;
|
|
2662
3057
|
/**
|
|
2663
3058
|
* The type of payment method to be used to complete an onramp order.
|
|
2664
3059
|
*/
|
|
2665
3060
|
export type OnrampOrderPaymentMethodTypeId = (typeof OnrampOrderPaymentMethodTypeId)[keyof typeof OnrampOrderPaymentMethodTypeId];
|
|
2666
3061
|
export declare const OnrampOrderPaymentMethodTypeId: {
|
|
2667
3062
|
readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
|
|
3063
|
+
readonly GUEST_CHECKOUT_GOOGLE_PAY: "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
2668
3064
|
};
|
|
2669
3065
|
/**
|
|
2670
3066
|
* The type of fee.
|
|
@@ -2795,6 +3191,42 @@ export interface OnrampQuote {
|
|
|
2795
3191
|
/** The exchange rate used to convert fiat to crypto i.e. the crypto value of one fiat. */
|
|
2796
3192
|
exchangeRate: string;
|
|
2797
3193
|
}
|
|
3194
|
+
/**
|
|
3195
|
+
* The type of user identifier:
|
|
3196
|
+
- `phone_number`: A phone number in E.164 format associated with an onramp user.
|
|
3197
|
+
|
|
3198
|
+
*/
|
|
3199
|
+
export type OnrampUserIdType = (typeof OnrampUserIdType)[keyof typeof OnrampUserIdType];
|
|
3200
|
+
export declare const OnrampUserIdType: {
|
|
3201
|
+
readonly phone_number: "phone_number";
|
|
3202
|
+
};
|
|
3203
|
+
/**
|
|
3204
|
+
* The type of limit:
|
|
3205
|
+
- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions
|
|
3206
|
+
within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window.
|
|
3207
|
+
$500 is the default limit.
|
|
3208
|
+
- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions
|
|
3209
|
+
across the user's entire history with no time-based expiration. Once the limit is reached, no further
|
|
3210
|
+
transactions are allowed. 15 is the default limit.
|
|
3211
|
+
|
|
3212
|
+
*/
|
|
3213
|
+
export type OnrampLimitType = (typeof OnrampLimitType)[keyof typeof OnrampLimitType];
|
|
3214
|
+
export declare const OnrampLimitType: {
|
|
3215
|
+
readonly weekly_spending: "weekly_spending";
|
|
3216
|
+
readonly lifetime_transactions: "lifetime_transactions";
|
|
3217
|
+
};
|
|
3218
|
+
/**
|
|
3219
|
+
* A single limit with remaining capacity.
|
|
3220
|
+
*/
|
|
3221
|
+
export interface OnrampUserLimit {
|
|
3222
|
+
limitType: OnrampLimitType;
|
|
3223
|
+
/** The currency of the limit amounts. Only present for spending limits, not for count-based limits. */
|
|
3224
|
+
currency?: string;
|
|
3225
|
+
/** The maximum limit value. */
|
|
3226
|
+
limit: string;
|
|
3227
|
+
/** The remaining amount or count available. */
|
|
3228
|
+
remaining: string;
|
|
3229
|
+
}
|
|
2798
3230
|
/**
|
|
2799
3231
|
* Unauthorized.
|
|
2800
3232
|
*/
|
|
@@ -2827,6 +3259,10 @@ export type AlreadyExistsErrorResponse = Error;
|
|
|
2827
3259
|
* The underlying SQL string is invalid.
|
|
2828
3260
|
*/
|
|
2829
3261
|
export type InvalidSQLQueryErrorResponse = Error;
|
|
3262
|
+
/**
|
|
3263
|
+
* The client closed the connection before the server could send a response.
|
|
3264
|
+
*/
|
|
3265
|
+
export type ClientClosedRequestErrorResponse = Error;
|
|
2830
3266
|
/**
|
|
2831
3267
|
* The request timed out.
|
|
2832
3268
|
*/
|
|
@@ -2906,12 +3342,26 @@ section of our Authentication docs for more details on how to generate your Wall
|
|
|
2906
3342
|
*/
|
|
2907
3343
|
export type XWalletAuthParameter = string;
|
|
2908
3344
|
/**
|
|
2909
|
-
* An optional
|
|
3345
|
+
* An optional string request header for making requests safely retryable.
|
|
2910
3346
|
When included, duplicate requests with the same key will return identical responses.
|
|
2911
3347
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
2912
3348
|
|
|
2913
3349
|
*/
|
|
2914
3350
|
export type IdempotencyKeyParameter = string;
|
|
3351
|
+
/**
|
|
3352
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3353
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3354
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3355
|
+
|
|
3356
|
+
*/
|
|
3357
|
+
export type XDeveloperAuthParameter = string;
|
|
3358
|
+
/**
|
|
3359
|
+
* A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
3360
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
3361
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
3362
|
+
|
|
3363
|
+
*/
|
|
3364
|
+
export type XWalletAuthOptionalParameter = string;
|
|
2915
3365
|
/**
|
|
2916
3366
|
* The number of resources to return per page.
|
|
2917
3367
|
*/
|
|
@@ -2953,6 +3403,8 @@ export type CreateEndUserBody = {
|
|
|
2953
3403
|
export type ListEndUsersParams = {
|
|
2954
3404
|
/**
|
|
2955
3405
|
* The number of end users to return per page.
|
|
3406
|
+
* @minimum 1
|
|
3407
|
+
* @maximum 100
|
|
2956
3408
|
*/
|
|
2957
3409
|
pageSize?: number;
|
|
2958
3410
|
/**
|
|
@@ -3020,6 +3472,326 @@ export type ImportEndUserBody = {
|
|
|
3020
3472
|
/** The type of key being imported. Determines what type of account will be associated for the end user. */
|
|
3021
3473
|
keyType: ImportEndUserBodyKeyType;
|
|
3022
3474
|
};
|
|
3475
|
+
export type SignEvmHashWithEndUserAccountBody = {
|
|
3476
|
+
/** The arbitrary 32 byte hash to sign. */
|
|
3477
|
+
hash: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3480
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3481
|
+
*/
|
|
3482
|
+
address: string;
|
|
3483
|
+
/**
|
|
3484
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3485
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3486
|
+
*/
|
|
3487
|
+
walletSecretId?: string;
|
|
3488
|
+
};
|
|
3489
|
+
export type SignEvmHashWithEndUserAccount200 = {
|
|
3490
|
+
/** The signature of the hash, as a 0x-prefixed hex string. */
|
|
3491
|
+
signature: string;
|
|
3492
|
+
};
|
|
3493
|
+
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
3494
|
+
/**
|
|
3495
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3496
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3497
|
+
*/
|
|
3498
|
+
address: string;
|
|
3499
|
+
/** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
|
|
3500
|
+
transaction: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3503
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3504
|
+
*/
|
|
3505
|
+
walletSecretId?: string;
|
|
3506
|
+
};
|
|
3507
|
+
export type SignEvmTransactionWithEndUserAccount200 = {
|
|
3508
|
+
/** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
|
|
3509
|
+
signedTransaction: string;
|
|
3510
|
+
};
|
|
3511
|
+
/**
|
|
3512
|
+
* The network to send the transaction to.
|
|
3513
|
+
*/
|
|
3514
|
+
export type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
3515
|
+
export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
3516
|
+
readonly base: "base";
|
|
3517
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3518
|
+
readonly ethereum: "ethereum";
|
|
3519
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3520
|
+
readonly avalanche: "avalanche";
|
|
3521
|
+
readonly polygon: "polygon";
|
|
3522
|
+
readonly optimism: "optimism";
|
|
3523
|
+
readonly arbitrum: "arbitrum";
|
|
3524
|
+
};
|
|
3525
|
+
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
3526
|
+
/**
|
|
3527
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3528
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3529
|
+
*/
|
|
3530
|
+
address: string;
|
|
3531
|
+
/** The network to send the transaction to. */
|
|
3532
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
3533
|
+
/**
|
|
3534
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3535
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3536
|
+
*/
|
|
3537
|
+
walletSecretId?: string;
|
|
3538
|
+
/** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
|
|
3539
|
+
transaction: string;
|
|
3540
|
+
};
|
|
3541
|
+
export type SendEvmTransactionWithEndUserAccount200 = {
|
|
3542
|
+
/** The hash of the transaction, as a 0x-prefixed hex string. */
|
|
3543
|
+
transactionHash: string;
|
|
3544
|
+
};
|
|
3545
|
+
/**
|
|
3546
|
+
* The EVM network to send USDC on.
|
|
3547
|
+
*/
|
|
3548
|
+
export type SendEvmAssetWithEndUserAccountBodyNetwork = (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
3549
|
+
export declare const SendEvmAssetWithEndUserAccountBodyNetwork: {
|
|
3550
|
+
readonly base: "base";
|
|
3551
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3552
|
+
readonly ethereum: "ethereum";
|
|
3553
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
3554
|
+
readonly avalanche: "avalanche";
|
|
3555
|
+
readonly polygon: "polygon";
|
|
3556
|
+
readonly optimism: "optimism";
|
|
3557
|
+
readonly arbitrum: "arbitrum";
|
|
3558
|
+
};
|
|
3559
|
+
export type SendEvmAssetWithEndUserAccountBody = {
|
|
3560
|
+
/**
|
|
3561
|
+
* The 0x-prefixed address of the recipient.
|
|
3562
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3563
|
+
*/
|
|
3564
|
+
to: BlockchainAddress;
|
|
3565
|
+
/**
|
|
3566
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3567
|
+
* @minLength 1
|
|
3568
|
+
* @maxLength 32
|
|
3569
|
+
*/
|
|
3570
|
+
amount: string;
|
|
3571
|
+
/** The EVM network to send USDC on. */
|
|
3572
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
3573
|
+
/** Whether to use CDP Paymaster to sponsor gas fees. Only applicable for EVM Smart Accounts. When true, the transaction gas will be paid by the Paymaster, allowing users to send USDC without holding native gas tokens. Ignored for EOA accounts. Cannot be used together with `paymasterUrl`. */
|
|
3574
|
+
useCdpPaymaster?: boolean;
|
|
3575
|
+
/** Optional custom Paymaster URL to use for gas sponsorship. Only applicable for EVM Smart Accounts. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with `useCdpPaymaster`. */
|
|
3576
|
+
paymasterUrl?: Url;
|
|
3577
|
+
/**
|
|
3578
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3579
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3580
|
+
*/
|
|
3581
|
+
walletSecretId?: string;
|
|
3582
|
+
};
|
|
3583
|
+
export type SendEvmAssetWithEndUserAccount200 = {
|
|
3584
|
+
/**
|
|
3585
|
+
* The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
|
|
3586
|
+
* @nullable
|
|
3587
|
+
*/
|
|
3588
|
+
transactionHash?: string | null;
|
|
3589
|
+
/**
|
|
3590
|
+
* The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
|
|
3591
|
+
* @nullable
|
|
3592
|
+
*/
|
|
3593
|
+
userOpHash?: string | null;
|
|
3594
|
+
};
|
|
3595
|
+
export type SignEvmMessageWithEndUserAccountBody = {
|
|
3596
|
+
/**
|
|
3597
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3598
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3599
|
+
*/
|
|
3600
|
+
address: string;
|
|
3601
|
+
/** The message to sign. */
|
|
3602
|
+
message: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3605
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3606
|
+
*/
|
|
3607
|
+
walletSecretId?: string;
|
|
3608
|
+
};
|
|
3609
|
+
export type SignEvmMessageWithEndUserAccount200 = {
|
|
3610
|
+
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
3611
|
+
signature: string;
|
|
3612
|
+
};
|
|
3613
|
+
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
3614
|
+
/**
|
|
3615
|
+
* The 0x-prefixed address of the EVM account belonging to the end user.
|
|
3616
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3617
|
+
*/
|
|
3618
|
+
address: string;
|
|
3619
|
+
typedData: EIP712Message;
|
|
3620
|
+
/**
|
|
3621
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3622
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3623
|
+
*/
|
|
3624
|
+
walletSecretId?: string;
|
|
3625
|
+
};
|
|
3626
|
+
export type SignEvmTypedDataWithEndUserAccount200 = {
|
|
3627
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
3628
|
+
signature: string;
|
|
3629
|
+
};
|
|
3630
|
+
export type RevokeDelegationForEndUserBody = {
|
|
3631
|
+
/**
|
|
3632
|
+
* When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3633
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3634
|
+
*/
|
|
3635
|
+
walletSecretId?: string;
|
|
3636
|
+
};
|
|
3637
|
+
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
3638
|
+
/**
|
|
3639
|
+
* The 0x-prefixed address of the EVM account to delegate.
|
|
3640
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
3641
|
+
*/
|
|
3642
|
+
address: string;
|
|
3643
|
+
network: EvmEip7702DelegationNetwork;
|
|
3644
|
+
/** Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf. */
|
|
3645
|
+
enableSpendPermissions?: boolean;
|
|
3646
|
+
/**
|
|
3647
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3648
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3649
|
+
*/
|
|
3650
|
+
walletSecretId?: string;
|
|
3651
|
+
};
|
|
3652
|
+
export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
3653
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
3654
|
+
delegationOperationId: string;
|
|
3655
|
+
};
|
|
3656
|
+
export type SendUserOperationWithEndUserAccountBody = {
|
|
3657
|
+
network: EvmUserOperationNetwork;
|
|
3658
|
+
/** The list of calls to make from the Smart Account. */
|
|
3659
|
+
calls: EvmCall[];
|
|
3660
|
+
/** Whether to use the CDP Paymaster for the user operation. */
|
|
3661
|
+
useCdpPaymaster: boolean;
|
|
3662
|
+
/** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
|
|
3663
|
+
paymasterUrl?: Url;
|
|
3664
|
+
/**
|
|
3665
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3666
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3667
|
+
*/
|
|
3668
|
+
walletSecretId?: string;
|
|
3669
|
+
/**
|
|
3670
|
+
* The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
|
|
3671
|
+
* @pattern ^0x[0-9a-fA-F]+$
|
|
3672
|
+
*/
|
|
3673
|
+
dataSuffix?: string;
|
|
3674
|
+
};
|
|
3675
|
+
export type SignSolanaHashWithEndUserAccountBody = {
|
|
3676
|
+
/** The arbitrary 32 byte hash to sign as base58 encoded string. */
|
|
3677
|
+
hash: string;
|
|
3678
|
+
/**
|
|
3679
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3680
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3681
|
+
*/
|
|
3682
|
+
address: string;
|
|
3683
|
+
/**
|
|
3684
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3685
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3686
|
+
*/
|
|
3687
|
+
walletSecretId?: string;
|
|
3688
|
+
};
|
|
3689
|
+
export type SignSolanaHashWithEndUserAccount200 = {
|
|
3690
|
+
/** The signature of the hash, as a base58 encoded string. */
|
|
3691
|
+
signature: string;
|
|
3692
|
+
};
|
|
3693
|
+
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
3694
|
+
/**
|
|
3695
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3696
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3697
|
+
*/
|
|
3698
|
+
address: string;
|
|
3699
|
+
/** The base64 encoded arbitrary message to sign. */
|
|
3700
|
+
message: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3703
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3704
|
+
*/
|
|
3705
|
+
walletSecretId?: string;
|
|
3706
|
+
};
|
|
3707
|
+
export type SignSolanaMessageWithEndUserAccount200 = {
|
|
3708
|
+
/** The signature of the message, as a base58 encoded string. */
|
|
3709
|
+
signature: string;
|
|
3710
|
+
};
|
|
3711
|
+
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
3712
|
+
/**
|
|
3713
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3714
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3715
|
+
*/
|
|
3716
|
+
address: string;
|
|
3717
|
+
/** The base64 encoded transaction to sign. */
|
|
3718
|
+
transaction: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3721
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3722
|
+
*/
|
|
3723
|
+
walletSecretId?: string;
|
|
3724
|
+
};
|
|
3725
|
+
export type SignSolanaTransactionWithEndUserAccount200 = {
|
|
3726
|
+
/** The base64 encoded signed transaction. */
|
|
3727
|
+
signedTransaction: string;
|
|
3728
|
+
};
|
|
3729
|
+
/**
|
|
3730
|
+
* The Solana network to send the transaction to.
|
|
3731
|
+
*/
|
|
3732
|
+
export type SendSolanaTransactionWithEndUserAccountBodyNetwork = (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
3733
|
+
export declare const SendSolanaTransactionWithEndUserAccountBodyNetwork: {
|
|
3734
|
+
readonly solana: "solana";
|
|
3735
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3736
|
+
};
|
|
3737
|
+
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
3738
|
+
/**
|
|
3739
|
+
* The base58 encoded address of the Solana account belonging to the end user.
|
|
3740
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3741
|
+
*/
|
|
3742
|
+
address: string;
|
|
3743
|
+
/** The Solana network to send the transaction to. */
|
|
3744
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
3745
|
+
/**
|
|
3746
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3747
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3748
|
+
*/
|
|
3749
|
+
walletSecretId?: string;
|
|
3750
|
+
/** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
|
|
3751
|
+
transaction: string;
|
|
3752
|
+
/** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
|
|
3753
|
+
useCdpSponsor?: boolean;
|
|
3754
|
+
};
|
|
3755
|
+
export type SendSolanaTransactionWithEndUserAccount200 = {
|
|
3756
|
+
/** The base58 encoded transaction signature. */
|
|
3757
|
+
transactionSignature: string;
|
|
3758
|
+
};
|
|
3759
|
+
/**
|
|
3760
|
+
* The Solana network to send USDC on.
|
|
3761
|
+
*/
|
|
3762
|
+
export type SendSolanaAssetWithEndUserAccountBodyNetwork = (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
3763
|
+
export declare const SendSolanaAssetWithEndUserAccountBodyNetwork: {
|
|
3764
|
+
readonly solana: "solana";
|
|
3765
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3766
|
+
};
|
|
3767
|
+
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
3768
|
+
/**
|
|
3769
|
+
* The base58 encoded address of the recipient.
|
|
3770
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
3771
|
+
*/
|
|
3772
|
+
to: BlockchainAddress;
|
|
3773
|
+
/**
|
|
3774
|
+
* The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
|
|
3775
|
+
* @minLength 1
|
|
3776
|
+
* @maxLength 32
|
|
3777
|
+
*/
|
|
3778
|
+
amount: string;
|
|
3779
|
+
/** The Solana network to send USDC on. */
|
|
3780
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
3781
|
+
/** Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA. */
|
|
3782
|
+
createRecipientAta?: boolean;
|
|
3783
|
+
/**
|
|
3784
|
+
* Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
|
|
3785
|
+
* @pattern ^[a-zA-Z0-9-]{1,100}$
|
|
3786
|
+
*/
|
|
3787
|
+
walletSecretId?: string;
|
|
3788
|
+
/** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
|
|
3789
|
+
useCdpSponsor?: boolean;
|
|
3790
|
+
};
|
|
3791
|
+
export type SendSolanaAssetWithEndUserAccount200 = {
|
|
3792
|
+
/** The base58 encoded transaction signature. */
|
|
3793
|
+
transactionSignature: string;
|
|
3794
|
+
};
|
|
3023
3795
|
export type ListEvmAccountsParams = {
|
|
3024
3796
|
/**
|
|
3025
3797
|
* The number of resources to return per page.
|
|
@@ -3115,6 +3887,15 @@ export type SignEvmTypedData200 = {
|
|
|
3115
3887
|
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
3116
3888
|
signature: string;
|
|
3117
3889
|
};
|
|
3890
|
+
export type CreateEvmEip7702DelegationBody = {
|
|
3891
|
+
network: EvmEip7702DelegationNetwork;
|
|
3892
|
+
/** Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf. */
|
|
3893
|
+
enableSpendPermissions?: boolean;
|
|
3894
|
+
};
|
|
3895
|
+
export type CreateEvmEip7702Delegation201 = {
|
|
3896
|
+
/** The unique identifier for the delegation operation. Use this to poll the operation status. */
|
|
3897
|
+
delegationOperationId: string;
|
|
3898
|
+
};
|
|
3118
3899
|
export type ListEvmSmartAccountsParams = {
|
|
3119
3900
|
/**
|
|
3120
3901
|
* The number of resources to return per page.
|
|
@@ -3483,6 +4264,7 @@ export type RequestSolanaFaucetBodyToken = (typeof RequestSolanaFaucetBodyToken)
|
|
|
3483
4264
|
export declare const RequestSolanaFaucetBodyToken: {
|
|
3484
4265
|
readonly sol: "sol";
|
|
3485
4266
|
readonly usdc: "usdc";
|
|
4267
|
+
readonly cbtusd: "cbtusd";
|
|
3486
4268
|
};
|
|
3487
4269
|
export type RequestSolanaFaucetBody = {
|
|
3488
4270
|
/**
|
|
@@ -3530,6 +4312,8 @@ export type ListDataTokenBalances200 = ListDataTokenBalances200AllOf & ListRespo
|
|
|
3530
4312
|
export type ListWebhookSubscriptionsParams = {
|
|
3531
4313
|
/**
|
|
3532
4314
|
* The number of subscriptions to return per page.
|
|
4315
|
+
* @minimum 1
|
|
4316
|
+
* @maximum 100
|
|
3533
4317
|
*/
|
|
3534
4318
|
pageSize?: number;
|
|
3535
4319
|
/**
|
|
@@ -3630,4 +4414,14 @@ export type CreateOnrampSession201 = {
|
|
|
3630
4414
|
session: OnrampSession;
|
|
3631
4415
|
quote?: OnrampQuote;
|
|
3632
4416
|
};
|
|
4417
|
+
export type GetOnrampUserLimitsBody = {
|
|
4418
|
+
paymentMethodType: OnrampOrderPaymentMethodTypeId;
|
|
4419
|
+
/** The user identifier value. For `phone_number` type, this must be in E.164 format. */
|
|
4420
|
+
userId: string;
|
|
4421
|
+
userIdType: OnrampUserIdType;
|
|
4422
|
+
};
|
|
4423
|
+
export type GetOnrampUserLimits200 = {
|
|
4424
|
+
/** The list of limits applicable to the user. */
|
|
4425
|
+
limits: OnrampUserLimit[];
|
|
4426
|
+
};
|
|
3633
4427
|
//# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.d.ts.map
|