@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.
Files changed (188) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/client.d.mts +39 -30
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +39 -30
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +79 -106
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +79 -106
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/accounts.js.map +1 -1
  20. package/resources/accounts.mjs.map +1 -1
  21. package/resources/aggregations.d.mts +18 -392
  22. package/resources/aggregations.d.mts.map +1 -1
  23. package/resources/aggregations.d.ts +18 -392
  24. package/resources/aggregations.d.ts.map +1 -1
  25. package/resources/aggregations.js.map +1 -1
  26. package/resources/aggregations.mjs.map +1 -1
  27. package/resources/apps.d.mts +154 -71
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +154 -71
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/apps.js.map +1 -1
  32. package/resources/apps.mjs.map +1 -1
  33. package/resources/client-auth.d.mts +796 -427
  34. package/resources/client-auth.d.mts.map +1 -1
  35. package/resources/client-auth.d.ts +796 -427
  36. package/resources/client-auth.d.ts.map +1 -1
  37. package/resources/client-auth.js.map +1 -1
  38. package/resources/client-auth.mjs.map +1 -1
  39. package/resources/cross-app.d.mts +14 -13
  40. package/resources/cross-app.d.mts.map +1 -1
  41. package/resources/cross-app.d.ts +14 -13
  42. package/resources/cross-app.d.ts.map +1 -1
  43. package/resources/embedded-wallets.d.mts +167 -83
  44. package/resources/embedded-wallets.d.mts.map +1 -1
  45. package/resources/embedded-wallets.d.ts +167 -83
  46. package/resources/embedded-wallets.d.ts.map +1 -1
  47. package/resources/embedded-wallets.js.map +1 -1
  48. package/resources/embedded-wallets.mjs.map +1 -1
  49. package/resources/funding.d.mts +150 -64
  50. package/resources/funding.d.mts.map +1 -1
  51. package/resources/funding.d.ts +150 -64
  52. package/resources/funding.d.ts.map +1 -1
  53. package/resources/funding.js.map +1 -1
  54. package/resources/funding.mjs.map +1 -1
  55. package/resources/index.d.mts +18 -15
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +18 -15
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +7 -1
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +3 -0
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/intents.d.mts +224 -1757
  64. package/resources/intents.d.mts.map +1 -1
  65. package/resources/intents.d.ts +224 -1757
  66. package/resources/intents.d.ts.map +1 -1
  67. package/resources/intents.js.map +1 -1
  68. package/resources/intents.mjs.map +1 -1
  69. package/resources/key-quorums.d.mts +74 -26
  70. package/resources/key-quorums.d.mts.map +1 -1
  71. package/resources/key-quorums.d.ts +74 -26
  72. package/resources/key-quorums.d.ts.map +1 -1
  73. package/resources/key-quorums.js +8 -8
  74. package/resources/key-quorums.js.map +1 -1
  75. package/resources/key-quorums.mjs +8 -8
  76. package/resources/key-quorums.mjs.map +1 -1
  77. package/resources/kraken-embed.d.mts +52 -1
  78. package/resources/kraken-embed.d.mts.map +1 -1
  79. package/resources/kraken-embed.d.ts +52 -1
  80. package/resources/kraken-embed.d.ts.map +1 -1
  81. package/resources/policies.d.mts +512 -992
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +512 -992
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +48 -41
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +48 -41
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +59 -0
  90. package/resources/shared.d.mts.map +1 -0
  91. package/resources/shared.d.ts +59 -0
  92. package/resources/shared.d.ts.map +1 -0
  93. package/resources/shared.js +9 -0
  94. package/resources/shared.js.map +1 -0
  95. package/resources/shared.mjs +5 -0
  96. package/resources/shared.mjs.map +1 -0
  97. package/resources/swaps.d.mts +108 -0
  98. package/resources/swaps.d.mts.map +1 -0
  99. package/resources/swaps.d.ts +108 -0
  100. package/resources/swaps.d.ts.map +1 -0
  101. package/resources/swaps.js +9 -0
  102. package/resources/swaps.js.map +1 -0
  103. package/resources/swaps.mjs +5 -0
  104. package/resources/swaps.mjs.map +1 -0
  105. package/resources/transactions.d.mts +150 -98
  106. package/resources/transactions.d.mts.map +1 -1
  107. package/resources/transactions.d.ts +150 -98
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/users.d.mts +207 -240
  110. package/resources/users.d.mts.map +1 -1
  111. package/resources/users.d.ts +207 -240
  112. package/resources/users.d.ts.map +1 -1
  113. package/resources/users.js.map +1 -1
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +439 -0
  116. package/resources/wallet-actions.d.mts.map +1 -0
  117. package/resources/wallet-actions.d.ts +439 -0
  118. package/resources/wallet-actions.d.ts.map +1 -0
  119. package/resources/wallet-actions.js +9 -0
  120. package/resources/wallet-actions.js.map +1 -0
  121. package/resources/wallet-actions.mjs +5 -0
  122. package/resources/wallet-actions.mjs.map +1 -0
  123. package/resources/wallets/balance.d.mts +2 -1
  124. package/resources/wallets/balance.d.mts.map +1 -1
  125. package/resources/wallets/balance.d.ts +2 -1
  126. package/resources/wallets/balance.d.ts.map +1 -1
  127. package/resources/wallets/balance.js.map +1 -1
  128. package/resources/wallets/balance.mjs.map +1 -1
  129. package/resources/wallets/index.d.mts +1 -1
  130. package/resources/wallets/index.d.mts.map +1 -1
  131. package/resources/wallets/index.d.ts +1 -1
  132. package/resources/wallets/index.d.ts.map +1 -1
  133. package/resources/wallets/index.js.map +1 -1
  134. package/resources/wallets/index.mjs.map +1 -1
  135. package/resources/wallets/transactions.d.mts +11 -30
  136. package/resources/wallets/transactions.d.mts.map +1 -1
  137. package/resources/wallets/transactions.d.ts +11 -30
  138. package/resources/wallets/transactions.d.ts.map +1 -1
  139. package/resources/wallets/transactions.js.map +1 -1
  140. package/resources/wallets/transactions.mjs.map +1 -1
  141. package/resources/wallets/wallets.d.mts +2435 -923
  142. package/resources/wallets/wallets.d.mts.map +1 -1
  143. package/resources/wallets/wallets.d.ts +2435 -923
  144. package/resources/wallets/wallets.d.ts.map +1 -1
  145. package/resources/wallets/wallets.js +24 -11
  146. package/resources/wallets/wallets.js.map +1 -1
  147. package/resources/wallets/wallets.mjs +24 -11
  148. package/resources/wallets/wallets.mjs.map +1 -1
  149. package/resources/webhooks.d.mts +1296 -186
  150. package/resources/webhooks.d.mts.map +1 -1
  151. package/resources/webhooks.d.ts +1296 -186
  152. package/resources/webhooks.d.ts.map +1 -1
  153. package/resources/webhooks.js.map +1 -1
  154. package/resources/webhooks.mjs.map +1 -1
  155. package/resources/yield.d.mts +25 -1
  156. package/resources/yield.d.mts.map +1 -1
  157. package/resources/yield.d.ts +25 -1
  158. package/resources/yield.d.ts.map +1 -1
  159. package/src/client.ts +869 -92
  160. package/src/internal/utils/env.ts +2 -2
  161. package/src/resources/accounts.ts +93 -120
  162. package/src/resources/aggregations.ts +18 -702
  163. package/src/resources/apps.ts +211 -111
  164. package/src/resources/client-auth.ts +1361 -896
  165. package/src/resources/cross-app.ts +19 -15
  166. package/src/resources/embedded-wallets.ts +219 -123
  167. package/src/resources/funding.ts +263 -173
  168. package/src/resources/index.ts +447 -65
  169. package/src/resources/intents.ts +370 -3100
  170. package/src/resources/key-quorums.ts +100 -32
  171. package/src/resources/kraken-embed.ts +105 -0
  172. package/src/resources/policies.ts +648 -1494
  173. package/src/resources/shared.ts +79 -0
  174. package/src/resources/swaps.ts +136 -0
  175. package/src/resources/transactions.ts +169 -102
  176. package/src/resources/users.ts +676 -729
  177. package/src/resources/wallet-actions.ts +573 -0
  178. package/src/resources/wallets/balance.ts +2 -1
  179. package/src/resources/wallets/index.ts +156 -17
  180. package/src/resources/wallets/transactions.ts +12 -88
  181. package/src/resources/wallets/wallets.ts +3162 -1109
  182. package/src/resources/webhooks.ts +1609 -229
  183. package/src/resources/yield.ts +29 -0
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -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
- * An email account linked to the user.
327
+ * Custom metadata associated with the user.
326
328
  */
327
- export interface LinkedAccountEmail {
328
- address: string;
329
-
330
- first_verified_at: number | null;
329
+ export type CustomMetadata = { [key: string]: string | number | boolean };
331
330
 
332
- latest_verified_at: number | null;
331
+ /**
332
+ * The payload for importing a wallet account.
333
+ */
334
+ export interface LinkedAccountWalletInput {
335
+ address: string;
333
336
 
334
- type: 'email';
337
+ chain_type: 'ethereum' | 'solana';
335
338
 
336
- verified_at: number;
339
+ type: 'wallet';
337
340
  }
338
341
 
339
342
  /**
340
- * A phone number account linked to the user.
343
+ * The payload for importing an email account.
341
344
  */
342
- export interface LinkedAccountPhone {
343
- first_verified_at: number | null;
345
+ export interface LinkedAccountEmailInput {
346
+ address: string;
344
347
 
345
- latest_verified_at: number | null;
348
+ type: 'email';
349
+ }
346
350
 
347
- phoneNumber: string;
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
- * Base schema for wallet accounts linked to the user.
361
+ * The payload for importing a Google account.
358
362
  */
359
- export interface LinkedAccountBaseWallet {
360
- address: string;
363
+ export interface LinkedAccountGoogleInput {
364
+ email: string;
361
365
 
362
- chain_type: 'solana' | 'ethereum';
366
+ name: string;
363
367
 
364
- type: 'wallet' | 'smart_wallet';
368
+ subject: string;
369
+
370
+ type: 'google_oauth';
365
371
  }
366
372
 
367
373
  /**
368
- * An Ethereum wallet account linked to the user.
374
+ * The payload for importing a Twitter account.
369
375
  */
370
- export interface LinkedAccountEthereum {
371
- address: string;
372
-
373
- chain_type: 'ethereum';
376
+ export interface LinkedAccountTwitterInput {
377
+ name: string;
374
378
 
375
- first_verified_at: number | null;
379
+ subject: string;
376
380
 
377
- latest_verified_at: number | null;
381
+ type: 'twitter_oauth';
378
382
 
379
- type: 'wallet';
383
+ username: string;
380
384
 
381
- verified_at: number;
385
+ profile_picture_url?: string;
386
+ }
382
387
 
383
- wallet_client: 'unknown';
388
+ /**
389
+ * The payload for importing a Discord account.
390
+ */
391
+ export interface LinkedAccountDiscordInput {
392
+ subject: string;
384
393
 
385
- chain_id?: string;
394
+ type: 'discord_oauth';
386
395
 
387
- connector_type?: string;
396
+ username: string;
388
397
 
389
- wallet_client_type?: string;
398
+ email?: string;
390
399
  }
391
400
 
392
401
  /**
393
- * The provider for a smart wallet.
402
+ * The payload for importing a Github account.
394
403
  */
395
- export type SmartWalletType =
396
- | 'safe'
397
- | 'kernel'
398
- | 'light_account'
399
- | 'biconomy'
400
- | 'coinbase_smart_wallet'
401
- | 'thirdweb';
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
- * A smart wallet account linked to the user.
417
+ * The payload for importing a Spotify account.
405
418
  */
406
- export interface LinkedAccountSmartWallet {
407
- address: string;
419
+ export interface LinkedAccountSpotifyInput {
420
+ subject: string;
408
421
 
409
- first_verified_at: number | null;
422
+ type: 'spotify_oauth';
410
423
 
411
- latest_verified_at: number | null;
424
+ email?: string;
412
425
 
413
- /**
414
- * The provider for a smart wallet.
415
- */
416
- smart_wallet_type: SmartWalletType;
426
+ name?: string;
427
+ }
417
428
 
418
- type: 'smart_wallet';
429
+ /**
430
+ * The payload for importing an Instagram account.
431
+ */
432
+ export interface LinkedAccountInstagramInput {
433
+ subject: string;
419
434
 
420
- verified_at: number;
435
+ type: 'instagram_oauth';
421
436
 
422
- smart_wallet_version?: string;
437
+ username: string;
423
438
  }
424
439
 
425
440
  /**
426
- * A Solana wallet account linked to the user.
441
+ * The payload for importing a Tiktok account.
427
442
  */
428
- export interface LinkedAccountSolana {
429
- address: string;
443
+ export interface LinkedAccountTiktokInput {
444
+ name: string | null;
430
445
 
431
- chain_type: 'solana';
446
+ subject: string;
432
447
 
433
- first_verified_at: number | null;
448
+ type: 'tiktok_oauth';
434
449
 
435
- latest_verified_at: number | null;
450
+ username: string;
451
+ }
436
452
 
437
- type: 'wallet';
453
+ /**
454
+ * The payload for importing a LINE account.
455
+ */
456
+ export interface LinkedAccountLineInput {
457
+ subject: string;
438
458
 
439
- verified_at: number;
459
+ type: 'line_oauth';
440
460
 
441
- wallet_client: 'unknown';
461
+ email?: string;
442
462
 
443
- connector_type?: string;
463
+ name?: string;
444
464
 
445
- wallet_client_type?: string;
465
+ profile_picture_url?: string;
446
466
  }
447
467
 
448
468
  /**
449
- * A Farcaster account linked to the user.
469
+ * The payload for importing a Twitch account.
450
470
  */
451
- export interface LinkedAccountFarcaster {
452
- fid: number;
453
-
454
- first_verified_at: number | null;
455
-
456
- latest_verified_at: number | null;
471
+ export interface LinkedAccountTwitchInput {
472
+ subject: string;
457
473
 
458
- owner_address: string;
474
+ type: 'twitch_oauth';
459
475
 
460
- type: 'farcaster';
476
+ username?: string;
477
+ }
461
478
 
462
- verified_at: number;
479
+ /**
480
+ * The payload for importing an Apple account.
481
+ */
482
+ export interface LinkedAccountAppleInput {
483
+ subject: string;
463
484
 
464
- bio?: string;
485
+ type: 'apple_oauth';
465
486
 
466
- display_name?: string;
487
+ email?: string;
488
+ }
467
489
 
468
- homepage_url?: string;
490
+ /**
491
+ * The payload for importing a LinkedIn account.
492
+ */
493
+ export interface LinkedAccountLinkedInInput {
494
+ subject: string;
469
495
 
470
- profile_picture?: string;
496
+ type: 'linkedin_oauth';
471
497
 
472
- profile_picture_url?: string;
498
+ email?: string;
473
499
 
474
- signer_public_key?: string;
500
+ name?: string;
475
501
 
476
- username?: string;
502
+ vanityName?: string;
477
503
  }
478
504
 
479
505
  /**
480
- * A passkey account linked to the user.
506
+ * The payload for importing a Farcaster account.
481
507
  */
482
- export interface LinkedAccountPasskey {
483
- credential_id: string;
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
- type: 'passkey';
511
+ owner_address: string;
492
512
 
493
- verified_at: number;
513
+ type: 'farcaster';
494
514
 
495
- authenticator_name?: string;
515
+ bio?: string;
496
516
 
497
- created_with_browser?: string;
517
+ display_name?: string;
498
518
 
499
- created_with_device?: string;
519
+ homepage_url?: string;
500
520
 
501
- created_with_os?: string;
521
+ profile_picture_url?: string;
502
522
 
503
- public_key?: string;
523
+ username?: string;
504
524
  }
505
525
 
506
526
  /**
507
- * A Telegram account linked to the user.
527
+ * The payload for importing a Telegram account.
508
528
  */
509
- export interface LinkedAccountTelegram {
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
- verified_at: number;
519
-
520
- first_name?: string | null;
534
+ first_name?: string;
521
535
 
522
- last_name?: string | null;
536
+ last_name?: string;
523
537
 
524
- photo_url?: string | null;
538
+ photo_url?: string;
525
539
 
526
- username?: string | null;
540
+ username?: string;
527
541
  }
528
542
 
529
543
  /**
530
- * The method used to recover an embedded wallet account.
544
+ * The payload for importing a Custom JWT account.
531
545
  */
532
- export type EmbeddedWalletRecoveryMethod =
533
- | 'privy'
534
- | 'user-passcode'
535
- | 'google-drive'
536
- | 'icloud'
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
- * An Ethereum embedded wallet account linked to the user.
553
+ * The payload for importing a passkey account.
542
554
  */
543
- export interface LinkedAccountEthereumEmbeddedWallet {
544
- id: string | null;
545
-
546
- address: string;
555
+ export interface LinkedAccountPasskeyInput {
556
+ credential_device_type: 'singleDevice' | 'multiDevice';
547
557
 
548
- chain_id: string;
558
+ credential_id: string;
549
559
 
550
- chain_type: 'ethereum';
560
+ credential_public_key: string;
551
561
 
552
- connector_type: 'embedded';
562
+ credential_username: string;
553
563
 
554
- delegated: boolean;
564
+ type: 'passkey';
565
+ }
555
566
 
556
- first_verified_at: number | null;
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
- imported: boolean;
590
+ /**
591
+ * The payload for batch creating users.
592
+ */
593
+ export interface UserBatchCreateInput {
594
+ users: Array<UserBatchCreateInput.User>;
595
+ }
559
596
 
560
- latest_verified_at: number | null;
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
- type: 'wallet';
603
+ create_ethereum_smart_wallet?: boolean;
568
604
 
569
- verified_at: number;
605
+ create_ethereum_wallet?: boolean;
570
606
 
571
- wallet_client: 'privy';
607
+ create_n_embedded_wallets?: number;
572
608
 
573
- wallet_client_type: 'privy';
609
+ create_n_ethereum_wallets?: number;
574
610
 
575
- wallet_index: number;
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
- * A Solana embedded wallet account linked to the user.
626
+ * An email account linked to the user.
580
627
  */
581
- export interface LinkedAccountSolanaEmbeddedWallet {
582
- id: string | null;
583
-
628
+ export interface LinkedAccountEmail {
584
629
  address: string;
585
630
 
586
- chain_id: string;
631
+ first_verified_at: number | null;
587
632
 
588
- chain_type: 'solana';
633
+ latest_verified_at: number | null;
589
634
 
590
- connector_type: 'embedded';
635
+ type: 'email';
591
636
 
592
- delegated: boolean;
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
- public_key: string;
601
-
602
- /**
603
- * The method used to recover an embedded wallet account.
604
- */
605
- recovery_method: EmbeddedWalletRecoveryMethod;
648
+ phoneNumber: string;
606
649
 
607
- type: 'wallet';
650
+ type: 'phone';
608
651
 
609
652
  verified_at: number;
610
653
 
611
- wallet_client: 'privy';
612
-
613
- wallet_client_type: 'privy';
614
-
615
- wallet_index: number;
654
+ number?: string;
616
655
  }
617
656
 
618
657
  /**
619
- * A Bitcoin SegWit embedded wallet account linked to the user.
658
+ * Base schema for wallet accounts linked to the user.
620
659
  */
621
- export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
622
- id: string | null;
623
-
660
+ export interface LinkedAccountBaseWallet {
624
661
  address: string;
625
662
 
626
- chain_id: string;
663
+ chain_type: 'solana' | 'ethereum';
627
664
 
628
- chain_type: 'bitcoin-segwit';
665
+ type: 'wallet' | 'smart_wallet';
666
+ }
629
667
 
630
- connector_type: 'embedded';
668
+ /**
669
+ * An Ethereum wallet account linked to the user.
670
+ */
671
+ export interface LinkedAccountEthereum {
672
+ address: string;
631
673
 
632
- delegated: boolean;
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: 'privy';
684
+ wallet_client: 'unknown';
652
685
 
653
- wallet_client_type: 'privy';
686
+ chain_id?: string;
654
687
 
655
- wallet_index: number;
688
+ connector_type?: string;
689
+
690
+ wallet_client_type?: string;
656
691
  }
657
692
 
658
693
  /**
659
- * A Bitcoin Taproot embedded wallet account linked to the user.
694
+ * A smart wallet account linked to the user.
660
695
  */
661
- export interface LinkedAccountBitcoinTaprootEmbeddedWallet {
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 method used to recover an embedded wallet account.
704
+ * The supported smart wallet providers.
684
705
  */
685
- recovery_method: EmbeddedWalletRecoveryMethod;
706
+ smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
686
707
 
687
- type: 'wallet';
708
+ type: 'smart_wallet';
688
709
 
689
710
  verified_at: number;
690
711
 
691
- wallet_client: 'privy';
692
-
693
- wallet_client_type: 'privy';
694
-
695
- wallet_index: number;
712
+ smart_wallet_version?: string;
696
713
  }
697
714
 
698
715
  /**
699
- * A curve signing embedded wallet account linked to the user.
716
+ * A Solana wallet account linked to the user.
700
717
  */
701
- export interface LinkedAccountCurveSigningEmbeddedWallet {
702
- id: string | null;
703
-
718
+ export interface LinkedAccountSolana {
704
719
  address: string;
705
720
 
706
- chain_id: string;
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: 'privy';
731
+ wallet_client: 'unknown';
735
732
 
736
- wallet_client_type: 'privy';
733
+ connector_type?: string;
737
734
 
738
- wallet_index: number;
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
- * An embedded wallet account with an ID.
739
+ * A Farcaster account linked to the user.
750
740
  */
751
- export type LinkedAccountEmbeddedWalletWithID =
752
- | LinkedAccountEmbeddedWalletWithID.LinkedAccountEthereumEmbeddedWallet
753
- | LinkedAccountEmbeddedWalletWithID.LinkedAccountSolanaEmbeddedWallet
754
- | LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinSegwitEmbeddedWallet
755
- | LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinTaprootEmbeddedWallet
756
- | LinkedAccountEmbeddedWalletWithID.LinkedAccountCurveSigningEmbeddedWallet;
741
+ export interface LinkedAccountFarcaster {
742
+ fid: number;
757
743
 
758
- export namespace LinkedAccountEmbeddedWalletWithID {
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
- recovery_method: 'privy-v2';
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
- recovery_method: 'privy-v2';
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
- recovery_method: 'privy-v2';
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
- recovery_method: 'privy-v2';
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
- recovery_method: 'privy-v2';
807
- }
762
+ profile_picture_url?: string;
763
+
764
+ signer_public_key?: string;
765
+
766
+ username?: string;
808
767
  }
809
768
 
810
769
  /**
811
- * A Google OAuth account linked to the user.
770
+ * A passkey account linked to the user.
812
771
  */
813
- export interface LinkedAccountGoogleOAuth {
814
- email: string;
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
- name: string | null;
781
+ type: 'passkey';
821
782
 
822
- subject: string;
783
+ verified_at: number;
823
784
 
824
- type: 'google_oauth';
785
+ authenticator_name?: string;
825
786
 
826
- verified_at: number;
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 Twitter OAuth account linked to the user.
797
+ * A Telegram account linked to the user.
831
798
  */
832
- export interface LinkedAccountTwitterOAuth {
799
+ export interface LinkedAccountTelegram {
833
800
  first_verified_at: number | null;
834
801
 
835
802
  latest_verified_at: number | null;
836
803
 
837
- name: string | null;
804
+ telegram_user_id: string;
838
805
 
839
- profile_picture_url: string | null;
806
+ type: 'telegram';
840
807
 
841
- subject: string;
808
+ verified_at: number;
842
809
 
843
- type: 'twitter_oauth';
810
+ first_name?: string | null;
844
811
 
845
- username: string | null;
812
+ last_name?: string | null;
846
813
 
847
- verified_at: number;
814
+ photo_url?: string | null;
815
+
816
+ username?: string | null;
848
817
  }
849
818
 
850
819
  /**
851
- * A Discord OAuth account linked to the user.
820
+ * The method used to recover an embedded wallet account.
852
821
  */
853
- export interface LinkedAccountDiscordOAuth {
854
- email: string | null;
855
-
856
- first_verified_at: number | null;
822
+ export type EmbeddedWalletRecoveryMethod =
823
+ | 'privy'
824
+ | 'user-passcode'
825
+ | 'google-drive'
826
+ | 'icloud'
827
+ | 'recovery-encryption-key'
828
+ | 'privy-v2';
857
829
 
858
- latest_verified_at: number | null;
830
+ /**
831
+ * An Ethereum embedded wallet account linked to the user.
832
+ */
833
+ export interface LinkedAccountEthereumEmbeddedWallet {
834
+ id: string | null;
859
835
 
860
- subject: string;
836
+ address: string;
861
837
 
862
- type: 'discord_oauth';
838
+ chain_id: string;
863
839
 
864
- username: string | null;
840
+ chain_type: 'ethereum';
865
841
 
866
- verified_at: number;
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
- name: string | null;
852
+ /**
853
+ * The method used to recover an embedded wallet account.
854
+ */
855
+ recovery_method: EmbeddedWalletRecoveryMethod;
880
856
 
881
- subject: string;
857
+ type: 'wallet';
882
858
 
883
- type: 'github_oauth';
859
+ verified_at: number;
884
860
 
885
- username: string | null;
861
+ wallet_client: 'privy';
886
862
 
887
- verified_at: number;
863
+ wallet_client_type: 'privy';
864
+
865
+ wallet_index: number;
888
866
  }
889
867
 
890
868
  /**
891
- * A LinkedIn OAuth account linked to the user.
869
+ * A Solana embedded wallet account linked to the user.
892
870
  */
893
- export interface LinkedAccountLinkedInOAuth {
894
- email: string | null;
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
- type: 'linkedin_oauth';
874
+ address: string;
903
875
 
904
- verified_at: number;
876
+ chain_id: string;
905
877
 
906
- name?: string;
878
+ chain_type: 'solana';
907
879
 
908
- vanity_name?: string;
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
- name: string | null;
890
+ public_key: string;
922
891
 
923
- subject: string;
892
+ /**
893
+ * The method used to recover an embedded wallet account.
894
+ */
895
+ recovery_method: EmbeddedWalletRecoveryMethod;
924
896
 
925
- type: 'spotify_oauth';
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
- * An Instagram OAuth account linked to the user.
909
+ * A Bitcoin SegWit embedded wallet account linked to the user.
932
910
  */
933
- export interface LinkedAccountInstagramOAuth {
934
- first_verified_at: number | null;
911
+ export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
912
+ id: string | null;
935
913
 
936
- latest_verified_at: number | null;
914
+ address: string;
937
915
 
938
- subject: string;
916
+ chain_id: string;
939
917
 
940
- type: 'instagram_oauth';
918
+ chain_type: 'bitcoin-segwit';
941
919
 
942
- username: string | null;
920
+ connector_type: 'embedded';
943
921
 
944
- verified_at: number;
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
- latest_verified_at: number | null;
926
+ imported: boolean;
954
927
 
955
- name: string | null;
928
+ latest_verified_at: number | null;
956
929
 
957
- subject: string;
930
+ public_key: string;
958
931
 
959
- type: 'tiktok_oauth';
932
+ /**
933
+ * The method used to recover an embedded wallet account.
934
+ */
935
+ recovery_method: EmbeddedWalletRecoveryMethod;
960
936
 
961
- username: string | null;
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 LINE OAuth account linked to the user.
949
+ * A Bitcoin Taproot embedded wallet account linked to the user.
968
950
  */
969
- export interface LinkedAccountLineOAuth {
970
- email: string | null;
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
- name: string | null;
954
+ address: string;
977
955
 
978
- profile_picture_url: string | null;
956
+ chain_id: string;
979
957
 
980
- subject: string;
958
+ chain_type: 'bitcoin-taproot';
981
959
 
982
- type: 'line_oauth';
960
+ connector_type: 'embedded';
983
961
 
984
- verified_at: number;
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
- subject: string;
970
+ public_key: string;
996
971
 
997
- type: 'twitch_oauth';
972
+ /**
973
+ * The method used to recover an embedded wallet account.
974
+ */
975
+ recovery_method: EmbeddedWalletRecoveryMethod;
998
976
 
999
- username: string | null;
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
- * An Apple OAuth account linked to the user.
989
+ * A curve signing embedded wallet account linked to the user.
1006
990
  */
1007
- export interface LinkedAccountAppleOAuth {
1008
- email: string | null;
991
+ export interface LinkedAccountCurveSigningEmbeddedWallet {
992
+ id: string | null;
1009
993
 
1010
- first_verified_at: number | null;
994
+ address: string;
1011
995
 
1012
- latest_verified_at: number | null;
996
+ chain_id: string;
1013
997
 
1014
- subject: string;
998
+ /**
999
+ * The wallet chain types that support curve-based signing.
1000
+ */
1001
+ chain_type: WalletsAPI.CurveSigningChainType;
1015
1002
 
1016
- type: 'apple_oauth';
1003
+ connector_type: 'embedded';
1017
1004
 
1018
- verified_at: number;
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
- subject: string;
1013
+ public_key: string;
1030
1014
 
1031
1015
  /**
1032
- * The ID of a custom OAuth provider, set up for this app. Must start with
1033
- * "custom:".
1016
+ * The method used to recover an embedded wallet account.
1034
1017
  */
1035
- type: ClientAuthAPI.CustomOAuthProviderID;
1018
+ recovery_method: EmbeddedWalletRecoveryMethod;
1036
1019
 
1037
- verified_at: number;
1020
+ type: 'wallet';
1038
1021
 
1039
- email?: string;
1022
+ verified_at: number;
1040
1023
 
1041
- name?: string;
1024
+ wallet_client: 'privy';
1042
1025
 
1043
- profile_picture_url?: string;
1026
+ wallet_client_type: 'privy';
1044
1027
 
1045
- username?: string;
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
- * A custom JWT account linked to the user.
1039
+ * An embedded wallet account with an ID.
1050
1040
  */
1051
- export interface LinkedAccountCustomJwt {
1052
- custom_user_id: string;
1041
+ export type LinkedAccountEmbeddedWalletWithID =
1042
+ | LinkedAccountEmbeddedWalletWithID.LinkedAccountEthereumEmbeddedWallet
1043
+ | LinkedAccountEmbeddedWalletWithID.LinkedAccountSolanaEmbeddedWallet
1044
+ | LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinSegwitEmbeddedWallet
1045
+ | LinkedAccountEmbeddedWalletWithID.LinkedAccountBitcoinTaprootEmbeddedWallet
1046
+ | LinkedAccountEmbeddedWalletWithID.LinkedAccountCurveSigningEmbeddedWallet;
1053
1047
 
1054
- first_verified_at: number | null;
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
- latest_verified_at: number | null;
1056
+ recovery_method: 'privy-v2';
1057
+ }
1057
1058
 
1058
- type: 'custom_auth';
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
- verified_at: number;
1061
- }
1066
+ recovery_method: 'privy-v2';
1067
+ }
1062
1068
 
1063
- /**
1064
- * An embedded wallet associated with a cross-app account.
1065
- */
1066
- export interface CrossAppEmbeddedWallet {
1067
- address: string;
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
- * A smart wallet associated with a cross-app account.
1072
- */
1073
- export interface CrossAppSmartWallet {
1074
- address: string;
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 cross-app account linked to the user.
1101
+ * A Google OAuth account linked to the user.
1079
1102
  */
1080
- export interface LinkedAccountCrossApp {
1081
- embedded_wallets: Array<CrossAppEmbeddedWallet>;
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
- provider_app_id: string;
1088
-
1089
- smart_wallets: Array<CrossAppSmartWallet>;
1110
+ name: string | null;
1090
1111
 
1091
1112
  subject: string;
1092
1113
 
1093
- type: 'cross_app';
1114
+ type: 'google_oauth';
1094
1115
 
1095
1116
  verified_at: number;
1096
1117
  }
1097
1118
 
1098
1119
  /**
1099
- * An authorization key linked to the user.
1120
+ * A Twitter OAuth account linked to the user.
1100
1121
  */
1101
- export interface LinkedAccountAuthorizationKey {
1122
+ export interface LinkedAccountTwitterOAuth {
1102
1123
  first_verified_at: number | null;
1103
1124
 
1104
1125
  latest_verified_at: number | null;
1105
1126
 
1106
- public_key: string;
1127
+ name: string | null;
1107
1128
 
1108
- type: 'authorization_key';
1129
+ profile_picture_url: string | null;
1109
1130
 
1110
- verified_at: number;
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
- * Custom metadata associated with the user.
1175
- */
1176
- export type CustomMetadata = { [key: string]: string | number | boolean };
1137
+ verified_at: number;
1138
+ }
1177
1139
 
1178
1140
  /**
1179
- * The payload for importing a wallet account.
1141
+ * A Discord OAuth account linked to the user.
1180
1142
  */
1181
- export interface LinkedAccountWalletInput {
1182
- address: string;
1143
+ export interface LinkedAccountDiscordOAuth {
1144
+ email: string | null;
1183
1145
 
1184
- chain_type: 'ethereum' | 'solana';
1146
+ first_verified_at: number | null;
1185
1147
 
1186
- type: 'wallet';
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: 'email';
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
- type: 'phone';
1156
+ verified_at: number;
1205
1157
  }
1206
1158
 
1207
1159
  /**
1208
- * The payload for importing a Google account.
1160
+ * A GitHub OAuth account linked to the user.
1209
1161
  */
1210
- export interface LinkedAccountGoogleInput {
1211
- email: string;
1212
-
1213
- name: string;
1162
+ export interface LinkedAccountGitHubOAuth {
1163
+ email: string | null;
1214
1164
 
1215
- subject: string;
1165
+ first_verified_at: number | null;
1216
1166
 
1217
- type: 'google_oauth';
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: 'twitter_oauth';
1173
+ type: 'github_oauth';
1229
1174
 
1230
- username: string;
1175
+ username: string | null;
1231
1176
 
1232
- profile_picture_url?: string;
1177
+ verified_at: number;
1233
1178
  }
1234
1179
 
1235
1180
  /**
1236
- * The payload for importing a Discord account.
1181
+ * A LinkedIn OAuth account linked to the user.
1237
1182
  */
1238
- export interface LinkedAccountDiscordInput {
1239
- subject: string;
1240
-
1241
- type: 'discord_oauth';
1183
+ export interface LinkedAccountLinkedInOAuth {
1184
+ email: string | null;
1242
1185
 
1243
- username: string;
1186
+ first_verified_at: number | null;
1244
1187
 
1245
- email?: string;
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: 'github_oauth';
1255
-
1256
- username: string;
1192
+ type: 'linkedin_oauth';
1257
1193
 
1258
- email?: string;
1194
+ verified_at: number;
1259
1195
 
1260
1196
  name?: string;
1197
+
1198
+ vanity_name?: string;
1261
1199
  }
1262
1200
 
1263
1201
  /**
1264
- * The payload for importing a Spotify account.
1202
+ * A Spotify OAuth account linked to the user.
1265
1203
  */
1266
- export interface LinkedAccountSpotifyInput {
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
- email?: string;
1272
-
1273
- name?: string;
1217
+ verified_at: number;
1274
1218
  }
1275
1219
 
1276
1220
  /**
1277
- * The payload for importing an Instagram account.
1221
+ * An Instagram OAuth account linked to the user.
1278
1222
  */
1279
- export interface LinkedAccountInstagramInput {
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
- * The payload for importing a Tiktok account.
1238
+ * A TikTok OAuth account linked to the user.
1289
1239
  */
1290
- export interface LinkedAccountTiktokInput {
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
- * The payload for importing a LINE account.
1257
+ * A LINE OAuth account linked to the user.
1302
1258
  */
1303
- export interface LinkedAccountLineInput {
1304
- subject: string;
1259
+ export interface LinkedAccountLineOAuth {
1260
+ email: string | null;
1305
1261
 
1306
- type: 'line_oauth';
1262
+ first_verified_at: number | null;
1307
1263
 
1308
- email?: string;
1264
+ latest_verified_at: number | null;
1309
1265
 
1310
- name?: string;
1266
+ name: string | null;
1311
1267
 
1312
- profile_picture_url?: string;
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: 'twitch_oauth';
1272
+ type: 'line_oauth';
1322
1273
 
1323
- username?: string;
1274
+ verified_at: number;
1324
1275
  }
1325
1276
 
1326
1277
  /**
1327
- * The payload for importing an Apple account.
1278
+ * A Twitch OAuth account linked to the user.
1328
1279
  */
1329
- export interface LinkedAccountAppleInput {
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: 'apple_oauth';
1287
+ type: 'twitch_oauth';
1333
1288
 
1334
- email?: string;
1289
+ username: string | null;
1290
+
1291
+ verified_at: number;
1335
1292
  }
1336
1293
 
1337
1294
  /**
1338
- * The payload for importing a LinkedIn account.
1295
+ * An Apple OAuth account linked to the user.
1339
1296
  */
1340
- export interface LinkedAccountLinkedInInput {
1341
- subject: string;
1297
+ export interface LinkedAccountAppleOAuth {
1298
+ email: string | null;
1342
1299
 
1343
- type: 'linkedin_oauth';
1300
+ first_verified_at: number | null;
1301
+
1302
+ latest_verified_at: number | null;
1344
1303
 
1345
- email?: string;
1304
+ subject: string;
1346
1305
 
1347
- name?: string;
1306
+ type: 'apple_oauth';
1348
1307
 
1349
- vanityName?: string;
1308
+ verified_at: number;
1350
1309
  }
1351
1310
 
1352
1311
  /**
1353
- * The payload for importing a Farcaster account.
1312
+ * A custom OAuth account linked to the user.
1354
1313
  */
1355
- export interface LinkedAccountFarcasterInput {
1356
- fid: number;
1314
+ export interface LinkedAccountCustomOAuth {
1315
+ first_verified_at: number | null;
1357
1316
 
1358
- owner_address: string;
1317
+ latest_verified_at: number | null;
1359
1318
 
1360
- type: 'farcaster';
1319
+ subject: string;
1361
1320
 
1362
- bio?: string;
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
- display_name?: string;
1327
+ verified_at: number;
1365
1328
 
1366
- homepage_url?: string;
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
- * The payload for importing a Telegram account.
1339
+ * A custom JWT account linked to the user.
1375
1340
  */
1376
- export interface LinkedAccountTelegramInput {
1377
- telegram_user_id: string;
1378
-
1379
- type: 'telegram';
1341
+ export interface LinkedAccountCustomJwt {
1342
+ custom_user_id: string;
1380
1343
 
1381
- first_name?: string;
1344
+ first_verified_at: number | null;
1382
1345
 
1383
- last_name?: string;
1346
+ latest_verified_at: number | null;
1384
1347
 
1385
- photo_url?: string;
1348
+ type: 'custom_auth';
1386
1349
 
1387
- username?: string;
1350
+ verified_at: number;
1388
1351
  }
1389
1352
 
1390
1353
  /**
1391
- * The payload for importing a Custom JWT account.
1354
+ * An embedded wallet associated with a cross-app account.
1392
1355
  */
1393
- export interface LinkedAccountCustomJwtInput {
1394
- custom_user_id: string;
1395
-
1396
- type: 'custom_auth';
1356
+ export interface CrossAppEmbeddedWallet {
1357
+ address: string;
1397
1358
  }
1398
1359
 
1399
1360
  /**
1400
- * The payload for importing a passkey account.
1361
+ * A smart wallet associated with a cross-app account.
1401
1362
  */
1402
- export interface LinkedAccountPasskeyInput {
1403
- credential_device_type: 'singleDevice' | 'multiDevice';
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
- * The input for adding a linked account to a user.
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 UserBatchCreateInput {
1441
- users: Array<UserBatchCreateInput.User>;
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
- create_embedded_wallet?: boolean;
1373
+ first_verified_at: number | null;
1449
1374
 
1450
- create_ethereum_smart_wallet?: boolean;
1375
+ latest_verified_at: number | null;
1451
1376
 
1452
- create_ethereum_wallet?: boolean;
1377
+ provider_app_id: string;
1453
1378
 
1454
- create_n_embedded_wallets?: number;
1379
+ smart_wallets: Array<CrossAppSmartWallet>;
1455
1380
 
1456
- create_n_ethereum_wallets?: number;
1381
+ subject: string;
1457
1382
 
1458
- create_solana_wallet?: boolean;
1383
+ type: 'cross_app';
1459
1384
 
1460
- /**
1461
- * Custom metadata associated with the user.
1462
- */
1463
- custom_metadata?: UsersAPI.CustomMetadata;
1385
+ verified_at: number;
1386
+ }
1464
1387
 
1465
- wallets?: Array<User.Wallet>;
1466
- }
1388
+ /**
1389
+ * An authorization key linked to the user.
1390
+ */
1391
+ export interface LinkedAccountAuthorizationKey {
1392
+ first_verified_at: number | null;
1467
1393
 
1468
- export namespace User {
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
- additional_signers?: Array<Wallet.AdditionalSigner>;
1396
+ public_key: string;
1476
1397
 
1477
- create_smart_wallet?: boolean;
1398
+ type: 'authorization_key';
1478
1399
 
1479
- policy_ids?: Array<string>;
1480
- }
1400
+ verified_at: number;
1401
+ }
1481
1402
 
1482
- export namespace Wallet {
1483
- export interface AdditionalSigner {
1484
- signer_id: string;
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
- override_policy_ids?: Array<string>;
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 milliseconds.
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
- * The key quorum ID for the signer.
1627
+ * A unique identifier for a key quorum.
1657
1628
  */
1658
- signer_id: string;
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<UserPregenerateWalletsParams.Wallet>;
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,