@coinbase/cdp-sdk 1.47.0 → 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 +8 -0
- package/README.md +282 -0
- package/_cjs/client/cdp.js +1 -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/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 +54 -10
- 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 -97
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +6 -6
- 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/client/cdp.js +2 -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/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 +52 -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 -93
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +6 -6
- 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/client/cdp.d.ts +2 -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/index.d.ts +1 -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 +476 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +145 -0
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/index.d.ts +13 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/client/cdp.ts +3 -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/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +535 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +67 -249
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- 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 +0 -312
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +0 -1
|
@@ -1,48 +1,4 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2
|
-
export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
3
|
-
base: "base",
|
|
4
|
-
"base-sepolia": "base-sepolia",
|
|
5
|
-
ethereum: "ethereum",
|
|
6
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
7
|
-
avalanche: "avalanche",
|
|
8
|
-
polygon: "polygon",
|
|
9
|
-
optimism: "optimism",
|
|
10
|
-
arbitrum: "arbitrum",
|
|
11
|
-
};
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
13
|
-
export const SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
14
|
-
base: "base",
|
|
15
|
-
"base-sepolia": "base-sepolia",
|
|
16
|
-
ethereum: "ethereum",
|
|
17
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
18
|
-
avalanche: "avalanche",
|
|
19
|
-
polygon: "polygon",
|
|
20
|
-
optimism: "optimism",
|
|
21
|
-
arbitrum: "arbitrum",
|
|
22
|
-
};
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
24
|
-
export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
25
|
-
solana: "solana",
|
|
26
|
-
"solana-devnet": "solana-devnet",
|
|
27
|
-
};
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
29
|
-
export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
30
|
-
solana: "solana",
|
|
31
|
-
"solana-devnet": "solana-devnet",
|
|
32
|
-
};
|
|
33
1
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
34
|
-
/**
|
|
35
|
-
* Signs an arbitrary 32 byte hash with the end user's given EVM account.
|
|
36
|
-
* @summary Sign a hash with end user EVM account
|
|
37
|
-
*/
|
|
38
|
-
export const signEvmHashWithEndUserAccount = (projectId, userId, signEvmHashWithEndUserAccountBody, options) => {
|
|
39
|
-
return cdpApiClient({
|
|
40
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/sign`,
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers: { "Content-Type": "application/json" },
|
|
43
|
-
data: signEvmHashWithEndUserAccountBody,
|
|
44
|
-
}, options);
|
|
45
|
-
};
|
|
46
2
|
/**
|
|
47
3
|
* Signs a transaction with the given end user EVM account.
|
|
48
4
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -50,12 +6,13 @@ The transaction should be serialized as a hex string using [RLP](https://ethereu
|
|
|
50
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.
|
|
51
7
|
* @summary Sign a transaction with end user EVM account
|
|
52
8
|
*/
|
|
53
|
-
export const signEvmTransactionWithEndUserAccount = (
|
|
9
|
+
export const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
54
10
|
return cdpApiClient({
|
|
55
|
-
url: `/v2/embedded-wallet-api/
|
|
11
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
56
12
|
method: "POST",
|
|
57
13
|
headers: { "Content-Type": "application/json" },
|
|
58
14
|
data: signEvmTransactionWithEndUserAccountBody,
|
|
15
|
+
params,
|
|
59
16
|
}, options);
|
|
60
17
|
};
|
|
61
18
|
/**
|
|
@@ -87,12 +44,13 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
87
44
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
88
45
|
* @summary Send a transaction with end user EVM account
|
|
89
46
|
*/
|
|
90
|
-
export const sendEvmTransactionWithEndUserAccount = (
|
|
47
|
+
export const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
91
48
|
return cdpApiClient({
|
|
92
|
-
url: `/v2/embedded-wallet-api/
|
|
49
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
93
50
|
method: "POST",
|
|
94
51
|
headers: { "Content-Type": "application/json" },
|
|
95
52
|
data: sendEvmTransactionWithEndUserAccountBody,
|
|
53
|
+
params,
|
|
96
54
|
}, options);
|
|
97
55
|
};
|
|
98
56
|
/**
|
|
@@ -100,12 +58,13 @@ export const sendEvmTransactionWithEndUserAccount = (projectId, userId, sendEvmT
|
|
|
100
58
|
The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
|
|
101
59
|
* @summary Send USDC on EVM
|
|
102
60
|
*/
|
|
103
|
-
export const sendEvmAssetWithEndUserAccount = (
|
|
61
|
+
export const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
|
|
104
62
|
return cdpApiClient({
|
|
105
|
-
url: `/v2/embedded-wallet-api/
|
|
63
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
106
64
|
method: "POST",
|
|
107
65
|
headers: { "Content-Type": "application/json" },
|
|
108
66
|
data: sendEvmAssetWithEndUserAccountBody,
|
|
67
|
+
params,
|
|
109
68
|
}, options);
|
|
110
69
|
};
|
|
111
70
|
/**
|
|
@@ -114,33 +73,35 @@ export const sendEvmAssetWithEndUserAccount = (projectId, userId, address, asset
|
|
|
114
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.
|
|
115
74
|
* @summary Sign an EIP-191 message with end user EVM account
|
|
116
75
|
*/
|
|
117
|
-
export const signEvmMessageWithEndUserAccount = (
|
|
76
|
+
export const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
|
|
118
77
|
return cdpApiClient({
|
|
119
|
-
url: `/v2/embedded-wallet-api/
|
|
78
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
120
79
|
method: "POST",
|
|
121
80
|
headers: { "Content-Type": "application/json" },
|
|
122
81
|
data: signEvmMessageWithEndUserAccountBody,
|
|
82
|
+
params,
|
|
123
83
|
}, options);
|
|
124
84
|
};
|
|
125
85
|
/**
|
|
126
86
|
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
|
|
127
87
|
* @summary Sign EIP-712 typed data with end user EVM account
|
|
128
88
|
*/
|
|
129
|
-
export const signEvmTypedDataWithEndUserAccount = (
|
|
89
|
+
export const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
|
|
130
90
|
return cdpApiClient({
|
|
131
|
-
url: `/v2/embedded-wallet-api/
|
|
91
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
132
92
|
method: "POST",
|
|
133
93
|
headers: { "Content-Type": "application/json" },
|
|
134
94
|
data: signEvmTypedDataWithEndUserAccountBody,
|
|
95
|
+
params,
|
|
135
96
|
}, options);
|
|
136
97
|
};
|
|
137
98
|
/**
|
|
138
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.
|
|
139
100
|
* @summary Revoke delegation for end user
|
|
140
101
|
*/
|
|
141
|
-
export const revokeDelegationForEndUser = (
|
|
102
|
+
export const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, options) => {
|
|
142
103
|
return cdpApiClient({
|
|
143
|
-
url: `/v2/embedded-wallet-api/
|
|
104
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
144
105
|
method: "DELETE",
|
|
145
106
|
headers: { "Content-Type": "application/json" },
|
|
146
107
|
data: revokeDelegationForEndUserBody,
|
|
@@ -158,48 +119,26 @@ This endpoint:
|
|
|
158
119
|
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
|
|
159
120
|
* @summary Create EIP-7702 delegation for end user EVM account
|
|
160
121
|
*/
|
|
161
|
-
export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
122
|
+
export const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
|
|
162
123
|
return cdpApiClient({
|
|
163
|
-
url: `/v2/embedded-wallet-api/
|
|
124
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
164
125
|
method: "POST",
|
|
165
126
|
headers: { "Content-Type": "application/json" },
|
|
166
127
|
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
128
|
+
params,
|
|
167
129
|
}, options);
|
|
168
130
|
};
|
|
169
131
|
/**
|
|
170
132
|
* Prepares, signs, and sends a user operation for an end user's Smart Account.
|
|
171
133
|
* @summary Send a user operation for end user Smart Account
|
|
172
134
|
*/
|
|
173
|
-
export const sendUserOperationWithEndUserAccount = (
|
|
135
|
+
export const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
|
|
174
136
|
return cdpApiClient({
|
|
175
|
-
url: `/v2/embedded-wallet-api/
|
|
137
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
176
138
|
method: "POST",
|
|
177
139
|
headers: { "Content-Type": "application/json" },
|
|
178
140
|
data: sendUserOperationWithEndUserAccountBody,
|
|
179
|
-
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Revokes an existing spend permission.
|
|
183
|
-
* @summary Revoke a spend permission
|
|
184
|
-
*/
|
|
185
|
-
export const revokeSpendPermissionWithEndUserAccount = (projectId, userId, address, revokeSpendPermissionRequest, options) => {
|
|
186
|
-
return cdpApiClient({
|
|
187
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
188
|
-
method: "POST",
|
|
189
|
-
headers: { "Content-Type": "application/json" },
|
|
190
|
-
data: revokeSpendPermissionRequest,
|
|
191
|
-
}, options);
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Signs an arbitrary 32 byte hash with the end user's given Solana account.
|
|
195
|
-
* @summary Sign a hash with end user Solana account
|
|
196
|
-
*/
|
|
197
|
-
export const signSolanaHashWithEndUserAccount = (projectId, userId, signSolanaHashWithEndUserAccountBody, options) => {
|
|
198
|
-
return cdpApiClient({
|
|
199
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/solana/sign`,
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers: { "Content-Type": "application/json" },
|
|
202
|
-
data: signSolanaHashWithEndUserAccountBody,
|
|
141
|
+
params,
|
|
203
142
|
}, options);
|
|
204
143
|
};
|
|
205
144
|
/**
|
|
@@ -207,12 +146,13 @@ export const signSolanaHashWithEndUserAccount = (projectId, userId, signSolanaHa
|
|
|
207
146
|
**WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
|
|
208
147
|
* @summary Sign a Base64 encoded message
|
|
209
148
|
*/
|
|
210
|
-
export const signSolanaMessageWithEndUserAccount = (
|
|
149
|
+
export const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
|
|
211
150
|
return cdpApiClient({
|
|
212
|
-
url: `/v2/embedded-wallet-api/
|
|
151
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
213
152
|
method: "POST",
|
|
214
153
|
headers: { "Content-Type": "application/json" },
|
|
215
154
|
data: signSolanaMessageWithEndUserAccountBody,
|
|
155
|
+
params,
|
|
216
156
|
}, options);
|
|
217
157
|
};
|
|
218
158
|
/**
|
|
@@ -225,12 +165,13 @@ The following transaction types are supported:
|
|
|
225
165
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
226
166
|
* @summary Sign a transaction with end user Solana account
|
|
227
167
|
*/
|
|
228
|
-
export const signSolanaTransactionWithEndUserAccount = (
|
|
168
|
+
export const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
229
169
|
return cdpApiClient({
|
|
230
|
-
url: `/v2/embedded-wallet-api/
|
|
170
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
231
171
|
method: "POST",
|
|
232
172
|
headers: { "Content-Type": "application/json" },
|
|
233
173
|
data: signSolanaTransactionWithEndUserAccountBody,
|
|
174
|
+
params,
|
|
234
175
|
}, options);
|
|
235
176
|
};
|
|
236
177
|
/**
|
|
@@ -250,12 +191,13 @@ The following Solana networks are supported:
|
|
|
250
191
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
251
192
|
* @summary Send a transaction with end user Solana account
|
|
252
193
|
*/
|
|
253
|
-
export const sendSolanaTransactionWithEndUserAccount = (
|
|
194
|
+
export const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
254
195
|
return cdpApiClient({
|
|
255
|
-
url: `/v2/embedded-wallet-api/
|
|
196
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
256
197
|
method: "POST",
|
|
257
198
|
headers: { "Content-Type": "application/json" },
|
|
258
199
|
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
200
|
+
params,
|
|
259
201
|
}, options);
|
|
260
202
|
};
|
|
261
203
|
/**
|
|
@@ -264,12 +206,13 @@ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5
|
|
|
264
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.
|
|
265
207
|
* @summary Send USDC on Solana
|
|
266
208
|
*/
|
|
267
|
-
export const sendSolanaAssetWithEndUserAccount = (
|
|
209
|
+
export const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
|
|
268
210
|
return cdpApiClient({
|
|
269
|
-
url: `/v2/embedded-wallet-api/
|
|
211
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
270
212
|
method: "POST",
|
|
271
213
|
headers: { "Content-Type": "application/json" },
|
|
272
214
|
data: sendSolanaAssetWithEndUserAccountBody,
|
|
215
|
+
params,
|
|
273
216
|
}, options);
|
|
274
217
|
};
|
|
275
|
-
//# 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,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AC3C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -31,12 +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`
|
|
38
|
-
- `payments.transfers.travel_rule_incomplete`
|
|
39
|
-
- `payments.transfers.travel_rule_completed`
|
|
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
|
|
40
40
|
- **No labels required** - enable the transfers webhook to monitor status transitions
|
|
41
41
|
|
|
42
42
|
**Wallet Events** - Wallet activity notifications:
|
|
@@ -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;AACjE,cAAc,kDAAkD,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,eAAe,MAAM,kDAAkD,CAAC;AACpF,OAAO,KAAK,eAAe,MAAM,oDAAoD,CAAC;AACtF,OAAO,KAAK,GAAG,MAAM,0CAA0C,CAAC;AAChE,OAAO,KAAK,gBAAgB,MAAM,sDAAsD,CAAC;AACzF,OAAO,KAAK,QAAQ,MAAM,oCAAoC,CAAC;AAC/D,OAAO,KAAK,gBAAgB,MAAM,sDAAsD,CAAC;AACzF,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,0CAA0C,CAAC;AACxE,OAAO,KAAK,QAAQ,MAAM,4CAA4C,CAAC;AACvE,OAAO,KAAK,MAAM,MAAM,gDAAgD,CAAC;AACzE,OAAO,KAAK,mBAAmB,MAAM,4DAA4D,CAAC;AAClG,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,MAAM;IACT,GAAG,mBAAmB;IACtB,GAAG,OAAO;IACV,GAAG,WAAW;IACd,GAAG,QAAQ;IACX,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,QAAQ;IACX,GAAG,gBAAgB;IACnB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,GAAG,MAAM;IACT,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,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
|
package/_types/client/cdp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -10,8 +10,6 @@ export interface CdpClientOptions {
|
|
|
10
10
|
apiKeySecret?: string;
|
|
11
11
|
/** The wallet secret. */
|
|
12
12
|
walletSecret?: string;
|
|
13
|
-
/** The CDP project ID. Required for end-user delegation operations (signing, sending). */
|
|
14
|
-
projectId?: string;
|
|
15
13
|
/** Whether to enable debugging. */
|
|
16
14
|
debugging?: boolean;
|
|
17
15
|
/** The host URL to connect to. */
|
|
@@ -28,7 +26,7 @@ export declare class CdpClient {
|
|
|
28
26
|
/** Namespace containing all Policies methods. */
|
|
29
27
|
policies: PoliciesClient;
|
|
30
28
|
/** Namespace containing all end user methods. */
|
|
31
|
-
endUser:
|
|
29
|
+
endUser: EndUserClient;
|
|
32
30
|
/** Namespace containing all webhook methods. */
|
|
33
31
|
webhooks: WebhooksClient;
|
|
34
32
|
/**
|
|
@@ -46,7 +44,6 @@ export declare class CdpClient {
|
|
|
46
44
|
* CDP_API_KEY_ID=your-api-key-id
|
|
47
45
|
* CDP_API_KEY_SECRET=your-api-key-secret
|
|
48
46
|
* CDP_WALLET_SECRET=your-wallet-secret
|
|
49
|
-
* CDP_PROJECT_ID=your-project-id
|
|
50
47
|
* ```
|
|
51
48
|
*
|
|
52
49
|
* Or passed as options to the constructor:
|
|
@@ -56,7 +53,6 @@ export declare class CdpClient {
|
|
|
56
53
|
* apiKeyId: "your-api-key-id",
|
|
57
54
|
* apiKeySecret: "your-api-key-secret",
|
|
58
55
|
* walletSecret: "your-wallet-secret",
|
|
59
|
-
* projectId: "your-project-id",
|
|
60
56
|
* });
|
|
61
57
|
* ```
|
|
62
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endUser.d.ts","sourceRoot":"","sources":["../../../client/end-user/endUser.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,
|
|
1
|
+
{"version":3,"file":"endUser.d.ts","sourceRoot":"","sources":["../../../client/end-user/endUser.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,kB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oB,GAAG,OAAO,CAAC,cAAc,CAAC;CA2D5E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateEndUserBody, ListEndUsersParams, ImportEndUserBodyKeyType, AuthenticationMethods, AddEndUserEvmAccount201, AddEndUserEvmSmartAccount201, AddEndUserSolanaAccount201, EndUser as OpenAPIEndUser,
|
|
1
|
+
import type { CreateEndUserBody, ListEndUsersParams, ImportEndUserBodyKeyType, AuthenticationMethods, AddEndUserEvmAccount201, AddEndUserEvmSmartAccount201, AddEndUserSolanaAccount201, EndUser as OpenAPIEndUser, SignEvmTransactionWithEndUserAccount200, SignEvmMessageWithEndUserAccount200, SignEvmTypedDataWithEndUserAccount200, SendEvmTransactionWithEndUserAccount200, SendEvmTransactionWithEndUserAccountBodyNetwork, SendEvmAssetWithEndUserAccount200, SendEvmAssetWithEndUserAccountBodyNetwork, SendUserOperationWithEndUserAccountResult, EvmUserOperationNetwork, EvmCall, CreateEvmEip7702DelegationWithEndUserAccount201, EvmEip7702DelegationNetwork, SignSolanaMessageWithEndUserAccount200, SignSolanaTransactionWithEndUserAccount200, SendSolanaTransactionWithEndUserAccount200, SendSolanaTransactionWithEndUserAccountBodyNetwork, SendSolanaAssetWithEndUserAccount200, SendSolanaAssetWithEndUserAccountBodyNetwork, EIP712Message } from "../../openapi-client/index.js";
|
|
2
2
|
import type { Prettify } from "../../types/utils.js";
|
|
3
3
|
/**
|
|
4
4
|
* The options for validating an access token.
|
|
@@ -108,21 +108,6 @@ export interface RevokeDelegationForEndUserOptions {
|
|
|
108
108
|
*/
|
|
109
109
|
userId: string;
|
|
110
110
|
}
|
|
111
|
-
/**
|
|
112
|
-
* The options for signing an EVM hash on behalf of an end user.
|
|
113
|
-
*/
|
|
114
|
-
export interface SignEvmHashOptions {
|
|
115
|
-
/** The unique identifier of the end user. */
|
|
116
|
-
userId: string;
|
|
117
|
-
/** The 32-byte hash to sign, hex-encoded. */
|
|
118
|
-
hash: string;
|
|
119
|
-
/** The EVM address to sign with. */
|
|
120
|
-
address: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The result of signing an EVM hash on behalf of an end user.
|
|
124
|
-
*/
|
|
125
|
-
export type SignEvmHashResult = SignEvmHashWithEndUserAccount200;
|
|
126
111
|
/**
|
|
127
112
|
* The options for signing an EVM transaction on behalf of an end user.
|
|
128
113
|
*/
|
|
@@ -250,21 +235,6 @@ export interface CreateEvmEip7702DelegationOptions {
|
|
|
250
235
|
* The result of creating an EVM EIP-7702 delegation on behalf of an end user.
|
|
251
236
|
*/
|
|
252
237
|
export type CreateEvmEip7702DelegationForEndUserResult = CreateEvmEip7702DelegationWithEndUserAccount201;
|
|
253
|
-
/**
|
|
254
|
-
* The options for signing a Solana hash on behalf of an end user.
|
|
255
|
-
*/
|
|
256
|
-
export interface SignSolanaHashOptions {
|
|
257
|
-
/** The unique identifier of the end user. */
|
|
258
|
-
userId: string;
|
|
259
|
-
/** The 32-byte hash to sign. */
|
|
260
|
-
hash: string;
|
|
261
|
-
/** The Solana address to sign with. */
|
|
262
|
-
address: string;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* The result of signing a Solana hash on behalf of an end user.
|
|
266
|
-
*/
|
|
267
|
-
export type SignSolanaHashResult = SignSolanaHashWithEndUserAccount200;
|
|
268
238
|
/**
|
|
269
239
|
* The options for signing a Solana message on behalf of an end user.
|
|
270
240
|
*/
|
|
@@ -335,15 +305,6 @@ export interface SendSolanaAssetOptions {
|
|
|
335
305
|
* The result of sending a Solana asset on behalf of an end user.
|
|
336
306
|
*/
|
|
337
307
|
export type SendSolanaAssetResult = SendSolanaAssetWithEndUserAccount200;
|
|
338
|
-
/**
|
|
339
|
-
* The options for signing an EVM hash on an EndUser object.
|
|
340
|
-
*/
|
|
341
|
-
export interface AccountSignEvmHashOptions {
|
|
342
|
-
/** The 32-byte hash to sign, hex-encoded. */
|
|
343
|
-
hash: string;
|
|
344
|
-
/** The EVM address to sign with. Uses the first EVM account if not provided. */
|
|
345
|
-
address?: string;
|
|
346
|
-
}
|
|
347
308
|
/**
|
|
348
309
|
* The options for signing an EVM transaction on an EndUser object.
|
|
349
310
|
*/
|
|
@@ -429,15 +390,6 @@ export interface AccountCreateEvmEip7702DelegationOptions {
|
|
|
429
390
|
/** Whether to enable spend permissions for the delegation. */
|
|
430
391
|
enableSpendPermissions?: boolean;
|
|
431
392
|
}
|
|
432
|
-
/**
|
|
433
|
-
* The options for signing a Solana hash on an EndUser object.
|
|
434
|
-
*/
|
|
435
|
-
export interface AccountSignSolanaHashOptions {
|
|
436
|
-
/** The 32-byte hash to sign. */
|
|
437
|
-
hash: string;
|
|
438
|
-
/** The Solana address to sign with. Uses the first Solana account if not provided. */
|
|
439
|
-
address?: string;
|
|
440
|
-
}
|
|
441
393
|
/**
|
|
442
394
|
* The options for signing a Solana message on an EndUser object.
|
|
443
395
|
*/
|
|
@@ -564,13 +516,6 @@ export type EndUserAccountActions = {
|
|
|
564
516
|
* ```
|
|
565
517
|
*/
|
|
566
518
|
revokeDelegation: () => Promise<void>;
|
|
567
|
-
/**
|
|
568
|
-
* Signs an EVM hash on behalf of this end user using a delegation.
|
|
569
|
-
*
|
|
570
|
-
* @param options - The signing options.
|
|
571
|
-
* @returns A promise that resolves to the signature.
|
|
572
|
-
*/
|
|
573
|
-
signEvmHash: (options: AccountSignEvmHashOptions) => Promise<SignEvmHashResult>;
|
|
574
519
|
/**
|
|
575
520
|
* Signs an EVM transaction on behalf of this end user using a delegation.
|
|
576
521
|
*
|
|
@@ -620,13 +565,6 @@ export type EndUserAccountActions = {
|
|
|
620
565
|
* @returns A promise that resolves to the delegation operation ID.
|
|
621
566
|
*/
|
|
622
567
|
createEvmEip7702Delegation: (options: AccountCreateEvmEip7702DelegationOptions) => Promise<CreateEvmEip7702DelegationForEndUserResult>;
|
|
623
|
-
/**
|
|
624
|
-
* Signs a Solana hash on behalf of this end user using a delegation.
|
|
625
|
-
*
|
|
626
|
-
* @param options - The signing options.
|
|
627
|
-
* @returns A promise that resolves to the signature.
|
|
628
|
-
*/
|
|
629
|
-
signSolanaHash: (options: AccountSignSolanaHashOptions) => Promise<SignSolanaHashResult>;
|
|
630
568
|
/**
|
|
631
569
|
* Signs a Solana message on behalf of this end user using a delegation.
|
|
632
570
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endUser.types.d.ts","sourceRoot":"","sources":["../../../client/end-user/endUser.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,OAAO,IAAI,cAAc,EACzB,
|
|
1
|
+
{"version":3,"file":"endUser.types.d.ts","sourceRoot":"","sources":["../../../client/end-user/endUser.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,OAAO,IAAI,cAAc,EACzB,uCAAuC,EACvC,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,+CAA+C,EAC/C,iCAAiC,EACjC,yCAAyC,EACzC,yCAAyC,EACzC,uBAAuB,EACvB,OAAO,EACP,+CAA+C,EAC/C,2BAA2B,EAC3B,sCAAsC,EACtC,0CAA0C,EAC1C,0CAA0C,EAC1C,kDAAkD,EAClD,oCAAoC,EACpC,4CAA4C,EAC5C,aAAa,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,mB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,CAAC;IAEzF;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,OAAO,EAAE,8BAA8B,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAI/F;;;;;OAKG;IACH,kBAAkB,EAAE,CAClB,OAAO,EAAE,gCAAgC,KACtC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEnF;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAIlG;;;;;OAKG;IACH,0BAA0B,EAAE,CAC1B,OAAO,EAAE,wCAAwC,KAC9C,OAAO,CAAC,0CAA0C,CAAC,CAAC;IAIzD;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAElG;;;;;OAKG;IACH,qBAAqB,EAAE,CACrB,OAAO,EAAE,mCAAmC,KACzC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAI1C;;;;;OAKG;IACH,qBAAqB,EAAE,CACrB,OAAO,EAAE,mCAAmC,KACzC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAE1C;;;;;OAKG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,6BAA6B,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC7F,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,qBAAqB,CAAC,CAAC"}
|
|
@@ -6,8 +6,6 @@ import type { CdpOpenApiClientType, EndUser as OpenAPIEndUser } from "../../open
|
|
|
6
6
|
export type ToEndUserAccountOptions = {
|
|
7
7
|
/** The end user from the API response. */
|
|
8
8
|
endUser: OpenAPIEndUser;
|
|
9
|
-
/** The CDP project ID. Required for delegation operations (signing, sending). */
|
|
10
|
-
projectId?: string;
|
|
11
9
|
};
|
|
12
10
|
/**
|
|
13
11
|
* Creates an EndUserAccount instance with actions from an existing OpenAPI EndUser.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toEndUserAccount.d.ts","sourceRoot":"","sources":["../../../client/end-user/toEndUserAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,
|
|
1
|
+
{"version":3,"file":"toEndUserAccount.d.ts","sourceRoot":"","sources":["../../../client/end-user/toEndUserAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EA2Bf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACpB,OAAO,IAAI,cAAc,EAC1B,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0CAA0C;IAC1C,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAqDF;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,uBAAuB,GAC/B,cAAc,CAoLhB"}
|