@coinbase/cdp-api-client 0.0.121 → 0.0.122

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.
@@ -16,7 +16,7 @@ const i = (t, e, n) => d(
16
16
  }, p = (t, e) => d(
17
17
  { url: `/v2/embedded-wallet-api/projects/${t}/attestation/challenge`, method: "POST" },
18
18
  e
19
- ), c = (t, e, n) => d(
19
+ ), u = (t, e, n) => d(
20
20
  {
21
21
  url: `/v2/embedded-wallet-api/projects/${t}/attestation/register`,
22
22
  method: "POST",
@@ -24,7 +24,7 @@ const i = (t, e, n) => d(
24
24
  data: e
25
25
  },
26
26
  n
27
- ), u = (t, e, n) => d(
27
+ ), c = (t, e, n) => d(
28
28
  {
29
29
  url: `/v2/embedded-wallet-api/projects/${t}/auth/init`,
30
30
  method: "POST",
@@ -94,13 +94,13 @@ const i = (t, e, n) => d(
94
94
  method: "POST"
95
95
  },
96
96
  e
97
- ), j = (t, e) => d(
97
+ ), b = (t, e) => d(
98
98
  { url: `/v2/embedded-wallet-api/projects/${t}/config`, method: "GET" },
99
99
  e
100
- ), b = (t, e) => d(
100
+ ), g = (t, e) => d(
101
101
  { url: `/v2/embedded-wallet-api/projects/${t}/auth/mfa`, method: "GET" },
102
102
  e
103
- ), g = (t, e, n) => d(
103
+ ), j = (t, e, n) => d(
104
104
  { url: `/v2/embedded-wallet-api/end-users/${t}`, method: "GET", params: e },
105
105
  n
106
106
  ), y = (t, e, n, a) => d(
@@ -112,7 +112,7 @@ const i = (t, e, n) => d(
112
112
  params: n
113
113
  },
114
114
  a
115
- ), U = (t, e, n, a) => d(
115
+ ), P = (t, e, n, a) => d(
116
116
  {
117
117
  url: `/v2/embedded-wallet-api/end-users/${t}/evm`,
118
118
  method: "POST",
@@ -121,7 +121,7 @@ const i = (t, e, n) => d(
121
121
  params: n
122
122
  },
123
123
  a
124
- ), P = (t, e, n, a) => d(
124
+ ), U = (t, e, n, a) => d(
125
125
  {
126
126
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/sign`,
127
127
  method: "POST",
@@ -214,14 +214,14 @@ const i = (t, e, n) => d(
214
214
  params: a
215
215
  },
216
216
  r
217
- ), _ = (t, e, n, a) => d(
217
+ ), L = (t, e, n, a) => d(
218
218
  {
219
219
  url: `/v2/embedded-wallet-api/end-users/${t}/address/${e}/delegation`,
220
220
  method: "GET",
221
221
  params: n
222
222
  },
223
223
  a
224
- ), H = (t, e, n, a, r) => d(
224
+ ), _ = (t, e, n, a, r) => d(
225
225
  {
226
226
  url: `/v2/embedded-wallet-api/end-users/${t}/address/${e}/delegation`,
227
227
  method: "DELETE",
@@ -230,7 +230,7 @@ const i = (t, e, n) => d(
230
230
  params: a
231
231
  },
232
232
  r
233
- ), L = (t, e, n, a) => d(
233
+ ), H = (t, e, n, a) => d(
234
234
  {
235
235
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/eip7702/delegation`,
236
236
  method: "POST",
@@ -262,7 +262,7 @@ const i = (t, e, n) => d(
262
262
  params: a
263
263
  },
264
264
  r
265
- ), q = (t, e, n, a, r) => d(
265
+ ), X = (t, e, n, a, r) => d(
266
266
  {
267
267
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/send`,
268
268
  method: "POST",
@@ -271,7 +271,7 @@ const i = (t, e, n) => d(
271
271
  params: a
272
272
  },
273
273
  r
274
- ), z = (t, e, n, a, r) => d(
274
+ ), k = (t, e, n, a, r) => d(
275
275
  {
276
276
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions`,
277
277
  method: "POST",
@@ -280,14 +280,14 @@ const i = (t, e, n) => d(
280
280
  params: a
281
281
  },
282
282
  r
283
- ), J = (t, e, n, a) => d(
283
+ ), q = (t, e, n, a) => d(
284
284
  {
285
285
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/list`,
286
286
  method: "GET",
287
287
  params: n
288
288
  },
289
289
  a
290
- ), K = (t, e, n, a, r) => d(
290
+ ), z = (t, e, n, a, r) => d(
291
291
  {
292
292
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/revoke`,
293
293
  method: "POST",
@@ -296,7 +296,7 @@ const i = (t, e, n) => d(
296
296
  params: a
297
297
  },
298
298
  r
299
- ), N = (t, e, n, a, r) => d(
299
+ ), J = (t, e, n, a, r) => d(
300
300
  {
301
301
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/enable`,
302
302
  method: "POST",
@@ -305,10 +305,10 @@ const i = (t, e, n) => d(
305
305
  params: a
306
306
  },
307
307
  r
308
- ), Q = (t, e, n) => d(
308
+ ), K = (t, e, n) => d(
309
309
  { url: `/v2/embedded-wallet-api/end-users/${t}/evm/swaps/price`, method: "GET", params: e },
310
310
  n
311
- ), X = (t, e, n, a) => d(
311
+ ), N = (t, e, n, a) => d(
312
312
  {
313
313
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/swaps`,
314
314
  method: "POST",
@@ -317,7 +317,7 @@ const i = (t, e, n) => d(
317
317
  params: n
318
318
  },
319
319
  a
320
- ), Y = (t, e, n, a) => d(
320
+ ), Q = (t, e, n, a) => d(
321
321
  {
322
322
  url: `/v2/embedded-wallet-api/end-users/${t}/solana`,
323
323
  method: "POST",
@@ -326,7 +326,7 @@ const i = (t, e, n) => d(
326
326
  params: n
327
327
  },
328
328
  a
329
- ), Z = (t, e, n, a) => d(
329
+ ), Y = (t, e, n, a) => d(
330
330
  {
331
331
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/export`,
332
332
  method: "POST",
@@ -335,7 +335,7 @@ const i = (t, e, n) => d(
335
335
  params: n
336
336
  },
337
337
  a
338
- ), k = (t, e, n, a) => d(
338
+ ), Z = (t, e, n, a) => d(
339
339
  {
340
340
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign`,
341
341
  method: "POST",
@@ -363,6 +363,15 @@ const i = (t, e, n) => d(
363
363
  },
364
364
  a
365
365
  ), te = (t, e, n, a) => d(
366
+ {
367
+ url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign/x402-payment`,
368
+ method: "POST",
369
+ headers: { "Content-Type": "application/json" },
370
+ data: e,
371
+ params: n
372
+ },
373
+ a
374
+ ), ne = (t, e, n, a) => d(
366
375
  {
367
376
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/send/transaction`,
368
377
  method: "POST",
@@ -371,7 +380,7 @@ const i = (t, e, n) => d(
371
380
  params: n
372
381
  },
373
382
  a
374
- ), ne = (t, e, n, a, r, s) => d(
383
+ ), ae = (t, e, n, a, r, s) => d(
375
384
  {
376
385
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/${e}/send/${n}`,
377
386
  method: "POST",
@@ -380,7 +389,7 @@ const i = (t, e, n) => d(
380
389
  params: r
381
390
  },
382
391
  s
383
- ), ae = (t, e, n, a) => d(
392
+ ), de = (t, e, n, a) => d(
384
393
  {
385
394
  url: `/v2/embedded-wallet-api/end-users/${t}/btc`,
386
395
  method: "POST",
@@ -389,7 +398,7 @@ const i = (t, e, n) => d(
389
398
  params: n
390
399
  },
391
400
  a
392
- ), de = (t, e, n, a) => d(
401
+ ), re = (t, e, n, a) => d(
393
402
  {
394
403
  url: `/v2/embedded-wallet-api/end-users/${t}/btc/sign`,
395
404
  method: "POST",
@@ -398,7 +407,7 @@ const i = (t, e, n) => d(
398
407
  params: n
399
408
  },
400
409
  a
401
- ), re = (t, e, n, a) => d(
410
+ ), se = (t, e, n, a) => d(
402
411
  {
403
412
  url: `/v2/embedded-wallet-api/end-users/${t}/onramp/orders`,
404
413
  method: "POST",
@@ -407,14 +416,14 @@ const i = (t, e, n) => d(
407
416
  params: n
408
417
  },
409
418
  a
410
- ), se = (t, e, n, a) => d(
419
+ ), oe = (t, e, n, a) => d(
411
420
  {
412
421
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/init`,
413
422
  method: "POST",
414
423
  params: n
415
424
  },
416
425
  a
417
- ), oe = (t, e, n, a, r) => d(
426
+ ), ie = (t, e, n, a, r) => d(
418
427
  {
419
428
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/initiate`,
420
429
  method: "POST",
@@ -423,7 +432,7 @@ const i = (t, e, n) => d(
423
432
  params: a
424
433
  },
425
434
  r
426
- ), ie = (t, e, n, a, r) => d(
435
+ ), le = (t, e, n, a, r) => d(
427
436
  {
428
437
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/submit`,
429
438
  method: "POST",
@@ -432,14 +441,14 @@ const i = (t, e, n) => d(
432
441
  params: a
433
442
  },
434
443
  r
435
- ), le = (t, e, n, a) => d(
444
+ ), pe = (t, e, n, a) => d(
436
445
  {
437
446
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/verify/${e}/init`,
438
447
  method: "POST",
439
448
  params: n
440
449
  },
441
450
  a
442
- ), pe = (t, e, n, a, r) => d(
451
+ ), ue = (t, e, n, a, r) => d(
443
452
  {
444
453
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/verify/${e}/submit`,
445
454
  method: "POST",
@@ -451,61 +460,74 @@ const i = (t, e, n) => d(
451
460
  ), ce = (t, e, n) => d(
452
461
  { url: `/v2/embedded-wallet-api/end-users/${t}/mfa/prompt`, method: "PUT", params: e },
453
462
  n
463
+ ), me = (t, e, n) => d(
464
+ { url: `/v2/embedded-wallet-api/end-users/${t}/mfa/passkeys`, method: "GET", params: e },
465
+ n
466
+ ), he = (t, e, n, a) => d(
467
+ {
468
+ url: `/v2/embedded-wallet-api/end-users/${t}/mfa/passkeys/${e}`,
469
+ method: "DELETE",
470
+ params: n
471
+ },
472
+ a
454
473
  );
455
474
  export {
456
475
  S as authenticateUserWithCustomAuth,
457
476
  G as createDelegationForEndUser,
458
477
  F as createDelegationForEndUserAccount,
459
- re as createEndUserApplePayOnrampOrder,
460
- ae as createEndUserBtcAccount,
461
- U as createEndUserEvmAccount,
478
+ se as createEndUserApplePayOnrampOrder,
479
+ de as createEndUserBtcAccount,
480
+ P as createEndUserEvmAccount,
462
481
  V as createEndUserEvmSmartAccount,
463
- X as createEndUserEvmSwap,
464
- Y as createEndUserSolanaAccount,
465
- L as createEvmEip7702DelegationWithEndUserAccount,
466
- z as createSpendPermissionWithEndUserAccount,
467
- N as enableSpendPermissionWithEndUserAccount,
482
+ N as createEndUserEvmSwap,
483
+ Q as createEndUserSolanaAccount,
484
+ H as createEvmEip7702DelegationWithEndUserAccount,
485
+ k as createSpendPermissionWithEndUserAccount,
486
+ he as deletePasskey,
487
+ J as enableSpendPermissionWithEndUserAccount,
468
488
  D as exportEndUserEvmAccount,
469
- Z as exportEndUserSolanaAccount,
489
+ Y as exportEndUserSolanaAccount,
470
490
  p as generateAttestationChallenge,
471
- g as getAuthenticatedEndUser,
491
+ j as getAuthenticatedEndUser,
472
492
  M as getDelegationForEndUser,
473
- _ as getDelegationForEndUserAccount,
474
- Q as getEndUserEvmSwapPrice,
493
+ L as getDelegationForEndUserAccount,
494
+ K as getEndUserEvmSwapPrice,
475
495
  I as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
476
- b as getMfaConfig,
477
- j as getProjectConfig,
496
+ g as getMfaConfig,
497
+ b as getProjectConfig,
478
498
  R as getUserOperationWithEndUserAccount,
479
- u as initiateAuthentication,
480
- se as initiateMfaEnrollment,
481
- oe as initiateMfaEnrollment2,
482
- le as initiateMfaVerification,
483
- J as listSpendPermissionsWithEndUserAccount,
499
+ c as initiateAuthentication,
500
+ oe as initiateMfaEnrollment,
501
+ ie as initiateMfaEnrollment2,
502
+ pe as initiateMfaVerification,
503
+ me as listPasskeys,
504
+ q as listSpendPermissionsWithEndUserAccount,
484
505
  w as logOutEndUser,
485
506
  i as receiveOAuthCallback,
486
507
  l as receiveOAuthCallbackPost,
487
508
  ce as recordMfaEnrollmentPrompted,
488
509
  E as refreshAccessToken,
489
- c as registerAttestation,
510
+ u as registerAttestation,
490
511
  y as registerTemporaryWalletSecret,
491
512
  x as revokeDelegationForEndUser,
492
- H as revokeDelegationForEndUserAccount,
493
- K as revokeSpendPermissionWithEndUserAccount,
513
+ _ as revokeDelegationForEndUserAccount,
514
+ z as revokeSpendPermissionWithEndUserAccount,
494
515
  C as sendEvmAssetWithEndUserAccount,
495
516
  O as sendEvmTransactionWithEndUserAccount,
496
- ne as sendSolanaAssetWithEndUserAccount,
497
- te as sendSolanaTransactionWithEndUserAccount,
498
- q as sendUserOperationWithEndUserAccount,
499
- de as signBtcHashWithEndUserAccount,
500
- P as signEvmHashWithEndUserAccount,
517
+ ae as sendSolanaAssetWithEndUserAccount,
518
+ ne as sendSolanaTransactionWithEndUserAccount,
519
+ X as sendUserOperationWithEndUserAccount,
520
+ re as signBtcHashWithEndUserAccount,
521
+ U as signEvmHashWithEndUserAccount,
501
522
  A as signEvmMessageWithEndUserAccount,
502
523
  f as signEvmTransactionWithEndUserAccount,
503
524
  W as signEvmTypedDataWithEndUserAccount,
504
- k as signSolanaHashWithEndUserAccount,
525
+ Z as signSolanaHashWithEndUserAccount,
505
526
  B as signSolanaMessageWithEndUserAccount,
506
527
  ee as signSolanaTransactionWithEndUserAccount,
507
- ie as submitMfaEnrollment,
508
- pe as submitMfaVerification,
528
+ te as signSolanaX402PaymentWithEndUserAccount,
529
+ le as submitMfaEnrollment,
530
+ ue as submitMfaVerification,
509
531
  m as verifyEmailAuthentication,
510
532
  T as verifyOAuthCode,
511
533
  v as verifyOAuthEndUserIdentity,
@@ -1,4 +1,35 @@
1
- const o = "https://docs.cdp.coinbase.com/api-v2/docs/errors";
1
+ import { cdpApiClient as o } from "./index6.js";
2
+ const r = (e, t) => o(
3
+ {
4
+ url: "/v2/onramp/mobile/challenges",
5
+ method: "POST",
6
+ headers: { "Content-Type": "application/json" },
7
+ data: e
8
+ },
9
+ t
10
+ ), s = (e, t) => o(
11
+ {
12
+ url: "/v2/onramp/mobile/sessions",
13
+ method: "POST",
14
+ headers: { "Content-Type": "application/json" },
15
+ data: e
16
+ },
17
+ t
18
+ ), i = (e, t) => o(
19
+ { url: `/v2/onramp/mobile/projects/${e}/attestation/challenges`, method: "POST" },
20
+ t
21
+ ), p = (e, t, n) => o(
22
+ {
23
+ url: `/v2/onramp/mobile/projects/${e}/attestation/registrations`,
24
+ method: "POST",
25
+ headers: { "Content-Type": "application/json" },
26
+ data: t
27
+ },
28
+ n
29
+ );
2
30
  export {
3
- o as ERROR_DOCS_PAGE_URL
31
+ i as createOnrampIosAttestationChallenge,
32
+ r as createOnrampMobileChallenge,
33
+ s as createOnrampMobileSession,
34
+ p as registerOnrampIosAttestation
4
35
  };