@coinbase/cdp-api-client 0.0.126 → 0.0.127

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.
@@ -104,10 +104,10 @@ const i = (t, e, n) => r(
104
104
  params: e
105
105
  },
106
106
  n
107
- ), y = (t, e) => r(
107
+ ), g = (t, e) => r(
108
108
  { url: `/v2/embedded-wallet-api/projects/${t}/config`, method: "GET" },
109
109
  e
110
- ), g = (t, e) => r(
110
+ ), y = (t, e) => r(
111
111
  { url: `/v2/embedded-wallet-api/projects/${t}/auth/mfa`, method: "GET" },
112
112
  e
113
113
  ), P = (t, e, n) => r(
@@ -131,7 +131,7 @@ const i = (t, e, n) => r(
131
131
  params: n
132
132
  },
133
133
  a
134
- ), f = (t, e, n, a) => r(
134
+ ), C = (t, e, n, a) => r(
135
135
  {
136
136
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/sign`,
137
137
  method: "POST",
@@ -140,7 +140,7 @@ const i = (t, e, n) => r(
140
140
  params: n
141
141
  },
142
142
  a
143
- ), C = (t, e, n, a) => r(
143
+ ), f = (t, e, n, a) => r(
144
144
  {
145
145
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/sign/transaction`,
146
146
  method: "POST",
@@ -167,7 +167,7 @@ const i = (t, e, n) => r(
167
167
  params: d
168
168
  },
169
169
  s
170
- ), G = (t, e, n, a) => r(
170
+ ), D = (t, e, n, a) => r(
171
171
  {
172
172
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/sign/message`,
173
173
  method: "POST",
@@ -176,7 +176,7 @@ const i = (t, e, n) => r(
176
176
  params: n
177
177
  },
178
178
  a
179
- ), D = (t, e, n, a) => r(
179
+ ), G = (t, e, n, a) => r(
180
180
  {
181
181
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/sign/typed-data`,
182
182
  method: "POST",
@@ -206,7 +206,7 @@ const i = (t, e, n) => r(
206
206
  ), F = (t, e, n) => r(
207
207
  { url: `/v2/embedded-wallet-api/end-users/${t}/delegation`, method: "GET", params: e },
208
208
  n
209
- ), L = (t, e, n, a) => r(
209
+ ), k = (t, e, n, a) => r(
210
210
  {
211
211
  url: `/v2/embedded-wallet-api/end-users/${t}/delegation`,
212
212
  method: "DELETE",
@@ -215,6 +215,15 @@ const i = (t, e, n) => r(
215
215
  params: n
216
216
  },
217
217
  a
218
+ ), L = (t, e, n, a) => r(
219
+ {
220
+ url: `/v2/embedded-wallet-api/end-users/${t}/delegation/revoke`,
221
+ method: "POST",
222
+ headers: { "Content-Type": "application/json" },
223
+ data: e,
224
+ params: n
225
+ },
226
+ a
218
227
  ), _ = (t, e, n, a, d) => r(
219
228
  {
220
229
  url: `/v2/embedded-wallet-api/end-users/${t}/address/${e}/delegation`,
@@ -240,7 +249,16 @@ const i = (t, e, n) => r(
240
249
  params: a
241
250
  },
242
251
  d
243
- ), V = (t, e, n, a) => r(
252
+ ), V = (t, e, n, a, d) => r(
253
+ {
254
+ url: `/v2/embedded-wallet-api/end-users/${t}/address/${e}/delegation/revoke`,
255
+ method: "POST",
256
+ headers: { "Content-Type": "application/json" },
257
+ data: n,
258
+ params: a
259
+ },
260
+ d
261
+ ), R = (t, e, n, a) => r(
244
262
  {
245
263
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/eip7702/delegation`,
246
264
  method: "POST",
@@ -249,14 +267,14 @@ const i = (t, e, n) => r(
249
267
  params: n
250
268
  },
251
269
  a
252
- ), R = (t, e, n, a) => r(
270
+ ), X = (t, e, n, a) => r(
253
271
  {
254
272
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/eip7702/delegation-operations/${e}`,
255
273
  method: "GET",
256
274
  params: n
257
275
  },
258
276
  a
259
- ), X = (t, e, n, a) => r(
277
+ ), q = (t, e, n, a) => r(
260
278
  {
261
279
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts`,
262
280
  method: "POST",
@@ -265,14 +283,14 @@ const i = (t, e, n) => r(
265
283
  params: n
266
284
  },
267
285
  a
268
- ), k = (t, e, n, a, d) => r(
286
+ ), z = (t, e, n, a, d) => r(
269
287
  {
270
288
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/user-operations/${n}`,
271
289
  method: "GET",
272
290
  params: a
273
291
  },
274
292
  d
275
- ), q = (t, e, n, a, d) => r(
293
+ ), J = (t, e, n, a, d) => r(
276
294
  {
277
295
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/send`,
278
296
  method: "POST",
@@ -281,14 +299,14 @@ const i = (t, e, n) => r(
281
299
  params: a
282
300
  },
283
301
  d
284
- ), z = (t, e, n, a) => r(
302
+ ), K = (t, e, n, a) => r(
285
303
  {
286
304
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/borrow-positions`,
287
305
  method: "GET",
288
306
  params: n
289
307
  },
290
308
  a
291
- ), J = (t, e, n, a, d) => r(
309
+ ), N = (t, e, n, a, d) => r(
292
310
  {
293
311
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/borrow-positions`,
294
312
  method: "POST",
@@ -297,7 +315,7 @@ const i = (t, e, n) => r(
297
315
  params: a
298
316
  },
299
317
  d
300
- ), K = (t, e, n, a, d) => r(
318
+ ), Q = (t, e, n, a, d) => r(
301
319
  {
302
320
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/borrow-positions/adjust`,
303
321
  method: "POST",
@@ -306,7 +324,7 @@ const i = (t, e, n) => r(
306
324
  params: a
307
325
  },
308
326
  d
309
- ), N = (t, e, n, a, d) => r(
327
+ ), Y = (t, e, n, a, d) => r(
310
328
  {
311
329
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/borrow-positions/close`,
312
330
  method: "POST",
@@ -315,7 +333,7 @@ const i = (t, e, n) => r(
315
333
  params: a
316
334
  },
317
335
  d
318
- ), Q = (t, e, n, a, d) => r(
336
+ ), Z = (t, e, n, a, d) => r(
319
337
  {
320
338
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions`,
321
339
  method: "POST",
@@ -324,14 +342,14 @@ const i = (t, e, n) => r(
324
342
  params: a
325
343
  },
326
344
  d
327
- ), Y = (t, e, n, a) => r(
345
+ ), B = (t, e, n, a) => r(
328
346
  {
329
347
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/list`,
330
348
  method: "GET",
331
349
  params: n
332
350
  },
333
351
  a
334
- ), Z = (t, e, n, a, d) => r(
352
+ ), ee = (t, e, n, a, d) => r(
335
353
  {
336
354
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/revoke`,
337
355
  method: "POST",
@@ -340,7 +358,7 @@ const i = (t, e, n) => r(
340
358
  params: a
341
359
  },
342
360
  d
343
- ), B = (t, e, n, a, d) => r(
361
+ ), te = (t, e, n, a, d) => r(
344
362
  {
345
363
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/smart-accounts/${e}/spend-permissions/enable`,
346
364
  method: "POST",
@@ -349,10 +367,10 @@ const i = (t, e, n) => r(
349
367
  params: a
350
368
  },
351
369
  d
352
- ), ee = (t, e, n) => r(
370
+ ), ne = (t, e, n) => r(
353
371
  { url: `/v2/embedded-wallet-api/end-users/${t}/evm/swaps/price`, method: "GET", params: e },
354
372
  n
355
- ), te = (t, e, n, a) => r(
373
+ ), ae = (t, e, n, a) => r(
356
374
  {
357
375
  url: `/v2/embedded-wallet-api/end-users/${t}/evm/swaps`,
358
376
  method: "POST",
@@ -361,7 +379,7 @@ const i = (t, e, n) => r(
361
379
  params: n
362
380
  },
363
381
  a
364
- ), ne = (t, e, n, a) => r(
382
+ ), re = (t, e, n, a) => r(
365
383
  {
366
384
  url: `/v2/embedded-wallet-api/end-users/${t}/solana`,
367
385
  method: "POST",
@@ -370,7 +388,7 @@ const i = (t, e, n) => r(
370
388
  params: n
371
389
  },
372
390
  a
373
- ), ae = (t, e, n, a) => r(
391
+ ), de = (t, e, n, a) => r(
374
392
  {
375
393
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/export`,
376
394
  method: "POST",
@@ -379,7 +397,7 @@ const i = (t, e, n) => r(
379
397
  params: n
380
398
  },
381
399
  a
382
- ), re = (t, e, n, a) => r(
400
+ ), se = (t, e, n, a) => r(
383
401
  {
384
402
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign`,
385
403
  method: "POST",
@@ -388,7 +406,7 @@ const i = (t, e, n) => r(
388
406
  params: n
389
407
  },
390
408
  a
391
- ), de = (t, e, n, a) => r(
409
+ ), oe = (t, e, n, a) => r(
392
410
  {
393
411
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign/message`,
394
412
  method: "POST",
@@ -397,7 +415,7 @@ const i = (t, e, n) => r(
397
415
  params: n
398
416
  },
399
417
  a
400
- ), se = (t, e, n, a) => r(
418
+ ), ie = (t, e, n, a) => r(
401
419
  {
402
420
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign/transaction`,
403
421
  method: "POST",
@@ -406,7 +424,7 @@ const i = (t, e, n) => r(
406
424
  params: n
407
425
  },
408
426
  a
409
- ), oe = (t, e, n, a) => r(
427
+ ), le = (t, e, n, a) => r(
410
428
  {
411
429
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/sign/x402-payment`,
412
430
  method: "POST",
@@ -415,7 +433,7 @@ const i = (t, e, n) => r(
415
433
  params: n
416
434
  },
417
435
  a
418
- ), ie = (t, e, n, a) => r(
436
+ ), pe = (t, e, n, a) => r(
419
437
  {
420
438
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/send/transaction`,
421
439
  method: "POST",
@@ -424,7 +442,7 @@ const i = (t, e, n) => r(
424
442
  params: n
425
443
  },
426
444
  a
427
- ), le = (t, e, n, a, d, s) => r(
445
+ ), ce = (t, e, n, a, d, s) => r(
428
446
  {
429
447
  url: `/v2/embedded-wallet-api/end-users/${t}/solana/${e}/send/${n}`,
430
448
  method: "POST",
@@ -433,7 +451,7 @@ const i = (t, e, n) => r(
433
451
  params: d
434
452
  },
435
453
  s
436
- ), pe = (t, e, n, a) => r(
454
+ ), ue = (t, e, n, a) => r(
437
455
  {
438
456
  url: `/v2/embedded-wallet-api/end-users/${t}/btc`,
439
457
  method: "POST",
@@ -442,7 +460,7 @@ const i = (t, e, n) => r(
442
460
  params: n
443
461
  },
444
462
  a
445
- ), ce = (t, e, n, a) => r(
463
+ ), me = (t, e, n, a) => r(
446
464
  {
447
465
  url: `/v2/embedded-wallet-api/end-users/${t}/btc/export`,
448
466
  method: "POST",
@@ -451,7 +469,7 @@ const i = (t, e, n) => r(
451
469
  params: n
452
470
  },
453
471
  a
454
- ), ue = (t, e, n, a) => r(
472
+ ), he = (t, e, n, a) => r(
455
473
  {
456
474
  url: `/v2/embedded-wallet-api/end-users/${t}/btc/sign`,
457
475
  method: "POST",
@@ -460,7 +478,7 @@ const i = (t, e, n) => r(
460
478
  params: n
461
479
  },
462
480
  a
463
- ), me = (t, e, n, a) => r(
481
+ ), Te = (t, e, n, a) => r(
464
482
  {
465
483
  url: `/v2/embedded-wallet-api/end-users/${t}/onramp/orders`,
466
484
  method: "POST",
@@ -469,14 +487,14 @@ const i = (t, e, n) => r(
469
487
  params: n
470
488
  },
471
489
  a
472
- ), he = (t, e, n, a) => r(
490
+ ), ve = (t, e, n, a) => r(
473
491
  {
474
492
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/init`,
475
493
  method: "POST",
476
494
  params: n
477
495
  },
478
496
  a
479
- ), Te = (t, e, n, a, d) => r(
497
+ ), $e = (t, e, n, a, d) => r(
480
498
  {
481
499
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/initiate`,
482
500
  method: "POST",
@@ -485,7 +503,7 @@ const i = (t, e, n) => r(
485
503
  params: a
486
504
  },
487
505
  d
488
- ), ve = (t, e, n, a, d) => r(
506
+ ), Ee = (t, e, n, a, d) => r(
489
507
  {
490
508
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/enroll/${e}/submit`,
491
509
  method: "POST",
@@ -494,14 +512,14 @@ const i = (t, e, n) => r(
494
512
  params: a
495
513
  },
496
514
  d
497
- ), $e = (t, e, n, a) => r(
515
+ ), we = (t, e, n, a) => r(
498
516
  {
499
517
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/verify/${e}/init`,
500
518
  method: "POST",
501
519
  params: n
502
520
  },
503
521
  a
504
- ), Ee = (t, e, n, a, d) => r(
522
+ ), be = (t, e, n, a, d) => r(
505
523
  {
506
524
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/verify/${e}/submit`,
507
525
  method: "POST",
@@ -510,13 +528,13 @@ const i = (t, e, n) => r(
510
528
  params: a
511
529
  },
512
530
  d
513
- ), we = (t, e, n) => r(
531
+ ), Se = (t, e, n) => r(
514
532
  { url: `/v2/embedded-wallet-api/end-users/${t}/mfa/prompt`, method: "PUT", params: e },
515
533
  n
516
- ), be = (t, e, n) => r(
534
+ ), je = (t, e, n) => r(
517
535
  { url: `/v2/embedded-wallet-api/end-users/${t}/mfa/passkeys`, method: "GET", params: e },
518
536
  n
519
- ), Se = (t, e, n, a) => r(
537
+ ), ge = (t, e, n, a) => r(
520
538
  {
521
539
  url: `/v2/embedded-wallet-api/end-users/${t}/mfa/passkeys/${e}`,
522
540
  method: "DELETE",
@@ -525,69 +543,71 @@ const i = (t, e, n) => r(
525
543
  a
526
544
  );
527
545
  export {
528
- K as adjustBorrowPositionWithEndUserAccount,
546
+ Q as adjustBorrowPositionWithEndUserAccount,
529
547
  b as authenticateUserWithCustomAuth,
530
- N as closeBorrowPositionWithEndUserAccount,
531
- J as createBorrowPositionWithEndUserAccount,
548
+ Y as closeBorrowPositionWithEndUserAccount,
549
+ N as createBorrowPositionWithEndUserAccount,
532
550
  M as createDelegationForEndUser,
533
551
  _ as createDelegationForEndUserAccount,
534
- me as createEndUserApplePayOnrampOrder,
535
- pe as createEndUserBtcAccount,
552
+ Te as createEndUserApplePayOnrampOrder,
553
+ ue as createEndUserBtcAccount,
536
554
  O as createEndUserEvmAccount,
537
- X as createEndUserEvmSmartAccount,
538
- te as createEndUserEvmSwap,
539
- ne as createEndUserSolanaAccount,
540
- V as createEvmEip7702DelegationWithEndUserAccount,
541
- Q as createSpendPermissionWithEndUserAccount,
542
- Se as deletePasskey,
543
- B as enableSpendPermissionWithEndUserAccount,
544
- ce as exportEndUserBtcAccount,
555
+ q as createEndUserEvmSmartAccount,
556
+ ae as createEndUserEvmSwap,
557
+ re as createEndUserSolanaAccount,
558
+ R as createEvmEip7702DelegationWithEndUserAccount,
559
+ Z as createSpendPermissionWithEndUserAccount,
560
+ ge as deletePasskey,
561
+ te as enableSpendPermissionWithEndUserAccount,
562
+ me as exportEndUserBtcAccount,
545
563
  x as exportEndUserEvmAccount,
546
- ae as exportEndUserSolanaAccount,
564
+ de as exportEndUserSolanaAccount,
547
565
  p as generateAttestationChallenge,
548
566
  P as getAuthenticatedEndUser,
549
567
  F as getDelegationForEndUser,
550
568
  H as getDelegationForEndUserAccount,
551
- ee as getEndUserEvmSwapPrice,
569
+ ne as getEndUserEvmSwapPrice,
552
570
  j as getEvmBorrowProduct,
553
- R as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
554
- g as getMfaConfig,
555
- y as getProjectConfig,
556
- k as getUserOperationWithEndUserAccount,
571
+ X as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
572
+ y as getMfaConfig,
573
+ g as getProjectConfig,
574
+ z as getUserOperationWithEndUserAccount,
557
575
  u as initiateAuthentication,
558
- he as initiateMfaEnrollment,
559
- Te as initiateMfaEnrollment2,
560
- $e as initiateMfaVerification,
561
- z as listBorrowPositionsWithEndUserAccount,
576
+ ve as initiateMfaEnrollment,
577
+ $e as initiateMfaEnrollment2,
578
+ we as initiateMfaVerification,
579
+ K as listBorrowPositionsWithEndUserAccount,
562
580
  S as listEvmBorrowProducts,
563
- be as listPasskeys,
564
- Y as listSpendPermissionsWithEndUserAccount,
581
+ je as listPasskeys,
582
+ B as listSpendPermissionsWithEndUserAccount,
565
583
  w as logOutEndUser,
566
584
  i as receiveOAuthCallback,
567
585
  l as receiveOAuthCallbackPost,
568
- we as recordMfaEnrollmentPrompted,
586
+ Se as recordMfaEnrollmentPrompted,
569
587
  E as refreshAccessToken,
570
588
  c as registerAttestation,
571
589
  U as registerTemporaryWalletSecret,
572
590
  L as revokeDelegationForEndUser,
573
- I as revokeDelegationForEndUserAccount,
574
- Z as revokeSpendPermissionWithEndUserAccount,
591
+ V as revokeDelegationForEndUserAccount,
592
+ I as revokeDelegationForEndUserAccountDeprecated,
593
+ k as revokeDelegationForEndUserDeprecated,
594
+ ee as revokeSpendPermissionWithEndUserAccount,
575
595
  W as sendEvmAssetWithEndUserAccount,
576
596
  A as sendEvmTransactionWithEndUserAccount,
577
- le as sendSolanaAssetWithEndUserAccount,
578
- ie as sendSolanaTransactionWithEndUserAccount,
579
- q as sendUserOperationWithEndUserAccount,
580
- ue as signBtcHashWithEndUserAccount,
581
- f as signEvmHashWithEndUserAccount,
582
- G as signEvmMessageWithEndUserAccount,
583
- C as signEvmTransactionWithEndUserAccount,
584
- D as signEvmTypedDataWithEndUserAccount,
585
- re as signSolanaHashWithEndUserAccount,
586
- de as signSolanaMessageWithEndUserAccount,
587
- se as signSolanaTransactionWithEndUserAccount,
588
- oe as signSolanaX402PaymentWithEndUserAccount,
589
- ve as submitMfaEnrollment,
590
- Ee as submitMfaVerification,
597
+ ce as sendSolanaAssetWithEndUserAccount,
598
+ pe as sendSolanaTransactionWithEndUserAccount,
599
+ J as sendUserOperationWithEndUserAccount,
600
+ he as signBtcHashWithEndUserAccount,
601
+ C as signEvmHashWithEndUserAccount,
602
+ D as signEvmMessageWithEndUserAccount,
603
+ f as signEvmTransactionWithEndUserAccount,
604
+ G as signEvmTypedDataWithEndUserAccount,
605
+ se as signSolanaHashWithEndUserAccount,
606
+ oe as signSolanaMessageWithEndUserAccount,
607
+ ie as signSolanaTransactionWithEndUserAccount,
608
+ le as signSolanaX402PaymentWithEndUserAccount,
609
+ Ee as submitMfaEnrollment,
610
+ be as submitMfaVerification,
591
611
  m as verifyEmailAuthentication,
592
612
  T as verifyOAuthCode,
593
613
  v as verifyOAuthEndUserIdentity,
@@ -1,13 +1,13 @@
1
- import { cdpApiClient as o } from "./index6.js";
2
- const r = (e, t) => o(
1
+ import { cdpApiClient as n } from "./index6.js";
2
+ const a = (e, t) => n(
3
3
  {
4
- url: "/v2/onramp/mobile/challenges",
4
+ url: "/v2/onramp/mobile/sessions/challenges",
5
5
  method: "POST",
6
6
  headers: { "Content-Type": "application/json" },
7
7
  data: e
8
8
  },
9
9
  t
10
- ), s = (e, t) => o(
10
+ ), r = (e, t) => n(
11
11
  {
12
12
  url: "/v2/onramp/mobile/sessions",
13
13
  method: "POST",
@@ -15,21 +15,21 @@ const r = (e, t) => o(
15
15
  data: e
16
16
  },
17
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(
18
+ ), s = (e) => n(
19
+ { url: "/v2/onramp/mobile/attestation/challenges", method: "POST" },
20
+ e
21
+ ), i = (e, t) => n(
22
22
  {
23
- url: `/v2/onramp/mobile/projects/${e}/attestation/registrations`,
23
+ url: "/v2/onramp/mobile/attestation/registrations",
24
24
  method: "POST",
25
25
  headers: { "Content-Type": "application/json" },
26
- data: t
26
+ data: e
27
27
  },
28
- n
28
+ t
29
29
  );
30
30
  export {
31
- i as createOnrampIosAttestationChallenge,
32
- r as createOnrampMobileChallenge,
33
- s as createOnrampMobileSession,
34
- p as registerOnrampIosAttestation
31
+ s as createOnrampIosAttestationChallenge,
32
+ a as createOnrampMobileChallenge,
33
+ r as createOnrampMobileSession,
34
+ i as registerOnrampIosAttestation
35
35
  };