@privy-io/api-types 0.8.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 (167) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/client.d.mts +35 -32
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -32
  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 +22 -8
  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/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/accounts.d.mts +128 -86
  20. package/resources/accounts.d.mts.map +1 -1
  21. package/resources/accounts.d.ts +128 -86
  22. package/resources/accounts.d.ts.map +1 -1
  23. package/resources/aggregations.d.mts +43 -43
  24. package/resources/aggregations.d.mts.map +1 -1
  25. package/resources/aggregations.d.ts +43 -43
  26. package/resources/aggregations.d.ts.map +1 -1
  27. package/resources/apps.d.mts +177 -129
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +177 -129
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/client-auth.d.mts +650 -648
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +650 -648
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/embedded-wallets.d.mts +84 -84
  36. package/resources/embedded-wallets.d.mts.map +1 -1
  37. package/resources/embedded-wallets.d.ts +84 -84
  38. package/resources/embedded-wallets.d.ts.map +1 -1
  39. package/resources/funding.d.mts +42 -42
  40. package/resources/funding.d.mts.map +1 -1
  41. package/resources/funding.d.ts +42 -42
  42. package/resources/funding.d.ts.map +1 -1
  43. package/resources/index.d.mts +19 -18
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +19 -18
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +270 -266
  52. package/resources/intents.d.mts.map +1 -1
  53. package/resources/intents.d.ts +270 -266
  54. package/resources/intents.d.ts.map +1 -1
  55. package/resources/key-quorums.d.mts +20 -20
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +20 -20
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/kraken-embed.d.mts +62 -19
  60. package/resources/kraken-embed.d.mts.map +1 -1
  61. package/resources/kraken-embed.d.ts +62 -19
  62. package/resources/kraken-embed.d.ts.map +1 -1
  63. package/resources/organizations.d.mts +65 -0
  64. package/resources/organizations.d.mts.map +1 -0
  65. package/resources/organizations.d.ts +65 -0
  66. package/resources/organizations.d.ts.map +1 -0
  67. package/resources/organizations.js +9 -0
  68. package/resources/organizations.js.map +1 -0
  69. package/resources/organizations.mjs +5 -0
  70. package/resources/organizations.mjs.map +1 -0
  71. package/resources/policies.d.mts +360 -231
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +360 -231
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/shared.d.mts +28 -28
  76. package/resources/shared.d.mts.map +1 -1
  77. package/resources/shared.d.ts +28 -28
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/swaps.d.mts +8 -11
  80. package/resources/swaps.d.mts.map +1 -1
  81. package/resources/swaps.d.ts +8 -11
  82. package/resources/swaps.d.ts.map +1 -1
  83. package/resources/swaps.js.map +1 -1
  84. package/resources/swaps.mjs.map +1 -1
  85. package/resources/transactions.d.mts +56 -66
  86. package/resources/transactions.d.mts.map +1 -1
  87. package/resources/transactions.d.ts +56 -66
  88. package/resources/transactions.d.ts.map +1 -1
  89. package/resources/users.d.mts +457 -448
  90. package/resources/users.d.mts.map +1 -1
  91. package/resources/users.d.ts +457 -448
  92. package/resources/users.d.ts.map +1 -1
  93. package/resources/wallet-actions.d.mts +450 -41
  94. package/resources/wallet-actions.d.mts.map +1 -1
  95. package/resources/wallet-actions.d.ts +450 -41
  96. package/resources/wallet-actions.d.ts.map +1 -1
  97. package/resources/wallets/balance.d.mts +2 -1
  98. package/resources/wallets/balance.d.mts.map +1 -1
  99. package/resources/wallets/balance.d.ts +2 -1
  100. package/resources/wallets/balance.d.ts.map +1 -1
  101. package/resources/wallets/balance.js.map +1 -1
  102. package/resources/wallets/balance.mjs.map +1 -1
  103. package/resources/wallets/index.d.mts +1 -1
  104. package/resources/wallets/index.d.mts.map +1 -1
  105. package/resources/wallets/index.d.ts +1 -1
  106. package/resources/wallets/index.d.ts.map +1 -1
  107. package/resources/wallets/index.js.map +1 -1
  108. package/resources/wallets/index.mjs.map +1 -1
  109. package/resources/wallets/transactions.d.mts +16 -31
  110. package/resources/wallets/transactions.d.mts.map +1 -1
  111. package/resources/wallets/transactions.d.ts +16 -31
  112. package/resources/wallets/transactions.d.ts.map +1 -1
  113. package/resources/wallets/transactions.js +1 -1
  114. package/resources/wallets/transactions.js.map +1 -1
  115. package/resources/wallets/transactions.mjs +1 -1
  116. package/resources/wallets/transactions.mjs.map +1 -1
  117. package/resources/wallets/wallets.d.mts +1475 -1172
  118. package/resources/wallets/wallets.d.mts.map +1 -1
  119. package/resources/wallets/wallets.d.ts +1475 -1172
  120. package/resources/wallets/wallets.d.ts.map +1 -1
  121. package/resources/wallets/wallets.js +10 -6
  122. package/resources/wallets/wallets.js.map +1 -1
  123. package/resources/wallets/wallets.mjs +10 -6
  124. package/resources/wallets/wallets.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +1345 -582
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +1345 -582
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/yield.d.mts +157 -157
  130. package/resources/yield.d.mts.map +1 -1
  131. package/resources/yield.d.ts +157 -157
  132. package/resources/yield.d.ts.map +1 -1
  133. package/src/client.ts +661 -455
  134. package/src/internal/types.ts +6 -8
  135. package/src/internal/utils/env.ts +2 -2
  136. package/src/resources/accounts.ts +157 -103
  137. package/src/resources/aggregations.ts +55 -55
  138. package/src/resources/apps.ts +232 -166
  139. package/src/resources/client-auth.ts +890 -890
  140. package/src/resources/embedded-wallets.ts +123 -123
  141. package/src/resources/funding.ts +66 -66
  142. package/src/resources/index.ts +521 -431
  143. package/src/resources/intents.ts +326 -322
  144. package/src/resources/key-quorums.ts +23 -23
  145. package/src/resources/kraken-embed.ts +116 -19
  146. package/src/resources/organizations.ts +82 -0
  147. package/src/resources/policies.ts +495 -339
  148. package/src/resources/shared.ts +34 -34
  149. package/src/resources/swaps.ts +9 -14
  150. package/src/resources/transactions.ts +88 -115
  151. package/src/resources/users.ts +664 -653
  152. package/src/resources/wallet-actions.ts +585 -56
  153. package/src/resources/wallets/balance.ts +2 -1
  154. package/src/resources/wallets/index.ts +158 -138
  155. package/src/resources/wallets/transactions.ts +20 -83
  156. package/src/resources/wallets/wallets.ts +1997 -1563
  157. package/src/resources/webhooks.ts +1652 -700
  158. package/src/resources/yield.ts +188 -188
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.mts.map +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.d.ts.map +1 -1
  164. package/version.js +1 -1
  165. package/version.js.map +1 -1
  166. package/version.mjs +1 -1
  167. package/version.mjs.map +1 -1
@@ -511,401 +511,436 @@ export interface TelegramUnlinkRequestBody {
511
511
  telegram_user_id: string;
512
512
  }
513
513
  /**
514
- * The ID of an external OAuth provider.
515
- */
516
- export type ExternalOAuthProviderID = 'google' | 'discord' | 'twitter' | 'github' | 'spotify' | 'instagram' | 'tiktok' | 'linkedin' | 'apple' | 'line' | 'twitch';
517
- /**
518
- * The ID of a Privy app as an OAuth provider. Must start with "privy:".
519
- */
520
- export type PrivyOAuthProviderID = `privy:${string}`;
521
- /**
522
- * The ID of a custom OAuth provider, set up for this app. Must start with
523
- * "custom:".
524
- */
525
- export type CustomOAuthProviderID = `custom:${string}`;
526
- /**
527
- * The ID of an OAuth provider.
528
- */
529
- export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
530
- /**
531
- * Bridge provider variant — production or sandbox.
514
+ * Input for authenticating with a custom JWT.
532
515
  */
533
- export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
516
+ export interface AuthenticateJwtInput {
517
+ token?: string;
518
+ /**
519
+ * Whether to allow sign-up during authentication.
520
+ */
521
+ mode?: AuthenticateModeOption;
522
+ }
534
523
  /**
535
- * Valid set of onramp providers
524
+ * The authentication mode settings for the ceremony.
536
525
  */
537
- export type OnrampProvider = 'bridge' | 'bridge-sandbox';
526
+ export interface AuthenticateMode {
527
+ /**
528
+ * Whether to allow sign-up during authentication.
529
+ */
530
+ mode?: AuthenticateModeOption;
531
+ }
538
532
  /**
539
533
  * Whether to allow sign-up during authentication.
540
534
  */
541
535
  export type AuthenticateModeOption = 'no-signup' | 'login-or-sign-up';
542
536
  /**
543
- * The authentication mode settings for the ceremony.
537
+ * Input for authenticating a SIWE ceremony.
544
538
  */
545
- export interface AuthenticateMode {
539
+ export interface AuthenticateSiweInput {
540
+ message: string;
541
+ signature: string;
542
+ chainId?: string | null;
543
+ connectorType?: string | null;
546
544
  /**
547
545
  * Whether to allow sign-up during authentication.
548
546
  */
549
547
  mode?: AuthenticateModeOption;
548
+ walletClientType?: string | null;
550
549
  }
551
550
  /**
552
- * The result of the WebAuthn credProps extension.
551
+ * Input for authenticating a SIWS ceremony.
553
552
  */
554
- export interface PasskeyCredPropsResult {
555
- rk?: boolean;
553
+ export interface AuthenticateSiwsInput {
554
+ message: string;
555
+ signature: string;
556
+ connectorType?: string | null;
557
+ message_type?: 'transaction' | 'plain';
558
+ /**
559
+ * Whether to allow sign-up during authentication.
560
+ */
561
+ mode?: AuthenticateModeOption;
562
+ walletClientType?: string | null;
556
563
  }
557
564
  /**
558
- * Client extension results returned by the WebAuthn authenticator.
565
+ * The deposit instructions for a virtual account.
559
566
  */
560
- export interface PasskeyClientExtensionResults {
561
- app_id?: boolean;
562
- /**
563
- * The result of the WebAuthn credProps extension.
564
- */
565
- cred_props?: PasskeyCredPropsResult;
566
- hmac_create_secret?: boolean;
567
+ export interface BridgeBrlFiatVirtualAccountDepositInstructions {
568
+ account_holder_name: string;
569
+ asset: 'brl';
570
+ bank_address: string;
571
+ bank_name: string;
572
+ br_code: string;
573
+ payment_rails: Array<'pix'>;
567
574
  }
575
+ export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
568
576
  /**
569
- * A WebAuthn credential descriptor identifying a specific public key credential.
577
+ * The deposit instructions for a virtual account.
570
578
  */
571
- export interface PasskeyCredentialDescriptor {
572
- id: string;
573
- type: string;
574
- transports?: Array<string>;
579
+ export interface BridgeEurFiatVirtualAccountDepositInstructions {
580
+ account_holder_name: string;
581
+ asset: 'eur';
582
+ bank_address: string;
583
+ bank_name: string;
584
+ bic: string;
585
+ iban: string;
586
+ payment_rails: Array<'sepa'>;
575
587
  }
576
588
  /**
577
- * Relying party information for a WebAuthn ceremony.
589
+ * The response for getting a native onramp provider customer.
578
590
  */
579
- export interface PasskeyRelyingParty {
580
- name: string;
581
- id?: string;
591
+ export interface BridgeFiatCustomerResponse {
592
+ has_accepted_terms: boolean;
593
+ provider: 'bridge';
594
+ /**
595
+ * Status of the KYC verification process.
596
+ */
597
+ status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
598
+ kyc_url?: string;
599
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
582
600
  }
583
601
  /**
584
- * User entity for a WebAuthn registration ceremony.
602
+ * A rejection reason for a customer KYC verification.
585
603
  */
586
- export interface PasskeyUser {
587
- id: string;
588
- display_name: string;
589
- name: string;
604
+ export interface BridgeFiatRejectionReason {
605
+ reason: string;
590
606
  }
591
607
  /**
592
- * A public key credential parameter specifying the algorithm and credential type.
608
+ * The deposit instructions for a virtual account.
593
609
  */
594
- export interface PasskeyPubKeyCredParam {
595
- alg: number;
596
- type: 'public-key';
610
+ export type BridgeFiatVirtualAccountDepositInstructions = BridgeUsdFiatVirtualAccountDepositInstructions | BridgeEurFiatVirtualAccountDepositInstructions | BridgeMxnFiatVirtualAccountDepositInstructions | BridgeBrlFiatVirtualAccountDepositInstructions | BridgeGbpFiatVirtualAccountDepositInstructions;
611
+ export interface BridgeFiatVirtualAccountDestination {
612
+ address: string;
613
+ asset: BridgeDestinationAsset;
614
+ chain: string;
597
615
  }
598
616
  /**
599
- * Authenticator selection criteria for a WebAuthn registration ceremony.
617
+ * The request input for creating virtual account.
600
618
  */
601
- export interface PasskeyAuthenticatorSelection {
602
- authenticator_attachment?: string;
603
- require_resident_key?: boolean;
604
- resident_key?: string;
605
- user_verification?: string;
619
+ export interface BridgeFiatVirtualAccountRequest {
620
+ destination: BridgeFiatVirtualAccountDestination;
621
+ provider: 'bridge';
622
+ source: BridgeFiatVirtualAccountSource;
606
623
  }
607
624
  /**
608
- * Extensions for a WebAuthn registration ceremony.
625
+ * The response for creating virtual account.
609
626
  */
610
- export interface PasskeyEnrollmentExtensions {
611
- app_id?: string;
627
+ export interface BridgeFiatVirtualAccountResponse {
612
628
  /**
613
- * The result of the WebAuthn credProps extension.
629
+ * The deposit instructions for a virtual account.
614
630
  */
615
- cred_props?: PasskeyCredPropsResult;
616
- hmac_create_secret?: boolean;
631
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
632
+ destination: BridgeFiatVirtualAccountDestination;
633
+ provider: 'bridge';
634
+ status: string;
635
+ }
636
+ export interface BridgeFiatVirtualAccountSource {
637
+ asset: BridgeSourceAsset;
617
638
  }
618
639
  /**
619
- * The authenticator attestation response from a WebAuthn registration ceremony.
640
+ * The deposit instructions for a virtual account.
620
641
  */
621
- export interface PasskeyAttestationResponse {
622
- attestation_object: string;
623
- client_data_json: string;
624
- authenticator_data?: string;
625
- public_key?: string;
626
- public_key_algorithm?: number;
627
- transports?: Array<unknown>;
642
+ export interface BridgeGbpFiatVirtualAccountDepositInstructions {
643
+ account_holder_name: string;
644
+ account_number: string;
645
+ asset: 'gbp';
646
+ bank_address: string;
647
+ bank_name: string;
648
+ payment_rails: Array<'faster_payments'>;
649
+ sort_code: string;
628
650
  }
629
651
  /**
630
- * WebAuthn registration options as defined by the Web Authentication
631
- * specification.
652
+ * The deposit instructions for a virtual account.
632
653
  */
633
- export interface PasskeyAuthenticatorEnrollmentOptions {
634
- challenge: string;
635
- pub_key_cred_params: Array<PasskeyPubKeyCredParam>;
636
- /**
637
- * Relying party information for a WebAuthn ceremony.
638
- */
639
- rp: PasskeyRelyingParty;
640
- /**
641
- * User entity for a WebAuthn registration ceremony.
642
- */
643
- user: PasskeyUser;
644
- attestation?: string;
645
- /**
646
- * Authenticator selection criteria for a WebAuthn registration ceremony.
647
- */
648
- authenticator_selection?: PasskeyAuthenticatorSelection;
649
- exclude_credentials?: Array<PasskeyCredentialDescriptor>;
650
- /**
651
- * Extensions for a WebAuthn registration ceremony.
652
- */
653
- extensions?: PasskeyEnrollmentExtensions;
654
- timeout?: number;
654
+ export interface BridgeMxnFiatVirtualAccountDepositInstructions {
655
+ account_holder_name: string;
656
+ asset: 'mxn';
657
+ bank_address: string;
658
+ bank_name: string;
659
+ clabe: string;
660
+ payment_rails: Array<'spei'>;
655
661
  }
656
662
  /**
657
- * WebAuthn registration response as defined by the Web Authentication
658
- * specification.
663
+ * Bridge provider variant — production or sandbox.
659
664
  */
660
- export interface PasskeyAuthenticatorEnrollmentResponse {
661
- id: string;
662
- /**
663
- * Client extension results returned by the WebAuthn authenticator.
664
- */
665
- client_extension_results: PasskeyClientExtensionResults;
666
- raw_id: string;
665
+ export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
666
+ /**
667
+ * The response for getting a native onramp provider customer.
668
+ */
669
+ export interface BridgeSandboxFiatCustomerResponse {
670
+ has_accepted_terms: boolean;
671
+ provider: 'bridge-sandbox';
667
672
  /**
668
- * The authenticator attestation response from a WebAuthn registration ceremony.
673
+ * Status of the KYC verification process.
669
674
  */
670
- response: PasskeyAttestationResponse;
671
- type: 'public-key';
672
- authenticator_attachment?: string;
675
+ status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
676
+ kyc_url?: string;
677
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
673
678
  }
674
679
  /**
675
- * Response for initiating a passkey link ceremony.
680
+ * The request input for creating virtual account.
676
681
  */
677
- export interface ResponsePasskeyInitLink {
682
+ export interface BridgeSandboxFiatVirtualAccountRequest {
683
+ destination: BridgeFiatVirtualAccountDestination;
684
+ provider: 'bridge-sandbox';
685
+ source: BridgeFiatVirtualAccountSource;
686
+ }
687
+ /**
688
+ * The response for creating virtual account.
689
+ */
690
+ export interface BridgeSandboxFiatVirtualAccountResponse {
678
691
  /**
679
- * WebAuthn registration options as defined by the Web Authentication
680
- * specification.
692
+ * The deposit instructions for a virtual account.
681
693
  */
682
- options: PasskeyAuthenticatorEnrollmentOptions;
683
- relying_party?: string;
694
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
695
+ destination: BridgeFiatVirtualAccountDestination;
696
+ provider: 'bridge-sandbox';
697
+ status: string;
684
698
  }
699
+ export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
685
700
  /**
686
- * Response for initiating a passkey registration ceremony.
701
+ * The deposit instructions for a virtual account.
687
702
  */
688
- export interface ResponsePasskeyInitRegister {
703
+ export interface BridgeUsdFiatVirtualAccountDepositInstructions {
704
+ asset: 'usd';
705
+ bank_account_number: string;
706
+ bank_address: string;
707
+ bank_beneficiary_address: string;
708
+ bank_beneficiary_name: string;
709
+ bank_name: string;
710
+ bank_routing_number: string;
711
+ payment_rails: Array<'ach_push' | 'wire'>;
712
+ }
713
+ /**
714
+ * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
715
+ * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
716
+ */
717
+ export type Caip2ChainID = string;
718
+ /**
719
+ * The request input for creating (or updating) a native onramp provider customer.
720
+ */
721
+ export interface CreateOrUpdateFiatCustomerRequestInput {
722
+ has_accepted_terms: boolean;
689
723
  /**
690
- * WebAuthn registration options as defined by the Web Authentication
691
- * specification.
724
+ * Valid set of onramp providers
692
725
  */
693
- options: PasskeyAuthenticatorEnrollmentOptions;
694
- relying_party?: string;
726
+ provider: OnrampProvider;
727
+ kyc_redirect_url?: string;
695
728
  }
696
729
  /**
697
- * Input for linking a passkey credential.
730
+ * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
698
731
  */
699
- export interface PasskeyLinkInput {
732
+ export type CryptoCurrencyCode = string;
733
+ /**
734
+ * The ID of a custom OAuth provider, set up for this app. Must start with
735
+ * "custom:".
736
+ */
737
+ export type CustomOAuthProviderID = `custom:${string}`;
738
+ /**
739
+ * The ID of an external OAuth provider.
740
+ */
741
+ export type ExternalOAuthProviderID = 'google' | 'discord' | 'twitter' | 'github' | 'spotify' | 'instagram' | 'tiktok' | 'linkedin' | 'apple' | 'line' | 'twitch';
742
+ /**
743
+ * Input for authenticating with Farcaster.
744
+ */
745
+ export interface FarcasterAuthenticateInput {
746
+ channel_token: string;
747
+ fid: number;
748
+ message: string;
749
+ signature: string;
700
750
  /**
701
- * WebAuthn registration response as defined by the Web Authentication
702
- * specification.
751
+ * Whether to allow sign-up during authentication.
703
752
  */
704
- authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
705
- relying_party?: string;
753
+ mode?: AuthenticateModeOption;
706
754
  }
707
755
  /**
708
- * Input for registering a passkey credential.
756
+ * Proxy for the Farcaster Connect init response as defined in FIP-11.
709
757
  */
710
- export interface PasskeyRegisterInput {
711
- /**
712
- * WebAuthn registration response as defined by the Web Authentication
713
- * specification.
714
- */
715
- authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
716
- relying_party?: string;
758
+ export interface FarcasterConnectInitResponse {
759
+ channel_token: string;
760
+ connect_uri: string;
717
761
  }
718
762
  /**
719
- * Input for initiating a passkey ceremony.
763
+ * Proxy for the Farcaster Connect completed status response as defined in FIP-11.
720
764
  */
721
- export interface PasskeyInitInput {
722
- token?: string;
723
- relying_party?: string;
765
+ export interface FarcasterConnectStatusCompletedResponse {
766
+ bio: string;
767
+ display_name: string;
768
+ fid: number;
769
+ message: string;
770
+ nonce: string;
771
+ pfp_url: string;
772
+ signature: string;
773
+ state: 'completed';
774
+ username: string;
724
775
  }
725
776
  /**
726
- * Input for unlinking a passkey credential.
777
+ * Proxy for the Farcaster Connect pending status response as defined in FIP-11.
727
778
  */
728
- export interface UnlinkPasskeyInput {
729
- credential_id: string;
730
- remove_as_mfa?: boolean;
779
+ export interface FarcasterConnectStatusPendingResponse {
780
+ nonce: string;
781
+ state: 'pending';
731
782
  }
732
783
  /**
733
- * Extensions for a WebAuthn authentication ceremony.
784
+ * Input for initiating a Farcaster connection.
734
785
  */
735
- export interface PasskeyVerifyExtensions {
736
- app_id?: string;
737
- cred_props?: boolean;
738
- hmac_create_secret?: boolean;
786
+ export interface FarcasterInitInput {
787
+ token?: string;
788
+ redirect_url?: string;
789
+ relying_party?: string;
739
790
  }
740
791
  /**
741
- * The authenticator assertion response from a WebAuthn authentication ceremony.
792
+ * Input for linking a Farcaster account.
742
793
  */
743
- export interface PasskeyAssertionResponse {
744
- authenticator_data: string;
745
- client_data_json: string;
794
+ export interface FarcasterLinkInput {
795
+ channel_token: string;
796
+ fid: number;
797
+ message: string;
746
798
  signature: string;
747
- user_handle?: string;
748
799
  }
749
800
  /**
750
- * WebAuthn authentication options as defined by the Web Authentication
751
- * specification.
801
+ * A Farcaster signer response when the signer has been approved.
752
802
  */
753
- export interface PasskeyAuthenticatorVerifyOptions {
754
- challenge: string;
755
- allow_credentials?: Array<PasskeyCredentialDescriptor>;
756
- /**
757
- * Extensions for a WebAuthn authentication ceremony.
758
- */
759
- extensions?: PasskeyVerifyExtensions;
760
- rp_id?: string;
761
- timeout?: number;
762
- user_verification?: string;
803
+ export interface FarcasterSignerApproved {
804
+ fid: string;
805
+ public_key: string;
806
+ status: 'approved';
763
807
  }
764
808
  /**
765
- * WebAuthn authentication response as defined by the Web Authentication
766
- * specification.
809
+ * A Farcaster signer init response when the signer is pending approval.
767
810
  */
768
- export interface PasskeyAuthenticatorVerifyResponse {
769
- id: string;
770
- /**
771
- * Client extension results returned by the WebAuthn authenticator.
772
- */
773
- client_extension_results: PasskeyClientExtensionResults;
774
- raw_id: string;
775
- /**
776
- * The authenticator assertion response from a WebAuthn authentication ceremony.
777
- */
778
- response: PasskeyAssertionResponse;
779
- type: 'public-key';
780
- authenticator_attachment?: string;
811
+ export interface FarcasterSignerInitPendingApproval {
812
+ public_key: string;
813
+ signer_approval_url: string;
814
+ status: 'pending_approval';
781
815
  }
782
816
  /**
783
- * Response for initiating a passkey authentication ceremony.
817
+ * A Farcaster signer response when the signer has been revoked.
784
818
  */
785
- export interface ResponsePasskeyInitAuthenticate {
786
- /**
787
- * WebAuthn authentication options as defined by the Web Authentication
788
- * specification.
789
- */
790
- options: PasskeyAuthenticatorVerifyOptions;
791
- relying_party?: string;
819
+ export interface FarcasterSignerRevoked {
820
+ fid: string;
821
+ public_key: string;
822
+ status: 'revoked';
792
823
  }
793
824
  /**
794
- * Input for authenticating with a passkey.
825
+ * A Farcaster signer status response when the signer is pending approval.
795
826
  */
796
- export interface PasskeyAuthenticateInput {
797
- /**
798
- * WebAuthn authentication response as defined by the Web Authentication
799
- * specification.
800
- */
801
- authenticator_response: PasskeyAuthenticatorVerifyResponse;
802
- challenge: string;
803
- relying_party?: string;
827
+ export interface FarcasterSignerStatusPendingApproval {
828
+ public_key: string;
829
+ status: 'pending_approval';
804
830
  }
805
831
  /**
806
- * The request body for transferring a passwordless account.
832
+ * Input for unlinking a Farcaster account.
807
833
  */
808
- export interface PasswordlessTransferRequestBody {
809
- email: string;
810
- nonce: string;
834
+ export interface FarcasterUnlinkInput {
835
+ fid: number;
811
836
  }
812
837
  /**
813
- * The request body for transferring a passwordless sms account.
838
+ * Input for authenticating a Farcaster V2 account.
814
839
  */
815
- export interface PasswordlessSMSTransferRequestBody {
816
- nonce: string;
817
- phoneNumber: string;
840
+ export interface FarcasterV2AuthenticateInput {
841
+ fid: number;
842
+ message: string;
843
+ signature: string;
844
+ /**
845
+ * Whether to allow sign-up during authentication.
846
+ */
847
+ mode?: AuthenticateModeOption;
818
848
  }
819
849
  /**
820
- * Input for authenticating with a custom JWT.
850
+ * The request body for authenticating a Farcaster V2 account.
821
851
  */
822
- export interface AuthenticateJwtInput {
823
- token?: string;
852
+ export interface FarcasterV2AuthenticateRequestBody {
853
+ fid: number;
854
+ message: string;
855
+ signature: string;
824
856
  /**
825
857
  * Whether to allow sign-up during authentication.
826
858
  */
827
859
  mode?: AuthenticateModeOption;
828
860
  }
829
861
  /**
830
- * Input for linking a custom JWT account.
862
+ * Input for initiating a Farcaster V2 connection.
831
863
  */
832
- export interface LinkJwtInput {
833
- token?: string;
864
+ export interface FarcasterV2InitInput {
834
865
  }
835
866
  /**
836
- * The request input for getting a native onramp provider customer.
867
+ * The request body for initiating a Farcaster V2 connection.
837
868
  */
838
- export interface GetFiatCustomerRequestInput {
839
- /**
840
- * Valid set of onramp providers
841
- */
842
- provider: OnrampProvider;
843
- kyc_redirect_url?: string;
869
+ export interface FarcasterV2InitRequestBody {
844
870
  }
845
871
  /**
846
- * The request input for creating (or updating) a native onramp provider customer.
872
+ * Response for initiating a Farcaster V2 connection.
847
873
  */
848
- export interface CreateOrUpdateFiatCustomerRequestInput {
849
- has_accepted_terms: boolean;
850
- /**
851
- * Valid set of onramp providers
852
- */
853
- provider: OnrampProvider;
854
- kyc_redirect_url?: string;
874
+ export interface FarcasterV2InitResponse {
875
+ expires_at: string;
876
+ nonce: string;
855
877
  }
856
878
  /**
857
- * A rejection reason for a customer KYC verification.
879
+ * The response body for initiating a Farcaster V2 connection.
858
880
  */
859
- export interface BridgeFiatRejectionReason {
860
- reason: string;
881
+ export interface FarcasterV2InitResponseBody {
882
+ expires_at: string;
883
+ nonce: string;
861
884
  }
862
885
  /**
863
- * The response for getting a native onramp provider customer.
886
+ * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
864
887
  */
865
- export interface BridgeFiatCustomerResponse {
866
- has_accepted_terms: boolean;
867
- provider: 'bridge';
868
- /**
869
- * Status of the KYC verification process.
870
- */
871
- status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
872
- kyc_url?: string;
873
- rejection_reasons?: Array<BridgeFiatRejectionReason>;
874
- }
888
+ export type FiatAmount = string;
875
889
  /**
876
- * The response for getting a native onramp provider customer.
890
+ * ISO 4217 fiat currency code. Three uppercase ASCII letters.
877
891
  */
878
- export interface BridgeSandboxFiatCustomerResponse {
879
- has_accepted_terms: boolean;
880
- provider: 'bridge-sandbox';
881
- /**
882
- * Status of the KYC verification process.
883
- */
884
- status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
885
- kyc_url?: string;
886
- rejection_reasons?: Array<BridgeFiatRejectionReason>;
887
- }
892
+ export type FiatCurrencyCode = string;
888
893
  /**
889
894
  * The response for getting a native onramp provider customer.
890
895
  */
891
896
  export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFiatCustomerResponse;
892
897
  /**
893
- * ISO 4217 fiat currency code. Three uppercase ASCII letters.
898
+ * Destination cryptocurrency details for a fiat onramp quote request.
894
899
  */
895
- export type FiatCurrencyCode = string;
900
+ export interface FiatOnrampDestination {
901
+ address: string;
902
+ /**
903
+ * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
904
+ */
905
+ asset: CryptoCurrencyCode;
906
+ /**
907
+ * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
908
+ * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
909
+ */
910
+ chain: Caip2ChainID;
911
+ }
912
+ /**
913
+ * Whether to use the sandbox or production environment for fiat onramp.
914
+ */
915
+ export type FiatOnrampEnvironment = 'sandbox' | 'production';
896
916
  /**
897
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
917
+ * The fiat onramp provider to use.
898
918
  */
899
- export type CryptoCurrencyCode = string;
919
+ export type FiatOnrampProvider = 'meld' | 'meld-sandbox' | 'moonpay' | 'moonpay-sandbox' | 'coinbase' | 'coinbase-sandbox';
900
920
  /**
901
- * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
902
- * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
921
+ * An error from a specific fiat onramp provider when fetching quotes.
903
922
  */
904
- export type Caip2ChainID = string;
923
+ export interface FiatOnrampProviderError {
924
+ error: string;
925
+ /**
926
+ * The fiat onramp provider to use.
927
+ */
928
+ provider: FiatOnrampProvider;
929
+ }
905
930
  /**
906
- * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
931
+ * A single fiat onramp quote from a provider.
907
932
  */
908
- export type FiatAmount = string;
933
+ export interface FiatOnrampQuote {
934
+ payment_method: string;
935
+ /**
936
+ * The fiat onramp provider to use.
937
+ */
938
+ provider: FiatOnrampProvider;
939
+ destination_currency_code?: string | null;
940
+ source_amount?: number | null;
941
+ source_currency_code?: string | null;
942
+ sub_provider?: string | null;
943
+ }
909
944
  /**
910
945
  * Source currency details for a fiat onramp quote request.
911
946
  */
@@ -920,28 +955,27 @@ export interface FiatOnrampSource {
920
955
  asset: FiatCurrencyCode;
921
956
  }
922
957
  /**
923
- * Destination cryptocurrency details for a fiat onramp quote request.
958
+ * Normalized fiat onramp transaction status.
924
959
  */
925
- export interface FiatOnrampDestination {
926
- address: string;
927
- /**
928
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
929
- */
930
- asset: CryptoCurrencyCode;
931
- /**
932
- * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
933
- * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
934
- */
935
- chain: Caip2ChainID;
936
- }
960
+ export type FiatOnrampTransactionStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled' | 'refunded' | 'unknown';
937
961
  /**
938
- * Whether to use the sandbox or production environment for fiat onramp.
962
+ * The request input for creating virtual account.
939
963
  */
940
- export type FiatOnrampEnvironment = 'sandbox' | 'production';
964
+ export type FiatVirtualAccountRequest = BridgeFiatVirtualAccountRequest | BridgeSandboxFiatVirtualAccountRequest;
941
965
  /**
942
- * The fiat onramp provider to use.
966
+ * The response for creating virtual account.
943
967
  */
944
- export type FiatOnrampProvider = 'meld' | 'meld-sandbox' | 'moonpay' | 'moonpay-sandbox' | 'coinbase' | 'coinbase-sandbox';
968
+ export type FiatVirtualAccountResponse = BridgeFiatVirtualAccountResponse | BridgeSandboxFiatVirtualAccountResponse;
969
+ /**
970
+ * The request input for getting a native onramp provider customer.
971
+ */
972
+ export interface GetFiatCustomerRequestInput {
973
+ /**
974
+ * Valid set of onramp providers
975
+ */
976
+ provider: OnrampProvider;
977
+ kyc_redirect_url?: string;
978
+ }
945
979
  /**
946
980
  * The request input for getting fiat onramp quotes.
947
981
  */
@@ -960,35 +994,33 @@ export interface GetFiatOnrampQuotesInput {
960
994
  source: FiatOnrampSource;
961
995
  }
962
996
  /**
963
- * A single fiat onramp quote from a provider.
997
+ * The response containing fiat onramp quotes.
964
998
  */
965
- export interface FiatOnrampQuote {
966
- payment_method: string;
967
- /**
968
- * The fiat onramp provider to use.
969
- */
970
- provider: FiatOnrampProvider;
971
- destination_currency_code?: string | null;
972
- source_amount?: number | null;
973
- source_currency_code?: string | null;
974
- sub_provider?: string | null;
999
+ export interface GetFiatOnrampQuotesResponse {
1000
+ quotes: Array<FiatOnrampQuote>;
1001
+ provider_errors?: Array<FiatOnrampProviderError>;
975
1002
  }
976
1003
  /**
977
- * An error from a specific fiat onramp provider when fetching quotes.
1004
+ * The request input for checking a fiat onramp session status.
978
1005
  */
979
- export interface FiatOnrampProviderError {
980
- error: string;
1006
+ export interface GetFiatOnrampTransactionStatusInput {
981
1007
  /**
982
1008
  * The fiat onramp provider to use.
983
1009
  */
984
1010
  provider: FiatOnrampProvider;
1011
+ session_id: string;
985
1012
  }
986
1013
  /**
987
- * The response containing fiat onramp quotes.
1014
+ * The response containing the fiat onramp session status.
988
1015
  */
989
- export interface GetFiatOnrampQuotesResponse {
990
- quotes: Array<FiatOnrampQuote>;
991
- provider_errors?: Array<FiatOnrampProviderError>;
1016
+ export interface GetFiatOnrampTransactionStatusResponse {
1017
+ raw_status: string;
1018
+ session_id: string;
1019
+ /**
1020
+ * Normalized fiat onramp transaction status.
1021
+ */
1022
+ status: FiatOnrampTransactionStatus;
1023
+ transaction_id?: string;
992
1024
  }
993
1025
  /**
994
1026
  * The request input for getting a fiat onramp provider session URL.
@@ -1018,224 +1050,333 @@ export interface GetFiatOnrampURLResponse {
1018
1050
  url: string;
1019
1051
  }
1020
1052
  /**
1021
- * Normalized fiat onramp transaction status.
1053
+ * Input for linking a custom JWT account.
1022
1054
  */
1023
- export type FiatOnrampTransactionStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled' | 'refunded' | 'unknown';
1055
+ export interface LinkJwtInput {
1056
+ token?: string;
1057
+ }
1024
1058
  /**
1025
- * The request input for checking a fiat onramp session status.
1059
+ * Input for enrolling SMS MFA.
1026
1060
  */
1027
- export interface GetFiatOnrampTransactionStatusInput {
1061
+ export interface MfaSMSInitEnrollInput {
1062
+ action: 'enroll';
1063
+ phoneNumber: string;
1064
+ }
1065
+ /**
1066
+ * Input for verifying SMS MFA.
1067
+ */
1068
+ export interface MfaSMSInitVerifyInput {
1069
+ action: 'verify';
1070
+ }
1071
+ /**
1072
+ * The type of OAuth authorization code.
1073
+ */
1074
+ export type OAuthCodeType = 'raw';
1075
+ /**
1076
+ * The ID of an OAuth provider.
1077
+ */
1078
+ export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
1079
+ /**
1080
+ * The request body for transferring an OAuth account.
1081
+ */
1082
+ export interface OAuthTransferRequestBody {
1083
+ nonce: string;
1028
1084
  /**
1029
- * The fiat onramp provider to use.
1085
+ * User info for an OAuth transfer.
1030
1086
  */
1031
- provider: FiatOnrampProvider;
1032
- session_id: string;
1087
+ userInfo: OAuthTransferUserInfo;
1033
1088
  }
1034
1089
  /**
1035
- * The response containing the fiat onramp session status.
1090
+ * User info for an OAuth transfer.
1036
1091
  */
1037
- export interface GetFiatOnrampTransactionStatusResponse {
1038
- raw_status: string;
1039
- session_id: string;
1092
+ export interface OAuthTransferUserInfo {
1093
+ subject: string;
1094
+ email?: string | null;
1095
+ embeddedWalletAddresses?: Array<string>;
1040
1096
  /**
1041
- * Normalized fiat onramp transaction status.
1097
+ * Metadata for an OAuth transfer user info.
1042
1098
  */
1043
- status: FiatOnrampTransactionStatus;
1044
- transaction_id?: string;
1099
+ meta?: OAuthTransferUserInfoMeta;
1100
+ name?: string;
1101
+ profilePictureUrl?: string;
1102
+ smartWalletAddresses?: Array<string>;
1103
+ username?: string;
1104
+ vanityName?: string;
1045
1105
  }
1046
- export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
1047
- export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
1048
- export interface BridgeFiatVirtualAccountSource {
1049
- asset: BridgeSourceAsset;
1106
+ /**
1107
+ * Metadata for an OAuth transfer user info.
1108
+ */
1109
+ export interface OAuthTransferUserInfoMeta {
1110
+ providerAppId?: string;
1050
1111
  }
1051
- export interface BridgeFiatVirtualAccountDestination {
1052
- address: string;
1053
- asset: BridgeDestinationAsset;
1054
- chain: string;
1112
+ /**
1113
+ * Valid set of onramp providers
1114
+ */
1115
+ export type OnrampProvider = 'bridge' | 'bridge-sandbox';
1116
+ /**
1117
+ * The authenticator assertion response from a WebAuthn authentication ceremony.
1118
+ */
1119
+ export interface PasskeyAssertionResponse {
1120
+ authenticator_data: string;
1121
+ client_data_json: string;
1122
+ signature: string;
1123
+ user_handle?: string;
1055
1124
  }
1056
1125
  /**
1057
- * The request input for creating virtual account.
1126
+ * The authenticator attestation response from a WebAuthn registration ceremony.
1058
1127
  */
1059
- export interface BridgeFiatVirtualAccountRequest {
1060
- destination: BridgeFiatVirtualAccountDestination;
1061
- provider: 'bridge';
1062
- source: BridgeFiatVirtualAccountSource;
1128
+ export interface PasskeyAttestationResponse {
1129
+ attestation_object: string;
1130
+ client_data_json: string;
1131
+ authenticator_data?: string;
1132
+ public_key?: string;
1133
+ public_key_algorithm?: number;
1134
+ transports?: Array<string>;
1135
+ }
1136
+ /**
1137
+ * Input for authenticating with a passkey.
1138
+ */
1139
+ export interface PasskeyAuthenticateInput {
1140
+ /**
1141
+ * WebAuthn authentication response as defined by the Web Authentication
1142
+ * specification.
1143
+ */
1144
+ authenticator_response: PasskeyAuthenticatorVerifyResponse;
1145
+ challenge: string;
1146
+ relying_party?: string;
1147
+ }
1148
+ /**
1149
+ * WebAuthn registration options as defined by the Web Authentication
1150
+ * specification.
1151
+ */
1152
+ export interface PasskeyAuthenticatorEnrollmentOptions {
1153
+ challenge: string;
1154
+ pub_key_cred_params: Array<PasskeyPubKeyCredParam>;
1155
+ /**
1156
+ * Relying party information for a WebAuthn ceremony.
1157
+ */
1158
+ rp: PasskeyRelyingParty;
1159
+ /**
1160
+ * User entity for a WebAuthn registration ceremony.
1161
+ */
1162
+ user: PasskeyUser;
1163
+ attestation?: string;
1164
+ /**
1165
+ * Authenticator selection criteria for a WebAuthn registration ceremony.
1166
+ */
1167
+ authenticator_selection?: PasskeyAuthenticatorSelection;
1168
+ exclude_credentials?: Array<PasskeyCredentialDescriptor>;
1169
+ /**
1170
+ * Extensions for a WebAuthn registration ceremony.
1171
+ */
1172
+ extensions?: PasskeyEnrollmentExtensions;
1173
+ timeout?: number;
1174
+ }
1175
+ /**
1176
+ * WebAuthn registration response as defined by the Web Authentication
1177
+ * specification.
1178
+ */
1179
+ export interface PasskeyAuthenticatorEnrollmentResponse {
1180
+ id: string;
1181
+ /**
1182
+ * Client extension results returned by the WebAuthn authenticator.
1183
+ */
1184
+ client_extension_results: PasskeyClientExtensionResults;
1185
+ raw_id: string;
1186
+ /**
1187
+ * The authenticator attestation response from a WebAuthn registration ceremony.
1188
+ */
1189
+ response: PasskeyAttestationResponse;
1190
+ type: 'public-key';
1191
+ authenticator_attachment?: string;
1192
+ }
1193
+ /**
1194
+ * Authenticator selection criteria for a WebAuthn registration ceremony.
1195
+ */
1196
+ export interface PasskeyAuthenticatorSelection {
1197
+ authenticator_attachment?: string;
1198
+ require_resident_key?: boolean;
1199
+ resident_key?: string;
1200
+ user_verification?: string;
1063
1201
  }
1064
1202
  /**
1065
- * The request input for creating virtual account.
1203
+ * WebAuthn authentication options as defined by the Web Authentication
1204
+ * specification.
1066
1205
  */
1067
- export interface BridgeSandboxFiatVirtualAccountRequest {
1068
- destination: BridgeFiatVirtualAccountDestination;
1069
- provider: 'bridge-sandbox';
1070
- source: BridgeFiatVirtualAccountSource;
1206
+ export interface PasskeyAuthenticatorVerifyOptions {
1207
+ challenge: string;
1208
+ allow_credentials?: Array<PasskeyCredentialDescriptor>;
1209
+ /**
1210
+ * Extensions for a WebAuthn authentication ceremony.
1211
+ */
1212
+ extensions?: PasskeyVerifyExtensions;
1213
+ rp_id?: string;
1214
+ timeout?: number;
1215
+ user_verification?: string;
1071
1216
  }
1072
1217
  /**
1073
- * The request input for creating virtual account.
1074
- */
1075
- export type FiatVirtualAccountRequest = BridgeFiatVirtualAccountRequest | BridgeSandboxFiatVirtualAccountRequest;
1076
- /**
1077
- * The deposit instructions for a virtual account.
1218
+ * WebAuthn authentication response as defined by the Web Authentication
1219
+ * specification.
1078
1220
  */
1079
- export interface BridgeUsdFiatVirtualAccountDepositInstructions {
1080
- asset: 'usd';
1081
- bank_account_number: string;
1082
- bank_address: string;
1083
- bank_beneficiary_address: string;
1084
- bank_beneficiary_name: string;
1085
- bank_name: string;
1086
- bank_routing_number: string;
1087
- payment_rails: Array<'ach_push' | 'wire'>;
1221
+ export interface PasskeyAuthenticatorVerifyResponse {
1222
+ id: string;
1223
+ /**
1224
+ * Client extension results returned by the WebAuthn authenticator.
1225
+ */
1226
+ client_extension_results: PasskeyClientExtensionResults;
1227
+ raw_id: string;
1228
+ /**
1229
+ * The authenticator assertion response from a WebAuthn authentication ceremony.
1230
+ */
1231
+ response: PasskeyAssertionResponse;
1232
+ type: 'public-key';
1233
+ authenticator_attachment?: string;
1088
1234
  }
1089
1235
  /**
1090
- * The deposit instructions for a virtual account.
1236
+ * Client extension results returned by the WebAuthn authenticator.
1091
1237
  */
1092
- export interface BridgeEurFiatVirtualAccountDepositInstructions {
1093
- account_holder_name: string;
1094
- asset: 'eur';
1095
- bank_address: string;
1096
- bank_name: string;
1097
- bic: string;
1098
- iban: string;
1099
- payment_rails: Array<'sepa'>;
1238
+ export interface PasskeyClientExtensionResults {
1239
+ app_id?: boolean;
1240
+ /**
1241
+ * The result of the WebAuthn credProps extension.
1242
+ */
1243
+ cred_props?: PasskeyCredPropsResult;
1244
+ hmac_create_secret?: boolean;
1100
1245
  }
1101
1246
  /**
1102
- * The deposit instructions for a virtual account.
1247
+ * The result of the WebAuthn credProps extension.
1103
1248
  */
1104
- export interface BridgeMxnFiatVirtualAccountDepositInstructions {
1105
- account_holder_name: string;
1106
- asset: 'mxn';
1107
- bank_address: string;
1108
- bank_name: string;
1109
- clabe: string;
1110
- payment_rails: Array<'spei'>;
1249
+ export interface PasskeyCredPropsResult {
1250
+ rk?: boolean;
1111
1251
  }
1112
1252
  /**
1113
- * The deposit instructions for a virtual account.
1253
+ * A WebAuthn credential descriptor identifying a specific public key credential.
1114
1254
  */
1115
- export interface BridgeBrlFiatVirtualAccountDepositInstructions {
1116
- account_holder_name: string;
1117
- asset: 'brl';
1118
- bank_address: string;
1119
- bank_name: string;
1120
- br_code: string;
1121
- payment_rails: Array<'pix'>;
1255
+ export interface PasskeyCredentialDescriptor {
1256
+ id: string;
1257
+ type: string;
1258
+ transports?: Array<string>;
1122
1259
  }
1123
1260
  /**
1124
- * The deposit instructions for a virtual account.
1261
+ * Extensions for a WebAuthn registration ceremony.
1125
1262
  */
1126
- export interface BridgeGbpFiatVirtualAccountDepositInstructions {
1127
- account_holder_name: string;
1128
- account_number: string;
1129
- asset: 'gbp';
1130
- bank_address: string;
1131
- bank_name: string;
1132
- payment_rails: Array<'faster_payments'>;
1133
- sort_code: string;
1263
+ export interface PasskeyEnrollmentExtensions {
1264
+ app_id?: string;
1265
+ /**
1266
+ * The result of the WebAuthn credProps extension.
1267
+ */
1268
+ cred_props?: PasskeyCredPropsResult;
1269
+ hmac_create_secret?: boolean;
1134
1270
  }
1135
1271
  /**
1136
- * The deposit instructions for a virtual account.
1272
+ * Input for initiating a passkey ceremony.
1137
1273
  */
1138
- export type BridgeFiatVirtualAccountDepositInstructions = BridgeUsdFiatVirtualAccountDepositInstructions | BridgeEurFiatVirtualAccountDepositInstructions | BridgeMxnFiatVirtualAccountDepositInstructions | BridgeBrlFiatVirtualAccountDepositInstructions | BridgeGbpFiatVirtualAccountDepositInstructions;
1274
+ export interface PasskeyInitInput {
1275
+ token?: string;
1276
+ relying_party?: string;
1277
+ }
1139
1278
  /**
1140
- * The response for creating virtual account.
1279
+ * Input for linking a passkey credential.
1141
1280
  */
1142
- export interface BridgeFiatVirtualAccountResponse {
1281
+ export interface PasskeyLinkInput {
1143
1282
  /**
1144
- * The deposit instructions for a virtual account.
1283
+ * WebAuthn registration response as defined by the Web Authentication
1284
+ * specification.
1145
1285
  */
1146
- deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
1147
- destination: BridgeFiatVirtualAccountDestination;
1148
- provider: 'bridge';
1149
- status: string;
1286
+ authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
1287
+ relying_party?: string;
1150
1288
  }
1151
1289
  /**
1152
- * The response for creating virtual account.
1290
+ * A public key credential parameter specifying the algorithm and credential type.
1153
1291
  */
1154
- export interface BridgeSandboxFiatVirtualAccountResponse {
1292
+ export interface PasskeyPubKeyCredParam {
1293
+ alg: number;
1294
+ type: 'public-key';
1295
+ }
1296
+ /**
1297
+ * Input for registering a passkey credential.
1298
+ */
1299
+ export interface PasskeyRegisterInput {
1155
1300
  /**
1156
- * The deposit instructions for a virtual account.
1301
+ * WebAuthn registration response as defined by the Web Authentication
1302
+ * specification.
1157
1303
  */
1158
- deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
1159
- destination: BridgeFiatVirtualAccountDestination;
1160
- provider: 'bridge-sandbox';
1161
- status: string;
1304
+ authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
1305
+ relying_party?: string;
1162
1306
  }
1163
1307
  /**
1164
- * The response for creating virtual account.
1308
+ * Relying party information for a WebAuthn ceremony.
1165
1309
  */
1166
- export type FiatVirtualAccountResponse = BridgeFiatVirtualAccountResponse | BridgeSandboxFiatVirtualAccountResponse;
1310
+ export interface PasskeyRelyingParty {
1311
+ name: string;
1312
+ id?: string;
1313
+ }
1167
1314
  /**
1168
- * The type of OAuth authorization code.
1315
+ * User entity for a WebAuthn registration ceremony.
1169
1316
  */
1170
- export type OAuthCodeType = 'raw';
1317
+ export interface PasskeyUser {
1318
+ id: string;
1319
+ display_name: string;
1320
+ name: string;
1321
+ }
1171
1322
  /**
1172
- * Metadata for an OAuth transfer user info.
1323
+ * Extensions for a WebAuthn authentication ceremony.
1173
1324
  */
1174
- export interface OAuthTransferUserInfoMeta {
1175
- providerAppId?: string;
1325
+ export interface PasskeyVerifyExtensions {
1326
+ app_id?: string;
1327
+ cred_props?: boolean;
1328
+ hmac_create_secret?: boolean;
1176
1329
  }
1177
1330
  /**
1178
- * User info for an OAuth transfer.
1331
+ * The request body for transferring a passwordless sms account.
1179
1332
  */
1180
- export interface OAuthTransferUserInfo {
1181
- subject: string;
1182
- email?: string | null;
1183
- embeddedWalletAddresses?: Array<string>;
1184
- /**
1185
- * Metadata for an OAuth transfer user info.
1186
- */
1187
- meta?: OAuthTransferUserInfoMeta;
1188
- name?: string;
1189
- profilePictureUrl?: string;
1190
- smartWalletAddresses?: Array<string>;
1191
- username?: string;
1192
- vanityName?: string;
1333
+ export interface PasswordlessSMSTransferRequestBody {
1334
+ nonce: string;
1335
+ phoneNumber: string;
1193
1336
  }
1194
1337
  /**
1195
- * The request body for transferring an OAuth account.
1338
+ * The request body for transferring a passwordless account.
1196
1339
  */
1197
- export interface OAuthTransferRequestBody {
1340
+ export interface PasswordlessTransferRequestBody {
1341
+ email: string;
1198
1342
  nonce: string;
1199
- /**
1200
- * User info for an OAuth transfer.
1201
- */
1202
- userInfo: OAuthTransferUserInfo;
1203
1343
  }
1204
1344
  /**
1205
- * Input for a SIWE signing ceremony.
1345
+ * The ID of a Privy app as an OAuth provider. Must start with "privy:".
1206
1346
  */
1207
- export interface SiweInput {
1208
- message: string;
1209
- signature: string;
1210
- chainId?: string | null;
1211
- connectorType?: string | null;
1212
- walletClientType?: string | null;
1347
+ export type PrivyOAuthProviderID = `privy:${string}`;
1348
+ /**
1349
+ * Response for initiating a passkey authentication ceremony.
1350
+ */
1351
+ export interface ResponsePasskeyInitAuthenticate {
1352
+ /**
1353
+ * WebAuthn authentication options as defined by the Web Authentication
1354
+ * specification.
1355
+ */
1356
+ options: PasskeyAuthenticatorVerifyOptions;
1357
+ relying_party?: string;
1213
1358
  }
1214
1359
  /**
1215
- * Input for a smart wallet SIWE signing ceremony.
1360
+ * Response for initiating a passkey link ceremony.
1216
1361
  */
1217
- export interface SmartWalletSiweInput {
1218
- message: string;
1219
- signature: string;
1362
+ export interface ResponsePasskeyInitLink {
1220
1363
  /**
1221
- * The supported smart wallet providers.
1364
+ * WebAuthn registration options as defined by the Web Authentication
1365
+ * specification.
1222
1366
  */
1223
- smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
1224
- smart_wallet_version?: string;
1367
+ options: PasskeyAuthenticatorEnrollmentOptions;
1368
+ relying_party?: string;
1225
1369
  }
1226
1370
  /**
1227
- * Input for authenticating a SIWE ceremony.
1371
+ * Response for initiating a passkey registration ceremony.
1228
1372
  */
1229
- export interface AuthenticateSiweInput {
1230
- message: string;
1231
- signature: string;
1232
- chainId?: string | null;
1233
- connectorType?: string | null;
1373
+ export interface ResponsePasskeyInitRegister {
1234
1374
  /**
1235
- * Whether to allow sign-up during authentication.
1375
+ * WebAuthn registration options as defined by the Web Authentication
1376
+ * specification.
1236
1377
  */
1237
- mode?: AuthenticateModeOption;
1238
- walletClientType?: string | null;
1378
+ options: PasskeyAuthenticatorEnrollmentOptions;
1379
+ relying_party?: string;
1239
1380
  }
1240
1381
  /**
1241
1382
  * Input containing a SIWE wallet address.
@@ -1246,51 +1387,27 @@ export interface SiweAddressInput {
1246
1387
  /**
1247
1388
  * Input for initiating a SIWE ceremony.
1248
1389
  */
1249
- export interface SiweInitInput {
1250
- token?: string;
1251
- address?: string;
1252
- }
1253
- /**
1254
- * A SIWE nonce response.
1255
- */
1256
- export interface SiweNonce {
1257
- address: string;
1258
- expires_at: string;
1259
- nonce: string;
1260
- }
1261
- /**
1262
- * Input for transferring a SIWE account.
1263
- */
1264
- export interface TransferSiweInput {
1265
- address: string;
1266
- nonce: string;
1267
- chainId?: string | null;
1268
- connectorType?: string | null;
1269
- walletClientType?: string | null;
1390
+ export interface SiweInitInput {
1391
+ token?: string;
1392
+ address?: string;
1270
1393
  }
1271
1394
  /**
1272
- * Input for a SIWS signing ceremony.
1395
+ * Input for a SIWE signing ceremony.
1273
1396
  */
1274
- export interface SiwsInput {
1397
+ export interface SiweInput {
1275
1398
  message: string;
1276
1399
  signature: string;
1400
+ chainId?: string | null;
1277
1401
  connectorType?: string | null;
1278
- message_type?: 'transaction' | 'plain';
1279
1402
  walletClientType?: string | null;
1280
1403
  }
1281
1404
  /**
1282
- * Input for authenticating a SIWS ceremony.
1405
+ * A SIWE nonce response.
1283
1406
  */
1284
- export interface AuthenticateSiwsInput {
1285
- message: string;
1286
- signature: string;
1287
- connectorType?: string | null;
1288
- message_type?: 'transaction' | 'plain';
1289
- /**
1290
- * Whether to allow sign-up during authentication.
1291
- */
1292
- mode?: AuthenticateModeOption;
1293
- walletClientType?: string | null;
1407
+ export interface SiweNonce {
1408
+ address: string;
1409
+ expires_at: string;
1410
+ nonce: string;
1294
1411
  }
1295
1412
  /**
1296
1413
  * Input containing a SIWS wallet address.
@@ -1305,6 +1422,16 @@ export interface SiwsInitInput {
1305
1422
  address: string;
1306
1423
  token?: string;
1307
1424
  }
1425
+ /**
1426
+ * Input for a SIWS signing ceremony.
1427
+ */
1428
+ export interface SiwsInput {
1429
+ message: string;
1430
+ signature: string;
1431
+ connectorType?: string | null;
1432
+ message_type?: 'transaction' | 'plain';
1433
+ walletClientType?: string | null;
1434
+ }
1308
1435
  /**
1309
1436
  * A SIWS nonce response.
1310
1437
  */
@@ -1314,13 +1441,16 @@ export interface SiwsNonce {
1314
1441
  nonce: string;
1315
1442
  }
1316
1443
  /**
1317
- * Input for transferring a SIWS account.
1444
+ * Input for a smart wallet SIWE signing ceremony.
1318
1445
  */
1319
- export interface TransferSiwsInput {
1320
- address: string;
1321
- nonce: string;
1322
- connectorType?: string | null;
1323
- walletClientType?: string | null;
1446
+ export interface SmartWalletSiweInput {
1447
+ message: string;
1448
+ signature: string;
1449
+ /**
1450
+ * The supported smart wallet providers.
1451
+ */
1452
+ smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
1453
+ smart_wallet_version?: string;
1324
1454
  }
1325
1455
  /**
1326
1456
  * Auth result object returned by Telegram when a user authenticates using the
@@ -1335,20 +1465,6 @@ export interface TelegramAuthResult {
1335
1465
  photo_url?: string;
1336
1466
  username?: string;
1337
1467
  }
1338
- /**
1339
- * Auth result object returned by Telegram when a user authenticates using a mini
1340
- * app.
1341
- */
1342
- export interface TelegramWebAppData {
1343
- auth_date: number | null;
1344
- hash: string;
1345
- user: string;
1346
- chat_instance?: string;
1347
- chat_type?: string;
1348
- query_id?: string;
1349
- signature?: string;
1350
- start_param?: string;
1351
- }
1352
1468
  /**
1353
1469
  * Input for authenticating with Telegram.
1354
1470
  */
@@ -1376,84 +1492,18 @@ export interface TelegramUnlinkInput {
1376
1492
  telegram_user_id: string;
1377
1493
  }
1378
1494
  /**
1379
- * Input for transferring a Telegram account.
1380
- */
1381
- export interface TransferTelegramInput {
1382
- nonce: string;
1383
- /**
1384
- * Auth result object returned by Telegram when a user authenticates using the
1385
- * login widget.
1386
- */
1387
- telegram_auth_result?: TelegramAuthResult;
1388
- /**
1389
- * Auth result object returned by Telegram when a user authenticates using a mini
1390
- * app.
1391
- */
1392
- telegram_web_app_data?: TelegramWebAppData;
1393
- }
1394
- /**
1395
- * Proxy for the Farcaster Connect init response as defined in FIP-11.
1396
- */
1397
- export interface FarcasterConnectInitResponse {
1398
- channel_token: string;
1399
- connect_uri: string;
1400
- }
1401
- /**
1402
- * Proxy for the Farcaster Connect completed status response as defined in FIP-11.
1403
- */
1404
- export interface FarcasterConnectStatusCompletedResponse {
1405
- bio: string;
1406
- display_name: string;
1407
- fid: number;
1408
- message: string;
1409
- nonce: string;
1410
- pfp_url: string;
1411
- signature: string;
1412
- state: 'completed';
1413
- username: string;
1414
- }
1415
- /**
1416
- * Proxy for the Farcaster Connect pending status response as defined in FIP-11.
1417
- */
1418
- export interface FarcasterConnectStatusPendingResponse {
1419
- nonce: string;
1420
- state: 'pending';
1421
- }
1422
- /**
1423
- * Input for authenticating with Farcaster.
1424
- */
1425
- export interface FarcasterAuthenticateInput {
1426
- channel_token: string;
1427
- fid: number;
1428
- message: string;
1429
- signature: string;
1430
- /**
1431
- * Whether to allow sign-up during authentication.
1432
- */
1433
- mode?: AuthenticateModeOption;
1434
- }
1435
- /**
1436
- * Input for linking a Farcaster account.
1437
- */
1438
- export interface FarcasterLinkInput {
1439
- channel_token: string;
1440
- fid: number;
1441
- message: string;
1442
- signature: string;
1443
- }
1444
- /**
1445
- * Input for initiating a Farcaster connection.
1446
- */
1447
- export interface FarcasterInitInput {
1448
- token?: string;
1449
- redirect_url?: string;
1450
- relying_party?: string;
1451
- }
1452
- /**
1453
- * Input for unlinking a Farcaster account.
1495
+ * Auth result object returned by Telegram when a user authenticates using a mini
1496
+ * app.
1454
1497
  */
1455
- export interface FarcasterUnlinkInput {
1456
- fid: number;
1498
+ export interface TelegramWebAppData {
1499
+ auth_date: number | null;
1500
+ hash: string;
1501
+ user: string;
1502
+ chat_instance?: string;
1503
+ chat_type?: string;
1504
+ query_id?: string;
1505
+ signature?: string;
1506
+ start_param?: string;
1457
1507
  }
1458
1508
  /**
1459
1509
  * Input for transferring a Farcaster account.
@@ -1464,96 +1514,48 @@ export interface TransferFarcasterInput {
1464
1514
  nonce: string;
1465
1515
  }
1466
1516
  /**
1467
- * Input for initiating a Farcaster V2 connection.
1468
- */
1469
- export type FarcasterV2InitInput = unknown;
1470
- /**
1471
- * Response for initiating a Farcaster V2 connection.
1517
+ * Input for transferring a SIWE account.
1472
1518
  */
1473
- export interface FarcasterV2InitResponse {
1474
- expires_at: string;
1519
+ export interface TransferSiweInput {
1520
+ address: string;
1475
1521
  nonce: string;
1522
+ chainId?: string | null;
1523
+ connectorType?: string | null;
1524
+ walletClientType?: string | null;
1476
1525
  }
1477
1526
  /**
1478
- * Input for authenticating a Farcaster V2 account.
1479
- */
1480
- export interface FarcasterV2AuthenticateInput {
1481
- fid: number;
1482
- message: string;
1483
- signature: string;
1484
- /**
1485
- * Whether to allow sign-up during authentication.
1486
- */
1487
- mode?: AuthenticateModeOption;
1488
- }
1489
- /**
1490
- * The request body for initiating a Farcaster V2 connection.
1491
- */
1492
- export type FarcasterV2InitRequestBody = unknown;
1493
- /**
1494
- * The response body for initiating a Farcaster V2 connection.
1527
+ * Input for transferring a SIWS account.
1495
1528
  */
1496
- export interface FarcasterV2InitResponseBody {
1497
- expires_at: string;
1529
+ export interface TransferSiwsInput {
1530
+ address: string;
1498
1531
  nonce: string;
1532
+ connectorType?: string | null;
1533
+ walletClientType?: string | null;
1499
1534
  }
1500
1535
  /**
1501
- * The request body for authenticating a Farcaster V2 account.
1536
+ * Input for transferring a Telegram account.
1502
1537
  */
1503
- export interface FarcasterV2AuthenticateRequestBody {
1504
- fid: number;
1505
- message: string;
1506
- signature: string;
1538
+ export interface TransferTelegramInput {
1539
+ nonce: string;
1507
1540
  /**
1508
- * Whether to allow sign-up during authentication.
1541
+ * Auth result object returned by Telegram when a user authenticates using the
1542
+ * login widget.
1509
1543
  */
1510
- mode?: AuthenticateModeOption;
1511
- }
1512
- /**
1513
- * A Farcaster signer init response when the signer is pending approval.
1514
- */
1515
- export interface FarcasterSignerInitPendingApproval {
1516
- public_key: string;
1517
- signer_approval_url: string;
1518
- status: 'pending_approval';
1519
- }
1520
- /**
1521
- * A Farcaster signer response when the signer has been approved.
1522
- */
1523
- export interface FarcasterSignerApproved {
1524
- fid: string;
1525
- public_key: string;
1526
- status: 'approved';
1527
- }
1528
- /**
1529
- * A Farcaster signer response when the signer has been revoked.
1530
- */
1531
- export interface FarcasterSignerRevoked {
1532
- fid: string;
1533
- public_key: string;
1534
- status: 'revoked';
1535
- }
1536
- /**
1537
- * A Farcaster signer status response when the signer is pending approval.
1538
- */
1539
- export interface FarcasterSignerStatusPendingApproval {
1540
- public_key: string;
1541
- status: 'pending_approval';
1542
- }
1543
- /**
1544
- * Input for verifying SMS MFA.
1545
- */
1546
- export interface MfaSMSInitVerifyInput {
1547
- action: 'verify';
1544
+ telegram_auth_result?: TelegramAuthResult;
1545
+ /**
1546
+ * Auth result object returned by Telegram when a user authenticates using a mini
1547
+ * app.
1548
+ */
1549
+ telegram_web_app_data?: TelegramWebAppData;
1548
1550
  }
1549
1551
  /**
1550
- * Input for enrolling SMS MFA.
1552
+ * Input for unlinking a passkey credential.
1551
1553
  */
1552
- export interface MfaSMSInitEnrollInput {
1553
- action: 'enroll';
1554
- phoneNumber: string;
1554
+ export interface UnlinkPasskeyInput {
1555
+ credential_id: string;
1556
+ remove_as_mfa?: boolean;
1555
1557
  }
1556
1558
  export declare namespace ClientAuth {
1557
- export { type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody, type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody, type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody, type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody, type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody, type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody, type FarcasterInitRequestBody as FarcasterInitRequestBody, type FarcasterLinkRequestBody as FarcasterLinkRequestBody, type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody, type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody, type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody, type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody, type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody, type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody, type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody, type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody, type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody, type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody, type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody, type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody, type MfaSMSInitRequestBody as MfaSMSInitRequestBody, type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody, type MfaTotpInitResponseBody as MfaTotpInitResponseBody, type MfaTotpInput as MfaTotpInput, type MfaVerifyResponseBody as MfaVerifyResponseBody, type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody, type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody, type OAuthInitRequestBody as OAuthInitRequestBody, type OAuthInitResponseBody as OAuthInitResponseBody, type OAuthLinkRequestBody as OAuthLinkRequestBody, type OAuthLinkResponseBody as OAuthLinkResponseBody, type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody, type OAuthVerifyRequestBody as OAuthVerifyRequestBody, type OAuthVerifyResponseBody as OAuthVerifyResponseBody, type OptionalRefreshTokenInput as OptionalRefreshTokenInput, type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody, type PasswordlessInitRequestBody as PasswordlessInitRequestBody, type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody, type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody, type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody, type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody, type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody, type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody, type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody, type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody, type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody, type SiweInitRequestBody as SiweInitRequestBody, type SiweInitResponseBody as SiweInitResponseBody, type SiweLinkRequestBody as SiweLinkRequestBody, type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody, type SiweUnlinkRequestBody as SiweUnlinkRequestBody, type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody, type SiwsInitRequestBody as SiwsInitRequestBody, type SiwsInitResponseBody as SiwsInitResponseBody, type SiwsLinkRequestBody as SiwsLinkRequestBody, type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody, type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody, type TelegramLinkRequestBody as TelegramLinkRequestBody, type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody, type ExternalOAuthProviderID as ExternalOAuthProviderID, type PrivyOAuthProviderID as PrivyOAuthProviderID, type CustomOAuthProviderID as CustomOAuthProviderID, type OAuthProviderID as OAuthProviderID, type BridgeOnrampProvider as BridgeOnrampProvider, type OnrampProvider as OnrampProvider, type AuthenticateModeOption as AuthenticateModeOption, type AuthenticateMode as AuthenticateMode, type PasskeyCredPropsResult as PasskeyCredPropsResult, type PasskeyClientExtensionResults as PasskeyClientExtensionResults, type PasskeyCredentialDescriptor as PasskeyCredentialDescriptor, type PasskeyRelyingParty as PasskeyRelyingParty, type PasskeyUser as PasskeyUser, type PasskeyPubKeyCredParam as PasskeyPubKeyCredParam, type PasskeyAuthenticatorSelection as PasskeyAuthenticatorSelection, type PasskeyEnrollmentExtensions as PasskeyEnrollmentExtensions, type PasskeyAttestationResponse as PasskeyAttestationResponse, type PasskeyAuthenticatorEnrollmentOptions as PasskeyAuthenticatorEnrollmentOptions, type PasskeyAuthenticatorEnrollmentResponse as PasskeyAuthenticatorEnrollmentResponse, type ResponsePasskeyInitLink as ResponsePasskeyInitLink, type ResponsePasskeyInitRegister as ResponsePasskeyInitRegister, type PasskeyLinkInput as PasskeyLinkInput, type PasskeyRegisterInput as PasskeyRegisterInput, type PasskeyInitInput as PasskeyInitInput, type UnlinkPasskeyInput as UnlinkPasskeyInput, type PasskeyVerifyExtensions as PasskeyVerifyExtensions, type PasskeyAssertionResponse as PasskeyAssertionResponse, type PasskeyAuthenticatorVerifyOptions as PasskeyAuthenticatorVerifyOptions, type PasskeyAuthenticatorVerifyResponse as PasskeyAuthenticatorVerifyResponse, type ResponsePasskeyInitAuthenticate as ResponsePasskeyInitAuthenticate, type PasskeyAuthenticateInput as PasskeyAuthenticateInput, type PasswordlessTransferRequestBody as PasswordlessTransferRequestBody, type PasswordlessSMSTransferRequestBody as PasswordlessSMSTransferRequestBody, type AuthenticateJwtInput as AuthenticateJwtInput, type LinkJwtInput as LinkJwtInput, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type FiatCustomerResponse as FiatCustomerResponse, type FiatCurrencyCode as FiatCurrencyCode, type CryptoCurrencyCode as CryptoCurrencyCode, type Caip2ChainID as Caip2ChainID, type FiatAmount as FiatAmount, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampProviderError as FiatOnrampProviderError, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type BridgeDestinationAsset as BridgeDestinationAsset, type BridgeSourceAsset as BridgeSourceAsset, type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource, type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination, type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest, type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest, type FiatVirtualAccountRequest as FiatVirtualAccountRequest, type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions, type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions, type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions, type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions, type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse, type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse, type FiatVirtualAccountResponse as FiatVirtualAccountResponse, type OAuthCodeType as OAuthCodeType, type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta, type OAuthTransferUserInfo as OAuthTransferUserInfo, type OAuthTransferRequestBody as OAuthTransferRequestBody, type SiweInput as SiweInput, type SmartWalletSiweInput as SmartWalletSiweInput, type AuthenticateSiweInput as AuthenticateSiweInput, type SiweAddressInput as SiweAddressInput, type SiweInitInput as SiweInitInput, type SiweNonce as SiweNonce, type TransferSiweInput as TransferSiweInput, type SiwsInput as SiwsInput, type AuthenticateSiwsInput as AuthenticateSiwsInput, type SiwsAddressInput as SiwsAddressInput, type SiwsInitInput as SiwsInitInput, type SiwsNonce as SiwsNonce, type TransferSiwsInput as TransferSiwsInput, type TelegramAuthResult as TelegramAuthResult, type TelegramWebAppData as TelegramWebAppData, type TelegramAuthenticateInput as TelegramAuthenticateInput, type TelegramUnlinkInput as TelegramUnlinkInput, type TransferTelegramInput as TransferTelegramInput, type FarcasterConnectInitResponse as FarcasterConnectInitResponse, type FarcasterConnectStatusCompletedResponse as FarcasterConnectStatusCompletedResponse, type FarcasterConnectStatusPendingResponse as FarcasterConnectStatusPendingResponse, type FarcasterAuthenticateInput as FarcasterAuthenticateInput, type FarcasterLinkInput as FarcasterLinkInput, type FarcasterInitInput as FarcasterInitInput, type FarcasterUnlinkInput as FarcasterUnlinkInput, type TransferFarcasterInput as TransferFarcasterInput, type FarcasterV2InitInput as FarcasterV2InitInput, type FarcasterV2InitResponse as FarcasterV2InitResponse, type FarcasterV2AuthenticateInput as FarcasterV2AuthenticateInput, type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody, type FarcasterSignerInitPendingApproval as FarcasterSignerInitPendingApproval, type FarcasterSignerApproved as FarcasterSignerApproved, type FarcasterSignerRevoked as FarcasterSignerRevoked, type FarcasterSignerStatusPendingApproval as FarcasterSignerStatusPendingApproval, type MfaSMSInitVerifyInput as MfaSMSInitVerifyInput, type MfaSMSInitEnrollInput as MfaSMSInitEnrollInput, };
1559
+ export { type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody, type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody, type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody, type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody, type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody, type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody, type FarcasterInitRequestBody as FarcasterInitRequestBody, type FarcasterLinkRequestBody as FarcasterLinkRequestBody, type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody, type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody, type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody, type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody, type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody, type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody, type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody, type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody, type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody, type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody, type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody, type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody, type MfaSMSInitRequestBody as MfaSMSInitRequestBody, type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody, type MfaTotpInitResponseBody as MfaTotpInitResponseBody, type MfaTotpInput as MfaTotpInput, type MfaVerifyResponseBody as MfaVerifyResponseBody, type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody, type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody, type OAuthInitRequestBody as OAuthInitRequestBody, type OAuthInitResponseBody as OAuthInitResponseBody, type OAuthLinkRequestBody as OAuthLinkRequestBody, type OAuthLinkResponseBody as OAuthLinkResponseBody, type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody, type OAuthVerifyRequestBody as OAuthVerifyRequestBody, type OAuthVerifyResponseBody as OAuthVerifyResponseBody, type OptionalRefreshTokenInput as OptionalRefreshTokenInput, type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody, type PasswordlessInitRequestBody as PasswordlessInitRequestBody, type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody, type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody, type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody, type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody, type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody, type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody, type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody, type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody, type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody, type SiweInitRequestBody as SiweInitRequestBody, type SiweInitResponseBody as SiweInitResponseBody, type SiweLinkRequestBody as SiweLinkRequestBody, type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody, type SiweUnlinkRequestBody as SiweUnlinkRequestBody, type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody, type SiwsInitRequestBody as SiwsInitRequestBody, type SiwsInitResponseBody as SiwsInitResponseBody, type SiwsLinkRequestBody as SiwsLinkRequestBody, type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody, type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody, type TelegramLinkRequestBody as TelegramLinkRequestBody, type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody, type AuthenticateJwtInput as AuthenticateJwtInput, type AuthenticateMode as AuthenticateMode, type AuthenticateModeOption as AuthenticateModeOption, type AuthenticateSiweInput as AuthenticateSiweInput, type AuthenticateSiwsInput as AuthenticateSiwsInput, type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions, type BridgeDestinationAsset as BridgeDestinationAsset, type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions, type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination, type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest, type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse, type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource, type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions, type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions, type BridgeOnrampProvider as BridgeOnrampProvider, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest, type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse, type BridgeSourceAsset as BridgeSourceAsset, type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions, type Caip2ChainID as Caip2ChainID, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CryptoCurrencyCode as CryptoCurrencyCode, type CustomOAuthProviderID as CustomOAuthProviderID, type ExternalOAuthProviderID as ExternalOAuthProviderID, type FarcasterAuthenticateInput as FarcasterAuthenticateInput, type FarcasterConnectInitResponse as FarcasterConnectInitResponse, type FarcasterConnectStatusCompletedResponse as FarcasterConnectStatusCompletedResponse, type FarcasterConnectStatusPendingResponse as FarcasterConnectStatusPendingResponse, type FarcasterInitInput as FarcasterInitInput, type FarcasterLinkInput as FarcasterLinkInput, type FarcasterSignerApproved as FarcasterSignerApproved, type FarcasterSignerInitPendingApproval as FarcasterSignerInitPendingApproval, type FarcasterSignerRevoked as FarcasterSignerRevoked, type FarcasterSignerStatusPendingApproval as FarcasterSignerStatusPendingApproval, type FarcasterUnlinkInput as FarcasterUnlinkInput, type FarcasterV2AuthenticateInput as FarcasterV2AuthenticateInput, type FarcasterV2InitInput as FarcasterV2InitInput, type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody, type FarcasterV2InitResponse as FarcasterV2InitResponse, type FiatAmount as FiatAmount, type FiatCurrencyCode as FiatCurrencyCode, type FiatCustomerResponse as FiatCustomerResponse, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type FiatOnrampProviderError as FiatOnrampProviderError, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type FiatVirtualAccountRequest as FiatVirtualAccountRequest, type FiatVirtualAccountResponse as FiatVirtualAccountResponse, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type LinkJwtInput as LinkJwtInput, type MfaSMSInitEnrollInput as MfaSMSInitEnrollInput, type MfaSMSInitVerifyInput as MfaSMSInitVerifyInput, type OAuthCodeType as OAuthCodeType, type OAuthProviderID as OAuthProviderID, type OAuthTransferRequestBody as OAuthTransferRequestBody, type OAuthTransferUserInfo as OAuthTransferUserInfo, type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta, type OnrampProvider as OnrampProvider, type PasskeyAssertionResponse as PasskeyAssertionResponse, type PasskeyAttestationResponse as PasskeyAttestationResponse, type PasskeyAuthenticateInput as PasskeyAuthenticateInput, type PasskeyAuthenticatorEnrollmentOptions as PasskeyAuthenticatorEnrollmentOptions, type PasskeyAuthenticatorEnrollmentResponse as PasskeyAuthenticatorEnrollmentResponse, type PasskeyAuthenticatorSelection as PasskeyAuthenticatorSelection, type PasskeyAuthenticatorVerifyOptions as PasskeyAuthenticatorVerifyOptions, type PasskeyAuthenticatorVerifyResponse as PasskeyAuthenticatorVerifyResponse, type PasskeyClientExtensionResults as PasskeyClientExtensionResults, type PasskeyCredPropsResult as PasskeyCredPropsResult, type PasskeyCredentialDescriptor as PasskeyCredentialDescriptor, type PasskeyEnrollmentExtensions as PasskeyEnrollmentExtensions, type PasskeyInitInput as PasskeyInitInput, type PasskeyLinkInput as PasskeyLinkInput, type PasskeyPubKeyCredParam as PasskeyPubKeyCredParam, type PasskeyRegisterInput as PasskeyRegisterInput, type PasskeyRelyingParty as PasskeyRelyingParty, type PasskeyUser as PasskeyUser, type PasskeyVerifyExtensions as PasskeyVerifyExtensions, type PasswordlessSMSTransferRequestBody as PasswordlessSMSTransferRequestBody, type PasswordlessTransferRequestBody as PasswordlessTransferRequestBody, type PrivyOAuthProviderID as PrivyOAuthProviderID, type ResponsePasskeyInitAuthenticate as ResponsePasskeyInitAuthenticate, type ResponsePasskeyInitLink as ResponsePasskeyInitLink, type ResponsePasskeyInitRegister as ResponsePasskeyInitRegister, type SiweAddressInput as SiweAddressInput, type SiweInitInput as SiweInitInput, type SiweInput as SiweInput, type SiweNonce as SiweNonce, type SiwsAddressInput as SiwsAddressInput, type SiwsInitInput as SiwsInitInput, type SiwsInput as SiwsInput, type SiwsNonce as SiwsNonce, type SmartWalletSiweInput as SmartWalletSiweInput, type TelegramAuthResult as TelegramAuthResult, type TelegramAuthenticateInput as TelegramAuthenticateInput, type TelegramUnlinkInput as TelegramUnlinkInput, type TelegramWebAppData as TelegramWebAppData, type TransferFarcasterInput as TransferFarcasterInput, type TransferSiweInput as TransferSiweInput, type TransferSiwsInput as TransferSiwsInput, type TransferTelegramInput as TransferTelegramInput, type UnlinkPasskeyInput as UnlinkPasskeyInput, };
1558
1560
  }
1559
1561
  //# sourceMappingURL=client-auth.d.mts.map