@privy-io/api-types 0.7.0 → 0.9.0
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/CHANGELOG.md +62 -0
- package/client.d.mts +39 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -30
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +154 -71
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +154 -71
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +167 -83
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +167 -83
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -15
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +512 -992
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +512 -992
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +150 -98
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +150 -98
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +207 -240
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +207 -240
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +439 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +439 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +11 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -30
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2435 -923
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2435 -923
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +24 -11
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +24 -11
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1296 -186
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1296 -186
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +869 -92
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +211 -111
- package/src/resources/client-auth.ts +1361 -896
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +447 -65
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +648 -1494
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +169 -102
- package/src/resources/users.ts +676 -729
- package/src/resources/wallet-actions.ts +573 -0
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +156 -17
- package/src/resources/wallets/transactions.ts +12 -88
- package/src/resources/wallets/wallets.ts +3162 -1109
- package/src/resources/webhooks.ts +1609 -229
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/users.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as UsersAPI from './users';
|
|
5
5
|
import * as ClientAuthAPI from './client-auth';
|
|
6
|
+
import * as EmbeddedWalletsAPI from './embedded-wallets';
|
|
7
|
+
import * as SharedAPI from './shared';
|
|
6
8
|
import * as WalletsAPI from './wallets/wallets';
|
|
7
9
|
import { APIPromise } from '../core/api-promise';
|
|
8
10
|
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
@@ -322,1048 +324,1011 @@ export class Users extends APIResource {
|
|
|
322
324
|
export type UsersCursor = Cursor<User>;
|
|
323
325
|
|
|
324
326
|
/**
|
|
325
|
-
*
|
|
327
|
+
* Custom metadata associated with the user.
|
|
326
328
|
*/
|
|
327
|
-
export
|
|
328
|
-
address: string;
|
|
329
|
-
|
|
330
|
-
first_verified_at: number | null;
|
|
329
|
+
export type CustomMetadata = { [key: string]: string | number | boolean };
|
|
331
330
|
|
|
332
|
-
|
|
331
|
+
/**
|
|
332
|
+
* The payload for importing a wallet account.
|
|
333
|
+
*/
|
|
334
|
+
export interface LinkedAccountWalletInput {
|
|
335
|
+
address: string;
|
|
333
336
|
|
|
334
|
-
|
|
337
|
+
chain_type: 'ethereum' | 'solana';
|
|
335
338
|
|
|
336
|
-
|
|
339
|
+
type: 'wallet';
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
/**
|
|
340
|
-
*
|
|
343
|
+
* The payload for importing an email account.
|
|
341
344
|
*/
|
|
342
|
-
export interface
|
|
343
|
-
|
|
345
|
+
export interface LinkedAccountEmailInput {
|
|
346
|
+
address: string;
|
|
344
347
|
|
|
345
|
-
|
|
348
|
+
type: 'email';
|
|
349
|
+
}
|
|
346
350
|
|
|
347
|
-
|
|
351
|
+
/**
|
|
352
|
+
* The payload for importing a phone account.
|
|
353
|
+
*/
|
|
354
|
+
export interface LinkedAccountPhoneInput {
|
|
355
|
+
number: string;
|
|
348
356
|
|
|
349
357
|
type: 'phone';
|
|
350
|
-
|
|
351
|
-
verified_at: number;
|
|
352
|
-
|
|
353
|
-
number?: string;
|
|
354
358
|
}
|
|
355
359
|
|
|
356
360
|
/**
|
|
357
|
-
*
|
|
361
|
+
* The payload for importing a Google account.
|
|
358
362
|
*/
|
|
359
|
-
export interface
|
|
360
|
-
|
|
363
|
+
export interface LinkedAccountGoogleInput {
|
|
364
|
+
email: string;
|
|
361
365
|
|
|
362
|
-
|
|
366
|
+
name: string;
|
|
363
367
|
|
|
364
|
-
|
|
368
|
+
subject: string;
|
|
369
|
+
|
|
370
|
+
type: 'google_oauth';
|
|
365
371
|
}
|
|
366
372
|
|
|
367
373
|
/**
|
|
368
|
-
*
|
|
374
|
+
* The payload for importing a Twitter account.
|
|
369
375
|
*/
|
|
370
|
-
export interface
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
chain_type: 'ethereum';
|
|
376
|
+
export interface LinkedAccountTwitterInput {
|
|
377
|
+
name: string;
|
|
374
378
|
|
|
375
|
-
|
|
379
|
+
subject: string;
|
|
376
380
|
|
|
377
|
-
|
|
381
|
+
type: 'twitter_oauth';
|
|
378
382
|
|
|
379
|
-
|
|
383
|
+
username: string;
|
|
380
384
|
|
|
381
|
-
|
|
385
|
+
profile_picture_url?: string;
|
|
386
|
+
}
|
|
382
387
|
|
|
383
|
-
|
|
388
|
+
/**
|
|
389
|
+
* The payload for importing a Discord account.
|
|
390
|
+
*/
|
|
391
|
+
export interface LinkedAccountDiscordInput {
|
|
392
|
+
subject: string;
|
|
384
393
|
|
|
385
|
-
|
|
394
|
+
type: 'discord_oauth';
|
|
386
395
|
|
|
387
|
-
|
|
396
|
+
username: string;
|
|
388
397
|
|
|
389
|
-
|
|
398
|
+
email?: string;
|
|
390
399
|
}
|
|
391
400
|
|
|
392
401
|
/**
|
|
393
|
-
* The
|
|
402
|
+
* The payload for importing a Github account.
|
|
394
403
|
*/
|
|
395
|
-
export
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
404
|
+
export interface LinkedAccountGitHubInput {
|
|
405
|
+
subject: string;
|
|
406
|
+
|
|
407
|
+
type: 'github_oauth';
|
|
408
|
+
|
|
409
|
+
username: string;
|
|
410
|
+
|
|
411
|
+
email?: string;
|
|
412
|
+
|
|
413
|
+
name?: string;
|
|
414
|
+
}
|
|
402
415
|
|
|
403
416
|
/**
|
|
404
|
-
*
|
|
417
|
+
* The payload for importing a Spotify account.
|
|
405
418
|
*/
|
|
406
|
-
export interface
|
|
407
|
-
|
|
419
|
+
export interface LinkedAccountSpotifyInput {
|
|
420
|
+
subject: string;
|
|
408
421
|
|
|
409
|
-
|
|
422
|
+
type: 'spotify_oauth';
|
|
410
423
|
|
|
411
|
-
|
|
424
|
+
email?: string;
|
|
412
425
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
*/
|
|
416
|
-
smart_wallet_type: SmartWalletType;
|
|
426
|
+
name?: string;
|
|
427
|
+
}
|
|
417
428
|
|
|
418
|
-
|
|
429
|
+
/**
|
|
430
|
+
* The payload for importing an Instagram account.
|
|
431
|
+
*/
|
|
432
|
+
export interface LinkedAccountInstagramInput {
|
|
433
|
+
subject: string;
|
|
419
434
|
|
|
420
|
-
|
|
435
|
+
type: 'instagram_oauth';
|
|
421
436
|
|
|
422
|
-
|
|
437
|
+
username: string;
|
|
423
438
|
}
|
|
424
439
|
|
|
425
440
|
/**
|
|
426
|
-
*
|
|
441
|
+
* The payload for importing a Tiktok account.
|
|
427
442
|
*/
|
|
428
|
-
export interface
|
|
429
|
-
|
|
443
|
+
export interface LinkedAccountTiktokInput {
|
|
444
|
+
name: string | null;
|
|
430
445
|
|
|
431
|
-
|
|
446
|
+
subject: string;
|
|
432
447
|
|
|
433
|
-
|
|
448
|
+
type: 'tiktok_oauth';
|
|
434
449
|
|
|
435
|
-
|
|
450
|
+
username: string;
|
|
451
|
+
}
|
|
436
452
|
|
|
437
|
-
|
|
453
|
+
/**
|
|
454
|
+
* The payload for importing a LINE account.
|
|
455
|
+
*/
|
|
456
|
+
export interface LinkedAccountLineInput {
|
|
457
|
+
subject: string;
|
|
438
458
|
|
|
439
|
-
|
|
459
|
+
type: 'line_oauth';
|
|
440
460
|
|
|
441
|
-
|
|
461
|
+
email?: string;
|
|
442
462
|
|
|
443
|
-
|
|
463
|
+
name?: string;
|
|
444
464
|
|
|
445
|
-
|
|
465
|
+
profile_picture_url?: string;
|
|
446
466
|
}
|
|
447
467
|
|
|
448
468
|
/**
|
|
449
|
-
*
|
|
469
|
+
* The payload for importing a Twitch account.
|
|
450
470
|
*/
|
|
451
|
-
export interface
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
first_verified_at: number | null;
|
|
455
|
-
|
|
456
|
-
latest_verified_at: number | null;
|
|
471
|
+
export interface LinkedAccountTwitchInput {
|
|
472
|
+
subject: string;
|
|
457
473
|
|
|
458
|
-
|
|
474
|
+
type: 'twitch_oauth';
|
|
459
475
|
|
|
460
|
-
|
|
476
|
+
username?: string;
|
|
477
|
+
}
|
|
461
478
|
|
|
462
|
-
|
|
479
|
+
/**
|
|
480
|
+
* The payload for importing an Apple account.
|
|
481
|
+
*/
|
|
482
|
+
export interface LinkedAccountAppleInput {
|
|
483
|
+
subject: string;
|
|
463
484
|
|
|
464
|
-
|
|
485
|
+
type: 'apple_oauth';
|
|
465
486
|
|
|
466
|
-
|
|
487
|
+
email?: string;
|
|
488
|
+
}
|
|
467
489
|
|
|
468
|
-
|
|
490
|
+
/**
|
|
491
|
+
* The payload for importing a LinkedIn account.
|
|
492
|
+
*/
|
|
493
|
+
export interface LinkedAccountLinkedInInput {
|
|
494
|
+
subject: string;
|
|
469
495
|
|
|
470
|
-
|
|
496
|
+
type: 'linkedin_oauth';
|
|
471
497
|
|
|
472
|
-
|
|
498
|
+
email?: string;
|
|
473
499
|
|
|
474
|
-
|
|
500
|
+
name?: string;
|
|
475
501
|
|
|
476
|
-
|
|
502
|
+
vanityName?: string;
|
|
477
503
|
}
|
|
478
504
|
|
|
479
505
|
/**
|
|
480
|
-
*
|
|
506
|
+
* The payload for importing a Farcaster account.
|
|
481
507
|
*/
|
|
482
|
-
export interface
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
enrolled_in_mfa: boolean;
|
|
486
|
-
|
|
487
|
-
first_verified_at: number | null;
|
|
488
|
-
|
|
489
|
-
latest_verified_at: number | null;
|
|
508
|
+
export interface LinkedAccountFarcasterInput {
|
|
509
|
+
fid: number;
|
|
490
510
|
|
|
491
|
-
|
|
511
|
+
owner_address: string;
|
|
492
512
|
|
|
493
|
-
|
|
513
|
+
type: 'farcaster';
|
|
494
514
|
|
|
495
|
-
|
|
515
|
+
bio?: string;
|
|
496
516
|
|
|
497
|
-
|
|
517
|
+
display_name?: string;
|
|
498
518
|
|
|
499
|
-
|
|
519
|
+
homepage_url?: string;
|
|
500
520
|
|
|
501
|
-
|
|
521
|
+
profile_picture_url?: string;
|
|
502
522
|
|
|
503
|
-
|
|
523
|
+
username?: string;
|
|
504
524
|
}
|
|
505
525
|
|
|
506
526
|
/**
|
|
507
|
-
*
|
|
527
|
+
* The payload for importing a Telegram account.
|
|
508
528
|
*/
|
|
509
|
-
export interface
|
|
510
|
-
first_verified_at: number | null;
|
|
511
|
-
|
|
512
|
-
latest_verified_at: number | null;
|
|
513
|
-
|
|
529
|
+
export interface LinkedAccountTelegramInput {
|
|
514
530
|
telegram_user_id: string;
|
|
515
531
|
|
|
516
532
|
type: 'telegram';
|
|
517
533
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
first_name?: string | null;
|
|
534
|
+
first_name?: string;
|
|
521
535
|
|
|
522
|
-
last_name?: string
|
|
536
|
+
last_name?: string;
|
|
523
537
|
|
|
524
|
-
photo_url?: string
|
|
538
|
+
photo_url?: string;
|
|
525
539
|
|
|
526
|
-
username?: string
|
|
540
|
+
username?: string;
|
|
527
541
|
}
|
|
528
542
|
|
|
529
543
|
/**
|
|
530
|
-
* The
|
|
544
|
+
* The payload for importing a Custom JWT account.
|
|
531
545
|
*/
|
|
532
|
-
export
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
| 'recovery-encryption-key'
|
|
538
|
-
| 'privy-v2';
|
|
546
|
+
export interface LinkedAccountCustomJwtInput {
|
|
547
|
+
custom_user_id: string;
|
|
548
|
+
|
|
549
|
+
type: 'custom_auth';
|
|
550
|
+
}
|
|
539
551
|
|
|
540
552
|
/**
|
|
541
|
-
*
|
|
553
|
+
* The payload for importing a passkey account.
|
|
542
554
|
*/
|
|
543
|
-
export interface
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
address: string;
|
|
555
|
+
export interface LinkedAccountPasskeyInput {
|
|
556
|
+
credential_device_type: 'singleDevice' | 'multiDevice';
|
|
547
557
|
|
|
548
|
-
|
|
558
|
+
credential_id: string;
|
|
549
559
|
|
|
550
|
-
|
|
560
|
+
credential_public_key: string;
|
|
551
561
|
|
|
552
|
-
|
|
562
|
+
credential_username: string;
|
|
553
563
|
|
|
554
|
-
|
|
564
|
+
type: 'passkey';
|
|
565
|
+
}
|
|
555
566
|
|
|
556
|
-
|
|
567
|
+
/**
|
|
568
|
+
* The input for adding a linked account to a user.
|
|
569
|
+
*/
|
|
570
|
+
export type LinkedAccountInput =
|
|
571
|
+
| LinkedAccountWalletInput
|
|
572
|
+
| LinkedAccountEmailInput
|
|
573
|
+
| LinkedAccountPhoneInput
|
|
574
|
+
| LinkedAccountGoogleInput
|
|
575
|
+
| LinkedAccountTwitterInput
|
|
576
|
+
| LinkedAccountDiscordInput
|
|
577
|
+
| LinkedAccountGitHubInput
|
|
578
|
+
| LinkedAccountSpotifyInput
|
|
579
|
+
| LinkedAccountInstagramInput
|
|
580
|
+
| LinkedAccountTiktokInput
|
|
581
|
+
| LinkedAccountLineInput
|
|
582
|
+
| LinkedAccountTwitchInput
|
|
583
|
+
| LinkedAccountAppleInput
|
|
584
|
+
| LinkedAccountLinkedInInput
|
|
585
|
+
| LinkedAccountFarcasterInput
|
|
586
|
+
| LinkedAccountTelegramInput
|
|
587
|
+
| LinkedAccountCustomJwtInput
|
|
588
|
+
| LinkedAccountPasskeyInput;
|
|
557
589
|
|
|
558
|
-
|
|
590
|
+
/**
|
|
591
|
+
* The payload for batch creating users.
|
|
592
|
+
*/
|
|
593
|
+
export interface UserBatchCreateInput {
|
|
594
|
+
users: Array<UserBatchCreateInput.User>;
|
|
595
|
+
}
|
|
559
596
|
|
|
560
|
-
|
|
597
|
+
export namespace UserBatchCreateInput {
|
|
598
|
+
export interface User {
|
|
599
|
+
linked_accounts: Array<UsersAPI.LinkedAccountInput>;
|
|
561
600
|
|
|
562
|
-
|
|
563
|
-
* The method used to recover an embedded wallet account.
|
|
564
|
-
*/
|
|
565
|
-
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
601
|
+
create_embedded_wallet?: boolean;
|
|
566
602
|
|
|
567
|
-
|
|
603
|
+
create_ethereum_smart_wallet?: boolean;
|
|
568
604
|
|
|
569
|
-
|
|
605
|
+
create_ethereum_wallet?: boolean;
|
|
570
606
|
|
|
571
|
-
|
|
607
|
+
create_n_embedded_wallets?: number;
|
|
572
608
|
|
|
573
|
-
|
|
609
|
+
create_n_ethereum_wallets?: number;
|
|
574
610
|
|
|
575
|
-
|
|
611
|
+
create_solana_wallet?: boolean;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Custom metadata associated with the user.
|
|
615
|
+
*/
|
|
616
|
+
custom_metadata?: UsersAPI.CustomMetadata;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Wallets to create.
|
|
620
|
+
*/
|
|
621
|
+
wallets?: Array<EmbeddedWalletsAPI.WalletCreationInput>;
|
|
622
|
+
}
|
|
576
623
|
}
|
|
577
624
|
|
|
578
625
|
/**
|
|
579
|
-
*
|
|
626
|
+
* An email account linked to the user.
|
|
580
627
|
*/
|
|
581
|
-
export interface
|
|
582
|
-
id: string | null;
|
|
583
|
-
|
|
628
|
+
export interface LinkedAccountEmail {
|
|
584
629
|
address: string;
|
|
585
630
|
|
|
586
|
-
|
|
631
|
+
first_verified_at: number | null;
|
|
587
632
|
|
|
588
|
-
|
|
633
|
+
latest_verified_at: number | null;
|
|
589
634
|
|
|
590
|
-
|
|
635
|
+
type: 'email';
|
|
591
636
|
|
|
592
|
-
|
|
637
|
+
verified_at: number;
|
|
638
|
+
}
|
|
593
639
|
|
|
640
|
+
/**
|
|
641
|
+
* A phone number account linked to the user.
|
|
642
|
+
*/
|
|
643
|
+
export interface LinkedAccountPhone {
|
|
594
644
|
first_verified_at: number | null;
|
|
595
645
|
|
|
596
|
-
imported: boolean;
|
|
597
|
-
|
|
598
646
|
latest_verified_at: number | null;
|
|
599
647
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* The method used to recover an embedded wallet account.
|
|
604
|
-
*/
|
|
605
|
-
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
648
|
+
phoneNumber: string;
|
|
606
649
|
|
|
607
|
-
type: '
|
|
650
|
+
type: 'phone';
|
|
608
651
|
|
|
609
652
|
verified_at: number;
|
|
610
653
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
wallet_client_type: 'privy';
|
|
614
|
-
|
|
615
|
-
wallet_index: number;
|
|
654
|
+
number?: string;
|
|
616
655
|
}
|
|
617
656
|
|
|
618
657
|
/**
|
|
619
|
-
*
|
|
658
|
+
* Base schema for wallet accounts linked to the user.
|
|
620
659
|
*/
|
|
621
|
-
export interface
|
|
622
|
-
id: string | null;
|
|
623
|
-
|
|
660
|
+
export interface LinkedAccountBaseWallet {
|
|
624
661
|
address: string;
|
|
625
662
|
|
|
626
|
-
|
|
663
|
+
chain_type: 'solana' | 'ethereum';
|
|
627
664
|
|
|
628
|
-
|
|
665
|
+
type: 'wallet' | 'smart_wallet';
|
|
666
|
+
}
|
|
629
667
|
|
|
630
|
-
|
|
668
|
+
/**
|
|
669
|
+
* An Ethereum wallet account linked to the user.
|
|
670
|
+
*/
|
|
671
|
+
export interface LinkedAccountEthereum {
|
|
672
|
+
address: string;
|
|
631
673
|
|
|
632
|
-
|
|
674
|
+
chain_type: 'ethereum';
|
|
633
675
|
|
|
634
676
|
first_verified_at: number | null;
|
|
635
677
|
|
|
636
|
-
imported: boolean;
|
|
637
|
-
|
|
638
678
|
latest_verified_at: number | null;
|
|
639
679
|
|
|
640
|
-
public_key: string;
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* The method used to recover an embedded wallet account.
|
|
644
|
-
*/
|
|
645
|
-
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
646
|
-
|
|
647
680
|
type: 'wallet';
|
|
648
681
|
|
|
649
682
|
verified_at: number;
|
|
650
683
|
|
|
651
|
-
wallet_client: '
|
|
684
|
+
wallet_client: 'unknown';
|
|
652
685
|
|
|
653
|
-
|
|
686
|
+
chain_id?: string;
|
|
654
687
|
|
|
655
|
-
|
|
688
|
+
connector_type?: string;
|
|
689
|
+
|
|
690
|
+
wallet_client_type?: string;
|
|
656
691
|
}
|
|
657
692
|
|
|
658
693
|
/**
|
|
659
|
-
* A
|
|
694
|
+
* A smart wallet account linked to the user.
|
|
660
695
|
*/
|
|
661
|
-
export interface
|
|
662
|
-
id: string | null;
|
|
663
|
-
|
|
696
|
+
export interface LinkedAccountSmartWallet {
|
|
664
697
|
address: string;
|
|
665
698
|
|
|
666
|
-
chain_id: string;
|
|
667
|
-
|
|
668
|
-
chain_type: 'bitcoin-taproot';
|
|
669
|
-
|
|
670
|
-
connector_type: 'embedded';
|
|
671
|
-
|
|
672
|
-
delegated: boolean;
|
|
673
|
-
|
|
674
699
|
first_verified_at: number | null;
|
|
675
700
|
|
|
676
|
-
imported: boolean;
|
|
677
|
-
|
|
678
701
|
latest_verified_at: number | null;
|
|
679
702
|
|
|
680
|
-
public_key: string;
|
|
681
|
-
|
|
682
703
|
/**
|
|
683
|
-
* The
|
|
704
|
+
* The supported smart wallet providers.
|
|
684
705
|
*/
|
|
685
|
-
|
|
706
|
+
smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
|
|
686
707
|
|
|
687
|
-
type: '
|
|
708
|
+
type: 'smart_wallet';
|
|
688
709
|
|
|
689
710
|
verified_at: number;
|
|
690
711
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
wallet_client_type: 'privy';
|
|
694
|
-
|
|
695
|
-
wallet_index: number;
|
|
712
|
+
smart_wallet_version?: string;
|
|
696
713
|
}
|
|
697
714
|
|
|
698
715
|
/**
|
|
699
|
-
* A
|
|
716
|
+
* A Solana wallet account linked to the user.
|
|
700
717
|
*/
|
|
701
|
-
export interface
|
|
702
|
-
id: string | null;
|
|
703
|
-
|
|
718
|
+
export interface LinkedAccountSolana {
|
|
704
719
|
address: string;
|
|
705
720
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* The wallet chain types that support curve-based signing.
|
|
710
|
-
*/
|
|
711
|
-
chain_type: WalletsAPI.CurveSigningChainType;
|
|
712
|
-
|
|
713
|
-
connector_type: 'embedded';
|
|
714
|
-
|
|
715
|
-
delegated: boolean;
|
|
721
|
+
chain_type: 'solana';
|
|
716
722
|
|
|
717
723
|
first_verified_at: number | null;
|
|
718
724
|
|
|
719
|
-
imported: boolean;
|
|
720
|
-
|
|
721
725
|
latest_verified_at: number | null;
|
|
722
726
|
|
|
723
|
-
public_key: string;
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* The method used to recover an embedded wallet account.
|
|
727
|
-
*/
|
|
728
|
-
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
729
|
-
|
|
730
727
|
type: 'wallet';
|
|
731
728
|
|
|
732
729
|
verified_at: number;
|
|
733
730
|
|
|
734
|
-
wallet_client: '
|
|
731
|
+
wallet_client: 'unknown';
|
|
735
732
|
|
|
736
|
-
|
|
733
|
+
connector_type?: string;
|
|
737
734
|
|
|
738
|
-
|
|
735
|
+
wallet_client_type?: string;
|
|
739
736
|
}
|
|
740
737
|
|
|
741
|
-
export type LinkedAccountEmbeddedWallet =
|
|
742
|
-
| LinkedAccountEthereumEmbeddedWallet
|
|
743
|
-
| LinkedAccountSolanaEmbeddedWallet
|
|
744
|
-
| LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
745
|
-
| LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
746
|
-
| LinkedAccountCurveSigningEmbeddedWallet;
|
|
747
|
-
|
|
748
738
|
/**
|
|
749
|
-
*
|
|
739
|
+
* A Farcaster account linked to the user.
|
|
750
740
|
*/
|
|
751
|
-
export
|
|
752
|
-
|
|
753
|
-
| LinkedAccountEmbeddedWalletWithID.LinkedAccountSolanaEmbeddedWallet
|
|
754
|
-
| LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
755
|
-
| LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
756
|
-
| LinkedAccountEmbeddedWalletWithID.LinkedAccountCurveSigningEmbeddedWallet;
|
|
741
|
+
export interface LinkedAccountFarcaster {
|
|
742
|
+
fid: number;
|
|
757
743
|
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* An Ethereum embedded wallet account linked to the user.
|
|
761
|
-
*/
|
|
762
|
-
export interface LinkedAccountEthereumEmbeddedWallet
|
|
763
|
-
extends Omit<UsersAPI.LinkedAccountEthereumEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
764
|
-
id: string;
|
|
744
|
+
first_verified_at: number | null;
|
|
765
745
|
|
|
766
|
-
|
|
767
|
-
}
|
|
746
|
+
latest_verified_at: number | null;
|
|
768
747
|
|
|
769
|
-
|
|
770
|
-
* A Solana embedded wallet account linked to the user.
|
|
771
|
-
*/
|
|
772
|
-
export interface LinkedAccountSolanaEmbeddedWallet
|
|
773
|
-
extends Omit<UsersAPI.LinkedAccountSolanaEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
774
|
-
id: string;
|
|
748
|
+
owner_address: string;
|
|
775
749
|
|
|
776
|
-
|
|
777
|
-
}
|
|
750
|
+
type: 'farcaster';
|
|
778
751
|
|
|
779
|
-
|
|
780
|
-
* A Bitcoin SegWit embedded wallet account linked to the user.
|
|
781
|
-
*/
|
|
782
|
-
export interface LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
783
|
-
extends Omit<UsersAPI.LinkedAccountBitcoinSegwitEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
784
|
-
id: string;
|
|
752
|
+
verified_at: number;
|
|
785
753
|
|
|
786
|
-
|
|
787
|
-
}
|
|
754
|
+
bio?: string;
|
|
788
755
|
|
|
789
|
-
|
|
790
|
-
* A Bitcoin Taproot embedded wallet account linked to the user.
|
|
791
|
-
*/
|
|
792
|
-
export interface LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
793
|
-
extends Omit<UsersAPI.LinkedAccountBitcoinTaprootEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
794
|
-
id: string;
|
|
756
|
+
display_name?: string;
|
|
795
757
|
|
|
796
|
-
|
|
797
|
-
}
|
|
758
|
+
homepage_url?: string;
|
|
798
759
|
|
|
799
|
-
|
|
800
|
-
* A curve signing embedded wallet account linked to the user.
|
|
801
|
-
*/
|
|
802
|
-
export interface LinkedAccountCurveSigningEmbeddedWallet
|
|
803
|
-
extends Omit<UsersAPI.LinkedAccountCurveSigningEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
804
|
-
id: string;
|
|
760
|
+
profile_picture?: string;
|
|
805
761
|
|
|
806
|
-
|
|
807
|
-
|
|
762
|
+
profile_picture_url?: string;
|
|
763
|
+
|
|
764
|
+
signer_public_key?: string;
|
|
765
|
+
|
|
766
|
+
username?: string;
|
|
808
767
|
}
|
|
809
768
|
|
|
810
769
|
/**
|
|
811
|
-
* A
|
|
770
|
+
* A passkey account linked to the user.
|
|
812
771
|
*/
|
|
813
|
-
export interface
|
|
814
|
-
|
|
772
|
+
export interface LinkedAccountPasskey {
|
|
773
|
+
credential_id: string;
|
|
774
|
+
|
|
775
|
+
enrolled_in_mfa: boolean;
|
|
815
776
|
|
|
816
777
|
first_verified_at: number | null;
|
|
817
778
|
|
|
818
779
|
latest_verified_at: number | null;
|
|
819
780
|
|
|
820
|
-
|
|
781
|
+
type: 'passkey';
|
|
821
782
|
|
|
822
|
-
|
|
783
|
+
verified_at: number;
|
|
823
784
|
|
|
824
|
-
|
|
785
|
+
authenticator_name?: string;
|
|
825
786
|
|
|
826
|
-
|
|
787
|
+
created_with_browser?: string;
|
|
788
|
+
|
|
789
|
+
created_with_device?: string;
|
|
790
|
+
|
|
791
|
+
created_with_os?: string;
|
|
792
|
+
|
|
793
|
+
public_key?: string;
|
|
827
794
|
}
|
|
828
795
|
|
|
829
796
|
/**
|
|
830
|
-
* A
|
|
797
|
+
* A Telegram account linked to the user.
|
|
831
798
|
*/
|
|
832
|
-
export interface
|
|
799
|
+
export interface LinkedAccountTelegram {
|
|
833
800
|
first_verified_at: number | null;
|
|
834
801
|
|
|
835
802
|
latest_verified_at: number | null;
|
|
836
803
|
|
|
837
|
-
|
|
804
|
+
telegram_user_id: string;
|
|
838
805
|
|
|
839
|
-
|
|
806
|
+
type: 'telegram';
|
|
840
807
|
|
|
841
|
-
|
|
808
|
+
verified_at: number;
|
|
842
809
|
|
|
843
|
-
|
|
810
|
+
first_name?: string | null;
|
|
844
811
|
|
|
845
|
-
|
|
812
|
+
last_name?: string | null;
|
|
846
813
|
|
|
847
|
-
|
|
814
|
+
photo_url?: string | null;
|
|
815
|
+
|
|
816
|
+
username?: string | null;
|
|
848
817
|
}
|
|
849
818
|
|
|
850
819
|
/**
|
|
851
|
-
*
|
|
820
|
+
* The method used to recover an embedded wallet account.
|
|
852
821
|
*/
|
|
853
|
-
export
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
822
|
+
export type EmbeddedWalletRecoveryMethod =
|
|
823
|
+
| 'privy'
|
|
824
|
+
| 'user-passcode'
|
|
825
|
+
| 'google-drive'
|
|
826
|
+
| 'icloud'
|
|
827
|
+
| 'recovery-encryption-key'
|
|
828
|
+
| 'privy-v2';
|
|
857
829
|
|
|
858
|
-
|
|
830
|
+
/**
|
|
831
|
+
* An Ethereum embedded wallet account linked to the user.
|
|
832
|
+
*/
|
|
833
|
+
export interface LinkedAccountEthereumEmbeddedWallet {
|
|
834
|
+
id: string | null;
|
|
859
835
|
|
|
860
|
-
|
|
836
|
+
address: string;
|
|
861
837
|
|
|
862
|
-
|
|
838
|
+
chain_id: string;
|
|
863
839
|
|
|
864
|
-
|
|
840
|
+
chain_type: 'ethereum';
|
|
865
841
|
|
|
866
|
-
|
|
867
|
-
}
|
|
842
|
+
connector_type: 'embedded';
|
|
868
843
|
|
|
869
|
-
|
|
870
|
-
* A GitHub OAuth account linked to the user.
|
|
871
|
-
*/
|
|
872
|
-
export interface LinkedAccountGitHubOAuth {
|
|
873
|
-
email: string | null;
|
|
844
|
+
delegated: boolean;
|
|
874
845
|
|
|
875
846
|
first_verified_at: number | null;
|
|
876
847
|
|
|
848
|
+
imported: boolean;
|
|
849
|
+
|
|
877
850
|
latest_verified_at: number | null;
|
|
878
851
|
|
|
879
|
-
|
|
852
|
+
/**
|
|
853
|
+
* The method used to recover an embedded wallet account.
|
|
854
|
+
*/
|
|
855
|
+
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
880
856
|
|
|
881
|
-
|
|
857
|
+
type: 'wallet';
|
|
882
858
|
|
|
883
|
-
|
|
859
|
+
verified_at: number;
|
|
884
860
|
|
|
885
|
-
|
|
861
|
+
wallet_client: 'privy';
|
|
886
862
|
|
|
887
|
-
|
|
863
|
+
wallet_client_type: 'privy';
|
|
864
|
+
|
|
865
|
+
wallet_index: number;
|
|
888
866
|
}
|
|
889
867
|
|
|
890
868
|
/**
|
|
891
|
-
* A
|
|
869
|
+
* A Solana embedded wallet account linked to the user.
|
|
892
870
|
*/
|
|
893
|
-
export interface
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
first_verified_at: number | null;
|
|
897
|
-
|
|
898
|
-
latest_verified_at: number | null;
|
|
899
|
-
|
|
900
|
-
subject: string;
|
|
871
|
+
export interface LinkedAccountSolanaEmbeddedWallet {
|
|
872
|
+
id: string | null;
|
|
901
873
|
|
|
902
|
-
|
|
874
|
+
address: string;
|
|
903
875
|
|
|
904
|
-
|
|
876
|
+
chain_id: string;
|
|
905
877
|
|
|
906
|
-
|
|
878
|
+
chain_type: 'solana';
|
|
907
879
|
|
|
908
|
-
|
|
909
|
-
}
|
|
880
|
+
connector_type: 'embedded';
|
|
910
881
|
|
|
911
|
-
|
|
912
|
-
* A Spotify OAuth account linked to the user.
|
|
913
|
-
*/
|
|
914
|
-
export interface LinkedAccountSpotifyOAuth {
|
|
915
|
-
email: string | null;
|
|
882
|
+
delegated: boolean;
|
|
916
883
|
|
|
917
884
|
first_verified_at: number | null;
|
|
918
885
|
|
|
886
|
+
imported: boolean;
|
|
887
|
+
|
|
919
888
|
latest_verified_at: number | null;
|
|
920
889
|
|
|
921
|
-
|
|
890
|
+
public_key: string;
|
|
922
891
|
|
|
923
|
-
|
|
892
|
+
/**
|
|
893
|
+
* The method used to recover an embedded wallet account.
|
|
894
|
+
*/
|
|
895
|
+
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
924
896
|
|
|
925
|
-
type: '
|
|
897
|
+
type: 'wallet';
|
|
926
898
|
|
|
927
899
|
verified_at: number;
|
|
900
|
+
|
|
901
|
+
wallet_client: 'privy';
|
|
902
|
+
|
|
903
|
+
wallet_client_type: 'privy';
|
|
904
|
+
|
|
905
|
+
wallet_index: number;
|
|
928
906
|
}
|
|
929
907
|
|
|
930
908
|
/**
|
|
931
|
-
*
|
|
909
|
+
* A Bitcoin SegWit embedded wallet account linked to the user.
|
|
932
910
|
*/
|
|
933
|
-
export interface
|
|
934
|
-
|
|
911
|
+
export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
|
|
912
|
+
id: string | null;
|
|
935
913
|
|
|
936
|
-
|
|
914
|
+
address: string;
|
|
937
915
|
|
|
938
|
-
|
|
916
|
+
chain_id: string;
|
|
939
917
|
|
|
940
|
-
|
|
918
|
+
chain_type: 'bitcoin-segwit';
|
|
941
919
|
|
|
942
|
-
|
|
920
|
+
connector_type: 'embedded';
|
|
943
921
|
|
|
944
|
-
|
|
945
|
-
}
|
|
922
|
+
delegated: boolean;
|
|
946
923
|
|
|
947
|
-
/**
|
|
948
|
-
* A TikTok OAuth account linked to the user.
|
|
949
|
-
*/
|
|
950
|
-
export interface LinkedAccountTiktokOAuth {
|
|
951
924
|
first_verified_at: number | null;
|
|
952
925
|
|
|
953
|
-
|
|
926
|
+
imported: boolean;
|
|
954
927
|
|
|
955
|
-
|
|
928
|
+
latest_verified_at: number | null;
|
|
956
929
|
|
|
957
|
-
|
|
930
|
+
public_key: string;
|
|
958
931
|
|
|
959
|
-
|
|
932
|
+
/**
|
|
933
|
+
* The method used to recover an embedded wallet account.
|
|
934
|
+
*/
|
|
935
|
+
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
960
936
|
|
|
961
|
-
|
|
937
|
+
type: 'wallet';
|
|
962
938
|
|
|
963
939
|
verified_at: number;
|
|
940
|
+
|
|
941
|
+
wallet_client: 'privy';
|
|
942
|
+
|
|
943
|
+
wallet_client_type: 'privy';
|
|
944
|
+
|
|
945
|
+
wallet_index: number;
|
|
964
946
|
}
|
|
965
947
|
|
|
966
948
|
/**
|
|
967
|
-
* A
|
|
949
|
+
* A Bitcoin Taproot embedded wallet account linked to the user.
|
|
968
950
|
*/
|
|
969
|
-
export interface
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
first_verified_at: number | null;
|
|
973
|
-
|
|
974
|
-
latest_verified_at: number | null;
|
|
951
|
+
export interface LinkedAccountBitcoinTaprootEmbeddedWallet {
|
|
952
|
+
id: string | null;
|
|
975
953
|
|
|
976
|
-
|
|
954
|
+
address: string;
|
|
977
955
|
|
|
978
|
-
|
|
956
|
+
chain_id: string;
|
|
979
957
|
|
|
980
|
-
|
|
958
|
+
chain_type: 'bitcoin-taproot';
|
|
981
959
|
|
|
982
|
-
|
|
960
|
+
connector_type: 'embedded';
|
|
983
961
|
|
|
984
|
-
|
|
985
|
-
}
|
|
962
|
+
delegated: boolean;
|
|
986
963
|
|
|
987
|
-
/**
|
|
988
|
-
* A Twitch OAuth account linked to the user.
|
|
989
|
-
*/
|
|
990
|
-
export interface LinkedAccountTwitchOAuth {
|
|
991
964
|
first_verified_at: number | null;
|
|
992
965
|
|
|
966
|
+
imported: boolean;
|
|
967
|
+
|
|
993
968
|
latest_verified_at: number | null;
|
|
994
969
|
|
|
995
|
-
|
|
970
|
+
public_key: string;
|
|
996
971
|
|
|
997
|
-
|
|
972
|
+
/**
|
|
973
|
+
* The method used to recover an embedded wallet account.
|
|
974
|
+
*/
|
|
975
|
+
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
998
976
|
|
|
999
|
-
|
|
977
|
+
type: 'wallet';
|
|
1000
978
|
|
|
1001
979
|
verified_at: number;
|
|
980
|
+
|
|
981
|
+
wallet_client: 'privy';
|
|
982
|
+
|
|
983
|
+
wallet_client_type: 'privy';
|
|
984
|
+
|
|
985
|
+
wallet_index: number;
|
|
1002
986
|
}
|
|
1003
987
|
|
|
1004
988
|
/**
|
|
1005
|
-
*
|
|
989
|
+
* A curve signing embedded wallet account linked to the user.
|
|
1006
990
|
*/
|
|
1007
|
-
export interface
|
|
1008
|
-
|
|
991
|
+
export interface LinkedAccountCurveSigningEmbeddedWallet {
|
|
992
|
+
id: string | null;
|
|
1009
993
|
|
|
1010
|
-
|
|
994
|
+
address: string;
|
|
1011
995
|
|
|
1012
|
-
|
|
996
|
+
chain_id: string;
|
|
1013
997
|
|
|
1014
|
-
|
|
998
|
+
/**
|
|
999
|
+
* The wallet chain types that support curve-based signing.
|
|
1000
|
+
*/
|
|
1001
|
+
chain_type: WalletsAPI.CurveSigningChainType;
|
|
1015
1002
|
|
|
1016
|
-
|
|
1003
|
+
connector_type: 'embedded';
|
|
1017
1004
|
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1005
|
+
delegated: boolean;
|
|
1020
1006
|
|
|
1021
|
-
/**
|
|
1022
|
-
* A custom OAuth account linked to the user.
|
|
1023
|
-
*/
|
|
1024
|
-
export interface LinkedAccountCustomOAuth {
|
|
1025
1007
|
first_verified_at: number | null;
|
|
1026
1008
|
|
|
1009
|
+
imported: boolean;
|
|
1010
|
+
|
|
1027
1011
|
latest_verified_at: number | null;
|
|
1028
1012
|
|
|
1029
|
-
|
|
1013
|
+
public_key: string;
|
|
1030
1014
|
|
|
1031
1015
|
/**
|
|
1032
|
-
* The
|
|
1033
|
-
* "custom:".
|
|
1016
|
+
* The method used to recover an embedded wallet account.
|
|
1034
1017
|
*/
|
|
1035
|
-
|
|
1018
|
+
recovery_method: EmbeddedWalletRecoveryMethod;
|
|
1036
1019
|
|
|
1037
|
-
|
|
1020
|
+
type: 'wallet';
|
|
1038
1021
|
|
|
1039
|
-
|
|
1022
|
+
verified_at: number;
|
|
1040
1023
|
|
|
1041
|
-
|
|
1024
|
+
wallet_client: 'privy';
|
|
1042
1025
|
|
|
1043
|
-
|
|
1026
|
+
wallet_client_type: 'privy';
|
|
1044
1027
|
|
|
1045
|
-
|
|
1028
|
+
wallet_index: number;
|
|
1046
1029
|
}
|
|
1047
1030
|
|
|
1031
|
+
export type LinkedAccountEmbeddedWallet =
|
|
1032
|
+
| LinkedAccountEthereumEmbeddedWallet
|
|
1033
|
+
| LinkedAccountSolanaEmbeddedWallet
|
|
1034
|
+
| LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
1035
|
+
| LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
1036
|
+
| LinkedAccountCurveSigningEmbeddedWallet;
|
|
1037
|
+
|
|
1048
1038
|
/**
|
|
1049
|
-
*
|
|
1039
|
+
* An embedded wallet account with an ID.
|
|
1050
1040
|
*/
|
|
1051
|
-
export
|
|
1052
|
-
|
|
1041
|
+
export type LinkedAccountEmbeddedWalletWithID =
|
|
1042
|
+
| LinkedAccountEmbeddedWalletWithID.LinkedAccountEthereumEmbeddedWallet
|
|
1043
|
+
| LinkedAccountEmbeddedWalletWithID.LinkedAccountSolanaEmbeddedWallet
|
|
1044
|
+
| LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
1045
|
+
| LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
1046
|
+
| LinkedAccountEmbeddedWalletWithID.LinkedAccountCurveSigningEmbeddedWallet;
|
|
1053
1047
|
|
|
1054
|
-
|
|
1048
|
+
export namespace LinkedAccountEmbeddedWalletWithID {
|
|
1049
|
+
/**
|
|
1050
|
+
* An Ethereum embedded wallet account linked to the user.
|
|
1051
|
+
*/
|
|
1052
|
+
export interface LinkedAccountEthereumEmbeddedWallet
|
|
1053
|
+
extends Omit<UsersAPI.LinkedAccountEthereumEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
1054
|
+
id: string;
|
|
1055
1055
|
|
|
1056
|
-
|
|
1056
|
+
recovery_method: 'privy-v2';
|
|
1057
|
+
}
|
|
1057
1058
|
|
|
1058
|
-
|
|
1059
|
+
/**
|
|
1060
|
+
* A Solana embedded wallet account linked to the user.
|
|
1061
|
+
*/
|
|
1062
|
+
export interface LinkedAccountSolanaEmbeddedWallet
|
|
1063
|
+
extends Omit<UsersAPI.LinkedAccountSolanaEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
1064
|
+
id: string;
|
|
1059
1065
|
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1066
|
+
recovery_method: 'privy-v2';
|
|
1067
|
+
}
|
|
1062
1068
|
|
|
1063
|
-
/**
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
export interface
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
+
/**
|
|
1070
|
+
* A Bitcoin SegWit embedded wallet account linked to the user.
|
|
1071
|
+
*/
|
|
1072
|
+
export interface LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
1073
|
+
extends Omit<UsersAPI.LinkedAccountBitcoinSegwitEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
1074
|
+
id: string;
|
|
1069
1075
|
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1076
|
+
recovery_method: 'privy-v2';
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* A Bitcoin Taproot embedded wallet account linked to the user.
|
|
1081
|
+
*/
|
|
1082
|
+
export interface LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
1083
|
+
extends Omit<UsersAPI.LinkedAccountBitcoinTaprootEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
1084
|
+
id: string;
|
|
1085
|
+
|
|
1086
|
+
recovery_method: 'privy-v2';
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* A curve signing embedded wallet account linked to the user.
|
|
1091
|
+
*/
|
|
1092
|
+
export interface LinkedAccountCurveSigningEmbeddedWallet
|
|
1093
|
+
extends Omit<UsersAPI.LinkedAccountCurveSigningEmbeddedWallet, 'id' | 'recovery_method'> {
|
|
1094
|
+
id: string;
|
|
1095
|
+
|
|
1096
|
+
recovery_method: 'privy-v2';
|
|
1097
|
+
}
|
|
1075
1098
|
}
|
|
1076
1099
|
|
|
1077
1100
|
/**
|
|
1078
|
-
* A
|
|
1101
|
+
* A Google OAuth account linked to the user.
|
|
1079
1102
|
*/
|
|
1080
|
-
export interface
|
|
1081
|
-
|
|
1103
|
+
export interface LinkedAccountGoogleOAuth {
|
|
1104
|
+
email: string;
|
|
1082
1105
|
|
|
1083
1106
|
first_verified_at: number | null;
|
|
1084
1107
|
|
|
1085
1108
|
latest_verified_at: number | null;
|
|
1086
1109
|
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
smart_wallets: Array<CrossAppSmartWallet>;
|
|
1110
|
+
name: string | null;
|
|
1090
1111
|
|
|
1091
1112
|
subject: string;
|
|
1092
1113
|
|
|
1093
|
-
type: '
|
|
1114
|
+
type: 'google_oauth';
|
|
1094
1115
|
|
|
1095
1116
|
verified_at: number;
|
|
1096
1117
|
}
|
|
1097
1118
|
|
|
1098
1119
|
/**
|
|
1099
|
-
*
|
|
1120
|
+
* A Twitter OAuth account linked to the user.
|
|
1100
1121
|
*/
|
|
1101
|
-
export interface
|
|
1122
|
+
export interface LinkedAccountTwitterOAuth {
|
|
1102
1123
|
first_verified_at: number | null;
|
|
1103
1124
|
|
|
1104
1125
|
latest_verified_at: number | null;
|
|
1105
1126
|
|
|
1106
|
-
|
|
1127
|
+
name: string | null;
|
|
1107
1128
|
|
|
1108
|
-
|
|
1129
|
+
profile_picture_url: string | null;
|
|
1109
1130
|
|
|
1110
|
-
|
|
1111
|
-
}
|
|
1131
|
+
subject: string;
|
|
1112
1132
|
|
|
1113
|
-
|
|
1114
|
-
* A linked account for the user.
|
|
1115
|
-
*/
|
|
1116
|
-
export type LinkedAccount =
|
|
1117
|
-
| LinkedAccountEmail
|
|
1118
|
-
| LinkedAccountPhone
|
|
1119
|
-
| LinkedAccountEthereum
|
|
1120
|
-
| LinkedAccountSolana
|
|
1121
|
-
| LinkedAccountSmartWallet
|
|
1122
|
-
| LinkedAccountEthereumEmbeddedWallet
|
|
1123
|
-
| LinkedAccountSolanaEmbeddedWallet
|
|
1124
|
-
| LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
1125
|
-
| LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
1126
|
-
| LinkedAccountCurveSigningEmbeddedWallet
|
|
1127
|
-
| LinkedAccountGoogleOAuth
|
|
1128
|
-
| LinkedAccountTwitterOAuth
|
|
1129
|
-
| LinkedAccountDiscordOAuth
|
|
1130
|
-
| LinkedAccountGitHubOAuth
|
|
1131
|
-
| LinkedAccountSpotifyOAuth
|
|
1132
|
-
| LinkedAccountInstagramOAuth
|
|
1133
|
-
| LinkedAccountTiktokOAuth
|
|
1134
|
-
| LinkedAccountLineOAuth
|
|
1135
|
-
| LinkedAccountTwitchOAuth
|
|
1136
|
-
| LinkedAccountLinkedInOAuth
|
|
1137
|
-
| LinkedAccountAppleOAuth
|
|
1138
|
-
| LinkedAccountCustomOAuth
|
|
1139
|
-
| LinkedAccountCustomJwt
|
|
1140
|
-
| LinkedAccountFarcaster
|
|
1141
|
-
| LinkedAccountPasskey
|
|
1142
|
-
| LinkedAccountTelegram
|
|
1143
|
-
| LinkedAccountCrossApp
|
|
1144
|
-
| LinkedAccountAuthorizationKey;
|
|
1133
|
+
type: 'twitter_oauth';
|
|
1145
1134
|
|
|
1146
|
-
|
|
1147
|
-
* The possible types of linked accounts.
|
|
1148
|
-
*/
|
|
1149
|
-
export type LinkedAccountType =
|
|
1150
|
-
| 'email'
|
|
1151
|
-
| 'phone'
|
|
1152
|
-
| 'wallet'
|
|
1153
|
-
| 'smart_wallet'
|
|
1154
|
-
| 'google_oauth'
|
|
1155
|
-
| 'twitter_oauth'
|
|
1156
|
-
| 'discord_oauth'
|
|
1157
|
-
| 'github_oauth'
|
|
1158
|
-
| 'spotify_oauth'
|
|
1159
|
-
| 'instagram_oauth'
|
|
1160
|
-
| 'tiktok_oauth'
|
|
1161
|
-
| 'line_oauth'
|
|
1162
|
-
| 'twitch_oauth'
|
|
1163
|
-
| 'linkedin_oauth'
|
|
1164
|
-
| 'apple_oauth'
|
|
1165
|
-
| 'custom_auth'
|
|
1166
|
-
| 'farcaster'
|
|
1167
|
-
| 'passkey'
|
|
1168
|
-
| 'telegram'
|
|
1169
|
-
| 'cross_app'
|
|
1170
|
-
| 'authorization_key'
|
|
1171
|
-
| ClientAuthAPI.CustomOAuthProviderID;
|
|
1135
|
+
username: string | null;
|
|
1172
1136
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
*/
|
|
1176
|
-
export type CustomMetadata = { [key: string]: string | number | boolean };
|
|
1137
|
+
verified_at: number;
|
|
1138
|
+
}
|
|
1177
1139
|
|
|
1178
1140
|
/**
|
|
1179
|
-
*
|
|
1141
|
+
* A Discord OAuth account linked to the user.
|
|
1180
1142
|
*/
|
|
1181
|
-
export interface
|
|
1182
|
-
|
|
1143
|
+
export interface LinkedAccountDiscordOAuth {
|
|
1144
|
+
email: string | null;
|
|
1183
1145
|
|
|
1184
|
-
|
|
1146
|
+
first_verified_at: number | null;
|
|
1185
1147
|
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1148
|
+
latest_verified_at: number | null;
|
|
1188
1149
|
|
|
1189
|
-
|
|
1190
|
-
* The payload for importing an email account.
|
|
1191
|
-
*/
|
|
1192
|
-
export interface LinkedAccountEmailInput {
|
|
1193
|
-
address: string;
|
|
1150
|
+
subject: string;
|
|
1194
1151
|
|
|
1195
|
-
type: '
|
|
1196
|
-
}
|
|
1152
|
+
type: 'discord_oauth';
|
|
1197
1153
|
|
|
1198
|
-
|
|
1199
|
-
* The payload for importing a phone account.
|
|
1200
|
-
*/
|
|
1201
|
-
export interface LinkedAccountPhoneInput {
|
|
1202
|
-
number: string;
|
|
1154
|
+
username: string | null;
|
|
1203
1155
|
|
|
1204
|
-
|
|
1156
|
+
verified_at: number;
|
|
1205
1157
|
}
|
|
1206
1158
|
|
|
1207
1159
|
/**
|
|
1208
|
-
*
|
|
1160
|
+
* A GitHub OAuth account linked to the user.
|
|
1209
1161
|
*/
|
|
1210
|
-
export interface
|
|
1211
|
-
email: string;
|
|
1212
|
-
|
|
1213
|
-
name: string;
|
|
1162
|
+
export interface LinkedAccountGitHubOAuth {
|
|
1163
|
+
email: string | null;
|
|
1214
1164
|
|
|
1215
|
-
|
|
1165
|
+
first_verified_at: number | null;
|
|
1216
1166
|
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1167
|
+
latest_verified_at: number | null;
|
|
1219
1168
|
|
|
1220
|
-
|
|
1221
|
-
* The payload for importing a Twitter account.
|
|
1222
|
-
*/
|
|
1223
|
-
export interface LinkedAccountTwitterInput {
|
|
1224
|
-
name: string;
|
|
1169
|
+
name: string | null;
|
|
1225
1170
|
|
|
1226
1171
|
subject: string;
|
|
1227
1172
|
|
|
1228
|
-
type: '
|
|
1173
|
+
type: 'github_oauth';
|
|
1229
1174
|
|
|
1230
|
-
username: string;
|
|
1175
|
+
username: string | null;
|
|
1231
1176
|
|
|
1232
|
-
|
|
1177
|
+
verified_at: number;
|
|
1233
1178
|
}
|
|
1234
1179
|
|
|
1235
1180
|
/**
|
|
1236
|
-
*
|
|
1181
|
+
* A LinkedIn OAuth account linked to the user.
|
|
1237
1182
|
*/
|
|
1238
|
-
export interface
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
type: 'discord_oauth';
|
|
1183
|
+
export interface LinkedAccountLinkedInOAuth {
|
|
1184
|
+
email: string | null;
|
|
1242
1185
|
|
|
1243
|
-
|
|
1186
|
+
first_verified_at: number | null;
|
|
1244
1187
|
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1188
|
+
latest_verified_at: number | null;
|
|
1247
1189
|
|
|
1248
|
-
/**
|
|
1249
|
-
* The payload for importing a Github account.
|
|
1250
|
-
*/
|
|
1251
|
-
export interface LinkedAccountGitHubInput {
|
|
1252
1190
|
subject: string;
|
|
1253
1191
|
|
|
1254
|
-
type: '
|
|
1255
|
-
|
|
1256
|
-
username: string;
|
|
1192
|
+
type: 'linkedin_oauth';
|
|
1257
1193
|
|
|
1258
|
-
|
|
1194
|
+
verified_at: number;
|
|
1259
1195
|
|
|
1260
1196
|
name?: string;
|
|
1197
|
+
|
|
1198
|
+
vanity_name?: string;
|
|
1261
1199
|
}
|
|
1262
1200
|
|
|
1263
1201
|
/**
|
|
1264
|
-
*
|
|
1202
|
+
* A Spotify OAuth account linked to the user.
|
|
1265
1203
|
*/
|
|
1266
|
-
export interface
|
|
1204
|
+
export interface LinkedAccountSpotifyOAuth {
|
|
1205
|
+
email: string | null;
|
|
1206
|
+
|
|
1207
|
+
first_verified_at: number | null;
|
|
1208
|
+
|
|
1209
|
+
latest_verified_at: number | null;
|
|
1210
|
+
|
|
1211
|
+
name: string | null;
|
|
1212
|
+
|
|
1267
1213
|
subject: string;
|
|
1268
1214
|
|
|
1269
1215
|
type: 'spotify_oauth';
|
|
1270
1216
|
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
name?: string;
|
|
1217
|
+
verified_at: number;
|
|
1274
1218
|
}
|
|
1275
1219
|
|
|
1276
1220
|
/**
|
|
1277
|
-
*
|
|
1221
|
+
* An Instagram OAuth account linked to the user.
|
|
1278
1222
|
*/
|
|
1279
|
-
export interface
|
|
1223
|
+
export interface LinkedAccountInstagramOAuth {
|
|
1224
|
+
first_verified_at: number | null;
|
|
1225
|
+
|
|
1226
|
+
latest_verified_at: number | null;
|
|
1227
|
+
|
|
1280
1228
|
subject: string;
|
|
1281
1229
|
|
|
1282
1230
|
type: 'instagram_oauth';
|
|
1283
1231
|
|
|
1284
|
-
username: string;
|
|
1232
|
+
username: string | null;
|
|
1233
|
+
|
|
1234
|
+
verified_at: number;
|
|
1285
1235
|
}
|
|
1286
1236
|
|
|
1287
1237
|
/**
|
|
1288
|
-
*
|
|
1238
|
+
* A TikTok OAuth account linked to the user.
|
|
1289
1239
|
*/
|
|
1290
|
-
export interface
|
|
1240
|
+
export interface LinkedAccountTiktokOAuth {
|
|
1241
|
+
first_verified_at: number | null;
|
|
1242
|
+
|
|
1243
|
+
latest_verified_at: number | null;
|
|
1244
|
+
|
|
1291
1245
|
name: string | null;
|
|
1292
1246
|
|
|
1293
1247
|
subject: string;
|
|
1294
1248
|
|
|
1295
1249
|
type: 'tiktok_oauth';
|
|
1296
1250
|
|
|
1297
|
-
username: string;
|
|
1251
|
+
username: string | null;
|
|
1252
|
+
|
|
1253
|
+
verified_at: number;
|
|
1298
1254
|
}
|
|
1299
1255
|
|
|
1300
1256
|
/**
|
|
1301
|
-
*
|
|
1257
|
+
* A LINE OAuth account linked to the user.
|
|
1302
1258
|
*/
|
|
1303
|
-
export interface
|
|
1304
|
-
|
|
1259
|
+
export interface LinkedAccountLineOAuth {
|
|
1260
|
+
email: string | null;
|
|
1305
1261
|
|
|
1306
|
-
|
|
1262
|
+
first_verified_at: number | null;
|
|
1307
1263
|
|
|
1308
|
-
|
|
1264
|
+
latest_verified_at: number | null;
|
|
1309
1265
|
|
|
1310
|
-
name
|
|
1266
|
+
name: string | null;
|
|
1311
1267
|
|
|
1312
|
-
profile_picture_url
|
|
1313
|
-
}
|
|
1268
|
+
profile_picture_url: string | null;
|
|
1314
1269
|
|
|
1315
|
-
/**
|
|
1316
|
-
* The payload for importing a Twitch account.
|
|
1317
|
-
*/
|
|
1318
|
-
export interface LinkedAccountTwitchInput {
|
|
1319
1270
|
subject: string;
|
|
1320
1271
|
|
|
1321
|
-
type: '
|
|
1272
|
+
type: 'line_oauth';
|
|
1322
1273
|
|
|
1323
|
-
|
|
1274
|
+
verified_at: number;
|
|
1324
1275
|
}
|
|
1325
1276
|
|
|
1326
1277
|
/**
|
|
1327
|
-
*
|
|
1278
|
+
* A Twitch OAuth account linked to the user.
|
|
1328
1279
|
*/
|
|
1329
|
-
export interface
|
|
1280
|
+
export interface LinkedAccountTwitchOAuth {
|
|
1281
|
+
first_verified_at: number | null;
|
|
1282
|
+
|
|
1283
|
+
latest_verified_at: number | null;
|
|
1284
|
+
|
|
1330
1285
|
subject: string;
|
|
1331
1286
|
|
|
1332
|
-
type: '
|
|
1287
|
+
type: 'twitch_oauth';
|
|
1333
1288
|
|
|
1334
|
-
|
|
1289
|
+
username: string | null;
|
|
1290
|
+
|
|
1291
|
+
verified_at: number;
|
|
1335
1292
|
}
|
|
1336
1293
|
|
|
1337
1294
|
/**
|
|
1338
|
-
*
|
|
1295
|
+
* An Apple OAuth account linked to the user.
|
|
1339
1296
|
*/
|
|
1340
|
-
export interface
|
|
1341
|
-
|
|
1297
|
+
export interface LinkedAccountAppleOAuth {
|
|
1298
|
+
email: string | null;
|
|
1342
1299
|
|
|
1343
|
-
|
|
1300
|
+
first_verified_at: number | null;
|
|
1301
|
+
|
|
1302
|
+
latest_verified_at: number | null;
|
|
1344
1303
|
|
|
1345
|
-
|
|
1304
|
+
subject: string;
|
|
1346
1305
|
|
|
1347
|
-
|
|
1306
|
+
type: 'apple_oauth';
|
|
1348
1307
|
|
|
1349
|
-
|
|
1308
|
+
verified_at: number;
|
|
1350
1309
|
}
|
|
1351
1310
|
|
|
1352
1311
|
/**
|
|
1353
|
-
*
|
|
1312
|
+
* A custom OAuth account linked to the user.
|
|
1354
1313
|
*/
|
|
1355
|
-
export interface
|
|
1356
|
-
|
|
1314
|
+
export interface LinkedAccountCustomOAuth {
|
|
1315
|
+
first_verified_at: number | null;
|
|
1357
1316
|
|
|
1358
|
-
|
|
1317
|
+
latest_verified_at: number | null;
|
|
1359
1318
|
|
|
1360
|
-
|
|
1319
|
+
subject: string;
|
|
1361
1320
|
|
|
1362
|
-
|
|
1321
|
+
/**
|
|
1322
|
+
* The ID of a custom OAuth provider, set up for this app. Must start with
|
|
1323
|
+
* "custom:".
|
|
1324
|
+
*/
|
|
1325
|
+
type: ClientAuthAPI.CustomOAuthProviderID;
|
|
1363
1326
|
|
|
1364
|
-
|
|
1327
|
+
verified_at: number;
|
|
1365
1328
|
|
|
1366
|
-
|
|
1329
|
+
email?: string;
|
|
1330
|
+
|
|
1331
|
+
name?: string;
|
|
1367
1332
|
|
|
1368
1333
|
profile_picture_url?: string;
|
|
1369
1334
|
|
|
@@ -1371,123 +1336,129 @@ export interface LinkedAccountFarcasterInput {
|
|
|
1371
1336
|
}
|
|
1372
1337
|
|
|
1373
1338
|
/**
|
|
1374
|
-
*
|
|
1339
|
+
* A custom JWT account linked to the user.
|
|
1375
1340
|
*/
|
|
1376
|
-
export interface
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
type: 'telegram';
|
|
1341
|
+
export interface LinkedAccountCustomJwt {
|
|
1342
|
+
custom_user_id: string;
|
|
1380
1343
|
|
|
1381
|
-
|
|
1344
|
+
first_verified_at: number | null;
|
|
1382
1345
|
|
|
1383
|
-
|
|
1346
|
+
latest_verified_at: number | null;
|
|
1384
1347
|
|
|
1385
|
-
|
|
1348
|
+
type: 'custom_auth';
|
|
1386
1349
|
|
|
1387
|
-
|
|
1350
|
+
verified_at: number;
|
|
1388
1351
|
}
|
|
1389
1352
|
|
|
1390
1353
|
/**
|
|
1391
|
-
*
|
|
1354
|
+
* An embedded wallet associated with a cross-app account.
|
|
1392
1355
|
*/
|
|
1393
|
-
export interface
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
type: 'custom_auth';
|
|
1356
|
+
export interface CrossAppEmbeddedWallet {
|
|
1357
|
+
address: string;
|
|
1397
1358
|
}
|
|
1398
1359
|
|
|
1399
1360
|
/**
|
|
1400
|
-
*
|
|
1361
|
+
* A smart wallet associated with a cross-app account.
|
|
1401
1362
|
*/
|
|
1402
|
-
export interface
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
credential_id: string;
|
|
1406
|
-
|
|
1407
|
-
credential_public_key: string;
|
|
1408
|
-
|
|
1409
|
-
credential_username: string;
|
|
1410
|
-
|
|
1411
|
-
type: 'passkey';
|
|
1363
|
+
export interface CrossAppSmartWallet {
|
|
1364
|
+
address: string;
|
|
1412
1365
|
}
|
|
1413
1366
|
|
|
1414
1367
|
/**
|
|
1415
|
-
*
|
|
1416
|
-
*/
|
|
1417
|
-
export type LinkedAccountInput =
|
|
1418
|
-
| LinkedAccountWalletInput
|
|
1419
|
-
| LinkedAccountEmailInput
|
|
1420
|
-
| LinkedAccountPhoneInput
|
|
1421
|
-
| LinkedAccountGoogleInput
|
|
1422
|
-
| LinkedAccountTwitterInput
|
|
1423
|
-
| LinkedAccountDiscordInput
|
|
1424
|
-
| LinkedAccountGitHubInput
|
|
1425
|
-
| LinkedAccountSpotifyInput
|
|
1426
|
-
| LinkedAccountInstagramInput
|
|
1427
|
-
| LinkedAccountTiktokInput
|
|
1428
|
-
| LinkedAccountLineInput
|
|
1429
|
-
| LinkedAccountTwitchInput
|
|
1430
|
-
| LinkedAccountAppleInput
|
|
1431
|
-
| LinkedAccountLinkedInInput
|
|
1432
|
-
| LinkedAccountFarcasterInput
|
|
1433
|
-
| LinkedAccountTelegramInput
|
|
1434
|
-
| LinkedAccountCustomJwtInput
|
|
1435
|
-
| LinkedAccountPasskeyInput;
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
* The payload for batch creating users.
|
|
1368
|
+
* A cross-app account linked to the user.
|
|
1439
1369
|
*/
|
|
1440
|
-
export interface
|
|
1441
|
-
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
export namespace UserBatchCreateInput {
|
|
1445
|
-
export interface User {
|
|
1446
|
-
linked_accounts: Array<UsersAPI.LinkedAccountInput>;
|
|
1370
|
+
export interface LinkedAccountCrossApp {
|
|
1371
|
+
embedded_wallets: Array<CrossAppEmbeddedWallet>;
|
|
1447
1372
|
|
|
1448
|
-
|
|
1373
|
+
first_verified_at: number | null;
|
|
1449
1374
|
|
|
1450
|
-
|
|
1375
|
+
latest_verified_at: number | null;
|
|
1451
1376
|
|
|
1452
|
-
|
|
1377
|
+
provider_app_id: string;
|
|
1453
1378
|
|
|
1454
|
-
|
|
1379
|
+
smart_wallets: Array<CrossAppSmartWallet>;
|
|
1455
1380
|
|
|
1456
|
-
|
|
1381
|
+
subject: string;
|
|
1457
1382
|
|
|
1458
|
-
|
|
1383
|
+
type: 'cross_app';
|
|
1459
1384
|
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
*/
|
|
1463
|
-
custom_metadata?: UsersAPI.CustomMetadata;
|
|
1385
|
+
verified_at: number;
|
|
1386
|
+
}
|
|
1464
1387
|
|
|
1465
|
-
|
|
1466
|
-
|
|
1388
|
+
/**
|
|
1389
|
+
* An authorization key linked to the user.
|
|
1390
|
+
*/
|
|
1391
|
+
export interface LinkedAccountAuthorizationKey {
|
|
1392
|
+
first_verified_at: number | null;
|
|
1467
1393
|
|
|
1468
|
-
|
|
1469
|
-
export interface Wallet {
|
|
1470
|
-
/**
|
|
1471
|
-
* The wallet chain types.
|
|
1472
|
-
*/
|
|
1473
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
1394
|
+
latest_verified_at: number | null;
|
|
1474
1395
|
|
|
1475
|
-
|
|
1396
|
+
public_key: string;
|
|
1476
1397
|
|
|
1477
|
-
|
|
1398
|
+
type: 'authorization_key';
|
|
1478
1399
|
|
|
1479
|
-
|
|
1480
|
-
|
|
1400
|
+
verified_at: number;
|
|
1401
|
+
}
|
|
1481
1402
|
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1403
|
+
/**
|
|
1404
|
+
* A linked account for the user.
|
|
1405
|
+
*/
|
|
1406
|
+
export type LinkedAccount =
|
|
1407
|
+
| LinkedAccountEmail
|
|
1408
|
+
| LinkedAccountPhone
|
|
1409
|
+
| LinkedAccountEthereum
|
|
1410
|
+
| LinkedAccountSolana
|
|
1411
|
+
| LinkedAccountSmartWallet
|
|
1412
|
+
| LinkedAccountEthereumEmbeddedWallet
|
|
1413
|
+
| LinkedAccountSolanaEmbeddedWallet
|
|
1414
|
+
| LinkedAccountBitcoinSegwitEmbeddedWallet
|
|
1415
|
+
| LinkedAccountBitcoinTaprootEmbeddedWallet
|
|
1416
|
+
| LinkedAccountCurveSigningEmbeddedWallet
|
|
1417
|
+
| LinkedAccountGoogleOAuth
|
|
1418
|
+
| LinkedAccountTwitterOAuth
|
|
1419
|
+
| LinkedAccountDiscordOAuth
|
|
1420
|
+
| LinkedAccountGitHubOAuth
|
|
1421
|
+
| LinkedAccountSpotifyOAuth
|
|
1422
|
+
| LinkedAccountInstagramOAuth
|
|
1423
|
+
| LinkedAccountTiktokOAuth
|
|
1424
|
+
| LinkedAccountLineOAuth
|
|
1425
|
+
| LinkedAccountTwitchOAuth
|
|
1426
|
+
| LinkedAccountLinkedInOAuth
|
|
1427
|
+
| LinkedAccountAppleOAuth
|
|
1428
|
+
| LinkedAccountCustomOAuth
|
|
1429
|
+
| LinkedAccountCustomJwt
|
|
1430
|
+
| LinkedAccountFarcaster
|
|
1431
|
+
| LinkedAccountPasskey
|
|
1432
|
+
| LinkedAccountTelegram
|
|
1433
|
+
| LinkedAccountCrossApp
|
|
1434
|
+
| LinkedAccountAuthorizationKey;
|
|
1485
1435
|
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1436
|
+
/**
|
|
1437
|
+
* The possible types of linked accounts.
|
|
1438
|
+
*/
|
|
1439
|
+
export type LinkedAccountType =
|
|
1440
|
+
| 'email'
|
|
1441
|
+
| 'phone'
|
|
1442
|
+
| 'wallet'
|
|
1443
|
+
| 'smart_wallet'
|
|
1444
|
+
| 'google_oauth'
|
|
1445
|
+
| 'twitter_oauth'
|
|
1446
|
+
| 'discord_oauth'
|
|
1447
|
+
| 'github_oauth'
|
|
1448
|
+
| 'spotify_oauth'
|
|
1449
|
+
| 'instagram_oauth'
|
|
1450
|
+
| 'tiktok_oauth'
|
|
1451
|
+
| 'line_oauth'
|
|
1452
|
+
| 'twitch_oauth'
|
|
1453
|
+
| 'linkedin_oauth'
|
|
1454
|
+
| 'apple_oauth'
|
|
1455
|
+
| 'custom_auth'
|
|
1456
|
+
| 'farcaster'
|
|
1457
|
+
| 'passkey'
|
|
1458
|
+
| 'telegram'
|
|
1459
|
+
| 'cross_app'
|
|
1460
|
+
| 'authorization_key'
|
|
1461
|
+
| ClientAuthAPI.CustomOAuthProviderID;
|
|
1491
1462
|
|
|
1492
1463
|
/**
|
|
1493
1464
|
* A SMS MFA method.
|
|
@@ -1528,7 +1499,7 @@ export interface User {
|
|
|
1528
1499
|
id: string;
|
|
1529
1500
|
|
|
1530
1501
|
/**
|
|
1531
|
-
* Unix timestamp of when the user was created in
|
|
1502
|
+
* Unix timestamp of when the user was created in seconds.
|
|
1532
1503
|
*/
|
|
1533
1504
|
created_at: number;
|
|
1534
1505
|
|
|
@@ -1653,9 +1624,9 @@ export namespace UserCreateParams {
|
|
|
1653
1624
|
export namespace Wallet {
|
|
1654
1625
|
export interface AdditionalSigner {
|
|
1655
1626
|
/**
|
|
1656
|
-
*
|
|
1627
|
+
* A unique identifier for a key quorum.
|
|
1657
1628
|
*/
|
|
1658
|
-
signer_id:
|
|
1629
|
+
signer_id: SharedAPI.KeyQuorumID;
|
|
1659
1630
|
|
|
1660
1631
|
/**
|
|
1661
1632
|
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
@@ -1718,30 +1689,7 @@ export interface UserGetByWalletAddressParams {
|
|
|
1718
1689
|
}
|
|
1719
1690
|
|
|
1720
1691
|
export interface UserPregenerateWalletsParams {
|
|
1721
|
-
wallets: Array<
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
export namespace UserPregenerateWalletsParams {
|
|
1725
|
-
export interface Wallet {
|
|
1726
|
-
/**
|
|
1727
|
-
* The wallet chain types.
|
|
1728
|
-
*/
|
|
1729
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
1730
|
-
|
|
1731
|
-
additional_signers?: Array<Wallet.AdditionalSigner>;
|
|
1732
|
-
|
|
1733
|
-
create_smart_wallet?: boolean;
|
|
1734
|
-
|
|
1735
|
-
policy_ids?: Array<string>;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
export namespace Wallet {
|
|
1739
|
-
export interface AdditionalSigner {
|
|
1740
|
-
signer_id: string;
|
|
1741
|
-
|
|
1742
|
-
override_policy_ids?: Array<string>;
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1692
|
+
wallets: Array<EmbeddedWalletsAPI.WalletCreationInput>;
|
|
1745
1693
|
}
|
|
1746
1694
|
|
|
1747
1695
|
export type UserSearchParams = UserSearchParams.Variant0 | UserSearchParams.Variant1;
|
|
@@ -1780,11 +1728,31 @@ export interface UserUnlinkLinkedAccountParams {
|
|
|
1780
1728
|
|
|
1781
1729
|
export declare namespace Users {
|
|
1782
1730
|
export {
|
|
1731
|
+
type CustomMetadata as CustomMetadata,
|
|
1732
|
+
type LinkedAccountWalletInput as LinkedAccountWalletInput,
|
|
1733
|
+
type LinkedAccountEmailInput as LinkedAccountEmailInput,
|
|
1734
|
+
type LinkedAccountPhoneInput as LinkedAccountPhoneInput,
|
|
1735
|
+
type LinkedAccountGoogleInput as LinkedAccountGoogleInput,
|
|
1736
|
+
type LinkedAccountTwitterInput as LinkedAccountTwitterInput,
|
|
1737
|
+
type LinkedAccountDiscordInput as LinkedAccountDiscordInput,
|
|
1738
|
+
type LinkedAccountGitHubInput as LinkedAccountGitHubInput,
|
|
1739
|
+
type LinkedAccountSpotifyInput as LinkedAccountSpotifyInput,
|
|
1740
|
+
type LinkedAccountInstagramInput as LinkedAccountInstagramInput,
|
|
1741
|
+
type LinkedAccountTiktokInput as LinkedAccountTiktokInput,
|
|
1742
|
+
type LinkedAccountLineInput as LinkedAccountLineInput,
|
|
1743
|
+
type LinkedAccountTwitchInput as LinkedAccountTwitchInput,
|
|
1744
|
+
type LinkedAccountAppleInput as LinkedAccountAppleInput,
|
|
1745
|
+
type LinkedAccountLinkedInInput as LinkedAccountLinkedInInput,
|
|
1746
|
+
type LinkedAccountFarcasterInput as LinkedAccountFarcasterInput,
|
|
1747
|
+
type LinkedAccountTelegramInput as LinkedAccountTelegramInput,
|
|
1748
|
+
type LinkedAccountCustomJwtInput as LinkedAccountCustomJwtInput,
|
|
1749
|
+
type LinkedAccountPasskeyInput as LinkedAccountPasskeyInput,
|
|
1750
|
+
type LinkedAccountInput as LinkedAccountInput,
|
|
1751
|
+
type UserBatchCreateInput as UserBatchCreateInput,
|
|
1783
1752
|
type LinkedAccountEmail as LinkedAccountEmail,
|
|
1784
1753
|
type LinkedAccountPhone as LinkedAccountPhone,
|
|
1785
1754
|
type LinkedAccountBaseWallet as LinkedAccountBaseWallet,
|
|
1786
1755
|
type LinkedAccountEthereum as LinkedAccountEthereum,
|
|
1787
|
-
type SmartWalletType as SmartWalletType,
|
|
1788
1756
|
type LinkedAccountSmartWallet as LinkedAccountSmartWallet,
|
|
1789
1757
|
type LinkedAccountSolana as LinkedAccountSolana,
|
|
1790
1758
|
type LinkedAccountFarcaster as LinkedAccountFarcaster,
|
|
@@ -1817,27 +1785,6 @@ export declare namespace Users {
|
|
|
1817
1785
|
type LinkedAccountAuthorizationKey as LinkedAccountAuthorizationKey,
|
|
1818
1786
|
type LinkedAccount as LinkedAccount,
|
|
1819
1787
|
type LinkedAccountType as LinkedAccountType,
|
|
1820
|
-
type CustomMetadata as CustomMetadata,
|
|
1821
|
-
type LinkedAccountWalletInput as LinkedAccountWalletInput,
|
|
1822
|
-
type LinkedAccountEmailInput as LinkedAccountEmailInput,
|
|
1823
|
-
type LinkedAccountPhoneInput as LinkedAccountPhoneInput,
|
|
1824
|
-
type LinkedAccountGoogleInput as LinkedAccountGoogleInput,
|
|
1825
|
-
type LinkedAccountTwitterInput as LinkedAccountTwitterInput,
|
|
1826
|
-
type LinkedAccountDiscordInput as LinkedAccountDiscordInput,
|
|
1827
|
-
type LinkedAccountGitHubInput as LinkedAccountGitHubInput,
|
|
1828
|
-
type LinkedAccountSpotifyInput as LinkedAccountSpotifyInput,
|
|
1829
|
-
type LinkedAccountInstagramInput as LinkedAccountInstagramInput,
|
|
1830
|
-
type LinkedAccountTiktokInput as LinkedAccountTiktokInput,
|
|
1831
|
-
type LinkedAccountLineInput as LinkedAccountLineInput,
|
|
1832
|
-
type LinkedAccountTwitchInput as LinkedAccountTwitchInput,
|
|
1833
|
-
type LinkedAccountAppleInput as LinkedAccountAppleInput,
|
|
1834
|
-
type LinkedAccountLinkedInInput as LinkedAccountLinkedInInput,
|
|
1835
|
-
type LinkedAccountFarcasterInput as LinkedAccountFarcasterInput,
|
|
1836
|
-
type LinkedAccountTelegramInput as LinkedAccountTelegramInput,
|
|
1837
|
-
type LinkedAccountCustomJwtInput as LinkedAccountCustomJwtInput,
|
|
1838
|
-
type LinkedAccountPasskeyInput as LinkedAccountPasskeyInput,
|
|
1839
|
-
type LinkedAccountInput as LinkedAccountInput,
|
|
1840
|
-
type UserBatchCreateInput as UserBatchCreateInput,
|
|
1841
1788
|
type SMSMfaMethod as SMSMfaMethod,
|
|
1842
1789
|
type TotpMfaMethod as TotpMfaMethod,
|
|
1843
1790
|
type PasskeyMfaMethod as PasskeyMfaMethod,
|