@coinbase/cdp-api-client 0.0.103 → 0.0.105
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 +77 -74
- package/dist/esm/index10.js +1 -1
- package/dist/esm/index12.js +7 -38
- package/dist/esm/index14.js +366 -67
- package/dist/esm/index15.js +826 -34
- package/dist/esm/index16.js +38 -14
- package/dist/esm/index17.js +2 -8
- package/dist/esm/index18.js +70 -2
- package/dist/esm/index19.js +30 -364
- package/dist/esm/index20.js +14 -826
- package/dist/esm/index21.js +2 -2
- package/dist/esm/index22.js +2 -2
- package/dist/esm/index23.js +2 -2
- package/dist/esm/index3.js +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index6.js +88 -60
- package/dist/types/index.d.ts +77 -0
- package/package.json +1 -1
package/dist/esm/index21.js
CHANGED
package/dist/esm/index22.js
CHANGED
package/dist/esm/index23.js
CHANGED
package/dist/esm/index3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./
|
|
1
|
+
import { __require as r } from "./index12.js";
|
|
2
2
|
r();
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index6.js
CHANGED
|
@@ -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
|
-
),
|
|
86
|
+
), b = (e, t) => d(
|
|
87
87
|
{ url: `/v2/embedded-wallet-api/projects/${e}/auth/mfa`, method: "GET" },
|
|
88
88
|
t
|
|
89
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
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
|
-
|
|
426
|
+
Q as exportEndUserSolanaAccount,
|
|
401
427
|
i as generateAttestationChallenge,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
435
|
+
L as getUserOperationWithEndUserAccount,
|
|
409
436
|
p as initiateAuthentication,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
437
|
+
te as initiateMfaEnrollment,
|
|
438
|
+
ne as initiateMfaEnrollment2,
|
|
439
|
+
de as initiateMfaVerification,
|
|
440
|
+
q as listSpendPermissionsWithEndUserAccount,
|
|
414
441
|
$ as logOutEndUser,
|
|
415
|
-
|
|
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
|
-
|
|
447
|
+
k as revokeDelegationForEndUserAccount,
|
|
448
|
+
z as revokeSpendPermissionWithEndUserAccount,
|
|
421
449
|
C as sendEvmAssetWithEndUserAccount,
|
|
422
450
|
O as sendEvmTransactionWithEndUserAccount,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
451
|
+
_ as sendSolanaAssetWithEndUserAccount,
|
|
452
|
+
Z as sendSolanaTransactionWithEndUserAccount,
|
|
453
|
+
V as sendUserOperationWithEndUserAccount,
|
|
454
|
+
j as signEvmHashWithEndUserAccount,
|
|
427
455
|
A as signEvmMessageWithEndUserAccount,
|
|
428
|
-
|
|
456
|
+
P as signEvmTransactionWithEndUserAccount,
|
|
429
457
|
U as signEvmTypedDataWithEndUserAccount,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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.
|