@privy-io/api-types 0.9.0 → 0.10.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 (153) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/client.d.mts +33 -30
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -30
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +23 -9
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +646 -644
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +646 -644
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/embedded-wallets.d.mts +114 -114
  32. package/resources/embedded-wallets.d.mts.map +1 -1
  33. package/resources/embedded-wallets.d.ts +114 -114
  34. package/resources/embedded-wallets.d.ts.map +1 -1
  35. package/resources/funding.d.mts +42 -42
  36. package/resources/funding.d.mts.map +1 -1
  37. package/resources/funding.d.ts +42 -42
  38. package/resources/funding.d.ts.map +1 -1
  39. package/resources/index.d.mts +19 -18
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +19 -18
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +3 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +2 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/intents.d.mts +269 -265
  48. package/resources/intents.d.mts.map +1 -1
  49. package/resources/intents.d.ts +269 -265
  50. package/resources/intents.d.ts.map +1 -1
  51. package/resources/key-quorums.d.mts +20 -20
  52. package/resources/key-quorums.d.mts.map +1 -1
  53. package/resources/key-quorums.d.ts +20 -20
  54. package/resources/key-quorums.d.ts.map +1 -1
  55. package/resources/kraken-embed.d.mts +12 -20
  56. package/resources/kraken-embed.d.mts.map +1 -1
  57. package/resources/kraken-embed.d.ts +12 -20
  58. package/resources/kraken-embed.d.ts.map +1 -1
  59. package/resources/organizations.d.mts +65 -0
  60. package/resources/organizations.d.mts.map +1 -0
  61. package/resources/organizations.d.ts +65 -0
  62. package/resources/organizations.d.ts.map +1 -0
  63. package/resources/organizations.js +9 -0
  64. package/resources/organizations.js.map +1 -0
  65. package/resources/organizations.mjs +5 -0
  66. package/resources/organizations.mjs.map +1 -0
  67. package/resources/policies.d.mts +258 -240
  68. package/resources/policies.d.mts.map +1 -1
  69. package/resources/policies.d.ts +258 -240
  70. package/resources/policies.d.ts.map +1 -1
  71. package/resources/shared.d.mts +28 -28
  72. package/resources/shared.d.mts.map +1 -1
  73. package/resources/shared.d.ts +28 -28
  74. package/resources/shared.d.ts.map +1 -1
  75. package/resources/swaps.d.mts +6 -9
  76. package/resources/swaps.d.mts.map +1 -1
  77. package/resources/swaps.d.ts +6 -9
  78. package/resources/swaps.d.ts.map +1 -1
  79. package/resources/swaps.js.map +1 -1
  80. package/resources/swaps.mjs.map +1 -1
  81. package/resources/transactions.d.mts +53 -53
  82. package/resources/transactions.d.mts.map +1 -1
  83. package/resources/transactions.d.ts +53 -53
  84. package/resources/transactions.d.ts.map +1 -1
  85. package/resources/users.d.mts +468 -459
  86. package/resources/users.d.mts.map +1 -1
  87. package/resources/users.d.ts +468 -459
  88. package/resources/users.d.ts.map +1 -1
  89. package/resources/wallet-actions.d.mts +302 -145
  90. package/resources/wallet-actions.d.mts.map +1 -1
  91. package/resources/wallet-actions.d.ts +302 -145
  92. package/resources/wallet-actions.d.ts.map +1 -1
  93. package/resources/wallets/index.d.mts +1 -1
  94. package/resources/wallets/index.d.mts.map +1 -1
  95. package/resources/wallets/index.d.ts +1 -1
  96. package/resources/wallets/index.d.ts.map +1 -1
  97. package/resources/wallets/index.js.map +1 -1
  98. package/resources/wallets/index.mjs.map +1 -1
  99. package/resources/wallets/transactions.d.mts +7 -2
  100. package/resources/wallets/transactions.d.mts.map +1 -1
  101. package/resources/wallets/transactions.d.ts +7 -2
  102. package/resources/wallets/transactions.d.ts.map +1 -1
  103. package/resources/wallets/transactions.js +1 -1
  104. package/resources/wallets/transactions.mjs +1 -1
  105. package/resources/wallets/wallets.d.mts +1424 -1227
  106. package/resources/wallets/wallets.d.mts.map +1 -1
  107. package/resources/wallets/wallets.d.ts +1424 -1227
  108. package/resources/wallets/wallets.d.ts.map +1 -1
  109. package/resources/wallets/wallets.js +4 -1
  110. package/resources/wallets/wallets.js.map +1 -1
  111. package/resources/wallets/wallets.mjs +4 -1
  112. package/resources/wallets/wallets.mjs.map +1 -1
  113. package/resources/webhooks.d.mts +935 -877
  114. package/resources/webhooks.d.mts.map +1 -1
  115. package/resources/webhooks.d.ts +935 -877
  116. package/resources/webhooks.d.ts.map +1 -1
  117. package/resources/yield.d.mts +157 -157
  118. package/resources/yield.d.mts.map +1 -1
  119. package/resources/yield.d.ts +157 -157
  120. package/resources/yield.d.ts.map +1 -1
  121. package/src/client.ts +594 -516
  122. package/src/internal/types.ts +6 -8
  123. package/src/resources/accounts.ts +157 -103
  124. package/src/resources/aggregations.ts +55 -55
  125. package/src/resources/apps.ts +221 -178
  126. package/src/resources/client-auth.ts +887 -887
  127. package/src/resources/embedded-wallets.ts +150 -150
  128. package/src/resources/funding.ts +66 -66
  129. package/src/resources/index.ts +504 -475
  130. package/src/resources/intents.ts +326 -322
  131. package/src/resources/key-quorums.ts +23 -23
  132. package/src/resources/kraken-embed.ts +14 -22
  133. package/src/resources/organizations.ts +82 -0
  134. package/src/resources/policies.ts +379 -352
  135. package/src/resources/shared.ts +34 -34
  136. package/src/resources/swaps.ts +5 -10
  137. package/src/resources/transactions.ts +86 -86
  138. package/src/resources/users.ts +707 -696
  139. package/src/resources/wallet-actions.ts +392 -185
  140. package/src/resources/wallets/index.ts +157 -148
  141. package/src/resources/wallets/transactions.ts +18 -3
  142. package/src/resources/wallets/wallets.ts +1937 -1686
  143. package/src/resources/webhooks.ts +1172 -1100
  144. package/src/resources/yield.ts +188 -188
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.mts.map +1 -1
  148. package/version.d.ts +1 -1
  149. package/version.d.ts.map +1 -1
  150. package/version.js +1 -1
  151. package/version.js.map +1 -1
  152. package/version.mjs +1 -1
  153. package/version.mjs.map +1 -1
@@ -237,115 +237,53 @@ export declare class Users extends APIResource {
237
237
  }
238
238
  export type UsersCursor = Cursor<User>;
239
239
  /**
240
- * Custom metadata associated with the user.
241
- */
242
- export type CustomMetadata = {
243
- [key: string]: string | number | boolean;
244
- };
245
- /**
246
- * The payload for importing a wallet account.
240
+ * The authenticated user.
247
241
  */
248
- export interface LinkedAccountWalletInput {
249
- address: string;
250
- chain_type: 'ethereum' | 'solana';
251
- type: 'wallet';
242
+ export interface AuthenticatedUser {
243
+ token: string | null;
244
+ privy_access_token: string | null;
245
+ refresh_token: string | null;
246
+ /**
247
+ * Instructs the client on how to handle tokens received
248
+ */
249
+ session_update_action: 'set' | 'ignore' | 'clear';
250
+ /**
251
+ * A Privy user object.
252
+ */
253
+ user: User;
254
+ identity_token?: string;
255
+ is_new_user?: boolean;
256
+ /**
257
+ * OAuth tokens associated with the user.
258
+ */
259
+ oauth_tokens?: OAuthTokens;
252
260
  }
253
261
  /**
254
- * The payload for importing an email account.
262
+ * An embedded wallet associated with a cross-app account.
255
263
  */
256
- export interface LinkedAccountEmailInput {
264
+ export interface CrossAppEmbeddedWallet {
257
265
  address: string;
258
- type: 'email';
259
- }
260
- /**
261
- * The payload for importing a phone account.
262
- */
263
- export interface LinkedAccountPhoneInput {
264
- number: string;
265
- type: 'phone';
266
266
  }
267
267
  /**
268
- * The payload for importing a Google account.
269
- */
270
- export interface LinkedAccountGoogleInput {
271
- email: string;
272
- name: string;
273
- subject: string;
274
- type: 'google_oauth';
275
- }
276
- /**
277
- * The payload for importing a Twitter account.
278
- */
279
- export interface LinkedAccountTwitterInput {
280
- name: string;
281
- subject: string;
282
- type: 'twitter_oauth';
283
- username: string;
284
- profile_picture_url?: string;
285
- }
286
- /**
287
- * The payload for importing a Discord account.
288
- */
289
- export interface LinkedAccountDiscordInput {
290
- subject: string;
291
- type: 'discord_oauth';
292
- username: string;
293
- email?: string;
294
- }
295
- /**
296
- * The payload for importing a Github account.
297
- */
298
- export interface LinkedAccountGitHubInput {
299
- subject: string;
300
- type: 'github_oauth';
301
- username: string;
302
- email?: string;
303
- name?: string;
304
- }
305
- /**
306
- * The payload for importing a Spotify account.
307
- */
308
- export interface LinkedAccountSpotifyInput {
309
- subject: string;
310
- type: 'spotify_oauth';
311
- email?: string;
312
- name?: string;
313
- }
314
- /**
315
- * The payload for importing an Instagram account.
268
+ * A smart wallet associated with a cross-app account.
316
269
  */
317
- export interface LinkedAccountInstagramInput {
318
- subject: string;
319
- type: 'instagram_oauth';
320
- username: string;
270
+ export interface CrossAppSmartWallet {
271
+ address: string;
321
272
  }
322
273
  /**
323
- * The payload for importing a Tiktok account.
274
+ * Custom metadata associated with the user.
324
275
  */
325
- export interface LinkedAccountTiktokInput {
326
- name: string | null;
327
- subject: string;
328
- type: 'tiktok_oauth';
329
- username: string;
330
- }
276
+ export type CustomMetadata = {
277
+ [key: string]: string | number | boolean;
278
+ };
331
279
  /**
332
- * The payload for importing a LINE account.
280
+ * The method used to recover an embedded wallet account.
333
281
  */
334
- export interface LinkedAccountLineInput {
335
- subject: string;
336
- type: 'line_oauth';
337
- email?: string;
338
- name?: string;
339
- profile_picture_url?: string;
340
- }
282
+ export type EmbeddedWalletRecoveryMethod = 'privy' | 'user-passcode' | 'google-drive' | 'icloud' | 'recovery-encryption-key' | 'privy-v2';
341
283
  /**
342
- * The payload for importing a Twitch account.
284
+ * A linked account for the user.
343
285
  */
344
- export interface LinkedAccountTwitchInput {
345
- subject: string;
346
- type: 'twitch_oauth';
347
- username?: string;
348
- }
286
+ export type LinkedAccount = LinkedAccountEmail | LinkedAccountPhone | LinkedAccountEthereum | LinkedAccountSolana | LinkedAccountSmartWallet | LinkedAccountEthereumEmbeddedWallet | LinkedAccountSolanaEmbeddedWallet | LinkedAccountBitcoinSegwitEmbeddedWallet | LinkedAccountBitcoinTaprootEmbeddedWallet | LinkedAccountCurveSigningEmbeddedWallet | LinkedAccountGoogleOAuth | LinkedAccountTwitterOAuth | LinkedAccountDiscordOAuth | LinkedAccountGitHubOAuth | LinkedAccountSpotifyOAuth | LinkedAccountInstagramOAuth | LinkedAccountTiktokOAuth | LinkedAccountLineOAuth | LinkedAccountTwitchOAuth | LinkedAccountLinkedInOAuth | LinkedAccountAppleOAuth | LinkedAccountCustomOAuth | LinkedAccountCustomJwt | LinkedAccountFarcaster | LinkedAccountPasskey | LinkedAccountTelegram | LinkedAccountCrossApp | LinkedAccountAuthorizationKey;
349
287
  /**
350
288
  * The payload for importing an Apple account.
351
289
  */
@@ -355,105 +293,25 @@ export interface LinkedAccountAppleInput {
355
293
  email?: string;
356
294
  }
357
295
  /**
358
- * The payload for importing a LinkedIn account.
359
- */
360
- export interface LinkedAccountLinkedInInput {
361
- subject: string;
362
- type: 'linkedin_oauth';
363
- email?: string;
364
- name?: string;
365
- vanityName?: string;
366
- }
367
- /**
368
- * The payload for importing a Farcaster account.
369
- */
370
- export interface LinkedAccountFarcasterInput {
371
- fid: number;
372
- owner_address: string;
373
- type: 'farcaster';
374
- bio?: string;
375
- display_name?: string;
376
- homepage_url?: string;
377
- profile_picture_url?: string;
378
- username?: string;
379
- }
380
- /**
381
- * The payload for importing a Telegram account.
382
- */
383
- export interface LinkedAccountTelegramInput {
384
- telegram_user_id: string;
385
- type: 'telegram';
386
- first_name?: string;
387
- last_name?: string;
388
- photo_url?: string;
389
- username?: string;
390
- }
391
- /**
392
- * The payload for importing a Custom JWT account.
393
- */
394
- export interface LinkedAccountCustomJwtInput {
395
- custom_user_id: string;
396
- type: 'custom_auth';
397
- }
398
- /**
399
- * The payload for importing a passkey account.
400
- */
401
- export interface LinkedAccountPasskeyInput {
402
- credential_device_type: 'singleDevice' | 'multiDevice';
403
- credential_id: string;
404
- credential_public_key: string;
405
- credential_username: string;
406
- type: 'passkey';
407
- }
408
- /**
409
- * The input for adding a linked account to a user.
410
- */
411
- export type LinkedAccountInput = LinkedAccountWalletInput | LinkedAccountEmailInput | LinkedAccountPhoneInput | LinkedAccountGoogleInput | LinkedAccountTwitterInput | LinkedAccountDiscordInput | LinkedAccountGitHubInput | LinkedAccountSpotifyInput | LinkedAccountInstagramInput | LinkedAccountTiktokInput | LinkedAccountLineInput | LinkedAccountTwitchInput | LinkedAccountAppleInput | LinkedAccountLinkedInInput | LinkedAccountFarcasterInput | LinkedAccountTelegramInput | LinkedAccountCustomJwtInput | LinkedAccountPasskeyInput;
412
- /**
413
- * The payload for batch creating users.
414
- */
415
- export interface UserBatchCreateInput {
416
- users: Array<UserBatchCreateInput.User>;
417
- }
418
- export declare namespace UserBatchCreateInput {
419
- interface User {
420
- linked_accounts: Array<UsersAPI.LinkedAccountInput>;
421
- create_embedded_wallet?: boolean;
422
- create_ethereum_smart_wallet?: boolean;
423
- create_ethereum_wallet?: boolean;
424
- create_n_embedded_wallets?: number;
425
- create_n_ethereum_wallets?: number;
426
- create_solana_wallet?: boolean;
427
- /**
428
- * Custom metadata associated with the user.
429
- */
430
- custom_metadata?: UsersAPI.CustomMetadata;
431
- /**
432
- * Wallets to create.
433
- */
434
- wallets?: Array<EmbeddedWalletsAPI.WalletCreationInput>;
435
- }
436
- }
437
- /**
438
- * An email account linked to the user.
296
+ * An Apple OAuth account linked to the user.
439
297
  */
440
- export interface LinkedAccountEmail {
441
- address: string;
298
+ export interface LinkedAccountAppleOAuth {
299
+ email: string | null;
442
300
  first_verified_at: number | null;
443
301
  latest_verified_at: number | null;
444
- type: 'email';
302
+ subject: string;
303
+ type: 'apple_oauth';
445
304
  verified_at: number;
446
305
  }
447
306
  /**
448
- * A phone number account linked to the user.
307
+ * An authorization key linked to the user.
449
308
  */
450
- export interface LinkedAccountPhone {
309
+ export interface LinkedAccountAuthorizationKey {
451
310
  first_verified_at: number | null;
452
311
  latest_verified_at: number | null;
453
- phoneNumber: string;
454
- type: 'phone';
312
+ public_key: string;
313
+ type: 'authorization_key';
455
314
  verified_at: number;
456
- number?: string;
457
315
  }
458
316
  /**
459
317
  * Base schema for wallet accounts linked to the user.
@@ -464,114 +322,19 @@ export interface LinkedAccountBaseWallet {
464
322
  type: 'wallet' | 'smart_wallet';
465
323
  }
466
324
  /**
467
- * An Ethereum wallet account linked to the user.
468
- */
469
- export interface LinkedAccountEthereum {
470
- address: string;
471
- chain_type: 'ethereum';
472
- first_verified_at: number | null;
473
- latest_verified_at: number | null;
474
- type: 'wallet';
475
- verified_at: number;
476
- wallet_client: 'unknown';
477
- chain_id?: string;
478
- connector_type?: string;
479
- wallet_client_type?: string;
480
- }
481
- /**
482
- * A smart wallet account linked to the user.
483
- */
484
- export interface LinkedAccountSmartWallet {
485
- address: string;
486
- first_verified_at: number | null;
487
- latest_verified_at: number | null;
488
- /**
489
- * The supported smart wallet providers.
490
- */
491
- smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
492
- type: 'smart_wallet';
493
- verified_at: number;
494
- smart_wallet_version?: string;
495
- }
496
- /**
497
- * A Solana wallet account linked to the user.
498
- */
499
- export interface LinkedAccountSolana {
500
- address: string;
501
- chain_type: 'solana';
502
- first_verified_at: number | null;
503
- latest_verified_at: number | null;
504
- type: 'wallet';
505
- verified_at: number;
506
- wallet_client: 'unknown';
507
- connector_type?: string;
508
- wallet_client_type?: string;
509
- }
510
- /**
511
- * A Farcaster account linked to the user.
512
- */
513
- export interface LinkedAccountFarcaster {
514
- fid: number;
515
- first_verified_at: number | null;
516
- latest_verified_at: number | null;
517
- owner_address: string;
518
- type: 'farcaster';
519
- verified_at: number;
520
- bio?: string;
521
- display_name?: string;
522
- homepage_url?: string;
523
- profile_picture?: string;
524
- profile_picture_url?: string;
525
- signer_public_key?: string;
526
- username?: string;
527
- }
528
- /**
529
- * A passkey account linked to the user.
530
- */
531
- export interface LinkedAccountPasskey {
532
- credential_id: string;
533
- enrolled_in_mfa: boolean;
534
- first_verified_at: number | null;
535
- latest_verified_at: number | null;
536
- type: 'passkey';
537
- verified_at: number;
538
- authenticator_name?: string;
539
- created_with_browser?: string;
540
- created_with_device?: string;
541
- created_with_os?: string;
542
- public_key?: string;
543
- }
544
- /**
545
- * A Telegram account linked to the user.
546
- */
547
- export interface LinkedAccountTelegram {
548
- first_verified_at: number | null;
549
- latest_verified_at: number | null;
550
- telegram_user_id: string;
551
- type: 'telegram';
552
- verified_at: number;
553
- first_name?: string | null;
554
- last_name?: string | null;
555
- photo_url?: string | null;
556
- username?: string | null;
557
- }
558
- /**
559
- * The method used to recover an embedded wallet account.
560
- */
561
- export type EmbeddedWalletRecoveryMethod = 'privy' | 'user-passcode' | 'google-drive' | 'icloud' | 'recovery-encryption-key' | 'privy-v2';
562
- /**
563
- * An Ethereum embedded wallet account linked to the user.
325
+ * A Bitcoin SegWit embedded wallet account linked to the user.
564
326
  */
565
- export interface LinkedAccountEthereumEmbeddedWallet {
327
+ export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
566
328
  id: string | null;
567
329
  address: string;
568
330
  chain_id: string;
569
- chain_type: 'ethereum';
331
+ chain_type: 'bitcoin-segwit';
570
332
  connector_type: 'embedded';
571
333
  delegated: boolean;
572
334
  first_verified_at: number | null;
573
335
  imported: boolean;
574
336
  latest_verified_at: number | null;
337
+ public_key: string;
575
338
  /**
576
339
  * The method used to recover an embedded wallet account.
577
340
  */
@@ -583,13 +346,13 @@ export interface LinkedAccountEthereumEmbeddedWallet {
583
346
  wallet_index: number;
584
347
  }
585
348
  /**
586
- * A Solana embedded wallet account linked to the user.
349
+ * A Bitcoin Taproot embedded wallet account linked to the user.
587
350
  */
588
- export interface LinkedAccountSolanaEmbeddedWallet {
351
+ export interface LinkedAccountBitcoinTaprootEmbeddedWallet {
589
352
  id: string | null;
590
353
  address: string;
591
354
  chain_id: string;
592
- chain_type: 'solana';
355
+ chain_type: 'bitcoin-taproot';
593
356
  connector_type: 'embedded';
594
357
  delegated: boolean;
595
358
  first_verified_at: number | null;
@@ -607,13 +370,29 @@ export interface LinkedAccountSolanaEmbeddedWallet {
607
370
  wallet_index: number;
608
371
  }
609
372
  /**
610
- * A Bitcoin SegWit embedded wallet account linked to the user.
373
+ * A cross-app account linked to the user.
611
374
  */
612
- export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
375
+ export interface LinkedAccountCrossApp {
376
+ embedded_wallets: Array<CrossAppEmbeddedWallet>;
377
+ first_verified_at: number | null;
378
+ latest_verified_at: number | null;
379
+ provider_app_id: string;
380
+ smart_wallets: Array<CrossAppSmartWallet>;
381
+ subject: string;
382
+ type: 'cross_app';
383
+ verified_at: number;
384
+ }
385
+ /**
386
+ * A curve signing embedded wallet account linked to the user.
387
+ */
388
+ export interface LinkedAccountCurveSigningEmbeddedWallet {
613
389
  id: string | null;
614
390
  address: string;
615
391
  chain_id: string;
616
- chain_type: 'bitcoin-segwit';
392
+ /**
393
+ * The wallet chain types that support curve-based signing.
394
+ */
395
+ chain_type: WalletsAPI.CurveSigningChainType;
617
396
  connector_type: 'embedded';
618
397
  delegated: boolean;
619
398
  first_verified_at: number | null;
@@ -631,55 +410,77 @@ export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
631
410
  wallet_index: number;
632
411
  }
633
412
  /**
634
- * A Bitcoin Taproot embedded wallet account linked to the user.
413
+ * The payload for importing a Custom JWT account.
635
414
  */
636
- export interface LinkedAccountBitcoinTaprootEmbeddedWallet {
637
- id: string | null;
638
- address: string;
639
- chain_id: string;
640
- chain_type: 'bitcoin-taproot';
641
- connector_type: 'embedded';
642
- delegated: boolean;
415
+ export interface LinkedAccountCustomJwtInput {
416
+ custom_user_id: string;
417
+ type: 'custom_auth';
418
+ }
419
+ /**
420
+ * A custom JWT account linked to the user.
421
+ */
422
+ export interface LinkedAccountCustomJwt {
423
+ custom_user_id: string;
643
424
  first_verified_at: number | null;
644
- imported: boolean;
645
425
  latest_verified_at: number | null;
646
- public_key: string;
426
+ type: 'custom_auth';
427
+ verified_at: number;
428
+ }
429
+ /**
430
+ * A custom OAuth account linked to the user.
431
+ */
432
+ export interface LinkedAccountCustomOAuth {
433
+ first_verified_at: number | null;
434
+ latest_verified_at: number | null;
435
+ subject: string;
647
436
  /**
648
- * The method used to recover an embedded wallet account.
437
+ * The ID of a custom OAuth provider, set up for this app. Must start with
438
+ * "custom:".
649
439
  */
650
- recovery_method: EmbeddedWalletRecoveryMethod;
651
- type: 'wallet';
440
+ type: ClientAuthAPI.CustomOAuthProviderID;
441
+ verified_at: number;
442
+ email?: string;
443
+ name?: string;
444
+ profile_picture_url?: string;
445
+ username?: string;
446
+ }
447
+ /**
448
+ * The payload for importing a Discord account.
449
+ */
450
+ export interface LinkedAccountDiscordInput {
451
+ subject: string;
452
+ type: 'discord_oauth';
453
+ username: string;
454
+ email?: string;
455
+ }
456
+ /**
457
+ * A Discord OAuth account linked to the user.
458
+ */
459
+ export interface LinkedAccountDiscordOAuth {
460
+ email: string | null;
461
+ first_verified_at: number | null;
462
+ latest_verified_at: number | null;
463
+ subject: string;
464
+ type: 'discord_oauth';
465
+ username: string | null;
652
466
  verified_at: number;
653
- wallet_client: 'privy';
654
- wallet_client_type: 'privy';
655
- wallet_index: number;
656
467
  }
657
468
  /**
658
- * A curve signing embedded wallet account linked to the user.
469
+ * An email account linked to the user.
659
470
  */
660
- export interface LinkedAccountCurveSigningEmbeddedWallet {
661
- id: string | null;
471
+ export interface LinkedAccountEmail {
662
472
  address: string;
663
- chain_id: string;
664
- /**
665
- * The wallet chain types that support curve-based signing.
666
- */
667
- chain_type: WalletsAPI.CurveSigningChainType;
668
- connector_type: 'embedded';
669
- delegated: boolean;
670
473
  first_verified_at: number | null;
671
- imported: boolean;
672
474
  latest_verified_at: number | null;
673
- public_key: string;
674
- /**
675
- * The method used to recover an embedded wallet account.
676
- */
677
- recovery_method: EmbeddedWalletRecoveryMethod;
678
- type: 'wallet';
475
+ type: 'email';
679
476
  verified_at: number;
680
- wallet_client: 'privy';
681
- wallet_client_type: 'privy';
682
- wallet_index: number;
477
+ }
478
+ /**
479
+ * The payload for importing an email account.
480
+ */
481
+ export interface LinkedAccountEmailInput {
482
+ address: string;
483
+ type: 'email';
683
484
  }
684
485
  export type LinkedAccountEmbeddedWallet = LinkedAccountEthereumEmbeddedWallet | LinkedAccountSolanaEmbeddedWallet | LinkedAccountBitcoinSegwitEmbeddedWallet | LinkedAccountBitcoinTaprootEmbeddedWallet | LinkedAccountCurveSigningEmbeddedWallet;
685
486
  /**
@@ -723,6 +524,107 @@ export declare namespace LinkedAccountEmbeddedWalletWithID {
723
524
  recovery_method: 'privy-v2';
724
525
  }
725
526
  }
527
+ /**
528
+ * An Ethereum wallet account linked to the user.
529
+ */
530
+ export interface LinkedAccountEthereum {
531
+ address: string;
532
+ chain_type: 'ethereum';
533
+ first_verified_at: number | null;
534
+ latest_verified_at: number | null;
535
+ type: 'wallet';
536
+ verified_at: number;
537
+ wallet_client: 'unknown';
538
+ chain_id?: string;
539
+ connector_type?: string;
540
+ wallet_client_type?: string;
541
+ }
542
+ /**
543
+ * An Ethereum embedded wallet account linked to the user.
544
+ */
545
+ export interface LinkedAccountEthereumEmbeddedWallet {
546
+ id: string | null;
547
+ address: string;
548
+ chain_id: string;
549
+ chain_type: 'ethereum';
550
+ connector_type: 'embedded';
551
+ delegated: boolean;
552
+ first_verified_at: number | null;
553
+ imported: boolean;
554
+ latest_verified_at: number | null;
555
+ /**
556
+ * The method used to recover an embedded wallet account.
557
+ */
558
+ recovery_method: EmbeddedWalletRecoveryMethod;
559
+ type: 'wallet';
560
+ verified_at: number;
561
+ wallet_client: 'privy';
562
+ wallet_client_type: 'privy';
563
+ wallet_index: number;
564
+ }
565
+ /**
566
+ * A Farcaster account linked to the user.
567
+ */
568
+ export interface LinkedAccountFarcaster {
569
+ fid: number;
570
+ first_verified_at: number | null;
571
+ latest_verified_at: number | null;
572
+ owner_address: string;
573
+ type: 'farcaster';
574
+ verified_at: number;
575
+ bio?: string;
576
+ display_name?: string;
577
+ homepage_url?: string;
578
+ profile_picture?: string;
579
+ profile_picture_url?: string;
580
+ signer_public_key?: string;
581
+ username?: string;
582
+ }
583
+ /**
584
+ * The payload for importing a Farcaster account.
585
+ */
586
+ export interface LinkedAccountFarcasterInput {
587
+ fid: number;
588
+ owner_address: string;
589
+ type: 'farcaster';
590
+ bio?: string;
591
+ display_name?: string;
592
+ homepage_url?: string;
593
+ profile_picture_url?: string;
594
+ username?: string;
595
+ }
596
+ /**
597
+ * The payload for importing a Github account.
598
+ */
599
+ export interface LinkedAccountGitHubInput {
600
+ subject: string;
601
+ type: 'github_oauth';
602
+ username: string;
603
+ email?: string;
604
+ name?: string;
605
+ }
606
+ /**
607
+ * A GitHub OAuth account linked to the user.
608
+ */
609
+ export interface LinkedAccountGitHubOAuth {
610
+ email: string | null;
611
+ first_verified_at: number | null;
612
+ latest_verified_at: number | null;
613
+ name: string | null;
614
+ subject: string;
615
+ type: 'github_oauth';
616
+ username: string | null;
617
+ verified_at: number;
618
+ }
619
+ /**
620
+ * The payload for importing a Google account.
621
+ */
622
+ export interface LinkedAccountGoogleInput {
623
+ email: string;
624
+ name: string;
625
+ subject: string;
626
+ type: 'google_oauth';
627
+ }
726
628
  /**
727
629
  * A Google OAuth account linked to the user.
728
630
  */
@@ -736,55 +638,179 @@ export interface LinkedAccountGoogleOAuth {
736
638
  verified_at: number;
737
639
  }
738
640
  /**
739
- * A Twitter OAuth account linked to the user.
641
+ * The input for adding a linked account to a user.
740
642
  */
741
- export interface LinkedAccountTwitterOAuth {
643
+ export type LinkedAccountInput = LinkedAccountWalletInput | LinkedAccountEmailInput | LinkedAccountPhoneInput | LinkedAccountGoogleInput | LinkedAccountTwitterInput | LinkedAccountDiscordInput | LinkedAccountGitHubInput | LinkedAccountSpotifyInput | LinkedAccountInstagramInput | LinkedAccountTiktokInput | LinkedAccountLineInput | LinkedAccountTwitchInput | LinkedAccountAppleInput | LinkedAccountLinkedInInput | LinkedAccountFarcasterInput | LinkedAccountTelegramInput | LinkedAccountCustomJwtInput | LinkedAccountPasskeyInput;
644
+ /**
645
+ * The payload for importing an Instagram account.
646
+ */
647
+ export interface LinkedAccountInstagramInput {
648
+ subject: string;
649
+ type: 'instagram_oauth';
650
+ username: string;
651
+ }
652
+ /**
653
+ * An Instagram OAuth account linked to the user.
654
+ */
655
+ export interface LinkedAccountInstagramOAuth {
656
+ first_verified_at: number | null;
657
+ latest_verified_at: number | null;
658
+ subject: string;
659
+ type: 'instagram_oauth';
660
+ username: string | null;
661
+ verified_at: number;
662
+ }
663
+ /**
664
+ * The payload for importing a LINE account.
665
+ */
666
+ export interface LinkedAccountLineInput {
667
+ subject: string;
668
+ type: 'line_oauth';
669
+ email?: string;
670
+ name?: string;
671
+ profile_picture_url?: string;
672
+ }
673
+ /**
674
+ * A LINE OAuth account linked to the user.
675
+ */
676
+ export interface LinkedAccountLineOAuth {
677
+ email: string | null;
742
678
  first_verified_at: number | null;
743
679
  latest_verified_at: number | null;
744
680
  name: string | null;
745
681
  profile_picture_url: string | null;
746
682
  subject: string;
747
- type: 'twitter_oauth';
748
- username: string | null;
683
+ type: 'line_oauth';
684
+ verified_at: number;
685
+ }
686
+ /**
687
+ * The payload for importing a LinkedIn account.
688
+ */
689
+ export interface LinkedAccountLinkedInInput {
690
+ subject: string;
691
+ type: 'linkedin_oauth';
692
+ email?: string;
693
+ name?: string;
694
+ vanityName?: string;
695
+ }
696
+ /**
697
+ * A LinkedIn OAuth account linked to the user.
698
+ */
699
+ export interface LinkedAccountLinkedInOAuth {
700
+ email: string | null;
701
+ first_verified_at: number | null;
702
+ latest_verified_at: number | null;
703
+ subject: string;
704
+ type: 'linkedin_oauth';
705
+ verified_at: number;
706
+ name?: string;
707
+ vanity_name?: string;
708
+ }
709
+ /**
710
+ * A passkey account linked to the user.
711
+ */
712
+ export interface LinkedAccountPasskey {
713
+ credential_id: string;
714
+ enrolled_in_mfa: boolean;
715
+ first_verified_at: number | null;
716
+ latest_verified_at: number | null;
717
+ type: 'passkey';
718
+ verified_at: number;
719
+ authenticator_name?: string;
720
+ created_with_browser?: string;
721
+ created_with_device?: string;
722
+ created_with_os?: string;
723
+ public_key?: string;
724
+ }
725
+ /**
726
+ * The payload for importing a passkey account.
727
+ */
728
+ export interface LinkedAccountPasskeyInput {
729
+ credential_device_type: 'singleDevice' | 'multiDevice';
730
+ credential_id: string;
731
+ credential_public_key: string;
732
+ credential_username: string;
733
+ type: 'passkey';
734
+ }
735
+ /**
736
+ * A phone number account linked to the user.
737
+ */
738
+ export interface LinkedAccountPhone {
739
+ first_verified_at: number | null;
740
+ latest_verified_at: number | null;
741
+ phoneNumber: string;
742
+ type: 'phone';
743
+ verified_at: number;
744
+ number?: string;
745
+ }
746
+ /**
747
+ * The payload for importing a phone account.
748
+ */
749
+ export interface LinkedAccountPhoneInput {
750
+ number: string;
751
+ type: 'phone';
752
+ }
753
+ /**
754
+ * A smart wallet account linked to the user.
755
+ */
756
+ export interface LinkedAccountSmartWallet {
757
+ address: string;
758
+ first_verified_at: number | null;
759
+ latest_verified_at: number | null;
760
+ /**
761
+ * The supported smart wallet providers.
762
+ */
763
+ smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
764
+ type: 'smart_wallet';
749
765
  verified_at: number;
766
+ smart_wallet_version?: string;
750
767
  }
751
768
  /**
752
- * A Discord OAuth account linked to the user.
769
+ * A Solana wallet account linked to the user.
753
770
  */
754
- export interface LinkedAccountDiscordOAuth {
755
- email: string | null;
771
+ export interface LinkedAccountSolana {
772
+ address: string;
773
+ chain_type: 'solana';
756
774
  first_verified_at: number | null;
757
775
  latest_verified_at: number | null;
758
- subject: string;
759
- type: 'discord_oauth';
760
- username: string | null;
776
+ type: 'wallet';
761
777
  verified_at: number;
778
+ wallet_client: 'unknown';
779
+ connector_type?: string;
780
+ wallet_client_type?: string;
762
781
  }
763
782
  /**
764
- * A GitHub OAuth account linked to the user.
783
+ * A Solana embedded wallet account linked to the user.
765
784
  */
766
- export interface LinkedAccountGitHubOAuth {
767
- email: string | null;
785
+ export interface LinkedAccountSolanaEmbeddedWallet {
786
+ id: string | null;
787
+ address: string;
788
+ chain_id: string;
789
+ chain_type: 'solana';
790
+ connector_type: 'embedded';
791
+ delegated: boolean;
768
792
  first_verified_at: number | null;
793
+ imported: boolean;
769
794
  latest_verified_at: number | null;
770
- name: string | null;
771
- subject: string;
772
- type: 'github_oauth';
773
- username: string | null;
795
+ public_key: string;
796
+ /**
797
+ * The method used to recover an embedded wallet account.
798
+ */
799
+ recovery_method: EmbeddedWalletRecoveryMethod;
800
+ type: 'wallet';
774
801
  verified_at: number;
802
+ wallet_client: 'privy';
803
+ wallet_client_type: 'privy';
804
+ wallet_index: number;
775
805
  }
776
806
  /**
777
- * A LinkedIn OAuth account linked to the user.
807
+ * The payload for importing a Spotify account.
778
808
  */
779
- export interface LinkedAccountLinkedInOAuth {
780
- email: string | null;
781
- first_verified_at: number | null;
782
- latest_verified_at: number | null;
809
+ export interface LinkedAccountSpotifyInput {
783
810
  subject: string;
784
- type: 'linkedin_oauth';
785
- verified_at: number;
811
+ type: 'spotify_oauth';
812
+ email?: string;
786
813
  name?: string;
787
- vanity_name?: string;
788
814
  }
789
815
  /**
790
816
  * A Spotify OAuth account linked to the user.
@@ -799,15 +825,38 @@ export interface LinkedAccountSpotifyOAuth {
799
825
  verified_at: number;
800
826
  }
801
827
  /**
802
- * An Instagram OAuth account linked to the user.
828
+ * A Telegram account linked to the user.
803
829
  */
804
- export interface LinkedAccountInstagramOAuth {
830
+ export interface LinkedAccountTelegram {
805
831
  first_verified_at: number | null;
806
832
  latest_verified_at: number | null;
807
- subject: string;
808
- type: 'instagram_oauth';
809
- username: string | null;
833
+ telegram_user_id: string;
834
+ type: 'telegram';
810
835
  verified_at: number;
836
+ first_name?: string | null;
837
+ last_name?: string | null;
838
+ photo_url?: string | null;
839
+ username?: string | null;
840
+ }
841
+ /**
842
+ * The payload for importing a Telegram account.
843
+ */
844
+ export interface LinkedAccountTelegramInput {
845
+ telegram_user_id: string;
846
+ type: 'telegram';
847
+ first_name?: string;
848
+ last_name?: string;
849
+ photo_url?: string;
850
+ username?: string;
851
+ }
852
+ /**
853
+ * The payload for importing a Tiktok account.
854
+ */
855
+ export interface LinkedAccountTiktokInput {
856
+ name: string | null;
857
+ subject: string;
858
+ type: 'tiktok_oauth';
859
+ username: string;
811
860
  }
812
861
  /**
813
862
  * A TikTok OAuth account linked to the user.
@@ -822,17 +871,12 @@ export interface LinkedAccountTiktokOAuth {
822
871
  verified_at: number;
823
872
  }
824
873
  /**
825
- * A LINE OAuth account linked to the user.
874
+ * The payload for importing a Twitch account.
826
875
  */
827
- export interface LinkedAccountLineOAuth {
828
- email: string | null;
829
- first_verified_at: number | null;
830
- latest_verified_at: number | null;
831
- name: string | null;
832
- profile_picture_url: string | null;
876
+ export interface LinkedAccountTwitchInput {
833
877
  subject: string;
834
- type: 'line_oauth';
835
- verified_at: number;
878
+ type: 'twitch_oauth';
879
+ username?: string;
836
880
  }
837
881
  /**
838
882
  * A Twitch OAuth account linked to the user.
@@ -846,87 +890,71 @@ export interface LinkedAccountTwitchOAuth {
846
890
  verified_at: number;
847
891
  }
848
892
  /**
849
- * An Apple OAuth account linked to the user.
893
+ * The payload for importing a Twitter account.
850
894
  */
851
- export interface LinkedAccountAppleOAuth {
852
- email: string | null;
853
- first_verified_at: number | null;
854
- latest_verified_at: number | null;
895
+ export interface LinkedAccountTwitterInput {
896
+ name: string;
855
897
  subject: string;
856
- type: 'apple_oauth';
857
- verified_at: number;
898
+ type: 'twitter_oauth';
899
+ username: string;
900
+ profile_picture_url?: string;
858
901
  }
859
902
  /**
860
- * A custom OAuth account linked to the user.
903
+ * A Twitter OAuth account linked to the user.
861
904
  */
862
- export interface LinkedAccountCustomOAuth {
905
+ export interface LinkedAccountTwitterOAuth {
863
906
  first_verified_at: number | null;
864
907
  latest_verified_at: number | null;
908
+ name: string | null;
909
+ profile_picture_url: string | null;
865
910
  subject: string;
866
- /**
867
- * The ID of a custom OAuth provider, set up for this app. Must start with
868
- * "custom:".
869
- */
870
- type: ClientAuthAPI.CustomOAuthProviderID;
911
+ type: 'twitter_oauth';
912
+ username: string | null;
871
913
  verified_at: number;
872
- email?: string;
873
- name?: string;
874
- profile_picture_url?: string;
875
- username?: string;
876
914
  }
877
915
  /**
878
- * A custom JWT account linked to the user.
916
+ * The possible types of linked accounts.
879
917
  */
880
- export interface LinkedAccountCustomJwt {
881
- custom_user_id: string;
882
- first_verified_at: number | null;
883
- latest_verified_at: number | null;
884
- type: 'custom_auth';
885
- verified_at: number;
886
- }
918
+ export type LinkedAccountType = 'email' | 'phone' | 'wallet' | 'smart_wallet' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'twitch_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | ClientAuthAPI.CustomOAuthProviderID;
887
919
  /**
888
- * An embedded wallet associated with a cross-app account.
920
+ * The payload for importing a wallet account.
889
921
  */
890
- export interface CrossAppEmbeddedWallet {
922
+ export interface LinkedAccountWalletInput {
891
923
  address: string;
924
+ chain_type: 'ethereum' | 'solana';
925
+ type: 'wallet';
892
926
  }
893
927
  /**
894
- * A smart wallet associated with a cross-app account.
928
+ * A multi-factor authentication method linked to the user.
895
929
  */
896
- export interface CrossAppSmartWallet {
897
- address: string;
898
- }
930
+ export type LinkedMfaMethod = SMSMfaMethod | TotpMfaMethod | PasskeyMfaMethod;
899
931
  /**
900
- * A cross-app account linked to the user.
932
+ * OAuth tokens associated with the user.
901
933
  */
902
- export interface LinkedAccountCrossApp {
903
- embedded_wallets: Array<CrossAppEmbeddedWallet>;
904
- first_verified_at: number | null;
905
- latest_verified_at: number | null;
906
- provider_app_id: string;
907
- smart_wallets: Array<CrossAppSmartWallet>;
908
- subject: string;
909
- type: 'cross_app';
910
- verified_at: number;
934
+ export interface OAuthTokens {
935
+ access_token: string;
936
+ provider: string;
937
+ access_token_expires_in_seconds?: number;
938
+ refresh_token?: string;
939
+ refresh_token_expires_in_seconds?: number;
940
+ scopes?: Array<string>;
911
941
  }
912
942
  /**
913
- * An authorization key linked to the user.
943
+ * A Passkey MFA method.
914
944
  */
915
- export interface LinkedAccountAuthorizationKey {
916
- first_verified_at: number | null;
917
- latest_verified_at: number | null;
918
- public_key: string;
919
- type: 'authorization_key';
945
+ export interface PasskeyMfaMethod {
946
+ type: 'passkey';
920
947
  verified_at: number;
921
948
  }
922
949
  /**
923
- * A linked account for the user.
924
- */
925
- export type LinkedAccount = LinkedAccountEmail | LinkedAccountPhone | LinkedAccountEthereum | LinkedAccountSolana | LinkedAccountSmartWallet | LinkedAccountEthereumEmbeddedWallet | LinkedAccountSolanaEmbeddedWallet | LinkedAccountBitcoinSegwitEmbeddedWallet | LinkedAccountBitcoinTaprootEmbeddedWallet | LinkedAccountCurveSigningEmbeddedWallet | LinkedAccountGoogleOAuth | LinkedAccountTwitterOAuth | LinkedAccountDiscordOAuth | LinkedAccountGitHubOAuth | LinkedAccountSpotifyOAuth | LinkedAccountInstagramOAuth | LinkedAccountTiktokOAuth | LinkedAccountLineOAuth | LinkedAccountTwitchOAuth | LinkedAccountLinkedInOAuth | LinkedAccountAppleOAuth | LinkedAccountCustomOAuth | LinkedAccountCustomJwt | LinkedAccountFarcaster | LinkedAccountPasskey | LinkedAccountTelegram | LinkedAccountCrossApp | LinkedAccountAuthorizationKey;
926
- /**
927
- * The possible types of linked accounts.
950
+ * The payload for partially updating custom metadata on a user.
928
951
  */
929
- export type LinkedAccountType = 'email' | 'phone' | 'wallet' | 'smart_wallet' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'twitch_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | ClientAuthAPI.CustomOAuthProviderID;
952
+ export interface PatchUsersCustomMetadata {
953
+ /**
954
+ * Custom metadata associated with the user.
955
+ */
956
+ custom_metadata: CustomMetadata;
957
+ }
930
958
  /**
931
959
  * A SMS MFA method.
932
960
  */
@@ -941,17 +969,6 @@ export interface TotpMfaMethod {
941
969
  type: 'totp';
942
970
  verified_at: number;
943
971
  }
944
- /**
945
- * A Passkey MFA method.
946
- */
947
- export interface PasskeyMfaMethod {
948
- type: 'passkey';
949
- verified_at: number;
950
- }
951
- /**
952
- * A multi-factor authentication method linked to the user.
953
- */
954
- export type LinkedMfaMethod = SMSMfaMethod | TotpMfaMethod | PasskeyMfaMethod;
955
972
  /**
956
973
  * A Privy user object.
957
974
  */
@@ -977,15 +994,29 @@ export interface User {
977
994
  custom_metadata?: CustomMetadata;
978
995
  }
979
996
  /**
980
- * OAuth tokens associated with the user.
997
+ * The payload for batch creating users.
981
998
  */
982
- export interface OAuthTokens {
983
- access_token: string;
984
- provider: string;
985
- access_token_expires_in_seconds?: number;
986
- refresh_token?: string;
987
- refresh_token_expires_in_seconds?: number;
988
- scopes?: Array<string>;
999
+ export interface UserBatchCreateInput {
1000
+ users: Array<UserBatchCreateInput.User>;
1001
+ }
1002
+ export declare namespace UserBatchCreateInput {
1003
+ interface User {
1004
+ linked_accounts: Array<UsersAPI.LinkedAccountInput>;
1005
+ create_embedded_wallet?: boolean;
1006
+ create_ethereum_smart_wallet?: boolean;
1007
+ create_ethereum_wallet?: boolean;
1008
+ create_n_embedded_wallets?: number;
1009
+ create_n_ethereum_wallets?: number;
1010
+ create_solana_wallet?: boolean;
1011
+ /**
1012
+ * Custom metadata associated with the user.
1013
+ */
1014
+ custom_metadata?: UsersAPI.CustomMetadata;
1015
+ /**
1016
+ * Wallets to create.
1017
+ */
1018
+ wallets?: Array<EmbeddedWalletsAPI.WalletCreationInput>;
1019
+ }
989
1020
  }
990
1021
  /**
991
1022
  * The user object along their identity token.
@@ -997,28 +1028,6 @@ export interface UserWithIdentityToken {
997
1028
  */
998
1029
  user: User;
999
1030
  }
1000
- /**
1001
- * The authenticated user.
1002
- */
1003
- export interface AuthenticatedUser {
1004
- token: string | null;
1005
- privy_access_token: string | null;
1006
- refresh_token: string | null;
1007
- /**
1008
- * Instructs the client on how to handle tokens received
1009
- */
1010
- session_update_action: 'set' | 'ignore' | 'clear';
1011
- /**
1012
- * A Privy user object.
1013
- */
1014
- user: User;
1015
- identity_token?: string;
1016
- is_new_user?: boolean;
1017
- /**
1018
- * OAuth tokens associated with the user.
1019
- */
1020
- oauth_tokens?: OAuthTokens;
1021
- }
1022
1031
  export interface UserCreateParams {
1023
1032
  linked_accounts: Array<LinkedAccountInput>;
1024
1033
  /**
@@ -1133,6 +1142,6 @@ export interface UserUnlinkLinkedAccountParams {
1133
1142
  provider?: string;
1134
1143
  }
1135
1144
  export declare namespace Users {
1136
- export { type CustomMetadata as CustomMetadata, type LinkedAccountWalletInput as LinkedAccountWalletInput, type LinkedAccountEmailInput as LinkedAccountEmailInput, type LinkedAccountPhoneInput as LinkedAccountPhoneInput, type LinkedAccountGoogleInput as LinkedAccountGoogleInput, type LinkedAccountTwitterInput as LinkedAccountTwitterInput, type LinkedAccountDiscordInput as LinkedAccountDiscordInput, type LinkedAccountGitHubInput as LinkedAccountGitHubInput, type LinkedAccountSpotifyInput as LinkedAccountSpotifyInput, type LinkedAccountInstagramInput as LinkedAccountInstagramInput, type LinkedAccountTiktokInput as LinkedAccountTiktokInput, type LinkedAccountLineInput as LinkedAccountLineInput, type LinkedAccountTwitchInput as LinkedAccountTwitchInput, type LinkedAccountAppleInput as LinkedAccountAppleInput, type LinkedAccountLinkedInInput as LinkedAccountLinkedInInput, type LinkedAccountFarcasterInput as LinkedAccountFarcasterInput, type LinkedAccountTelegramInput as LinkedAccountTelegramInput, type LinkedAccountCustomJwtInput as LinkedAccountCustomJwtInput, type LinkedAccountPasskeyInput as LinkedAccountPasskeyInput, type LinkedAccountInput as LinkedAccountInput, type UserBatchCreateInput as UserBatchCreateInput, type LinkedAccountEmail as LinkedAccountEmail, type LinkedAccountPhone as LinkedAccountPhone, type LinkedAccountBaseWallet as LinkedAccountBaseWallet, type LinkedAccountEthereum as LinkedAccountEthereum, type LinkedAccountSmartWallet as LinkedAccountSmartWallet, type LinkedAccountSolana as LinkedAccountSolana, type LinkedAccountFarcaster as LinkedAccountFarcaster, type LinkedAccountPasskey as LinkedAccountPasskey, type LinkedAccountTelegram as LinkedAccountTelegram, type EmbeddedWalletRecoveryMethod as EmbeddedWalletRecoveryMethod, type LinkedAccountEthereumEmbeddedWallet as LinkedAccountEthereumEmbeddedWallet, type LinkedAccountSolanaEmbeddedWallet as LinkedAccountSolanaEmbeddedWallet, type LinkedAccountBitcoinSegwitEmbeddedWallet as LinkedAccountBitcoinSegwitEmbeddedWallet, type LinkedAccountBitcoinTaprootEmbeddedWallet as LinkedAccountBitcoinTaprootEmbeddedWallet, type LinkedAccountCurveSigningEmbeddedWallet as LinkedAccountCurveSigningEmbeddedWallet, type LinkedAccountEmbeddedWallet as LinkedAccountEmbeddedWallet, type LinkedAccountEmbeddedWalletWithID as LinkedAccountEmbeddedWalletWithID, type LinkedAccountGoogleOAuth as LinkedAccountGoogleOAuth, type LinkedAccountTwitterOAuth as LinkedAccountTwitterOAuth, type LinkedAccountDiscordOAuth as LinkedAccountDiscordOAuth, type LinkedAccountGitHubOAuth as LinkedAccountGitHubOAuth, type LinkedAccountLinkedInOAuth as LinkedAccountLinkedInOAuth, type LinkedAccountSpotifyOAuth as LinkedAccountSpotifyOAuth, type LinkedAccountInstagramOAuth as LinkedAccountInstagramOAuth, type LinkedAccountTiktokOAuth as LinkedAccountTiktokOAuth, type LinkedAccountLineOAuth as LinkedAccountLineOAuth, type LinkedAccountTwitchOAuth as LinkedAccountTwitchOAuth, type LinkedAccountAppleOAuth as LinkedAccountAppleOAuth, type LinkedAccountCustomOAuth as LinkedAccountCustomOAuth, type LinkedAccountCustomJwt as LinkedAccountCustomJwt, type CrossAppEmbeddedWallet as CrossAppEmbeddedWallet, type CrossAppSmartWallet as CrossAppSmartWallet, type LinkedAccountCrossApp as LinkedAccountCrossApp, type LinkedAccountAuthorizationKey as LinkedAccountAuthorizationKey, type LinkedAccount as LinkedAccount, type LinkedAccountType as LinkedAccountType, type SMSMfaMethod as SMSMfaMethod, type TotpMfaMethod as TotpMfaMethod, type PasskeyMfaMethod as PasskeyMfaMethod, type LinkedMfaMethod as LinkedMfaMethod, type User as User, type OAuthTokens as OAuthTokens, type UserWithIdentityToken as UserWithIdentityToken, type AuthenticatedUser as AuthenticatedUser, type UsersCursor as UsersCursor, type UserCreateParams as UserCreateParams, type UserListParams as UserListParams, type UserGetByCustomAuthIDParams as UserGetByCustomAuthIDParams, type UserGetByDiscordUsernameParams as UserGetByDiscordUsernameParams, type UserGetByEmailAddressParams as UserGetByEmailAddressParams, type UserGetByFarcasterIDParams as UserGetByFarcasterIDParams, type UserGetByGitHubUsernameParams as UserGetByGitHubUsernameParams, type UserGetByPhoneNumberParams as UserGetByPhoneNumberParams, type UserGetBySmartWalletAddressParams as UserGetBySmartWalletAddressParams, type UserGetByTelegramUserIDParams as UserGetByTelegramUserIDParams, type UserGetByTelegramUsernameParams as UserGetByTelegramUsernameParams, type UserGetByTwitterSubjectParams as UserGetByTwitterSubjectParams, type UserGetByTwitterUsernameParams as UserGetByTwitterUsernameParams, type UserGetByWalletAddressParams as UserGetByWalletAddressParams, type UserPregenerateWalletsParams as UserPregenerateWalletsParams, type UserSearchParams as UserSearchParams, type UserSetCustomMetadataParams as UserSetCustomMetadataParams, type UserUnlinkLinkedAccountParams as UserUnlinkLinkedAccountParams, };
1145
+ export { type AuthenticatedUser as AuthenticatedUser, type CrossAppEmbeddedWallet as CrossAppEmbeddedWallet, type CrossAppSmartWallet as CrossAppSmartWallet, type CustomMetadata as CustomMetadata, type EmbeddedWalletRecoveryMethod as EmbeddedWalletRecoveryMethod, type LinkedAccount as LinkedAccount, type LinkedAccountAppleInput as LinkedAccountAppleInput, type LinkedAccountAppleOAuth as LinkedAccountAppleOAuth, type LinkedAccountAuthorizationKey as LinkedAccountAuthorizationKey, type LinkedAccountBaseWallet as LinkedAccountBaseWallet, type LinkedAccountBitcoinSegwitEmbeddedWallet as LinkedAccountBitcoinSegwitEmbeddedWallet, type LinkedAccountBitcoinTaprootEmbeddedWallet as LinkedAccountBitcoinTaprootEmbeddedWallet, type LinkedAccountCrossApp as LinkedAccountCrossApp, type LinkedAccountCurveSigningEmbeddedWallet as LinkedAccountCurveSigningEmbeddedWallet, type LinkedAccountCustomJwtInput as LinkedAccountCustomJwtInput, type LinkedAccountCustomJwt as LinkedAccountCustomJwt, type LinkedAccountCustomOAuth as LinkedAccountCustomOAuth, type LinkedAccountDiscordInput as LinkedAccountDiscordInput, type LinkedAccountDiscordOAuth as LinkedAccountDiscordOAuth, type LinkedAccountEmail as LinkedAccountEmail, type LinkedAccountEmailInput as LinkedAccountEmailInput, type LinkedAccountEmbeddedWallet as LinkedAccountEmbeddedWallet, type LinkedAccountEmbeddedWalletWithID as LinkedAccountEmbeddedWalletWithID, type LinkedAccountEthereum as LinkedAccountEthereum, type LinkedAccountEthereumEmbeddedWallet as LinkedAccountEthereumEmbeddedWallet, type LinkedAccountFarcaster as LinkedAccountFarcaster, type LinkedAccountFarcasterInput as LinkedAccountFarcasterInput, type LinkedAccountGitHubInput as LinkedAccountGitHubInput, type LinkedAccountGitHubOAuth as LinkedAccountGitHubOAuth, type LinkedAccountGoogleInput as LinkedAccountGoogleInput, type LinkedAccountGoogleOAuth as LinkedAccountGoogleOAuth, type LinkedAccountInput as LinkedAccountInput, type LinkedAccountInstagramInput as LinkedAccountInstagramInput, type LinkedAccountInstagramOAuth as LinkedAccountInstagramOAuth, type LinkedAccountLineInput as LinkedAccountLineInput, type LinkedAccountLineOAuth as LinkedAccountLineOAuth, type LinkedAccountLinkedInInput as LinkedAccountLinkedInInput, type LinkedAccountLinkedInOAuth as LinkedAccountLinkedInOAuth, type LinkedAccountPasskey as LinkedAccountPasskey, type LinkedAccountPasskeyInput as LinkedAccountPasskeyInput, type LinkedAccountPhone as LinkedAccountPhone, type LinkedAccountPhoneInput as LinkedAccountPhoneInput, type LinkedAccountSmartWallet as LinkedAccountSmartWallet, type LinkedAccountSolana as LinkedAccountSolana, type LinkedAccountSolanaEmbeddedWallet as LinkedAccountSolanaEmbeddedWallet, type LinkedAccountSpotifyInput as LinkedAccountSpotifyInput, type LinkedAccountSpotifyOAuth as LinkedAccountSpotifyOAuth, type LinkedAccountTelegram as LinkedAccountTelegram, type LinkedAccountTelegramInput as LinkedAccountTelegramInput, type LinkedAccountTiktokInput as LinkedAccountTiktokInput, type LinkedAccountTiktokOAuth as LinkedAccountTiktokOAuth, type LinkedAccountTwitchInput as LinkedAccountTwitchInput, type LinkedAccountTwitchOAuth as LinkedAccountTwitchOAuth, type LinkedAccountTwitterInput as LinkedAccountTwitterInput, type LinkedAccountTwitterOAuth as LinkedAccountTwitterOAuth, type LinkedAccountType as LinkedAccountType, type LinkedAccountWalletInput as LinkedAccountWalletInput, type LinkedMfaMethod as LinkedMfaMethod, type OAuthTokens as OAuthTokens, type PasskeyMfaMethod as PasskeyMfaMethod, type PatchUsersCustomMetadata as PatchUsersCustomMetadata, type SMSMfaMethod as SMSMfaMethod, type TotpMfaMethod as TotpMfaMethod, type User as User, type UserBatchCreateInput as UserBatchCreateInput, type UserWithIdentityToken as UserWithIdentityToken, type UsersCursor as UsersCursor, type UserCreateParams as UserCreateParams, type UserListParams as UserListParams, type UserGetByCustomAuthIDParams as UserGetByCustomAuthIDParams, type UserGetByDiscordUsernameParams as UserGetByDiscordUsernameParams, type UserGetByEmailAddressParams as UserGetByEmailAddressParams, type UserGetByFarcasterIDParams as UserGetByFarcasterIDParams, type UserGetByGitHubUsernameParams as UserGetByGitHubUsernameParams, type UserGetByPhoneNumberParams as UserGetByPhoneNumberParams, type UserGetBySmartWalletAddressParams as UserGetBySmartWalletAddressParams, type UserGetByTelegramUserIDParams as UserGetByTelegramUserIDParams, type UserGetByTelegramUsernameParams as UserGetByTelegramUsernameParams, type UserGetByTwitterSubjectParams as UserGetByTwitterSubjectParams, type UserGetByTwitterUsernameParams as UserGetByTwitterUsernameParams, type UserGetByWalletAddressParams as UserGetByWalletAddressParams, type UserPregenerateWalletsParams as UserPregenerateWalletsParams, type UserSearchParams as UserSearchParams, type UserSetCustomMetadataParams as UserSetCustomMetadataParams, type UserUnlinkLinkedAccountParams as UserUnlinkLinkedAccountParams, };
1137
1146
  }
1138
1147
  //# sourceMappingURL=users.d.mts.map