@coinbase/cdp-api-client 0.0.103 → 0.0.104

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/dist/esm/index.js CHANGED
@@ -1,96 +1,99 @@
1
1
  import { Analytics as e } from "./index2.js";
2
2
  import "./index3.js";
3
3
  import { VERSION as t } from "./index4.js";
4
- import { DeveloperJWTAuthenticationType as s, EmailAuthenticationType as c, EndUserOnrampFeeType as E, EndUserOnrampOrderStatus as d, ErrorType as p, EvmEip7702DelegationNetwork as A, EvmEip7702DelegationOperationStatus as m, EvmSwapsNetwork as u, EvmUserOperationNetwork as h, EvmUserOperationStatus as U, InitiateEmailAuthenticationNextStepType as l, InitiateEmailAuthenticationRequestType as S, InitiateSiweAuthenticationRequestType as g, InitiateSmsAuthenticationNextStepType as y, InitiateSmsAuthenticationRequestType as f, InitiateSmsMfaEnrollmentType as v, InitiateTotpMfaEnrollmentType as T, IosAttestationRegistrationResponsePlatform as W, MfaMethod as w, Network as O, OAuth2ProviderType as k, RefreshAccessTokenBodyGrantType as M, SendEvmAssetWithEndUserAccountBodyNetwork as I, SendEvmTransactionWithEndUserAccountBodyNetwork as P, SendSolanaAssetWithEndUserAccountBodyNetwork as N, SendSolanaTransactionWithEndUserAccountBodyNetwork as D, SiweAuthenticationType as x, SmsAuthenticationType as C, SpendPermissionNetwork as R } from "./index5.js";
5
- import { authenticateUserWithCustomAuth as F, createDelegationForEndUser as V, createEndUserApplePayOnrampOrder as q, createEndUserEvmAccount as H, createEndUserEvmSmartAccount as b, createEndUserEvmSwap as j, createEndUserSolanaAccount as G, createEvmEip7702DelegationWithEndUserAccount as J, createSpendPermissionWithEndUserAccount as _, exportEndUserEvmAccount as z, exportEndUserSolanaAccount as K, generateAttestationChallenge as L, getAuthenticatedEndUser as Q, getDelegationForEndUser as X, getEndUserEvmSwapPrice as Y, getEvmEip7702DelegationOperationByIdWithEndUserAccount as Z, getMfaConfig as $, getProjectConfig as ee, getUserOperationWithEndUserAccount as te, initiateAuthentication as ne, initiateMfaEnrollment as re, initiateMfaEnrollment2 as ie, initiateMfaVerification as oe, listSpendPermissionsWithEndUserAccount as ae, logOutEndUser as se, recordMfaEnrollmentPrompted as ce, refreshAccessToken as Ee, registerAttestation as de, registerTemporaryWalletSecret as pe, revokeDelegationForEndUser as Ae, revokeSpendPermissionWithEndUserAccount as me, sendEvmAssetWithEndUserAccount as ue, sendEvmTransactionWithEndUserAccount as he, sendSolanaAssetWithEndUserAccount as Ue, sendSolanaTransactionWithEndUserAccount as le, sendUserOperationWithEndUserAccount as Se, signEvmHashWithEndUserAccount as ge, signEvmMessageWithEndUserAccount as ye, signEvmTransactionWithEndUserAccount as fe, signEvmTypedDataWithEndUserAccount as ve, signSolanaHashWithEndUserAccount as Te, signSolanaMessageWithEndUserAccount as We, signSolanaTransactionWithEndUserAccount as we, submitMfaEnrollment as Oe, submitMfaVerification as ke, verifyEmailAuthentication as Me, verifyOAuthCode as Ie, verifyOAuthEndUserIdentity as Pe, verifySiweAuthentication as Ne, verifySmsAuthentication as De } from "./index6.js";
6
- import { configureCdpApiClient as Ce, setAuthManager as Re } from "./index7.js";
7
- import { APIError as Fe, HttpErrorType as Ve, UnknownApiError as qe, UnknownError as He, isOpenAPIError as be } from "./index8.js";
4
+ import { DeveloperJWTAuthenticationType as s, EmailAuthenticationType as c, EndUserOnrampFeeType as E, EndUserOnrampOrderStatus as d, ErrorType as A, EvmEip7702DelegationNetwork as p, EvmEip7702DelegationOperationStatus as u, EvmSwapsNetwork as m, EvmUserOperationNetwork as h, EvmUserOperationStatus as U, InitiateEmailAuthenticationNextStepType as l, InitiateEmailAuthenticationRequestType as g, InitiateSiweAuthenticationRequestType as S, InitiateSmsAuthenticationNextStepType as y, InitiateSmsAuthenticationRequestType as v, InitiateSmsMfaEnrollmentType as f, InitiateTotpMfaEnrollmentType as T, IosAttestationRegistrationResponsePlatform as W, MfaMethod as k, Network as w, OAuth2ProviderType as O, RefreshAccessTokenBodyGrantType as M, SendEvmAssetWithEndUserAccountBodyNetwork as I, SendEvmTransactionWithEndUserAccountBodyNetwork as P, SendSolanaAssetWithEndUserAccountBodyNetwork as D, SendSolanaTransactionWithEndUserAccountBodyNetwork as N, SiweAuthenticationType as x, SmsAuthenticationType as C, SpendPermissionNetwork as F } from "./index5.js";
5
+ import { authenticateUserWithCustomAuth as B, createDelegationForEndUser as V, createDelegationForEndUserAccount as q, createEndUserApplePayOnrampOrder as H, createEndUserEvmAccount as b, createEndUserEvmSmartAccount as j, createEndUserEvmSwap as G, createEndUserSolanaAccount as J, createEvmEip7702DelegationWithEndUserAccount as _, createSpendPermissionWithEndUserAccount as z, exportEndUserEvmAccount as K, exportEndUserSolanaAccount as L, generateAttestationChallenge as Q, getAuthenticatedEndUser as X, getDelegationForEndUser as Y, getDelegationForEndUserAccount as Z, getEndUserEvmSwapPrice as $, getEvmEip7702DelegationOperationByIdWithEndUserAccount as ee, getMfaConfig as te, getProjectConfig as ne, getUserOperationWithEndUserAccount as re, initiateAuthentication as ie, initiateMfaEnrollment as oe, initiateMfaEnrollment2 as ae, initiateMfaVerification as se, listSpendPermissionsWithEndUserAccount as ce, logOutEndUser as Ee, recordMfaEnrollmentPrompted as de, refreshAccessToken as Ae, registerAttestation as pe, registerTemporaryWalletSecret as ue, revokeDelegationForEndUser as me, revokeDelegationForEndUserAccount as he, revokeSpendPermissionWithEndUserAccount as Ue, sendEvmAssetWithEndUserAccount as le, sendEvmTransactionWithEndUserAccount as ge, sendSolanaAssetWithEndUserAccount as Se, sendSolanaTransactionWithEndUserAccount as ye, sendUserOperationWithEndUserAccount as ve, signEvmHashWithEndUserAccount as fe, signEvmMessageWithEndUserAccount as Te, signEvmTransactionWithEndUserAccount as We, signEvmTypedDataWithEndUserAccount as ke, signSolanaHashWithEndUserAccount as we, signSolanaMessageWithEndUserAccount as Oe, signSolanaTransactionWithEndUserAccount as Me, submitMfaEnrollment as Ie, submitMfaVerification as Pe, verifyEmailAuthentication as De, verifyOAuthCode as Ne, verifyOAuthEndUserIdentity as xe, verifySiweAuthentication as Ce, verifySmsAuthentication as Fe } from "./index6.js";
6
+ import { configureCdpApiClient as Be, setAuthManager as Ve } from "./index7.js";
7
+ import { APIError as He, HttpErrorType as be, UnknownApiError as je, UnknownError as Ge, isOpenAPIError as Je } from "./index8.js";
8
8
  e.registerPackageVersion("api_client", t);
9
9
  export {
10
- Fe as APIError,
10
+ He as APIError,
11
11
  s as DeveloperJWTAuthenticationType,
12
12
  c as EmailAuthenticationType,
13
13
  E as EndUserOnrampFeeType,
14
14
  d as EndUserOnrampOrderStatus,
15
- p as ErrorType,
16
- A as EvmEip7702DelegationNetwork,
17
- m as EvmEip7702DelegationOperationStatus,
18
- u as EvmSwapsNetwork,
15
+ A as ErrorType,
16
+ p as EvmEip7702DelegationNetwork,
17
+ u as EvmEip7702DelegationOperationStatus,
18
+ m as EvmSwapsNetwork,
19
19
  h as EvmUserOperationNetwork,
20
20
  U as EvmUserOperationStatus,
21
- Ve as HttpErrorType,
21
+ be as HttpErrorType,
22
22
  l as InitiateEmailAuthenticationNextStepType,
23
- S as InitiateEmailAuthenticationRequestType,
24
- g as InitiateSiweAuthenticationRequestType,
23
+ g as InitiateEmailAuthenticationRequestType,
24
+ S as InitiateSiweAuthenticationRequestType,
25
25
  y as InitiateSmsAuthenticationNextStepType,
26
- f as InitiateSmsAuthenticationRequestType,
27
- v as InitiateSmsMfaEnrollmentType,
26
+ v as InitiateSmsAuthenticationRequestType,
27
+ f as InitiateSmsMfaEnrollmentType,
28
28
  T as InitiateTotpMfaEnrollmentType,
29
29
  W as IosAttestationRegistrationResponsePlatform,
30
- w as MfaMethod,
31
- O as Network,
32
- k as OAuth2ProviderType,
30
+ k as MfaMethod,
31
+ w as Network,
32
+ O as OAuth2ProviderType,
33
33
  M as RefreshAccessTokenBodyGrantType,
34
34
  I as SendEvmAssetWithEndUserAccountBodyNetwork,
35
35
  P as SendEvmTransactionWithEndUserAccountBodyNetwork,
36
- N as SendSolanaAssetWithEndUserAccountBodyNetwork,
37
- D as SendSolanaTransactionWithEndUserAccountBodyNetwork,
36
+ D as SendSolanaAssetWithEndUserAccountBodyNetwork,
37
+ N as SendSolanaTransactionWithEndUserAccountBodyNetwork,
38
38
  x as SiweAuthenticationType,
39
39
  C as SmsAuthenticationType,
40
- R as SpendPermissionNetwork,
41
- qe as UnknownApiError,
42
- He as UnknownError,
43
- F as authenticateUserWithCustomAuth,
44
- Ce as configureCdpApiClient,
40
+ F as SpendPermissionNetwork,
41
+ je as UnknownApiError,
42
+ Ge as UnknownError,
43
+ B as authenticateUserWithCustomAuth,
44
+ Be as configureCdpApiClient,
45
45
  V as createDelegationForEndUser,
46
- q as createEndUserApplePayOnrampOrder,
47
- H as createEndUserEvmAccount,
48
- b as createEndUserEvmSmartAccount,
49
- j as createEndUserEvmSwap,
50
- G as createEndUserSolanaAccount,
51
- J as createEvmEip7702DelegationWithEndUserAccount,
52
- _ as createSpendPermissionWithEndUserAccount,
53
- z as exportEndUserEvmAccount,
54
- K as exportEndUserSolanaAccount,
55
- L as generateAttestationChallenge,
56
- Q as getAuthenticatedEndUser,
57
- X as getDelegationForEndUser,
58
- Y as getEndUserEvmSwapPrice,
59
- Z as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
60
- $ as getMfaConfig,
61
- ee as getProjectConfig,
62
- te as getUserOperationWithEndUserAccount,
63
- ne as initiateAuthentication,
64
- re as initiateMfaEnrollment,
65
- ie as initiateMfaEnrollment2,
66
- oe as initiateMfaVerification,
67
- be as isOpenAPIError,
68
- ae as listSpendPermissionsWithEndUserAccount,
69
- se as logOutEndUser,
70
- ce as recordMfaEnrollmentPrompted,
71
- Ee as refreshAccessToken,
72
- de as registerAttestation,
73
- pe as registerTemporaryWalletSecret,
74
- Ae as revokeDelegationForEndUser,
75
- me as revokeSpendPermissionWithEndUserAccount,
76
- ue as sendEvmAssetWithEndUserAccount,
77
- he as sendEvmTransactionWithEndUserAccount,
78
- Ue as sendSolanaAssetWithEndUserAccount,
79
- le as sendSolanaTransactionWithEndUserAccount,
80
- Se as sendUserOperationWithEndUserAccount,
81
- Re as setAuthManager,
82
- ge as signEvmHashWithEndUserAccount,
83
- ye as signEvmMessageWithEndUserAccount,
84
- fe as signEvmTransactionWithEndUserAccount,
85
- ve as signEvmTypedDataWithEndUserAccount,
86
- Te as signSolanaHashWithEndUserAccount,
87
- We as signSolanaMessageWithEndUserAccount,
88
- we as signSolanaTransactionWithEndUserAccount,
89
- Oe as submitMfaEnrollment,
90
- ke as submitMfaVerification,
91
- Me as verifyEmailAuthentication,
92
- Ie as verifyOAuthCode,
93
- Pe as verifyOAuthEndUserIdentity,
94
- Ne as verifySiweAuthentication,
95
- De as verifySmsAuthentication
46
+ q as createDelegationForEndUserAccount,
47
+ H as createEndUserApplePayOnrampOrder,
48
+ b as createEndUserEvmAccount,
49
+ j as createEndUserEvmSmartAccount,
50
+ G as createEndUserEvmSwap,
51
+ J as createEndUserSolanaAccount,
52
+ _ as createEvmEip7702DelegationWithEndUserAccount,
53
+ z as createSpendPermissionWithEndUserAccount,
54
+ K as exportEndUserEvmAccount,
55
+ L as exportEndUserSolanaAccount,
56
+ Q as generateAttestationChallenge,
57
+ X as getAuthenticatedEndUser,
58
+ Y as getDelegationForEndUser,
59
+ Z as getDelegationForEndUserAccount,
60
+ $ as getEndUserEvmSwapPrice,
61
+ ee as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
62
+ te as getMfaConfig,
63
+ ne as getProjectConfig,
64
+ re as getUserOperationWithEndUserAccount,
65
+ ie as initiateAuthentication,
66
+ oe as initiateMfaEnrollment,
67
+ ae as initiateMfaEnrollment2,
68
+ se as initiateMfaVerification,
69
+ Je as isOpenAPIError,
70
+ ce as listSpendPermissionsWithEndUserAccount,
71
+ Ee as logOutEndUser,
72
+ de as recordMfaEnrollmentPrompted,
73
+ Ae as refreshAccessToken,
74
+ pe as registerAttestation,
75
+ ue as registerTemporaryWalletSecret,
76
+ me as revokeDelegationForEndUser,
77
+ he as revokeDelegationForEndUserAccount,
78
+ Ue as revokeSpendPermissionWithEndUserAccount,
79
+ le as sendEvmAssetWithEndUserAccount,
80
+ ge as sendEvmTransactionWithEndUserAccount,
81
+ Se as sendSolanaAssetWithEndUserAccount,
82
+ ye as sendSolanaTransactionWithEndUserAccount,
83
+ ve as sendUserOperationWithEndUserAccount,
84
+ Ve as setAuthManager,
85
+ fe as signEvmHashWithEndUserAccount,
86
+ Te as signEvmMessageWithEndUserAccount,
87
+ We as signEvmTransactionWithEndUserAccount,
88
+ ke as signEvmTypedDataWithEndUserAccount,
89
+ we as signSolanaHashWithEndUserAccount,
90
+ Oe as signSolanaMessageWithEndUserAccount,
91
+ Me as signSolanaTransactionWithEndUserAccount,
92
+ Ie as submitMfaEnrollment,
93
+ Pe as submitMfaVerification,
94
+ De as verifyEmailAuthentication,
95
+ Ne as verifyOAuthCode,
96
+ xe as verifyOAuthEndUserIdentity,
97
+ Ce as verifySiweAuthentication,
98
+ Fe as verifySmsAuthentication
96
99
  };
@@ -1,4 +1,4 @@
1
- const o = "0.0.103";
1
+ const o = "0.0.104";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -83,10 +83,10 @@ const i = (e, t) => d(
83
83
  ), w = (e, t) => d(
84
84
  { url: `/v2/embedded-wallet-api/projects/${e}/config`, method: "GET" },
85
85
  t
86
- ), y = (e, t) => d(
86
+ ), b = (e, t) => d(
87
87
  { url: `/v2/embedded-wallet-api/projects/${e}/auth/mfa`, method: "GET" },
88
88
  t
89
- ), b = (e, t, n) => d(
89
+ ), y = (e, t, n) => d(
90
90
  { url: `/v2/embedded-wallet-api/end-users/${e}`, method: "GET", params: t },
91
91
  n
92
92
  ), S = (e, t, n, a) => d(
@@ -98,7 +98,7 @@ const i = (e, t) => d(
98
98
  params: n
99
99
  },
100
100
  a
101
- ), j = (e, t, n, a) => d(
101
+ ), g = (e, t, n, a) => d(
102
102
  {
103
103
  url: `/v2/embedded-wallet-api/end-users/${e}/evm`,
104
104
  method: "POST",
@@ -107,7 +107,7 @@ const i = (e, t) => d(
107
107
  params: n
108
108
  },
109
109
  a
110
- ), P = (e, t, n, a) => d(
110
+ ), j = (e, t, n, a) => d(
111
111
  {
112
112
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/sign`,
113
113
  method: "POST",
@@ -116,7 +116,7 @@ const i = (e, t) => d(
116
116
  params: n
117
117
  },
118
118
  a
119
- ), g = (e, t, n, a) => d(
119
+ ), P = (e, t, n, a) => d(
120
120
  {
121
121
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/sign/transaction`,
122
122
  method: "POST",
@@ -179,7 +179,7 @@ const i = (e, t) => d(
179
179
  params: n
180
180
  },
181
181
  a
182
- ), M = (e, t, n) => d(
182
+ ), D = (e, t, n) => d(
183
183
  { url: `/v2/embedded-wallet-api/end-users/${e}/delegation`, method: "GET", params: t },
184
184
  n
185
185
  ), G = (e, t, n, a) => d(
@@ -191,7 +191,32 @@ const i = (e, t) => d(
191
191
  params: n
192
192
  },
193
193
  a
194
- ), D = (e, t, n, a) => d(
194
+ ), M = (e, t, n, a, r) => d(
195
+ {
196
+ url: `/v2/embedded-wallet-api/end-users/${e}/address/${t}/delegation`,
197
+ method: "POST",
198
+ headers: { "Content-Type": "application/json" },
199
+ data: n,
200
+ params: a
201
+ },
202
+ r
203
+ ), F = (e, t, n, a) => d(
204
+ {
205
+ url: `/v2/embedded-wallet-api/end-users/${e}/address/${t}/delegation`,
206
+ method: "GET",
207
+ params: n
208
+ },
209
+ a
210
+ ), k = (e, t, n, a, r) => d(
211
+ {
212
+ url: `/v2/embedded-wallet-api/end-users/${e}/address/${t}/delegation`,
213
+ method: "DELETE",
214
+ headers: { "Content-Type": "application/json" },
215
+ data: n,
216
+ params: a
217
+ },
218
+ r
219
+ ), x = (e, t, n, a) => d(
195
220
  {
196
221
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/eip7702/delegation`,
197
222
  method: "POST",
@@ -200,14 +225,14 @@ const i = (e, t) => d(
200
225
  params: n
201
226
  },
202
227
  a
203
- ), x = (e, t, n, a) => d(
228
+ ), H = (e, t, n, a) => d(
204
229
  {
205
230
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/eip7702/delegation-operations/${t}`,
206
231
  method: "GET",
207
232
  params: n
208
233
  },
209
234
  a
210
- ), k = (e, t, n, a) => d(
235
+ ), I = (e, t, n, a) => d(
211
236
  {
212
237
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts`,
213
238
  method: "POST",
@@ -216,14 +241,14 @@ const i = (e, t) => d(
216
241
  params: n
217
242
  },
218
243
  a
219
- ), F = (e, t, n, a, r) => d(
244
+ ), L = (e, t, n, a, r) => d(
220
245
  {
221
246
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/user-operations/${n}`,
222
247
  method: "GET",
223
248
  params: a
224
249
  },
225
250
  r
226
- ), H = (e, t, n, a, r) => d(
251
+ ), V = (e, t, n, a, r) => d(
227
252
  {
228
253
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/send`,
229
254
  method: "POST",
@@ -232,7 +257,7 @@ const i = (e, t) => d(
232
257
  params: a
233
258
  },
234
259
  r
235
- ), I = (e, t, n, a, r) => d(
260
+ ), B = (e, t, n, a, r) => d(
236
261
  {
237
262
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/spend-permissions`,
238
263
  method: "POST",
@@ -241,14 +266,14 @@ const i = (e, t) => d(
241
266
  params: a
242
267
  },
243
268
  r
244
- ), V = (e, t, n, a) => d(
269
+ ), q = (e, t, n, a) => d(
245
270
  {
246
271
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/spend-permissions/list`,
247
272
  method: "GET",
248
273
  params: n
249
274
  },
250
275
  a
251
- ), B = (e, t, n, a, r) => d(
276
+ ), z = (e, t, n, a, r) => d(
252
277
  {
253
278
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/spend-permissions/revoke`,
254
279
  method: "POST",
@@ -257,10 +282,10 @@ const i = (e, t) => d(
257
282
  params: a
258
283
  },
259
284
  r
260
- ), L = (e, t, n) => d(
285
+ ), J = (e, t, n) => d(
261
286
  { url: `/v2/embedded-wallet-api/end-users/${e}/evm/swaps/price`, method: "GET", params: t },
262
287
  n
263
- ), q = (e, t, n, a) => d(
288
+ ), K = (e, t, n, a) => d(
264
289
  {
265
290
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/swaps`,
266
291
  method: "POST",
@@ -269,7 +294,7 @@ const i = (e, t) => d(
269
294
  params: n
270
295
  },
271
296
  a
272
- ), z = (e, t, n, a) => d(
297
+ ), N = (e, t, n, a) => d(
273
298
  {
274
299
  url: `/v2/embedded-wallet-api/end-users/${e}/solana`,
275
300
  method: "POST",
@@ -278,7 +303,7 @@ const i = (e, t) => d(
278
303
  params: n
279
304
  },
280
305
  a
281
- ), J = (e, t, n, a) => d(
306
+ ), Q = (e, t, n, a) => d(
282
307
  {
283
308
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/export`,
284
309
  method: "POST",
@@ -287,7 +312,7 @@ const i = (e, t) => d(
287
312
  params: n
288
313
  },
289
314
  a
290
- ), K = (e, t, n, a) => d(
315
+ ), R = (e, t, n, a) => d(
291
316
  {
292
317
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/sign`,
293
318
  method: "POST",
@@ -296,7 +321,7 @@ const i = (e, t) => d(
296
321
  params: n
297
322
  },
298
323
  a
299
- ), N = (e, t, n, a) => d(
324
+ ), X = (e, t, n, a) => d(
300
325
  {
301
326
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/sign/message`,
302
327
  method: "POST",
@@ -305,7 +330,7 @@ const i = (e, t) => d(
305
330
  params: n
306
331
  },
307
332
  a
308
- ), Q = (e, t, n, a) => d(
333
+ ), Y = (e, t, n, a) => d(
309
334
  {
310
335
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/sign/transaction`,
311
336
  method: "POST",
@@ -314,7 +339,7 @@ const i = (e, t) => d(
314
339
  params: n
315
340
  },
316
341
  a
317
- ), R = (e, t, n, a) => d(
342
+ ), Z = (e, t, n, a) => d(
318
343
  {
319
344
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/send/transaction`,
320
345
  method: "POST",
@@ -323,7 +348,7 @@ const i = (e, t) => d(
323
348
  params: n
324
349
  },
325
350
  a
326
- ), X = (e, t, n, a, r, s) => d(
351
+ ), _ = (e, t, n, a, r, s) => d(
327
352
  {
328
353
  url: `/v2/embedded-wallet-api/end-users/${e}/solana/${t}/send/${n}`,
329
354
  method: "POST",
@@ -332,7 +357,7 @@ const i = (e, t) => d(
332
357
  params: r
333
358
  },
334
359
  s
335
- ), Y = (e, t, n, a) => d(
360
+ ), ee = (e, t, n, a) => d(
336
361
  {
337
362
  url: `/v2/embedded-wallet-api/end-users/${e}/onramp/orders`,
338
363
  method: "POST",
@@ -341,14 +366,14 @@ const i = (e, t) => d(
341
366
  params: n
342
367
  },
343
368
  a
344
- ), Z = (e, t, n, a) => d(
369
+ ), te = (e, t, n, a) => d(
345
370
  {
346
371
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/init`,
347
372
  method: "POST",
348
373
  params: n
349
374
  },
350
375
  a
351
- ), _ = (e, t, n, a, r) => d(
376
+ ), ne = (e, t, n, a, r) => d(
352
377
  {
353
378
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/initiate`,
354
379
  method: "POST",
@@ -357,7 +382,7 @@ const i = (e, t) => d(
357
382
  params: a
358
383
  },
359
384
  r
360
- ), ee = (e, t, n, a, r) => d(
385
+ ), ae = (e, t, n, a, r) => d(
361
386
  {
362
387
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/submit`,
363
388
  method: "POST",
@@ -366,14 +391,14 @@ const i = (e, t) => d(
366
391
  params: a
367
392
  },
368
393
  r
369
- ), te = (e, t, n, a) => d(
394
+ ), de = (e, t, n, a) => d(
370
395
  {
371
396
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/verify/${t}/init`,
372
397
  method: "POST",
373
398
  params: n
374
399
  },
375
400
  a
376
- ), ne = (e, t, n, a, r) => d(
401
+ ), re = (e, t, n, a, r) => d(
377
402
  {
378
403
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/verify/${t}/submit`,
379
404
  method: "POST",
@@ -382,56 +407,59 @@ const i = (e, t) => d(
382
407
  params: a
383
408
  },
384
409
  r
385
- ), ae = (e, t, n) => d(
410
+ ), se = (e, t, n) => d(
386
411
  { url: `/v2/embedded-wallet-api/end-users/${e}/mfa/prompt`, method: "PUT", params: t },
387
412
  n
388
413
  );
389
414
  export {
390
415
  E as authenticateUserWithCustomAuth,
391
416
  W as createDelegationForEndUser,
392
- Y as createEndUserApplePayOnrampOrder,
393
- j as createEndUserEvmAccount,
394
- k as createEndUserEvmSmartAccount,
395
- q as createEndUserEvmSwap,
396
- z as createEndUserSolanaAccount,
397
- D as createEvmEip7702DelegationWithEndUserAccount,
398
- I as createSpendPermissionWithEndUserAccount,
417
+ M as createDelegationForEndUserAccount,
418
+ ee as createEndUserApplePayOnrampOrder,
419
+ g as createEndUserEvmAccount,
420
+ I as createEndUserEvmSmartAccount,
421
+ K as createEndUserEvmSwap,
422
+ N as createEndUserSolanaAccount,
423
+ x as createEvmEip7702DelegationWithEndUserAccount,
424
+ B as createSpendPermissionWithEndUserAccount,
399
425
  f as exportEndUserEvmAccount,
400
- J as exportEndUserSolanaAccount,
426
+ Q as exportEndUserSolanaAccount,
401
427
  i as generateAttestationChallenge,
402
- b as getAuthenticatedEndUser,
403
- M as getDelegationForEndUser,
404
- L as getEndUserEvmSwapPrice,
405
- x as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
406
- y as getMfaConfig,
428
+ y as getAuthenticatedEndUser,
429
+ D as getDelegationForEndUser,
430
+ F as getDelegationForEndUserAccount,
431
+ J as getEndUserEvmSwapPrice,
432
+ H as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
433
+ b as getMfaConfig,
407
434
  w as getProjectConfig,
408
- F as getUserOperationWithEndUserAccount,
435
+ L as getUserOperationWithEndUserAccount,
409
436
  p as initiateAuthentication,
410
- Z as initiateMfaEnrollment,
411
- _ as initiateMfaEnrollment2,
412
- te as initiateMfaVerification,
413
- V as listSpendPermissionsWithEndUserAccount,
437
+ te as initiateMfaEnrollment,
438
+ ne as initiateMfaEnrollment2,
439
+ de as initiateMfaVerification,
440
+ q as listSpendPermissionsWithEndUserAccount,
414
441
  $ as logOutEndUser,
415
- ae as recordMfaEnrollmentPrompted,
442
+ se as recordMfaEnrollmentPrompted,
416
443
  T as refreshAccessToken,
417
444
  l as registerAttestation,
418
445
  S as registerTemporaryWalletSecret,
419
446
  G as revokeDelegationForEndUser,
420
- B as revokeSpendPermissionWithEndUserAccount,
447
+ k as revokeDelegationForEndUserAccount,
448
+ z as revokeSpendPermissionWithEndUserAccount,
421
449
  C as sendEvmAssetWithEndUserAccount,
422
450
  O as sendEvmTransactionWithEndUserAccount,
423
- X as sendSolanaAssetWithEndUserAccount,
424
- R as sendSolanaTransactionWithEndUserAccount,
425
- H as sendUserOperationWithEndUserAccount,
426
- P as signEvmHashWithEndUserAccount,
451
+ _ as sendSolanaAssetWithEndUserAccount,
452
+ Z as sendSolanaTransactionWithEndUserAccount,
453
+ V as sendUserOperationWithEndUserAccount,
454
+ j as signEvmHashWithEndUserAccount,
427
455
  A as signEvmMessageWithEndUserAccount,
428
- g as signEvmTransactionWithEndUserAccount,
456
+ P as signEvmTransactionWithEndUserAccount,
429
457
  U as signEvmTypedDataWithEndUserAccount,
430
- K as signSolanaHashWithEndUserAccount,
431
- N as signSolanaMessageWithEndUserAccount,
432
- Q as signSolanaTransactionWithEndUserAccount,
433
- ee as submitMfaEnrollment,
434
- ne as submitMfaVerification,
458
+ R as signSolanaHashWithEndUserAccount,
459
+ X as signSolanaMessageWithEndUserAccount,
460
+ Y as signSolanaTransactionWithEndUserAccount,
461
+ ae as submitMfaEnrollment,
462
+ re as submitMfaVerification,
435
463
  u as verifyEmailAuthentication,
436
464
  m as verifyOAuthCode,
437
465
  h as verifyOAuthEndUserIdentity,
@@ -214,6 +214,38 @@ export declare type CreateDelegationForEndUser201 = {
214
214
  expiresAt: string;
215
215
  };
216
216
 
217
+ /**
218
+ * Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation.
219
+ Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user.
220
+ When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner.
221
+ * @summary Create account-scoped delegation for an end user account
222
+ */
223
+ export declare const createDelegationForEndUserAccount: (userId: string, address: BlockchainAddress, createDelegationForEndUserAccountBody: CreateDelegationForEndUserAccountBody, params?: CreateDelegationForEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateDelegationForEndUserAccount201>;
224
+
225
+ export declare type CreateDelegationForEndUserAccount201 = {
226
+ /** The date until which the delegation is valid. */
227
+ expiresAt: string;
228
+ };
229
+
230
+ export declare type CreateDelegationForEndUserAccountBody = {
231
+ /** The date until which the delegation is valid. */
232
+ expiresAt: string;
233
+ /**
234
+ * The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
235
+ * @pattern ^[a-zA-Z0-9-]{1,100}$
236
+ */
237
+ walletSecretId: string;
238
+ };
239
+
240
+ export declare type CreateDelegationForEndUserAccountParams = {
241
+ /**
242
+ * The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
243
+ */
244
+ projectID?: ProjectIDOptionalParameter;
245
+ };
246
+
247
+ export declare type CreateDelegationForEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof createDelegationForEndUserAccount>>>;
248
+
217
249
  export declare type CreateDelegationForEndUserBody = {
218
250
  /** The date until which the delegation is valid. */
219
251
  expiresAt: string;
@@ -1228,6 +1260,27 @@ export declare type GetDelegationForEndUser200 = {
1228
1260
  expiresAt: string;
1229
1261
  };
1230
1262
 
1263
+ /**
1264
+ * Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI.
1265
+ When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA.
1266
+ * @summary Get account-scoped delegation for an end user account
1267
+ */
1268
+ export declare const getDelegationForEndUserAccount: (userId: string, address: BlockchainAddress, params?: GetDelegationForEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<GetDelegationForEndUserAccount200>;
1269
+
1270
+ export declare type GetDelegationForEndUserAccount200 = {
1271
+ /** The date until which the delegation is valid. */
1272
+ expiresAt: string;
1273
+ };
1274
+
1275
+ export declare type GetDelegationForEndUserAccountParams = {
1276
+ /**
1277
+ * The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
1278
+ */
1279
+ projectID?: ProjectIDOptionalParameter;
1280
+ };
1281
+
1282
+ export declare type GetDelegationForEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getDelegationForEndUserAccount>>>;
1283
+
1231
1284
  export declare type GetDelegationForEndUserParams = {
1232
1285
  /**
1233
1286
  * The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
@@ -2305,6 +2358,30 @@ export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<Re
2305
2358
  */
2306
2359
  export declare const revokeDelegationForEndUser: (userId: string, revokeDelegationForEndUserBody: RevokeDelegationForEndUserBody, params?: RevokeDelegationForEndUserParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
2307
2360
 
2361
+ /**
2362
+ * Revokes the active account-scoped delegation for the specified end user account. Other account-scoped delegations for the same user are unaffected. This operation can be performed by the end user themselves or by a developer using their API key.
2363
+ When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
2364
+ * @summary Revoke account-scoped delegation for an end user account
2365
+ */
2366
+ export declare const revokeDelegationForEndUserAccount: (userId: string, address: BlockchainAddress, revokeDelegationForEndUserAccountBody: RevokeDelegationForEndUserAccountBody, params?: RevokeDelegationForEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
2367
+
2368
+ export declare type RevokeDelegationForEndUserAccountBody = {
2369
+ /**
2370
+ * When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
2371
+ * @pattern ^[a-zA-Z0-9-]{1,100}$
2372
+ */
2373
+ walletSecretId?: string;
2374
+ };
2375
+
2376
+ export declare type RevokeDelegationForEndUserAccountParams = {
2377
+ /**
2378
+ * The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
2379
+ */
2380
+ projectID?: ProjectIDOptionalParameter;
2381
+ };
2382
+
2383
+ export declare type RevokeDelegationForEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof revokeDelegationForEndUserAccount>>>;
2384
+
2308
2385
  export declare type RevokeDelegationForEndUserBody = {
2309
2386
  /**
2310
2387
  * When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-api-client",
3
- "version": "0.0.103",
3
+ "version": "0.0.104",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",