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