@coinbase/cdp-api-client 0.0.98 → 0.0.100

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.
@@ -52,13 +52,21 @@ const i = (e, t) => r(
52
52
  a
53
53
  ), $ = (e, t, n) => r(
54
54
  {
55
- url: `/v2/embedded-wallet-api/projects/${e}/auth/refresh`,
55
+ url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/siwe`,
56
56
  method: "POST",
57
57
  headers: { "Content-Type": "application/json" },
58
58
  data: t
59
59
  },
60
60
  n
61
61
  ), v = (e, t, n) => r(
62
+ {
63
+ url: `/v2/embedded-wallet-api/projects/${e}/auth/refresh`,
64
+ method: "POST",
65
+ headers: { "Content-Type": "application/json" },
66
+ data: t
67
+ },
68
+ n
69
+ ), T = (e, t, n) => r(
62
70
  {
63
71
  url: `/v2/embedded-wallet-api/projects/${e}/auth/logout`,
64
72
  method: "POST",
@@ -66,22 +74,22 @@ const i = (e, t) => r(
66
74
  data: t
67
75
  },
68
76
  n
69
- ), T = (e, t) => r(
77
+ ), j = (e, t) => r(
70
78
  {
71
79
  url: `/v2/embedded-wallet-api/projects/${e}/auth/custom/authenticate`,
72
80
  method: "POST"
73
81
  },
74
82
  t
75
- ), j = (e, t) => r(
83
+ ), E = (e, t) => r(
76
84
  { url: `/v2/embedded-wallet-api/projects/${e}/config`, method: "GET" },
77
85
  t
78
- ), E = (e, t) => r(
86
+ ), w = (e, t) => r(
79
87
  { url: `/v2/embedded-wallet-api/projects/${e}/auth/mfa`, method: "GET" },
80
88
  t
81
- ), w = (e, t, n) => r(
89
+ ), y = (e, t, n) => r(
82
90
  { url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}`, method: "GET" },
83
91
  n
84
- ), b = (e, t, n, a) => r(
92
+ ), S = (e, t, n, a) => r(
85
93
  {
86
94
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/wallet-secrets`,
87
95
  method: "PUT",
@@ -89,7 +97,7 @@ const i = (e, t) => r(
89
97
  data: n
90
98
  },
91
99
  a
92
- ), y = (e, t, n, a) => r(
100
+ ), b = (e, t, n, a) => r(
93
101
  {
94
102
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm`,
95
103
  method: "POST",
@@ -97,7 +105,7 @@ const i = (e, t) => r(
97
105
  data: n
98
106
  },
99
107
  a
100
- ), S = (e, t, n, a) => r(
108
+ ), P = (e, t, n, a) => r(
101
109
  {
102
110
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign`,
103
111
  method: "POST",
@@ -105,7 +113,7 @@ const i = (e, t) => r(
105
113
  data: n
106
114
  },
107
115
  a
108
- ), P = (e, t, n, a) => r(
116
+ ), O = (e, t, n, a) => r(
109
117
  {
110
118
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/transaction`,
111
119
  method: "POST",
@@ -113,7 +121,7 @@ const i = (e, t) => r(
113
121
  data: n
114
122
  },
115
123
  a
116
- ), O = (e, t, n, a) => r(
124
+ ), g = (e, t, n, a) => r(
117
125
  {
118
126
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/send/transaction`,
119
127
  method: "POST",
@@ -121,7 +129,7 @@ const i = (e, t) => r(
121
129
  data: n
122
130
  },
123
131
  a
124
- ), g = (e, t, n, a, s, o) => r(
132
+ ), C = (e, t, n, a, s, o) => r(
125
133
  {
126
134
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/${n}/send/${a}`,
127
135
  method: "POST",
@@ -129,7 +137,7 @@ const i = (e, t) => r(
129
137
  data: s
130
138
  },
131
139
  o
132
- ), C = (e, t, n, a) => r(
140
+ ), A = (e, t, n, a) => r(
133
141
  {
134
142
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/message`,
135
143
  method: "POST",
@@ -137,7 +145,7 @@ const i = (e, t) => r(
137
145
  data: n
138
146
  },
139
147
  a
140
- ), A = (e, t, n, a) => r(
148
+ ), U = (e, t, n, a) => r(
141
149
  {
142
150
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/typed-data`,
143
151
  method: "POST",
@@ -145,7 +153,7 @@ const i = (e, t) => r(
145
153
  data: n
146
154
  },
147
155
  a
148
- ), U = (e, t, n, a) => r(
156
+ ), f = (e, t, n, a) => r(
149
157
  {
150
158
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/export`,
151
159
  method: "POST",
@@ -153,7 +161,7 @@ const i = (e, t) => r(
153
161
  data: n
154
162
  },
155
163
  a
156
- ), f = (e, t, n, a) => r(
164
+ ), W = (e, t, n, a) => r(
157
165
  {
158
166
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/delegation`,
159
167
  method: "POST",
@@ -161,7 +169,7 @@ const i = (e, t) => r(
161
169
  data: n
162
170
  },
163
171
  a
164
- ), W = (e, t, n, a) => r(
172
+ ), M = (e, t, n, a) => r(
165
173
  {
166
174
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/delegation`,
167
175
  method: "DELETE",
@@ -169,7 +177,7 @@ const i = (e, t) => r(
169
177
  data: n
170
178
  },
171
179
  a
172
- ), M = (e, t, n, a) => r(
180
+ ), G = (e, t, n, a) => r(
173
181
  {
174
182
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/eip7702/delegation`,
175
183
  method: "POST",
@@ -177,13 +185,13 @@ const i = (e, t) => r(
177
185
  data: n
178
186
  },
179
187
  a
180
- ), G = (e, t, n, a) => r(
188
+ ), D = (e, t, n, a) => r(
181
189
  {
182
190
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/eip7702/delegation-operations/${n}`,
183
191
  method: "GET"
184
192
  },
185
193
  a
186
- ), D = (e, t, n, a) => r(
194
+ ), x = (e, t, n, a) => r(
187
195
  {
188
196
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts`,
189
197
  method: "POST",
@@ -191,13 +199,13 @@ const i = (e, t) => r(
191
199
  data: n
192
200
  },
193
201
  a
194
- ), x = (e, t, n, a, s) => r(
202
+ ), k = (e, t, n, a, s) => r(
195
203
  {
196
204
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/user-operations/${a}`,
197
205
  method: "GET"
198
206
  },
199
207
  s
200
- ), k = (e, t, n, a, s) => r(
208
+ ), F = (e, t, n, a, s) => r(
201
209
  {
202
210
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/send`,
203
211
  method: "POST",
@@ -205,7 +213,7 @@ const i = (e, t) => r(
205
213
  data: a
206
214
  },
207
215
  s
208
- ), F = (e, t, n, a, s) => r(
216
+ ), H = (e, t, n, a, s) => r(
209
217
  {
210
218
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions`,
211
219
  method: "POST",
@@ -213,14 +221,14 @@ const i = (e, t) => r(
213
221
  data: a
214
222
  },
215
223
  s
216
- ), H = (e, t, n, a, s) => r(
224
+ ), I = (e, t, n, a, s) => r(
217
225
  {
218
226
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions/list`,
219
227
  method: "GET",
220
228
  params: a
221
229
  },
222
230
  s
223
- ), I = (e, t, n, a, s) => r(
231
+ ), V = (e, t, n, a, s) => r(
224
232
  {
225
233
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions/revoke`,
226
234
  method: "POST",
@@ -228,14 +236,14 @@ const i = (e, t) => r(
228
236
  data: a
229
237
  },
230
238
  s
231
- ), V = (e, t, n, a) => r(
239
+ ), B = (e, t, n, a) => r(
232
240
  {
233
241
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/swaps/price`,
234
242
  method: "GET",
235
243
  params: n
236
244
  },
237
245
  a
238
- ), B = (e, t, n, a) => r(
246
+ ), L = (e, t, n, a) => r(
239
247
  {
240
248
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/swaps`,
241
249
  method: "POST",
@@ -243,7 +251,7 @@ const i = (e, t) => r(
243
251
  data: n
244
252
  },
245
253
  a
246
- ), L = (e, t, n, a) => r(
254
+ ), q = (e, t, n, a) => r(
247
255
  {
248
256
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana`,
249
257
  method: "POST",
@@ -251,7 +259,7 @@ const i = (e, t) => r(
251
259
  data: n
252
260
  },
253
261
  a
254
- ), q = (e, t, n, a) => r(
262
+ ), z = (e, t, n, a) => r(
255
263
  {
256
264
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/export`,
257
265
  method: "POST",
@@ -259,7 +267,7 @@ const i = (e, t) => r(
259
267
  data: n
260
268
  },
261
269
  a
262
- ), z = (e, t, n, a) => r(
270
+ ), J = (e, t, n, a) => r(
263
271
  {
264
272
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign`,
265
273
  method: "POST",
@@ -267,7 +275,7 @@ const i = (e, t) => r(
267
275
  data: n
268
276
  },
269
277
  a
270
- ), J = (e, t, n, a) => r(
278
+ ), K = (e, t, n, a) => r(
271
279
  {
272
280
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign/message`,
273
281
  method: "POST",
@@ -275,7 +283,7 @@ const i = (e, t) => r(
275
283
  data: n
276
284
  },
277
285
  a
278
- ), K = (e, t, n, a) => r(
286
+ ), N = (e, t, n, a) => r(
279
287
  {
280
288
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign/transaction`,
281
289
  method: "POST",
@@ -283,7 +291,7 @@ const i = (e, t) => r(
283
291
  data: n
284
292
  },
285
293
  a
286
- ), N = (e, t, n, a) => r(
294
+ ), Q = (e, t, n, a) => r(
287
295
  {
288
296
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/send/transaction`,
289
297
  method: "POST",
@@ -291,7 +299,7 @@ const i = (e, t) => r(
291
299
  data: n
292
300
  },
293
301
  a
294
- ), Q = (e, t, n, a, s, o) => r(
302
+ ), R = (e, t, n, a, s, o) => r(
295
303
  {
296
304
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/${n}/send/${a}`,
297
305
  method: "POST",
@@ -299,7 +307,7 @@ const i = (e, t) => r(
299
307
  data: s
300
308
  },
301
309
  o
302
- ), R = (e, t, n, a) => r(
310
+ ), X = (e, t, n, a) => r(
303
311
  {
304
312
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/onramp/orders`,
305
313
  method: "POST",
@@ -307,13 +315,13 @@ const i = (e, t) => r(
307
315
  data: n
308
316
  },
309
317
  a
310
- ), X = (e, t, n, a) => r(
318
+ ), Y = (e, t, n, a) => r(
311
319
  {
312
320
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/enroll/${n}/init`,
313
321
  method: "POST"
314
322
  },
315
323
  a
316
- ), Y = (e, t, n, a, s) => r(
324
+ ), Z = (e, t, n, a, s) => r(
317
325
  {
318
326
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/enroll/${n}/initiate`,
319
327
  method: "POST",
@@ -321,7 +329,7 @@ const i = (e, t) => r(
321
329
  data: a
322
330
  },
323
331
  s
324
- ), Z = (e, t, n, a, s) => r(
332
+ ), _ = (e, t, n, a, s) => r(
325
333
  {
326
334
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/enroll/${n}/submit`,
327
335
  method: "POST",
@@ -329,13 +337,13 @@ const i = (e, t) => r(
329
337
  data: a
330
338
  },
331
339
  s
332
- ), _ = (e, t, n, a) => r(
340
+ ), ee = (e, t, n, a) => r(
333
341
  {
334
342
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/verify/${n}/init`,
335
343
  method: "POST"
336
344
  },
337
345
  a
338
- ), ee = (e, t, n, a, s) => r(
346
+ ), te = (e, t, n, a, s) => r(
339
347
  {
340
348
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/verify/${n}/submit`,
341
349
  method: "POST",
@@ -343,7 +351,7 @@ const i = (e, t) => r(
343
351
  data: a
344
352
  },
345
353
  s
346
- ), te = (e, t, n) => r(
354
+ ), ne = (e, t, n) => r(
347
355
  {
348
356
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/prompt`,
349
357
  method: "PUT"
@@ -351,52 +359,53 @@ const i = (e, t) => r(
351
359
  n
352
360
  );
353
361
  export {
354
- T as authenticateUserWithCustomAuth,
355
- f as createDelegationForEndUser,
356
- R as createEndUserApplePayOnrampOrder,
357
- y as createEndUserEvmAccount,
358
- D as createEndUserEvmSmartAccount,
359
- B as createEndUserEvmSwap,
360
- L as createEndUserSolanaAccount,
361
- M as createEvmEip7702DelegationWithEndUserAccount,
362
- F as createSpendPermissionWithEndUserAccount,
363
- U as exportEndUserEvmAccount,
364
- q as exportEndUserSolanaAccount,
362
+ j as authenticateUserWithCustomAuth,
363
+ W as createDelegationForEndUser,
364
+ X as createEndUserApplePayOnrampOrder,
365
+ b as createEndUserEvmAccount,
366
+ x as createEndUserEvmSmartAccount,
367
+ L as createEndUserEvmSwap,
368
+ q as createEndUserSolanaAccount,
369
+ G as createEvmEip7702DelegationWithEndUserAccount,
370
+ H as createSpendPermissionWithEndUserAccount,
371
+ f as exportEndUserEvmAccount,
372
+ z as exportEndUserSolanaAccount,
365
373
  i as generateAttestationChallenge,
366
- w as getAuthenticatedEndUser,
367
- V as getEndUserEvmSwapPrice,
368
- G as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
369
- E as getMfaConfig,
370
- j as getProjectConfig,
371
- x as getUserOperationWithEndUserAccount,
374
+ y as getAuthenticatedEndUser,
375
+ B as getEndUserEvmSwapPrice,
376
+ D as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
377
+ w as getMfaConfig,
378
+ E as getProjectConfig,
379
+ k as getUserOperationWithEndUserAccount,
372
380
  l as initiateAuthentication,
373
- X as initiateMfaEnrollment,
374
- Y as initiateMfaEnrollment2,
375
- _ as initiateMfaVerification,
376
- H as listSpendPermissionsWithEndUserAccount,
377
- v as logOutEndUser,
378
- te as recordMfaEnrollmentPrompted,
379
- $ as refreshAccessToken,
381
+ Y as initiateMfaEnrollment,
382
+ Z as initiateMfaEnrollment2,
383
+ ee as initiateMfaVerification,
384
+ I as listSpendPermissionsWithEndUserAccount,
385
+ T as logOutEndUser,
386
+ ne as recordMfaEnrollmentPrompted,
387
+ v as refreshAccessToken,
380
388
  p as registerAttestation,
381
- b as registerTemporaryWalletSecret,
382
- W as revokeDelegationForEndUser,
383
- I as revokeSpendPermissionWithEndUserAccount,
384
- g as sendEvmAssetWithEndUserAccount,
385
- O as sendEvmTransactionWithEndUserAccount,
386
- Q as sendSolanaAssetWithEndUserAccount,
387
- N as sendSolanaTransactionWithEndUserAccount,
388
- k as sendUserOperationWithEndUserAccount,
389
- S as signEvmHashWithEndUserAccount,
390
- C as signEvmMessageWithEndUserAccount,
391
- P as signEvmTransactionWithEndUserAccount,
392
- A as signEvmTypedDataWithEndUserAccount,
393
- z as signSolanaHashWithEndUserAccount,
394
- J as signSolanaMessageWithEndUserAccount,
395
- K as signSolanaTransactionWithEndUserAccount,
396
- Z as submitMfaEnrollment,
397
- ee as submitMfaVerification,
389
+ S as registerTemporaryWalletSecret,
390
+ M as revokeDelegationForEndUser,
391
+ V as revokeSpendPermissionWithEndUserAccount,
392
+ C as sendEvmAssetWithEndUserAccount,
393
+ g as sendEvmTransactionWithEndUserAccount,
394
+ R as sendSolanaAssetWithEndUserAccount,
395
+ Q as sendSolanaTransactionWithEndUserAccount,
396
+ F as sendUserOperationWithEndUserAccount,
397
+ P as signEvmHashWithEndUserAccount,
398
+ A as signEvmMessageWithEndUserAccount,
399
+ O as signEvmTransactionWithEndUserAccount,
400
+ U as signEvmTypedDataWithEndUserAccount,
401
+ J as signSolanaHashWithEndUserAccount,
402
+ K as signSolanaMessageWithEndUserAccount,
403
+ N as signSolanaTransactionWithEndUserAccount,
404
+ _ as submitMfaEnrollment,
405
+ te as submitMfaVerification,
398
406
  c as verifyEmailAuthentication,
399
407
  m as verifyOAuthCode,
400
408
  h as verifyOAuthEndUserIdentity,
409
+ $ as verifySiweAuthentication,
401
410
  u as verifySmsAuthentication
402
411
  };