@coinbase/cdp-sdk 1.46.1 → 1.48.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 +14 -0
- package/README.md +332 -0
- package/_cjs/actions/solana/sendTransaction.js +3 -0
- package/_cjs/actions/solana/sendTransaction.js.map +1 -1
- package/_cjs/actions/webhooks/createWebhookSubscription.js +48 -0
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -0
- package/_cjs/actions/webhooks/index.js +6 -0
- package/_cjs/actions/webhooks/index.js.map +1 -0
- package/_cjs/client/cdp.js +5 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +19 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +13 -43
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/solana/solana.js +2 -0
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/client/webhooks/webhooks.js +58 -0
- package/_cjs/client/webhooks/webhooks.js.map +1 -0
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +0 -32
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +51 -11
- 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 → embedded-wallets/embedded-wallets.js} +37 -65
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- 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/sql-api/sql-api.js +12 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +32 -5
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/index.js +2 -2
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/actions/solana/sendTransaction.js +3 -0
- package/_esm/actions/solana/sendTransaction.js.map +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js +45 -0
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -0
- package/_esm/actions/webhooks/index.js +2 -0
- package/_esm/actions/webhooks/index.js.map +1 -0
- package/_esm/client/cdp.js +6 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +17 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +13 -43
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/solana/solana.js +2 -0
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/client/webhooks/webhooks.js +54 -0
- package/_esm/client/webhooks/webhooks.js.map +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +0 -32
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +48 -8
- 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 → embedded-wallets/embedded-wallets.js} +36 -61
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- 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/sql-api/sql-api.js +10 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_esm/openapi-client/generated/webhooks/webhooks.js +30 -4
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/index.js +2 -2
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/actions/solana/sendTransaction.d.ts +2 -0
- package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts +68 -0
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -0
- package/_types/actions/webhooks/index.d.ts +2 -0
- package/_types/actions/webhooks/index.d.ts.map +1 -0
- package/_types/client/cdp.d.ts +5 -6
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +2 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +1 -63
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +0 -2
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +2 -0
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts +2 -0
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/client/webhooks/webhooks.d.ts +41 -0
- package/_types/client/webhooks/webhooks.d.ts.map +1 -0
- package/_types/index.d.ts +2 -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 +285 -85
- 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 → embedded-wallets/embedded-wallets.d.ts} +14 -32
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +1 -0
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +2 -2
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +10 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +30 -5
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +16 -18
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/actions/solana/sendTransaction.ts +3 -0
- package/actions/webhooks/createWebhookSubscription.ts +104 -0
- package/actions/webhooks/index.ts +6 -0
- package/client/cdp.ts +8 -8
- package/client/end-user/endUser.ts +55 -187
- package/client/end-user/endUser.types.ts +0 -72
- package/client/end-user/toEndUserAccount.ts +57 -152
- package/client/solana/solana.ts +2 -0
- package/client/solana/solana.types.ts +2 -0
- package/client/webhooks/webhooks.ts +61 -0
- package/index.ts +6 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +331 -93
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +45 -99
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +3 -3
- package/openapi-client/generated/sql-api/sql-api.ts +19 -0
- package/openapi-client/generated/webhooks/webhooks.ts +42 -4
- package/openapi-client/index.ts +2 -2
- package/package.json +1 -1
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +0 -1
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
2
|
-
/**
|
|
3
|
-
* Signs an arbitrary 32 byte hash with the end user's given EVM account.
|
|
4
|
-
* @summary Sign a hash with end user EVM account
|
|
5
|
-
*/
|
|
6
|
-
export const signEvmHashWithEndUserAccount = (projectId, userId, signEvmHashWithEndUserAccountBody, options) => {
|
|
7
|
-
return cdpApiClient({
|
|
8
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/sign`,
|
|
9
|
-
method: "POST",
|
|
10
|
-
headers: { "Content-Type": "application/json" },
|
|
11
|
-
data: signEvmHashWithEndUserAccountBody,
|
|
12
|
-
}, options);
|
|
13
|
-
};
|
|
14
2
|
/**
|
|
15
3
|
* Signs a transaction with the given end user EVM account.
|
|
16
4
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -18,12 +6,13 @@ The transaction should be serialized as a hex string using [RLP](https://ethereu
|
|
|
18
6
|
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
19
7
|
* @summary Sign a transaction with end user EVM account
|
|
20
8
|
*/
|
|
21
|
-
export const signEvmTransactionWithEndUserAccount = (
|
|
9
|
+
export const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
22
10
|
return cdpApiClient({
|
|
23
|
-
url: `/v2/embedded-wallet-api/
|
|
11
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
24
12
|
method: "POST",
|
|
25
13
|
headers: { "Content-Type": "application/json" },
|
|
26
14
|
data: signEvmTransactionWithEndUserAccountBody,
|
|
15
|
+
params,
|
|
27
16
|
}, options);
|
|
28
17
|
};
|
|
29
18
|
/**
|
|
@@ -55,12 +44,13 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
55
44
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
56
45
|
* @summary Send a transaction with end user EVM account
|
|
57
46
|
*/
|
|
58
|
-
export const sendEvmTransactionWithEndUserAccount = (
|
|
47
|
+
export const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
59
48
|
return cdpApiClient({
|
|
60
|
-
url: `/v2/embedded-wallet-api/
|
|
49
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
61
50
|
method: "POST",
|
|
62
51
|
headers: { "Content-Type": "application/json" },
|
|
63
52
|
data: sendEvmTransactionWithEndUserAccountBody,
|
|
53
|
+
params,
|
|
64
54
|
}, options);
|
|
65
55
|
};
|
|
66
56
|
/**
|
|
@@ -68,12 +58,13 @@ export const sendEvmTransactionWithEndUserAccount = (projectId, userId, sendEvmT
|
|
|
68
58
|
The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
|
|
69
59
|
* @summary Send USDC on EVM
|
|
70
60
|
*/
|
|
71
|
-
export const sendEvmAssetWithEndUserAccount = (
|
|
61
|
+
export const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
|
|
72
62
|
return cdpApiClient({
|
|
73
|
-
url: `/v2/embedded-wallet-api/
|
|
63
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
74
64
|
method: "POST",
|
|
75
65
|
headers: { "Content-Type": "application/json" },
|
|
76
66
|
data: sendEvmAssetWithEndUserAccountBody,
|
|
67
|
+
params,
|
|
77
68
|
}, options);
|
|
78
69
|
};
|
|
79
70
|
/**
|
|
@@ -82,33 +73,35 @@ export const sendEvmAssetWithEndUserAccount = (projectId, userId, address, asset
|
|
|
82
73
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
83
74
|
* @summary Sign an EIP-191 message with end user EVM account
|
|
84
75
|
*/
|
|
85
|
-
export const signEvmMessageWithEndUserAccount = (
|
|
76
|
+
export const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
|
|
86
77
|
return cdpApiClient({
|
|
87
|
-
url: `/v2/embedded-wallet-api/
|
|
78
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
88
79
|
method: "POST",
|
|
89
80
|
headers: { "Content-Type": "application/json" },
|
|
90
81
|
data: signEvmMessageWithEndUserAccountBody,
|
|
82
|
+
params,
|
|
91
83
|
}, options);
|
|
92
84
|
};
|
|
93
85
|
/**
|
|
94
86
|
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
|
|
95
87
|
* @summary Sign EIP-712 typed data with end user EVM account
|
|
96
88
|
*/
|
|
97
|
-
export const signEvmTypedDataWithEndUserAccount = (
|
|
89
|
+
export const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
|
|
98
90
|
return cdpApiClient({
|
|
99
|
-
url: `/v2/embedded-wallet-api/
|
|
91
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
100
92
|
method: "POST",
|
|
101
93
|
headers: { "Content-Type": "application/json" },
|
|
102
94
|
data: signEvmTypedDataWithEndUserAccountBody,
|
|
95
|
+
params,
|
|
103
96
|
}, options);
|
|
104
97
|
};
|
|
105
98
|
/**
|
|
106
99
|
* Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
107
100
|
* @summary Revoke delegation for end user
|
|
108
101
|
*/
|
|
109
|
-
export const revokeDelegationForEndUser = (
|
|
102
|
+
export const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, options) => {
|
|
110
103
|
return cdpApiClient({
|
|
111
|
-
url: `/v2/embedded-wallet-api/
|
|
104
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
112
105
|
method: "DELETE",
|
|
113
106
|
headers: { "Content-Type": "application/json" },
|
|
114
107
|
data: revokeDelegationForEndUserBody,
|
|
@@ -126,48 +119,26 @@ This endpoint:
|
|
|
126
119
|
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
|
|
127
120
|
* @summary Create EIP-7702 delegation for end user EVM account
|
|
128
121
|
*/
|
|
129
|
-
export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
122
|
+
export const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
|
|
130
123
|
return cdpApiClient({
|
|
131
|
-
url: `/v2/embedded-wallet-api/
|
|
124
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
132
125
|
method: "POST",
|
|
133
126
|
headers: { "Content-Type": "application/json" },
|
|
134
127
|
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
128
|
+
params,
|
|
135
129
|
}, options);
|
|
136
130
|
};
|
|
137
131
|
/**
|
|
138
132
|
* Prepares, signs, and sends a user operation for an end user's Smart Account.
|
|
139
133
|
* @summary Send a user operation for end user Smart Account
|
|
140
134
|
*/
|
|
141
|
-
export const sendUserOperationWithEndUserAccount = (
|
|
135
|
+
export const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
|
|
142
136
|
return cdpApiClient({
|
|
143
|
-
url: `/v2/embedded-wallet-api/
|
|
137
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
144
138
|
method: "POST",
|
|
145
139
|
headers: { "Content-Type": "application/json" },
|
|
146
140
|
data: sendUserOperationWithEndUserAccountBody,
|
|
147
|
-
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Revokes an existing spend permission.
|
|
151
|
-
* @summary Revoke a spend permission
|
|
152
|
-
*/
|
|
153
|
-
export const revokeSpendPermissionWithEndUserAccount = (projectId, userId, address, revokeSpendPermissionRequest, options) => {
|
|
154
|
-
return cdpApiClient({
|
|
155
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
156
|
-
method: "POST",
|
|
157
|
-
headers: { "Content-Type": "application/json" },
|
|
158
|
-
data: revokeSpendPermissionRequest,
|
|
159
|
-
}, options);
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Signs an arbitrary 32 byte hash with the end user's given Solana account.
|
|
163
|
-
* @summary Sign a hash with end user Solana account
|
|
164
|
-
*/
|
|
165
|
-
export const signSolanaHashWithEndUserAccount = (projectId, userId, signSolanaHashWithEndUserAccountBody, options) => {
|
|
166
|
-
return cdpApiClient({
|
|
167
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/solana/sign`,
|
|
168
|
-
method: "POST",
|
|
169
|
-
headers: { "Content-Type": "application/json" },
|
|
170
|
-
data: signSolanaHashWithEndUserAccountBody,
|
|
141
|
+
params,
|
|
171
142
|
}, options);
|
|
172
143
|
};
|
|
173
144
|
/**
|
|
@@ -175,12 +146,13 @@ export const signSolanaHashWithEndUserAccount = (projectId, userId, signSolanaHa
|
|
|
175
146
|
**WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
|
|
176
147
|
* @summary Sign a Base64 encoded message
|
|
177
148
|
*/
|
|
178
|
-
export const signSolanaMessageWithEndUserAccount = (
|
|
149
|
+
export const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
|
|
179
150
|
return cdpApiClient({
|
|
180
|
-
url: `/v2/embedded-wallet-api/
|
|
151
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
181
152
|
method: "POST",
|
|
182
153
|
headers: { "Content-Type": "application/json" },
|
|
183
154
|
data: signSolanaMessageWithEndUserAccountBody,
|
|
155
|
+
params,
|
|
184
156
|
}, options);
|
|
185
157
|
};
|
|
186
158
|
/**
|
|
@@ -193,12 +165,13 @@ The following transaction types are supported:
|
|
|
193
165
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
194
166
|
* @summary Sign a transaction with end user Solana account
|
|
195
167
|
*/
|
|
196
|
-
export const signSolanaTransactionWithEndUserAccount = (
|
|
168
|
+
export const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
197
169
|
return cdpApiClient({
|
|
198
|
-
url: `/v2/embedded-wallet-api/
|
|
170
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
199
171
|
method: "POST",
|
|
200
172
|
headers: { "Content-Type": "application/json" },
|
|
201
173
|
data: signSolanaTransactionWithEndUserAccountBody,
|
|
174
|
+
params,
|
|
202
175
|
}, options);
|
|
203
176
|
};
|
|
204
177
|
/**
|
|
@@ -218,12 +191,13 @@ The following Solana networks are supported:
|
|
|
218
191
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
219
192
|
* @summary Send a transaction with end user Solana account
|
|
220
193
|
*/
|
|
221
|
-
export const sendSolanaTransactionWithEndUserAccount = (
|
|
194
|
+
export const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
222
195
|
return cdpApiClient({
|
|
223
|
-
url: `/v2/embedded-wallet-api/
|
|
196
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
224
197
|
method: "POST",
|
|
225
198
|
headers: { "Content-Type": "application/json" },
|
|
226
199
|
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
200
|
+
params,
|
|
227
201
|
}, options);
|
|
228
202
|
};
|
|
229
203
|
/**
|
|
@@ -232,12 +206,13 @@ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5
|
|
|
232
206
|
Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
|
|
233
207
|
* @summary Send USDC on Solana
|
|
234
208
|
*/
|
|
235
|
-
export const sendSolanaAssetWithEndUserAccount = (
|
|
209
|
+
export const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
|
|
236
210
|
return cdpApiClient({
|
|
237
|
-
url: `/v2/embedded-wallet-api/
|
|
211
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
238
212
|
method: "POST",
|
|
239
213
|
headers: { "Content-Type": "application/json" },
|
|
240
214
|
data: sendSolanaAssetWithEndUserAccountBody,
|
|
215
|
+
params,
|
|
241
216
|
}, options);
|
|
242
217
|
};
|
|
243
|
-
//# sourceMappingURL=embedded-wallets
|
|
218
|
+
//# sourceMappingURL=embedded-wallets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets/embedded-wallets.ts"],"names":[],"mappings":"AA6CA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9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AAC,CAAC;AACF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CACrD,MAAc,EACd,2CAAwF,EACxF,MAAsD,EACtD,OAA0F,EAC1F,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,0BAA0B;QAC1E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,2CAA2C;QACjD,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CACrD,MAAc,EACd,2CAAwF,EACxF,MAAsD,EACtD,OAA0F,EAC1F,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,0BAA0B;QAC1E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,2CAA2C;QACjD,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,qCAA4E,EAC5E,MAAgD,EAChD,OAAoF,EACpF,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,WAAW,OAAO,SAAS,KAAK,EAAE;QAClF,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qCAAqC;QAC3C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -114,12 +114,12 @@ export const listSpendPermissions = (address, params, options) => {
|
|
|
114
114
|
* Revokes an existing spend permission.
|
|
115
115
|
* @summary Revoke a spend permission
|
|
116
116
|
*/
|
|
117
|
-
export const revokeSpendPermission = (address,
|
|
117
|
+
export const revokeSpendPermission = (address, revokeSpendPermissionRequest, options) => {
|
|
118
118
|
return cdpApiClient({
|
|
119
119
|
url: `/v2/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
120
120
|
method: "POST",
|
|
121
121
|
headers: { "Content-Type": "application/json" },
|
|
122
|
-
data:
|
|
122
|
+
data: revokeSpendPermissionRequest,
|
|
123
123
|
}, options);
|
|
124
124
|
};
|
|
125
125
|
//# sourceMappingURL=evm-smart-accounts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-smart-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,MAAmC,EACnC,OAAuE,EACvE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACxD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,yBAAoD,EACpD,OAA+D,EAC/D,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,wBAAwB;QAC7B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,yBAAyB;KAChC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,IAAY,EACZ,OAA+D,EAC/D,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,kCAAkC,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAChE,OAAO,CACR,CAAC;AAC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EACf,UAAkB,EAClB,OAAgE,EAChE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,0BAA0B,OAAO,oBAAoB,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EACzF,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,UAAkB,EAClB,qBAA4C,EAC5C,OAAgE,EAChE,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,0BAA0B,OAAO,oBAAoB,UAAU,OAAO;QAC3E,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qBAAqB;KAC5B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAe,EACf,4BAA0D,EAC1D,OAAgE,EAChE,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,0BAA0B,OAAO,oBAAoB;QAC1D,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,4BAA4B;KACnC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAe,EACf,MAAmC,EACnC,OAAuE,EACvE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,0BAA0B,OAAO,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAC1F,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAe,EACf
|
|
1
|
+
{"version":3,"file":"evm-smart-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart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,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qBAAqB;KAC5B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAe,EACf,4BAA0D,EAC1D,OAAgE,EAChE,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,0BAA0B,OAAO,oBAAoB;QAC1D,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,4BAA4B;KACnC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAe,EACf,MAAmC,EACnC,OAAuE,EACvE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,0BAA0B,OAAO,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAC1F,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAe,EACf,4BAA0D,EAC1D,OAAgE,EAChE,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,0BAA0B,OAAO,2BAA2B;QACjE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,4BAA4B;KACnC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -67,4 +67,14 @@ LLMs interact well with ANTLR4 grammar. You can feed the grammar directly into t
|
|
|
67
67
|
export const getSQLGrammar = (options) => {
|
|
68
68
|
return cdpApiClient({ url: `/v2/data/query/grammar`, method: "GET" }, options);
|
|
69
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve the schema information for the available tables in the SQL API's indexed data.
|
|
72
|
+
|
|
73
|
+
This includes table names, column definitions, data types, and indexed fields.
|
|
74
|
+
|
|
75
|
+
* @summary Get schemas details
|
|
76
|
+
*/
|
|
77
|
+
export const getSQLSchema = (params, options) => {
|
|
78
|
+
return cdpApiClient({ url: `/v2/data/query/schema`, method: "GET", params }, options);
|
|
79
|
+
};
|
|
70
80
|
//# sourceMappingURL=sql-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql-api.js","sourceRoot":"","sources":["../../../../openapi-client/generated/sql-api/sql-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sql-api.js","sourceRoot":"","sources":["../../../../openapi-client/generated/sql-api/sql-api.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,gBAAkC,EAClC,OAAiE,EACjE,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,oBAAoB;QACzB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,gBAAgB;KACvB,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAsD,EAAE,EAAE;IACtF,OAAO,YAAY,CAAS,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;AACzF,CAAC,CAAC;AACF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAA2B,EAC3B,OAAyE,EACzE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,uBAAuB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACvD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -31,10 +31,12 @@ export const listWebhookSubscriptions = (params, options) => {
|
|
|
31
31
|
- **No labels required** - maximum simplicity for transaction monitoring
|
|
32
32
|
|
|
33
33
|
**Payments Transfers Events** - Transfer lifecycle notifications:
|
|
34
|
-
- `payments.transfers.quoted`
|
|
35
|
-
- `payments.transfers.processing`
|
|
36
|
-
- `payments.transfers.completed`
|
|
37
|
-
- `payments.transfers.failed`
|
|
34
|
+
- `payments.transfers.quoted` - Transfer created and awaiting execution
|
|
35
|
+
- `payments.transfers.processing` - Transfer execution in progress
|
|
36
|
+
- `payments.transfers.completed` - Transfer completed successfully
|
|
37
|
+
- `payments.transfers.failed` - Transfer failed
|
|
38
|
+
- `payments.transfers.travel_rule_incomplete` - Travel rule information is missing
|
|
39
|
+
- `payments.transfers.travel_rule_completed` - Travel rule information has been provided and the transfer will proceed
|
|
38
40
|
- **No labels required** - enable the transfers webhook to monitor status transitions
|
|
39
41
|
|
|
40
42
|
**Wallet Events** - Wallet activity notifications:
|
|
@@ -126,4 +128,28 @@ This action cannot be undone.
|
|
|
126
128
|
export const deleteWebhookSubscription = (subscriptionId, options) => {
|
|
127
129
|
return cdpApiClient({ url: `/v2/data/webhooks/subscriptions/${subscriptionId}`, method: "DELETE" }, options);
|
|
128
130
|
};
|
|
131
|
+
/**
|
|
132
|
+
* Retrieve webhook event delivery attempts for a specific subscription.
|
|
133
|
+
Returns event deliveries in descending order by creation time (newest first),
|
|
134
|
+
including delivery status, retry count, and response details.
|
|
135
|
+
|
|
136
|
+
### Use Cases
|
|
137
|
+
- Debug webhook delivery failures and inspect response codes
|
|
138
|
+
- Monitor delivery status and retry counts
|
|
139
|
+
- Audit event delivery history for a subscription
|
|
140
|
+
- Verify that expected events were sent to webhook URLs
|
|
141
|
+
|
|
142
|
+
### Filtering
|
|
143
|
+
Use optional query parameters to narrow results:
|
|
144
|
+
- `eventId` — find a specific event by ID
|
|
145
|
+
- `minCreatedAt` / `maxCreatedAt` — filter by time range
|
|
146
|
+
- `eventTypeNames` — filter by event type (comma-separated)
|
|
147
|
+
|
|
148
|
+
**Note:** Results are limited to the 50 most recent events (newest first). No pagination is supported.
|
|
149
|
+
|
|
150
|
+
* @summary List webhook subscription events
|
|
151
|
+
*/
|
|
152
|
+
export const listWebhookSubscriptionEvents = (subscriptionId, params, options) => {
|
|
153
|
+
return cdpApiClient({ url: `/v2/data/webhooks/subscriptions/${subscriptionId}/events`, method: "GET", params }, options);
|
|
154
|
+
};
|
|
129
155
|
//# sourceMappingURL=webhooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../../openapi-client/generated/webhooks/webhooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../../openapi-client/generated/webhooks/webhooks.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,MAAuC,EACvC,OAA+E,EAC/E,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,iCAAiC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACjE,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,0BAAsD,EACtD,OAA2E,EAC3E,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,iCAAiC;QACtC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,0BAA0B;KACjC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,cAAsB,EACtB,OAA2E,EAC3E,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,mCAAmC,cAAc,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC3E,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,cAAsB,EACtB,gCAAkE,EAClE,OAA2E,EAC3E,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,mCAAmC,cAAc,EAAE;QACxD,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,gCAAgC;KACvC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,cAAsB,EACtB,OAAoD,EACpD,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,mCAAmC,cAAc,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAC9E,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,cAAsB,EACtB,MAA4C,EAC5C,OAAwE,EACxE,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,mCAAmC,cAAc,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAC1F,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -10,10 +10,10 @@ export * from "./generated/policy-engine/policy-engine.js";
|
|
|
10
10
|
export * from "./generated/onramp/onramp.js";
|
|
11
11
|
export * from "./generated/onchain-data/onchain-data.js";
|
|
12
12
|
export * from "./generated/end-user-accounts/end-user-accounts.js";
|
|
13
|
-
export * from "./generated/embedded-wallets
|
|
13
|
+
export * from "./generated/embedded-wallets/embedded-wallets.js";
|
|
14
14
|
export * from "./generated/x402-facilitator/x402-facilitator.js";
|
|
15
15
|
import { configure } from "./cdpApiClient.js";
|
|
16
|
-
import * as embeddedWallets from "./generated/embedded-wallets
|
|
16
|
+
import * as embeddedWallets from "./generated/embedded-wallets/embedded-wallets.js";
|
|
17
17
|
import * as endUserAccounts from "./generated/end-user-accounts/end-user-accounts.js";
|
|
18
18
|
import * as evm from "./generated/evm-accounts/evm-accounts.js";
|
|
19
19
|
import * as evmSmartAccounts from "./generated/evm-smart-accounts/evm-smart-accounts.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oCAAoC,CAAC;AACnD,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oCAAoC,CAAC;AACnD,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC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,GAAG,QAAQ;CACZ,CAAC;AAGF,cAAc,gCAAgC,CAAC"}
|
package/_esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "1.
|
|
1
|
+
export const version = "1.48.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -13,6 +13,7 @@ export interface SendTransactionResult {
|
|
|
13
13
|
* @param {SendTransactionOptions} options - Parameters for sending the Solana transaction.
|
|
14
14
|
* @param {string} options.network - The network to send the transaction to.
|
|
15
15
|
* @param {string} options.transaction - The base64 encoded transaction to send.
|
|
16
|
+
* @param {boolean} [options.useCdpSponsor] - Whether CDP should sponsor the transaction fees.
|
|
16
17
|
* @param {string} [options.idempotencyKey] - An idempotency key.
|
|
17
18
|
*
|
|
18
19
|
* @returns A promise that resolves to the transaction result.
|
|
@@ -22,6 +23,7 @@ export interface SendTransactionResult {
|
|
|
22
23
|
* const signature = await sendTransaction({
|
|
23
24
|
* network: "solana-devnet",
|
|
24
25
|
* transaction: "...",
|
|
26
|
+
* useCdpSponsor: true,
|
|
25
27
|
* });
|
|
26
28
|
* ```
|
|
27
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../actions/solana/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../actions/solana/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CAchC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CdpOpenApiClientType } from "../../openapi-client/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The supported wallet transaction webhook event types.
|
|
4
|
+
*/
|
|
5
|
+
export type WebhookEventType = "wallet.transaction.created" | "wallet.transaction.broadcast" | "wallet.transaction.pending" | "wallet.transaction.replaced" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.signed";
|
|
6
|
+
/**
|
|
7
|
+
* Options for creating a webhook subscription.
|
|
8
|
+
*/
|
|
9
|
+
export interface CreateWebhookSubscriptionOptions {
|
|
10
|
+
/** A description of the webhook subscription. */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** The event types to subscribe to. */
|
|
13
|
+
eventTypes: WebhookEventType[];
|
|
14
|
+
/** The URL to deliver webhook events to. */
|
|
15
|
+
targetUrl: string;
|
|
16
|
+
/** Additional headers to include in webhook requests. */
|
|
17
|
+
targetHeaders?: Record<string, string>;
|
|
18
|
+
/** Whether the subscription is enabled. Defaults to `true`. */
|
|
19
|
+
isEnabled?: boolean;
|
|
20
|
+
/** Additional metadata for the subscription. */
|
|
21
|
+
metadata?: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The result of creating a webhook subscription.
|
|
25
|
+
*/
|
|
26
|
+
export interface CreateWebhookSubscriptionResult {
|
|
27
|
+
/** The unique identifier for the subscription. */
|
|
28
|
+
subscriptionId: string;
|
|
29
|
+
/** The description of the webhook subscription. */
|
|
30
|
+
description?: string;
|
|
31
|
+
/** The event types the subscription is subscribed to. */
|
|
32
|
+
eventTypes: string[];
|
|
33
|
+
/** The webhook URL events are delivered to. */
|
|
34
|
+
targetUrl: string;
|
|
35
|
+
/** Additional headers included in webhook requests. */
|
|
36
|
+
targetHeaders?: Record<string, string>;
|
|
37
|
+
/** Whether the subscription is enabled. */
|
|
38
|
+
isEnabled: boolean;
|
|
39
|
+
/** Secret for webhook signature verification. */
|
|
40
|
+
secret: string;
|
|
41
|
+
/** When the subscription was created. */
|
|
42
|
+
createdAt: string;
|
|
43
|
+
/** When the subscription was last updated. */
|
|
44
|
+
updatedAt?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Creates a webhook subscription for wallet transaction events.
|
|
48
|
+
*
|
|
49
|
+
* @param client - The CDP OpenAPI client.
|
|
50
|
+
* @param options - The options for creating the webhook subscription.
|
|
51
|
+
* @returns The created webhook subscription.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const subscription = await createWebhookSubscription(client, {
|
|
56
|
+
* description: "Monitor wallet transactions",
|
|
57
|
+
* eventTypes: [
|
|
58
|
+
* "wallet.transaction.pending",
|
|
59
|
+
* "wallet.transaction.confirmed",
|
|
60
|
+
* "wallet.transaction.failed",
|
|
61
|
+
* ],
|
|
62
|
+
* targetUrl: "https://example.com/webhook",
|
|
63
|
+
* isEnabled: true,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare function createWebhookSubscription(client: CdpOpenApiClientType, options: CreateWebhookSubscriptionOptions): Promise<CreateWebhookSubscriptionResult>;
|
|
68
|
+
//# sourceMappingURL=createWebhookSubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWebhookSubscription.d.ts","sourceRoot":"","sources":["../../../actions/webhooks/createWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE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CAuB1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/webhooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAC"}
|
package/_types/client/cdp.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndUserClient } from "./end-user/endUser.js";
|
|
2
2
|
import { EvmClient } from "./evm/evm.js";
|
|
3
3
|
import { PoliciesClient } from "./policies/policies.js";
|
|
4
4
|
import { SolanaClient } from "./solana/solana.js";
|
|
5
|
+
import { WebhooksClient } from "./webhooks/webhooks.js";
|
|
5
6
|
export interface CdpClientOptions {
|
|
6
7
|
/** The API key ID. */
|
|
7
8
|
apiKeyId?: string;
|
|
@@ -9,8 +10,6 @@ export interface CdpClientOptions {
|
|
|
9
10
|
apiKeySecret?: string;
|
|
10
11
|
/** The wallet secret. */
|
|
11
12
|
walletSecret?: string;
|
|
12
|
-
/** The CDP project ID. Required for end-user delegation operations (signing, sending). */
|
|
13
|
-
projectId?: string;
|
|
14
13
|
/** Whether to enable debugging. */
|
|
15
14
|
debugging?: boolean;
|
|
16
15
|
/** The host URL to connect to. */
|
|
@@ -27,7 +26,9 @@ export declare class CdpClient {
|
|
|
27
26
|
/** Namespace containing all Policies methods. */
|
|
28
27
|
policies: PoliciesClient;
|
|
29
28
|
/** Namespace containing all end user methods. */
|
|
30
|
-
endUser:
|
|
29
|
+
endUser: EndUserClient;
|
|
30
|
+
/** Namespace containing all webhook methods. */
|
|
31
|
+
webhooks: WebhooksClient;
|
|
31
32
|
/**
|
|
32
33
|
* The CdpClient is the main class for interacting with the CDP API.
|
|
33
34
|
*
|
|
@@ -43,7 +44,6 @@ export declare class CdpClient {
|
|
|
43
44
|
* CDP_API_KEY_ID=your-api-key-id
|
|
44
45
|
* CDP_API_KEY_SECRET=your-api-key-secret
|
|
45
46
|
* CDP_WALLET_SECRET=your-wallet-secret
|
|
46
|
-
* CDP_PROJECT_ID=your-project-id
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
49
|
* Or passed as options to the constructor:
|
|
@@ -53,7 +53,6 @@ export declare class CdpClient {
|
|
|
53
53
|
* apiKeyId: "your-api-key-id",
|
|
54
54
|
* apiKeySecret: "your-api-key-secret",
|
|
55
55
|
* walletSecret: "your-wallet-secret",
|
|
56
|
-
* projectId: "your-project-id",
|
|
57
56
|
* });
|
|
58
57
|
* ```
|
|
59
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB,4CAA4C;IACrC,GAAG,EAAE,SAAS,CAAC;IAEtB,+CAA+C;IACxC,MAAM,EAAE,YAAY,CAAC;IAE5B,iDAAiD;IAC1C,QAAQ,EAAE,cAAc,CAAC;IAEhC,iDAAiD;IAC1C,OAAO,EAAE,aAAa,CAAC;IAE9B,gDAAgD;IACzC,QAAQ,EAAE,cAAc,CAAC;IAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;gBACS,OAAO,GAAE,gBAAqB;CAoE3C"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { type ValidateAccessTokenOptions, type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, type AddEndUserEvmSmartAccountOptions, type AddEndUserEvmSmartAccountResult, type AddEndUserSolanaAccountOptions, type AddEndUserSolanaAccountResult, type RevokeDelegationForEndUserOptions, type
|
|
1
|
+
import { type ValidateAccessTokenOptions, type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, type AddEndUserEvmSmartAccountOptions, type AddEndUserEvmSmartAccountResult, type AddEndUserSolanaAccountOptions, type AddEndUserSolanaAccountResult, type RevokeDelegationForEndUserOptions, type SignEvmTransactionOptions, type SignEvmTransactionResult, type SignEvmMessageOptions, type SignEvmMessageResult, type SignEvmTypedDataOptions, type SignEvmTypedDataResult, type SendEvmTransactionOptions, type SendEvmTransactionResult, type SendEvmAssetOptions, type SendEvmAssetResult, type SendUserOperationOptions, type SendUserOperationResult, type CreateEvmEip7702DelegationOptions, type CreateEvmEip7702DelegationForEndUserResult, type SignSolanaMessageOptions, type SignSolanaMessageResult, type SignSolanaTransactionOptions, type SignSolanaTransactionResult, type SendSolanaTransactionOptions, type SendSolanaTransactionResult, type SendSolanaAssetOptions, type SendSolanaAssetResult, type EndUserAccount } from "./endUser.types.js";
|
|
2
2
|
import { type ListEndUsers200 } from "../../openapi-client/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* The CDP end user client.
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
private projectId?;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new CDPEndUserClient.
|
|
10
|
-
*
|
|
11
|
-
* @param projectId - The CDP project ID. Required for delegation operations (signing, sending).
|
|
12
|
-
*/
|
|
13
|
-
constructor(projectId?: string);
|
|
6
|
+
export declare class EndUserClient {
|
|
14
7
|
/**
|
|
15
8
|
* Creates an end user. An end user is an entity that can own CDP EVM accounts,
|
|
16
9
|
* EVM smart accounts, and/or Solana accounts.
|
|
@@ -164,25 +157,6 @@ export declare class CDPEndUserClient {
|
|
|
164
157
|
* ```
|
|
165
158
|
*/
|
|
166
159
|
revokeDelegationForEndUser(options: RevokeDelegationForEndUserOptions): Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
* Signs an EVM hash on behalf of an end user using a delegation.
|
|
169
|
-
* The end user must have previously created a delegation granting signing permissions.
|
|
170
|
-
*
|
|
171
|
-
* @param options - The options for signing an EVM hash.
|
|
172
|
-
*
|
|
173
|
-
* @returns A promise that resolves to the signature.
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```ts
|
|
177
|
-
* const result = await cdp.endUser.signEvmHash({
|
|
178
|
-
* userId: "user-123",
|
|
179
|
-
* hash: "0xabcdef...",
|
|
180
|
-
* address: "0x1234..."
|
|
181
|
-
* });
|
|
182
|
-
* console.log(result.signature);
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
signEvmHash(options: SignEvmHashOptions): Promise<SignEvmHashResult>;
|
|
186
160
|
/**
|
|
187
161
|
* Signs an EVM transaction on behalf of an end user using a delegation.
|
|
188
162
|
*
|
|
@@ -313,24 +287,6 @@ export declare class CDPEndUserClient {
|
|
|
313
287
|
* ```
|
|
314
288
|
*/
|
|
315
289
|
createEvmEip7702Delegation(options: CreateEvmEip7702DelegationOptions): Promise<CreateEvmEip7702DelegationForEndUserResult>;
|
|
316
|
-
/**
|
|
317
|
-
* Signs a Solana hash on behalf of an end user using a delegation.
|
|
318
|
-
*
|
|
319
|
-
* @param options - The options for signing a Solana hash.
|
|
320
|
-
*
|
|
321
|
-
* @returns A promise that resolves to the signature.
|
|
322
|
-
*
|
|
323
|
-
* @example
|
|
324
|
-
* ```ts
|
|
325
|
-
* const result = await cdp.endUser.signSolanaHash({
|
|
326
|
-
* userId: "user-123",
|
|
327
|
-
* hash: "base64hash...",
|
|
328
|
-
* address: "So1ana..."
|
|
329
|
-
* });
|
|
330
|
-
* console.log(result.signature);
|
|
331
|
-
* ```
|
|
332
|
-
*/
|
|
333
|
-
signSolanaHash(options: SignSolanaHashOptions): Promise<SignSolanaHashResult>;
|
|
334
290
|
/**
|
|
335
291
|
* Signs a Solana message on behalf of an end user using a delegation.
|
|
336
292
|
*
|
|
@@ -444,11 +400,5 @@ export declare class CDPEndUserClient {
|
|
|
444
400
|
* ```
|
|
445
401
|
*/
|
|
446
402
|
importEndUser(options: ImportEndUserOptions): Promise<EndUserAccount>;
|
|
447
|
-
/**
|
|
448
|
-
* Returns the configured project ID or throws if not configured.
|
|
449
|
-
*
|
|
450
|
-
* @returns The project ID.
|
|
451
|
-
*/
|
|
452
|
-
private requireProjectId;
|
|
453
403
|
}
|
|
454
404
|
//# sourceMappingURL=endUser.d.ts.map
|