@privy-io/react-auth 3.44.0 → 3.46.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 (985) hide show
  1. package/dist/cjs/AccountNotFoundScreen-Cdv1or4I.js +2 -0
  2. package/dist/cjs/AccountNotFoundScreen-Cdv1or4I.js.map +1 -0
  3. package/dist/cjs/AddFundsSelectionScreen-DEDz-b7h.js +32 -0
  4. package/dist/cjs/AddFundsSelectionScreen-DEDz-b7h.js.map +1 -0
  5. package/dist/cjs/Address-DDxwjCoq.js +18 -0
  6. package/dist/cjs/Address-DDxwjCoq.js.map +1 -0
  7. package/dist/cjs/AffirmativeConsentScreen-8puaExRl.js +7 -0
  8. package/dist/cjs/AffirmativeConsentScreen-8puaExRl.js.map +1 -0
  9. package/dist/cjs/AllowlistRejectionScreen-C9zswxdb.js +2 -0
  10. package/dist/cjs/AllowlistRejectionScreen-C9zswxdb.js.map +1 -0
  11. package/dist/cjs/AuthenticateWithWalletScreen-ByEUnMdt.js +2 -0
  12. package/dist/cjs/AuthenticateWithWalletScreen-ByEUnMdt.js.map +1 -0
  13. package/dist/cjs/AwaitingEvmToSolBridgingScreen-jn6sldRz.js +3 -0
  14. package/dist/cjs/AwaitingEvmToSolBridgingScreen-jn6sldRz.js.map +1 -0
  15. package/dist/cjs/AwaitingExternalEthereumTransferScreen-Dv3Ewsk_.js +3 -0
  16. package/dist/cjs/AwaitingExternalEthereumTransferScreen-Dv3Ewsk_.js.map +1 -0
  17. package/dist/cjs/AwaitingPasswordlessCodeScreen-BuCmmigO.js +104 -0
  18. package/dist/cjs/AwaitingPasswordlessCodeScreen-BuCmmigO.js.map +1 -0
  19. package/dist/cjs/AwaitingSolToEvmBridgingScreen-OiLr09Zz.js +3 -0
  20. package/dist/cjs/AwaitingSolToEvmBridgingScreen-OiLr09Zz.js.map +1 -0
  21. package/dist/cjs/BridgeNetworkSelectionView-rN9mnNz_.js +69 -0
  22. package/dist/cjs/BridgeNetworkSelectionView-rN9mnNz_.js.map +1 -0
  23. package/dist/cjs/CaptchaScreen-2NR6YpRm.js +2 -0
  24. package/dist/cjs/CaptchaScreen-2NR6YpRm.js.map +1 -0
  25. package/dist/cjs/CoinbaseOnrampStatusScreen-BzVBwOzX.js +17 -0
  26. package/dist/cjs/CoinbaseOnrampStatusScreen-BzVBwOzX.js.map +1 -0
  27. package/dist/cjs/ConnectEmailForm-B3-IbX_a.js +4 -0
  28. package/dist/cjs/ConnectEmailForm-B3-IbX_a.js.map +1 -0
  29. package/dist/cjs/ConnectLedgerScreen-oTpGHqLA.js +10 -0
  30. package/dist/cjs/ConnectLedgerScreen-oTpGHqLA.js.map +1 -0
  31. package/dist/cjs/ConnectOnlyLandingScreen-Bcns-dto.js +2 -0
  32. package/dist/cjs/ConnectOnlyLandingScreen-Bcns-dto.js.map +1 -0
  33. package/dist/cjs/ConnectOnlyStatusScreen-C5GTjBet.js +2 -0
  34. package/dist/cjs/ConnectOnlyStatusScreen-C5GTjBet.js.map +1 -0
  35. package/dist/cjs/ConnectOrCreateScreen-CUaiZpqf.js +2 -0
  36. package/dist/cjs/ConnectOrCreateScreen-CUaiZpqf.js.map +1 -0
  37. package/dist/cjs/ConnectPhoneForm-CKFnPpKz.js +96 -0
  38. package/dist/cjs/ConnectPhoneForm-CKFnPpKz.js.map +1 -0
  39. package/dist/cjs/ConnectWalletView-C9e6OSDS.js +75 -0
  40. package/dist/cjs/ConnectWalletView-C9e6OSDS.js.map +1 -0
  41. package/dist/cjs/ConnectionStatusScreen-BjeRq7Ir.js +8 -0
  42. package/dist/cjs/ConnectionStatusScreen-BjeRq7Ir.js.map +1 -0
  43. package/dist/cjs/CrossAppAuthScreen-CUNUAj08.js +2 -0
  44. package/dist/cjs/CrossAppAuthScreen-CUNUAj08.js.map +1 -0
  45. package/dist/cjs/CustomLandingScreenView-DkqRDYPw.js +24 -0
  46. package/dist/cjs/CustomLandingScreenView-DkqRDYPw.js.map +1 -0
  47. package/dist/cjs/DelegatedActionsConsentScreen-BjhPLbx3.js +2 -0
  48. package/dist/cjs/DelegatedActionsConsentScreen-BjhPLbx3.js.map +1 -0
  49. package/dist/cjs/DelegatedActionsRevokeScreen-n-YGHqib.js +2 -0
  50. package/dist/cjs/DelegatedActionsRevokeScreen-n-YGHqib.js.map +1 -0
  51. package/dist/cjs/DepositAddressAddressStepView-C8tNHXbw.js +188 -0
  52. package/dist/cjs/DepositAddressAddressStepView-C8tNHXbw.js.map +1 -0
  53. package/dist/cjs/DepositAddressScreen-Dn8IIXSi.js +9 -0
  54. package/dist/cjs/DepositAddressScreen-Dn8IIXSi.js.map +1 -0
  55. package/dist/cjs/DepositAddressV3Screen-B5YZ61Vc.js +2 -0
  56. package/dist/cjs/DepositAddressV3Screen-B5YZ61Vc.js.map +1 -0
  57. package/dist/cjs/EmbeddedWalletConnectingScreen-UbbYkftr.js +2 -0
  58. package/dist/cjs/EmbeddedWalletConnectingScreen-UbbYkftr.js.map +1 -0
  59. package/dist/cjs/EmbeddedWalletCreatedScreen-B7IMmAvI.js +2 -0
  60. package/dist/cjs/EmbeddedWalletCreatedScreen-B7IMmAvI.js.map +1 -0
  61. package/dist/cjs/EmbeddedWalletKeyExportScreen-BuraRdOy.js +25 -0
  62. package/dist/cjs/EmbeddedWalletKeyExportScreen-BuraRdOy.js.map +1 -0
  63. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BV0NrBmo.js +2 -0
  64. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BV0NrBmo.js.map +1 -0
  65. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-xxouYN8Y.js +2 -0
  66. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-xxouYN8Y.js.map +1 -0
  67. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-B8-rNaVx.js +2 -0
  68. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-B8-rNaVx.js.map +1 -0
  69. package/dist/cjs/EnrollTotp-V_CBcWC2.js +64 -0
  70. package/dist/cjs/EnrollTotp-V_CBcWC2.js.map +1 -0
  71. package/dist/cjs/ErrorScreen-CVLRHHYj.js +5 -0
  72. package/dist/cjs/ErrorScreen-CVLRHHYj.js.map +1 -0
  73. package/dist/cjs/FarcasterConnectStatusScreen-BmIxsyEB.js +77 -0
  74. package/dist/cjs/FarcasterConnectStatusScreen-BmIxsyEB.js.map +1 -0
  75. package/dist/cjs/FarcasterSignerStatusScreen-CuNzhwUe.js +30 -0
  76. package/dist/cjs/FarcasterSignerStatusScreen-CuNzhwUe.js.map +1 -0
  77. package/dist/cjs/FiatOnrampScreen-BmgwkLQN.js +492 -0
  78. package/dist/cjs/FiatOnrampScreen-BmgwkLQN.js.map +1 -0
  79. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-B0Wc3UTO.js +3 -0
  80. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-B0Wc3UTO.js.map +1 -0
  81. package/dist/cjs/FundWalletMethodHeader-BNJW7xO2.js +2 -0
  82. package/dist/cjs/FundWalletMethodHeader-BNJW7xO2.js.map +1 -0
  83. package/dist/cjs/FundWithBankDepositScreen-DOfsjRKP.js +59 -0
  84. package/dist/cjs/FundWithBankDepositScreen-DOfsjRKP.js.map +1 -0
  85. package/dist/cjs/FundingEditAmountScreen-Cp8zfG5o.js +2 -0
  86. package/dist/cjs/FundingEditAmountScreen-Cp8zfG5o.js.map +1 -0
  87. package/dist/cjs/FundingMethodSelectionScreen-CF61Pauc.js +2 -0
  88. package/dist/cjs/FundingMethodSelectionScreen-CF61Pauc.js.map +1 -0
  89. package/dist/cjs/InAppBrowserLoginNotPossible-_xjqVqUy.js +2 -0
  90. package/dist/cjs/InAppBrowserLoginNotPossible-_xjqVqUy.js.map +1 -0
  91. package/dist/cjs/InstallWalletScreen-BVfKAyS7.js +2 -0
  92. package/dist/cjs/InstallWalletScreen-BVfKAyS7.js.map +1 -0
  93. package/dist/cjs/LandingScreen-C2o7AU3c.js +2 -0
  94. package/dist/cjs/LandingScreen-C2o7AU3c.js.map +1 -0
  95. package/dist/cjs/Link-BzkeOXKr.js +41 -0
  96. package/dist/cjs/Link-BzkeOXKr.js.map +1 -0
  97. package/dist/cjs/LinkConflictScreen-kQraH5ZI.js +78 -0
  98. package/dist/cjs/LinkConflictScreen-kQraH5ZI.js.map +1 -0
  99. package/dist/cjs/LinkEmailScreen-CjjYZf5g.js +2 -0
  100. package/dist/cjs/LinkEmailScreen-CjjYZf5g.js.map +1 -0
  101. package/dist/cjs/LinkPasskeyScreen-C59Ld9lz.js +118 -0
  102. package/dist/cjs/LinkPasskeyScreen-C59Ld9lz.js.map +1 -0
  103. package/dist/cjs/LinkPhoneScreen-C6OPMy2w.js +2 -0
  104. package/dist/cjs/LinkPhoneScreen-C6OPMy2w.js.map +1 -0
  105. package/dist/cjs/LoginFailedScreen-BhjoFYQz.js +2 -0
  106. package/dist/cjs/LoginFailedScreen-BhjoFYQz.js.map +1 -0
  107. package/dist/cjs/ManualTransferScreen-KsVJhRFs.js +2 -0
  108. package/dist/cjs/ManualTransferScreen-KsVJhRFs.js.map +1 -0
  109. package/dist/cjs/MfaAuthEnrollmentFlowScreen-BuC6dPvE.js +2 -0
  110. package/dist/cjs/MfaAuthEnrollmentFlowScreen-BuC6dPvE.js.map +1 -0
  111. package/dist/cjs/MfaAuthVerifyFlowScreen-DLTTTGIz.js +2 -0
  112. package/dist/cjs/MfaAuthVerifyFlowScreen-DLTTTGIz.js.map +1 -0
  113. package/dist/cjs/MfaEnrollmentFlowScreen-BHWGFl5V.js +2 -0
  114. package/dist/cjs/MfaEnrollmentFlowScreen-BHWGFl5V.js.map +1 -0
  115. package/dist/cjs/MfaVerifyFlowScreen-Lu8pl6BH.js +2 -0
  116. package/dist/cjs/MfaVerifyFlowScreen-Lu8pl6BH.js.map +1 -0
  117. package/dist/cjs/ModalFooter-DreY3fSU.js +40 -0
  118. package/dist/cjs/ModalFooter-DreY3fSU.js.map +1 -0
  119. package/dist/cjs/ModalHeader-C2p7hm6p.js +369 -0
  120. package/dist/cjs/ModalHeader-C2p7hm6p.js.map +1 -0
  121. package/dist/cjs/MoonpayStatusScreen-CsS_lJ0v.js +17 -0
  122. package/dist/cjs/MoonpayStatusScreen-CsS_lJ0v.js.map +1 -0
  123. package/dist/cjs/OAuthStatusScreen-D9eas2Jm.js +2 -0
  124. package/dist/cjs/OAuthStatusScreen-D9eas2Jm.js.map +1 -0
  125. package/dist/cjs/PasskeySelectSignupOrLogin-lJ3PwQ2D.js +2 -0
  126. package/dist/cjs/PasskeySelectSignupOrLogin-lJ3PwQ2D.js.map +1 -0
  127. package/dist/cjs/PasskeyStatusScreen-DYHO8C2L.js +4 -0
  128. package/dist/cjs/PasskeyStatusScreen-DYHO8C2L.js.map +1 -0
  129. package/dist/cjs/PasswordRecoveryScreen-B5-e6dOT.js +21 -0
  130. package/dist/cjs/PasswordRecoveryScreen-B5-e6dOT.js.map +1 -0
  131. package/dist/cjs/QrCode-rJHEBp9b.js +17 -0
  132. package/dist/cjs/QrCode-rJHEBp9b.js.map +1 -0
  133. package/dist/cjs/RecoveryOAuthStatusScreen-C1Sz4RFU.js +2 -0
  134. package/dist/cjs/RecoveryOAuthStatusScreen-C1Sz4RFU.js.map +1 -0
  135. package/dist/cjs/RecoveryPasswordCreateScreen-DId3TF9o.js +2 -0
  136. package/dist/cjs/RecoveryPasswordCreateScreen-DId3TF9o.js.map +1 -0
  137. package/dist/cjs/RecoverySelectionScreen-BV5gkC1o.js +8 -0
  138. package/dist/cjs/RecoverySelectionScreen-BV5gkC1o.js.map +1 -0
  139. package/dist/cjs/Screen-DdUg-jSi.js +184 -0
  140. package/dist/cjs/Screen-DdUg-jSi.js.map +1 -0
  141. package/dist/cjs/ScreenLayout--U8kJCn4.js +2 -0
  142. package/dist/cjs/ScreenLayout--U8kJCn4.js.map +1 -0
  143. package/dist/cjs/SelectSourceAsset-UMzFUttS.js +141 -0
  144. package/dist/cjs/SelectSourceAsset-UMzFUttS.js.map +1 -0
  145. package/dist/cjs/SetAutomaticRecoveryScreen-DT6n9T8C.js +15 -0
  146. package/dist/cjs/SetAutomaticRecoveryScreen-DT6n9T8C.js.map +1 -0
  147. package/dist/cjs/SetWalletPasswordForm-CVREeYd1.js +13 -0
  148. package/dist/cjs/SetWalletPasswordForm-CVREeYd1.js.map +1 -0
  149. package/dist/cjs/SignRequestScreen-7yl6API1.js +27 -0
  150. package/dist/cjs/SignRequestScreen-7yl6API1.js.map +1 -0
  151. package/dist/cjs/SkeuomorphicDebitCard-CCR6iKxh.js +150 -0
  152. package/dist/cjs/SkeuomorphicDebitCard-CCR6iKxh.js.map +1 -0
  153. package/dist/cjs/StandardSignAndSendTransactionScreen-AaMPoc7c.js +21 -0
  154. package/dist/cjs/StandardSignAndSendTransactionScreen-AaMPoc7c.js.map +1 -0
  155. package/dist/cjs/TelegramAuthScreen-DIgYvKHs.js +2 -0
  156. package/dist/cjs/TelegramAuthScreen-DIgYvKHs.js.map +1 -0
  157. package/dist/cjs/TransactionDetails-BbLQfURZ.js +112 -0
  158. package/dist/cjs/TransactionDetails-BbLQfURZ.js.map +1 -0
  159. package/dist/cjs/TransactionErrorView-D-KRoFxP.js +165 -0
  160. package/dist/cjs/TransactionErrorView-D-KRoFxP.js.map +1 -0
  161. package/dist/cjs/TransferFromWalletScreen-B_Ib9eJu.js +32 -0
  162. package/dist/cjs/TransferFromWalletScreen-B_Ib9eJu.js.map +1 -0
  163. package/dist/cjs/TransferOrBridgeLoadingScreen-9MGXVNGj.js +7 -0
  164. package/dist/cjs/TransferOrBridgeLoadingScreen-9MGXVNGj.js.map +1 -0
  165. package/dist/cjs/TurnstileWrapper-CjF-Ovo6.js +2 -0
  166. package/dist/cjs/TurnstileWrapper-CjF-Ovo6.js.map +1 -0
  167. package/dist/cjs/UpdateEmailScreen-C3ZkP4-J.js +2 -0
  168. package/dist/cjs/UpdateEmailScreen-C3ZkP4-J.js.map +1 -0
  169. package/dist/cjs/UpdatePhoneScreen-N4HFpTVO.js +2 -0
  170. package/dist/cjs/UpdatePhoneScreen-N4HFpTVO.js.map +1 -0
  171. package/dist/cjs/UserLimitReachedScreen-D0b0k1KI.js +2 -0
  172. package/dist/cjs/UserLimitReachedScreen-D0b0k1KI.js.map +1 -0
  173. package/dist/cjs/WalletInfoCard-CO0sdFSB.js +30 -0
  174. package/dist/cjs/WalletInfoCard-CO0sdFSB.js.map +1 -0
  175. package/dist/cjs/WalletInterstitialScreen-DFugV51H.js +2 -0
  176. package/dist/cjs/WalletInterstitialScreen-DFugV51H.js.map +1 -0
  177. package/dist/cjs/WalletOverflowButton-D9XCTUwU.js +2 -0
  178. package/dist/cjs/WalletOverflowButton-D9XCTUwU.js.map +1 -0
  179. package/dist/cjs/abstract-smart-wallets.js +1 -1
  180. package/dist/cjs/cards.js +177 -320
  181. package/dist/cjs/cards.js.map +1 -1
  182. package/dist/cjs/extended-chains.js +1 -1
  183. package/dist/cjs/get-entropy-details-for-user-B19oP-d0.js +2 -0
  184. package/dist/cjs/get-entropy-details-for-user-B19oP-d0.js.map +1 -0
  185. package/dist/cjs/index-CCeaWPBC.js +13 -0
  186. package/dist/cjs/index-CCeaWPBC.js.map +1 -0
  187. package/dist/cjs/index-D41AXA9-.js +34 -0
  188. package/dist/cjs/index-D41AXA9-.js.map +1 -0
  189. package/dist/cjs/index-DTco7dAO.js +2 -0
  190. package/dist/cjs/index-DTco7dAO.js.map +1 -0
  191. package/dist/cjs/index-Dn52pA44.js +2 -0
  192. package/dist/cjs/index-Dn52pA44.js.map +1 -0
  193. package/dist/cjs/index.js +1 -1
  194. package/dist/cjs/internal.js +1 -1
  195. package/dist/cjs/internal.js.map +1 -1
  196. package/dist/cjs/modal-context-D9ww3KeW.js +2 -0
  197. package/dist/cjs/modal-context-D9ww3KeW.js.map +1 -0
  198. package/dist/cjs/pkce-Cv2aN63v.js +2 -0
  199. package/dist/cjs/pkce-Cv2aN63v.js.map +1 -0
  200. package/dist/cjs/privy-context-BHGd9Pcc.js +2 -0
  201. package/dist/cjs/privy-context-BHGd9Pcc.js.map +1 -0
  202. package/dist/cjs/shared-DVbMbBbU.js +194 -0
  203. package/dist/cjs/shared-DVbMbBbU.js.map +1 -0
  204. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-DnWtXMuM.js +2 -0
  205. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-DnWtXMuM.js.map +1 -0
  206. package/dist/cjs/simulateTransaction-uv8PkCiC.js +2 -0
  207. package/dist/cjs/simulateTransaction-uv8PkCiC.js.map +1 -0
  208. package/dist/cjs/smart-wallets-s_0ze0--.js +2 -0
  209. package/dist/cjs/smart-wallets-s_0ze0--.js.map +1 -0
  210. package/dist/cjs/smart-wallets.js +1 -1
  211. package/dist/cjs/solana.js +1 -1
  212. package/dist/cjs/solana.js.map +1 -1
  213. package/dist/cjs/styles-B7G_bSfU.js +165 -0
  214. package/dist/cjs/styles-B7G_bSfU.js.map +1 -0
  215. package/dist/cjs/styles-DYjSZWKU.js +93 -0
  216. package/dist/cjs/styles-DYjSZWKU.js.map +1 -0
  217. package/dist/cjs/tempo.js +1 -1
  218. package/dist/cjs/to-ui-error-CDMZjmNz.js +5 -0
  219. package/dist/cjs/to-ui-error-CDMZjmNz.js.map +1 -0
  220. package/dist/cjs/toViemAccount-BMmRBSj1.js +2 -0
  221. package/dist/cjs/toViemAccount-BMmRBSj1.js.map +1 -0
  222. package/dist/cjs/ui.js +15 -17
  223. package/dist/cjs/ui.js.map +1 -1
  224. package/dist/cjs/use-export-wallet-qmhrR95e.js +2 -0
  225. package/dist/cjs/use-export-wallet-qmhrR95e.js.map +1 -0
  226. package/dist/cjs/use-headless-crypto-deposit-Q6Aqz8Ce.js +2 -0
  227. package/dist/cjs/use-headless-crypto-deposit-Q6Aqz8Ce.js.map +1 -0
  228. package/dist/cjs/use-sign-with-user-signer-jOEdOO6s.js +2 -0
  229. package/dist/cjs/use-sign-with-user-signer-jOEdOO6s.js.map +1 -0
  230. package/dist/cjs/use-unlink-wallet-CHCAcxpm.js +2 -0
  231. package/dist/cjs/use-unlink-wallet-CHCAcxpm.js.map +1 -0
  232. package/dist/cjs/useActiveWallet-CcNx5TN1.js +124 -0
  233. package/dist/cjs/useActiveWallet-CcNx5TN1.js.map +1 -0
  234. package/dist/cjs/useGetTokenPrice-ZhUXnAIF.js +2 -0
  235. package/dist/cjs/useGetTokenPrice-ZhUXnAIF.js.map +1 -0
  236. package/dist/cjs/useI18n-DW79JyuB.js +2 -0
  237. package/dist/cjs/useI18n-DW79JyuB.js.map +1 -0
  238. package/dist/cjs/useSendTransaction-7lEhU_b9.js +402 -0
  239. package/dist/cjs/useSendTransaction-7lEhU_b9.js.map +1 -0
  240. package/dist/cjs/useWallets-D_kjuXrC.js +2 -0
  241. package/dist/cjs/useWallets-D_kjuXrC.js.map +1 -0
  242. package/dist/cjs/wallet-connect-CpoK066O.js +2 -0
  243. package/dist/cjs/wallet-connect-CpoK066O.js.map +1 -0
  244. package/dist/dts/events-context-8NMDpHyB.d.mts +329 -0
  245. package/dist/dts/events-context-8NMDpHyB.d.ts +329 -0
  246. package/dist/dts/extended-chains.d.mts +1 -1
  247. package/dist/dts/extended-chains.d.ts +1 -1
  248. package/dist/dts/farcaster.d.mts +1 -1
  249. package/dist/dts/farcaster.d.ts +1 -1
  250. package/dist/dts/importWallet-BtAIPo9T.d.mts +12 -0
  251. package/dist/dts/importWallet-BtAIPo9T.d.ts +12 -0
  252. package/dist/dts/index.d.mts +66 -17
  253. package/dist/dts/index.d.ts +66 -17
  254. package/dist/dts/internal.d.mts +35 -58
  255. package/dist/dts/internal.d.ts +35 -58
  256. package/dist/dts/smart-wallets.d.mts +1 -1
  257. package/dist/dts/smart-wallets.d.ts +1 -1
  258. package/dist/dts/solana.d.mts +9 -9
  259. package/dist/dts/solana.d.ts +9 -9
  260. package/dist/dts/tempo.d.mts +2 -2
  261. package/dist/dts/tempo.d.ts +2 -2
  262. package/dist/dts/toViemAccount-CdN0LUdU.d.mts +27 -0
  263. package/dist/dts/toViemAccount-CdN0LUdU.d.ts +27 -0
  264. package/dist/dts/types-BOEI6Njl.d.mts +2663 -0
  265. package/dist/dts/types-BOEI6Njl.d.ts +2663 -0
  266. package/dist/dts/ui.d.mts +3 -3
  267. package/dist/dts/ui.d.ts +3 -3
  268. package/dist/dts/use-headless-crypto-deposit-cP98WxrY.d.mts +130 -0
  269. package/dist/dts/use-headless-crypto-deposit-cP98WxrY.d.ts +130 -0
  270. package/dist/dts/useUpdateAccount-BTh9ARX-.d.mts +27 -0
  271. package/dist/dts/useUpdateAccount-BTh9ARX-.d.ts +27 -0
  272. package/dist/esm/AccountNotFoundScreen-Bl7Hmtmi.mjs +2 -0
  273. package/dist/esm/AccountNotFoundScreen-Bl7Hmtmi.mjs.map +1 -0
  274. package/dist/esm/AddFundsSelectionScreen-Dv-FI_xa.mjs +32 -0
  275. package/dist/esm/AddFundsSelectionScreen-Dv-FI_xa.mjs.map +1 -0
  276. package/dist/esm/Address-BixyKRn-.mjs +18 -0
  277. package/dist/esm/Address-BixyKRn-.mjs.map +1 -0
  278. package/dist/esm/AffirmativeConsentScreen-bHaPFxOO.mjs +7 -0
  279. package/dist/esm/AffirmativeConsentScreen-bHaPFxOO.mjs.map +1 -0
  280. package/dist/esm/AllowlistRejectionScreen-C7xFw_Vl.mjs +2 -0
  281. package/dist/esm/AllowlistRejectionScreen-C7xFw_Vl.mjs.map +1 -0
  282. package/dist/esm/AuthenticateWithWalletScreen-BCTIBWcL.mjs +2 -0
  283. package/dist/esm/AuthenticateWithWalletScreen-BCTIBWcL.mjs.map +1 -0
  284. package/dist/esm/AwaitingEvmToSolBridgingScreen-Dgoqd0cm.mjs +3 -0
  285. package/dist/esm/AwaitingEvmToSolBridgingScreen-Dgoqd0cm.mjs.map +1 -0
  286. package/dist/esm/AwaitingExternalEthereumTransferScreen-FEDd_gmh.mjs +3 -0
  287. package/dist/esm/AwaitingExternalEthereumTransferScreen-FEDd_gmh.mjs.map +1 -0
  288. package/dist/esm/AwaitingPasswordlessCodeScreen-DE3s5Nt7.mjs +104 -0
  289. package/dist/esm/AwaitingPasswordlessCodeScreen-DE3s5Nt7.mjs.map +1 -0
  290. package/dist/esm/AwaitingSolToEvmBridgingScreen-Glj6MyNv.mjs +3 -0
  291. package/dist/esm/AwaitingSolToEvmBridgingScreen-Glj6MyNv.mjs.map +1 -0
  292. package/dist/esm/BridgeNetworkSelectionView-BT7FmIVL.mjs +69 -0
  293. package/dist/esm/BridgeNetworkSelectionView-BT7FmIVL.mjs.map +1 -0
  294. package/dist/esm/CaptchaScreen-CNJxFcLz.mjs +2 -0
  295. package/dist/esm/CaptchaScreen-CNJxFcLz.mjs.map +1 -0
  296. package/dist/esm/CoinbaseOnrampStatusScreen-DnjOb61Q.mjs +17 -0
  297. package/dist/esm/CoinbaseOnrampStatusScreen-DnjOb61Q.mjs.map +1 -0
  298. package/dist/esm/ConnectEmailForm-CUkOCTYn.mjs +4 -0
  299. package/dist/esm/ConnectEmailForm-CUkOCTYn.mjs.map +1 -0
  300. package/dist/esm/ConnectLedgerScreen-gJIU_F29.mjs +10 -0
  301. package/dist/esm/ConnectLedgerScreen-gJIU_F29.mjs.map +1 -0
  302. package/dist/esm/ConnectOnlyLandingScreen-Db6J_saO.mjs +2 -0
  303. package/dist/esm/ConnectOnlyLandingScreen-Db6J_saO.mjs.map +1 -0
  304. package/dist/esm/ConnectOnlyStatusScreen-enc3HgPj.mjs +2 -0
  305. package/dist/esm/ConnectOnlyStatusScreen-enc3HgPj.mjs.map +1 -0
  306. package/dist/esm/ConnectOrCreateScreen-jwVhg2Mi.mjs +2 -0
  307. package/dist/esm/ConnectOrCreateScreen-jwVhg2Mi.mjs.map +1 -0
  308. package/dist/esm/ConnectPhoneForm-CdFyx21O.mjs +96 -0
  309. package/dist/esm/ConnectPhoneForm-CdFyx21O.mjs.map +1 -0
  310. package/dist/esm/ConnectWalletView-CpX2XxBj.mjs +75 -0
  311. package/dist/esm/ConnectWalletView-CpX2XxBj.mjs.map +1 -0
  312. package/dist/esm/ConnectionStatusScreen-D2Y-wqNP.mjs +8 -0
  313. package/dist/esm/ConnectionStatusScreen-D2Y-wqNP.mjs.map +1 -0
  314. package/dist/esm/CrossAppAuthScreen-BOti_c-6.mjs +2 -0
  315. package/dist/esm/CrossAppAuthScreen-BOti_c-6.mjs.map +1 -0
  316. package/dist/esm/CustomLandingScreenView-BQlpHCMq.mjs +24 -0
  317. package/dist/esm/CustomLandingScreenView-BQlpHCMq.mjs.map +1 -0
  318. package/dist/esm/DelegatedActionsConsentScreen-BwtldL1j.mjs +2 -0
  319. package/dist/esm/DelegatedActionsConsentScreen-BwtldL1j.mjs.map +1 -0
  320. package/dist/esm/DelegatedActionsRevokeScreen-CbprmWNC.mjs +2 -0
  321. package/dist/esm/DelegatedActionsRevokeScreen-CbprmWNC.mjs.map +1 -0
  322. package/dist/esm/DepositAddressAddressStepView-SDIe09Bn.mjs +188 -0
  323. package/dist/esm/DepositAddressAddressStepView-SDIe09Bn.mjs.map +1 -0
  324. package/dist/esm/DepositAddressScreen-CrFlyPED.mjs +9 -0
  325. package/dist/esm/DepositAddressScreen-CrFlyPED.mjs.map +1 -0
  326. package/dist/esm/DepositAddressV3Screen-CeWE2__6.mjs +2 -0
  327. package/dist/esm/DepositAddressV3Screen-CeWE2__6.mjs.map +1 -0
  328. package/dist/esm/EmbeddedWalletConnectingScreen-BFVZ0NW9.mjs +2 -0
  329. package/dist/esm/EmbeddedWalletConnectingScreen-BFVZ0NW9.mjs.map +1 -0
  330. package/dist/esm/EmbeddedWalletCreatedScreen-Dte9vWYq.mjs +2 -0
  331. package/dist/esm/EmbeddedWalletCreatedScreen-Dte9vWYq.mjs.map +1 -0
  332. package/dist/esm/EmbeddedWalletKeyExportScreen-DC2p1NXt.mjs +25 -0
  333. package/dist/esm/EmbeddedWalletKeyExportScreen-DC2p1NXt.mjs.map +1 -0
  334. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-XmgkcseA.mjs +2 -0
  335. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-XmgkcseA.mjs.map +1 -0
  336. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-DayUjdiv.mjs +2 -0
  337. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-DayUjdiv.mjs.map +1 -0
  338. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-CgBjf0CX.mjs +2 -0
  339. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-CgBjf0CX.mjs.map +1 -0
  340. package/dist/esm/EnrollTotp-B7ypDnV-.mjs +64 -0
  341. package/dist/esm/EnrollTotp-B7ypDnV-.mjs.map +1 -0
  342. package/dist/esm/ErrorScreen-CL8ZLhI9.mjs +5 -0
  343. package/dist/esm/ErrorScreen-CL8ZLhI9.mjs.map +1 -0
  344. package/dist/esm/FarcasterConnectStatusScreen-e66gOAYv.mjs +76 -0
  345. package/dist/esm/FarcasterConnectStatusScreen-e66gOAYv.mjs.map +1 -0
  346. package/dist/esm/FarcasterSignerStatusScreen-WvxEu5GK.mjs +29 -0
  347. package/dist/esm/FarcasterSignerStatusScreen-WvxEu5GK.mjs.map +1 -0
  348. package/dist/esm/FiatOnrampScreen-CJlu_7aM.mjs +492 -0
  349. package/dist/esm/FiatOnrampScreen-CJlu_7aM.mjs.map +1 -0
  350. package/dist/esm/FundSolWalletWithExternalSolanaWallet-DEnsCMpK.mjs +2 -0
  351. package/dist/esm/FundSolWalletWithExternalSolanaWallet-DEnsCMpK.mjs.map +1 -0
  352. package/dist/esm/FundWalletMethodHeader-BMDSDlJZ.mjs +2 -0
  353. package/dist/esm/FundWalletMethodHeader-BMDSDlJZ.mjs.map +1 -0
  354. package/dist/esm/FundWithBankDepositScreen-DAevsgLt.mjs +59 -0
  355. package/dist/esm/FundWithBankDepositScreen-DAevsgLt.mjs.map +1 -0
  356. package/dist/esm/FundingEditAmountScreen-BUfO3FjN.mjs +2 -0
  357. package/dist/esm/FundingEditAmountScreen-BUfO3FjN.mjs.map +1 -0
  358. package/dist/esm/FundingMethodSelectionScreen-B-RbfqEp.mjs +2 -0
  359. package/dist/esm/FundingMethodSelectionScreen-B-RbfqEp.mjs.map +1 -0
  360. package/dist/esm/InAppBrowserLoginNotPossible-CLAeLqyR.mjs +2 -0
  361. package/dist/esm/InAppBrowserLoginNotPossible-CLAeLqyR.mjs.map +1 -0
  362. package/dist/esm/InstallWalletScreen-Ce0LaKGA.mjs +2 -0
  363. package/dist/esm/InstallWalletScreen-Ce0LaKGA.mjs.map +1 -0
  364. package/dist/esm/LandingScreen-C_YGcJ_f.mjs +2 -0
  365. package/dist/esm/LandingScreen-C_YGcJ_f.mjs.map +1 -0
  366. package/dist/esm/Link-BdDilT2T.mjs +41 -0
  367. package/dist/esm/Link-BdDilT2T.mjs.map +1 -0
  368. package/dist/esm/LinkConflictScreen-BEyeIbc-.mjs +78 -0
  369. package/dist/esm/LinkConflictScreen-BEyeIbc-.mjs.map +1 -0
  370. package/dist/esm/LinkEmailScreen-pr3JS6H3.mjs +2 -0
  371. package/dist/esm/LinkEmailScreen-pr3JS6H3.mjs.map +1 -0
  372. package/dist/esm/LinkPasskeyScreen-C-l57_F6.mjs +118 -0
  373. package/dist/esm/LinkPasskeyScreen-C-l57_F6.mjs.map +1 -0
  374. package/dist/esm/LinkPhoneScreen-C6An6j1b.mjs +2 -0
  375. package/dist/esm/LinkPhoneScreen-C6An6j1b.mjs.map +1 -0
  376. package/dist/esm/LoginFailedScreen-35qCQfO7.mjs +2 -0
  377. package/dist/esm/LoginFailedScreen-35qCQfO7.mjs.map +1 -0
  378. package/dist/esm/ManualTransferScreen-B2q8dg2f.mjs +2 -0
  379. package/dist/esm/ManualTransferScreen-B2q8dg2f.mjs.map +1 -0
  380. package/dist/esm/MfaAuthEnrollmentFlowScreen-BvpXuxB_.mjs +2 -0
  381. package/dist/esm/MfaAuthEnrollmentFlowScreen-BvpXuxB_.mjs.map +1 -0
  382. package/dist/esm/MfaAuthVerifyFlowScreen-DPjZyHwa.mjs +2 -0
  383. package/dist/esm/MfaAuthVerifyFlowScreen-DPjZyHwa.mjs.map +1 -0
  384. package/dist/esm/MfaEnrollmentFlowScreen-DPgKMnqU.mjs +2 -0
  385. package/dist/esm/MfaEnrollmentFlowScreen-DPgKMnqU.mjs.map +1 -0
  386. package/dist/esm/MfaVerifyFlowScreen-CKTjuf1S.mjs +2 -0
  387. package/dist/esm/MfaVerifyFlowScreen-CKTjuf1S.mjs.map +1 -0
  388. package/dist/esm/ModalFooter-CZAG7cZB.mjs +40 -0
  389. package/dist/esm/ModalFooter-CZAG7cZB.mjs.map +1 -0
  390. package/dist/esm/ModalHeader-yqv_2VJU.mjs +369 -0
  391. package/dist/esm/ModalHeader-yqv_2VJU.mjs.map +1 -0
  392. package/dist/esm/MoonpayStatusScreen-wMKsjZeB.mjs +17 -0
  393. package/dist/esm/MoonpayStatusScreen-wMKsjZeB.mjs.map +1 -0
  394. package/dist/esm/OAuthStatusScreen-CdfCy4f8.mjs +2 -0
  395. package/dist/esm/OAuthStatusScreen-CdfCy4f8.mjs.map +1 -0
  396. package/dist/esm/PasskeySelectSignupOrLogin-D0holwQw.mjs +2 -0
  397. package/dist/esm/PasskeySelectSignupOrLogin-D0holwQw.mjs.map +1 -0
  398. package/dist/esm/PasskeyStatusScreen-DivnXZ9b.mjs +4 -0
  399. package/dist/esm/PasskeyStatusScreen-DivnXZ9b.mjs.map +1 -0
  400. package/dist/esm/PasswordRecoveryScreen-CEKYNkfv.mjs +21 -0
  401. package/dist/esm/PasswordRecoveryScreen-CEKYNkfv.mjs.map +1 -0
  402. package/dist/esm/QrCode-BhHtTQ2f.mjs +17 -0
  403. package/dist/esm/QrCode-BhHtTQ2f.mjs.map +1 -0
  404. package/dist/esm/RecoveryOAuthStatusScreen-qCund5Bo.mjs +2 -0
  405. package/dist/esm/RecoveryOAuthStatusScreen-qCund5Bo.mjs.map +1 -0
  406. package/dist/esm/RecoveryPasswordCreateScreen-CZtg0Yg0.mjs +2 -0
  407. package/dist/esm/RecoveryPasswordCreateScreen-CZtg0Yg0.mjs.map +1 -0
  408. package/dist/esm/RecoverySelectionScreen-DtS8Li1j.mjs +8 -0
  409. package/dist/esm/RecoverySelectionScreen-DtS8Li1j.mjs.map +1 -0
  410. package/dist/esm/Screen-B-Xa5qdH.mjs +183 -0
  411. package/dist/esm/Screen-B-Xa5qdH.mjs.map +1 -0
  412. package/dist/esm/ScreenLayout-CN3EM1pv.mjs +2 -0
  413. package/dist/esm/ScreenLayout-CN3EM1pv.mjs.map +1 -0
  414. package/dist/esm/SelectSourceAsset-BqUnsZDv.mjs +141 -0
  415. package/dist/esm/SelectSourceAsset-BqUnsZDv.mjs.map +1 -0
  416. package/dist/esm/SetAutomaticRecoveryScreen-CeOfjTFf.mjs +15 -0
  417. package/dist/esm/SetAutomaticRecoveryScreen-CeOfjTFf.mjs.map +1 -0
  418. package/dist/esm/SetWalletPasswordForm-C16M7epz.mjs +13 -0
  419. package/dist/esm/SetWalletPasswordForm-C16M7epz.mjs.map +1 -0
  420. package/dist/esm/SignRequestScreen-CDQDlvYS.mjs +27 -0
  421. package/dist/esm/SignRequestScreen-CDQDlvYS.mjs.map +1 -0
  422. package/dist/esm/SkeuomorphicDebitCard-DwVpD2QT.mjs +150 -0
  423. package/dist/esm/SkeuomorphicDebitCard-DwVpD2QT.mjs.map +1 -0
  424. package/dist/esm/StandardSignAndSendTransactionScreen-CZu-Rkry.mjs +21 -0
  425. package/dist/esm/StandardSignAndSendTransactionScreen-CZu-Rkry.mjs.map +1 -0
  426. package/dist/esm/TelegramAuthScreen-KbisIsL4.mjs +2 -0
  427. package/dist/esm/TelegramAuthScreen-KbisIsL4.mjs.map +1 -0
  428. package/dist/esm/TransactionDetails-jfoGWugX.mjs +112 -0
  429. package/dist/esm/TransactionDetails-jfoGWugX.mjs.map +1 -0
  430. package/dist/esm/TransactionErrorView-DX3dHGI7.mjs +165 -0
  431. package/dist/esm/TransactionErrorView-DX3dHGI7.mjs.map +1 -0
  432. package/dist/esm/TransferFromWalletScreen-BxLRlFlO.mjs +32 -0
  433. package/dist/esm/TransferFromWalletScreen-BxLRlFlO.mjs.map +1 -0
  434. package/dist/esm/TransferOrBridgeLoadingScreen-Bw52KuJZ.mjs +7 -0
  435. package/dist/esm/TransferOrBridgeLoadingScreen-Bw52KuJZ.mjs.map +1 -0
  436. package/dist/esm/TurnstileWrapper-0Q_xQUx_.mjs +2 -0
  437. package/dist/esm/TurnstileWrapper-0Q_xQUx_.mjs.map +1 -0
  438. package/dist/esm/UpdateEmailScreen-B2sBFxiH.mjs +2 -0
  439. package/dist/esm/UpdateEmailScreen-B2sBFxiH.mjs.map +1 -0
  440. package/dist/esm/UpdatePhoneScreen-C0NURgVx.mjs +2 -0
  441. package/dist/esm/UpdatePhoneScreen-C0NURgVx.mjs.map +1 -0
  442. package/dist/esm/UserLimitReachedScreen-BhEvchBo.mjs +2 -0
  443. package/dist/esm/UserLimitReachedScreen-BhEvchBo.mjs.map +1 -0
  444. package/dist/esm/WalletInfoCard-CfOo8I1N.mjs +30 -0
  445. package/dist/esm/WalletInfoCard-CfOo8I1N.mjs.map +1 -0
  446. package/dist/esm/WalletInterstitialScreen-CyS0BkG_.mjs +2 -0
  447. package/dist/esm/WalletInterstitialScreen-CyS0BkG_.mjs.map +1 -0
  448. package/dist/esm/WalletOverflowButton-D1jd_CRf.mjs +2 -0
  449. package/dist/esm/WalletOverflowButton-D1jd_CRf.mjs.map +1 -0
  450. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  451. package/dist/esm/cards.mjs +177 -320
  452. package/dist/esm/cards.mjs.map +1 -1
  453. package/dist/esm/extended-chains.mjs +1 -1
  454. package/dist/esm/get-entropy-details-for-user-NQEot7NZ.mjs +2 -0
  455. package/dist/esm/get-entropy-details-for-user-NQEot7NZ.mjs.map +1 -0
  456. package/dist/esm/index-1-pMvnvM.mjs +13 -0
  457. package/dist/esm/index-1-pMvnvM.mjs.map +1 -0
  458. package/dist/esm/index-B4kpRHEf.mjs +2 -0
  459. package/dist/esm/index-B4kpRHEf.mjs.map +1 -0
  460. package/dist/esm/index-BRVzclkp.mjs +34 -0
  461. package/dist/esm/index-BRVzclkp.mjs.map +1 -0
  462. package/dist/esm/index-SQDAZoUX.mjs +2 -0
  463. package/dist/esm/index-SQDAZoUX.mjs.map +1 -0
  464. package/dist/esm/index.mjs +1 -1
  465. package/dist/esm/internal.mjs +1 -1
  466. package/dist/esm/internal.mjs.map +1 -1
  467. package/dist/esm/modal-context-2FwelYaK.mjs +2 -0
  468. package/dist/esm/modal-context-2FwelYaK.mjs.map +1 -0
  469. package/dist/esm/pkce-DSTNYh_L.mjs +2 -0
  470. package/dist/esm/pkce-DSTNYh_L.mjs.map +1 -0
  471. package/dist/esm/privy-context-CoPB1sug.mjs +2 -0
  472. package/dist/esm/privy-context-CoPB1sug.mjs.map +1 -0
  473. package/dist/esm/shared-CFpRR5BN.mjs +194 -0
  474. package/dist/esm/shared-CFpRR5BN.mjs.map +1 -0
  475. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-BFMDA-dt.mjs +2 -0
  476. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-BFMDA-dt.mjs.map +1 -0
  477. package/dist/esm/simulateTransaction-CJe0jK0c.mjs +2 -0
  478. package/dist/esm/simulateTransaction-CJe0jK0c.mjs.map +1 -0
  479. package/dist/esm/smart-wallets-BkyniPfF.mjs +2 -0
  480. package/dist/esm/smart-wallets-BkyniPfF.mjs.map +1 -0
  481. package/dist/esm/smart-wallets.mjs +1 -1
  482. package/dist/esm/solana.mjs +1 -1
  483. package/dist/esm/solana.mjs.map +1 -1
  484. package/dist/esm/styles-BOmo87-2.mjs +165 -0
  485. package/dist/esm/styles-BOmo87-2.mjs.map +1 -0
  486. package/dist/esm/styles-BgIvZc4O.mjs +93 -0
  487. package/dist/esm/styles-BgIvZc4O.mjs.map +1 -0
  488. package/dist/esm/tempo.mjs +1 -1
  489. package/dist/esm/to-ui-error-B_jBEdLF.mjs +5 -0
  490. package/dist/esm/to-ui-error-B_jBEdLF.mjs.map +1 -0
  491. package/dist/esm/toViemAccount-moo9TJem.mjs +2 -0
  492. package/dist/esm/toViemAccount-moo9TJem.mjs.map +1 -0
  493. package/dist/esm/ui.mjs +3 -5
  494. package/dist/esm/ui.mjs.map +1 -1
  495. package/dist/esm/use-export-wallet-Cv9NoC5i.mjs +2 -0
  496. package/dist/esm/use-export-wallet-Cv9NoC5i.mjs.map +1 -0
  497. package/dist/esm/use-headless-crypto-deposit-KWcTJ4P6.mjs +2 -0
  498. package/dist/esm/use-headless-crypto-deposit-KWcTJ4P6.mjs.map +1 -0
  499. package/dist/esm/use-sign-with-user-signer-_10G_Z_r.mjs +2 -0
  500. package/dist/esm/use-sign-with-user-signer-_10G_Z_r.mjs.map +1 -0
  501. package/dist/esm/use-unlink-wallet-GnCx4meh.mjs +2 -0
  502. package/dist/esm/use-unlink-wallet-GnCx4meh.mjs.map +1 -0
  503. package/dist/esm/useActiveWallet-DFpBTXK1.mjs +124 -0
  504. package/dist/esm/useActiveWallet-DFpBTXK1.mjs.map +1 -0
  505. package/dist/esm/useGetTokenPrice--krActTS.mjs +2 -0
  506. package/dist/esm/useGetTokenPrice--krActTS.mjs.map +1 -0
  507. package/dist/esm/useI18n-BJAxDCw5.mjs +2 -0
  508. package/dist/esm/useI18n-BJAxDCw5.mjs.map +1 -0
  509. package/dist/esm/useSendTransaction-CldMjlhn.mjs +402 -0
  510. package/dist/esm/useSendTransaction-CldMjlhn.mjs.map +1 -0
  511. package/dist/esm/useWallets-cUJf3hxZ.mjs +2 -0
  512. package/dist/esm/useWallets-cUJf3hxZ.mjs.map +1 -0
  513. package/dist/esm/wallet-connect-DwpBuAcu.mjs +2 -0
  514. package/dist/esm/wallet-connect-DwpBuAcu.mjs.map +1 -0
  515. package/package.json +5 -5
  516. package/dist/cjs/AccountNotFoundScreen-Bl4XcpNw.js +0 -2
  517. package/dist/cjs/AccountNotFoundScreen-Bl4XcpNw.js.map +0 -1
  518. package/dist/cjs/AddFundsSelectionScreen-DZbCqRGu.js +0 -32
  519. package/dist/cjs/AddFundsSelectionScreen-DZbCqRGu.js.map +0 -1
  520. package/dist/cjs/Address-DpFTPF_Q.js +0 -18
  521. package/dist/cjs/Address-DpFTPF_Q.js.map +0 -1
  522. package/dist/cjs/AffirmativeConsentScreen-D_J5zMPO.js +0 -7
  523. package/dist/cjs/AffirmativeConsentScreen-D_J5zMPO.js.map +0 -1
  524. package/dist/cjs/AllowlistRejectionScreen-MTyh6ExY.js +0 -2
  525. package/dist/cjs/AllowlistRejectionScreen-MTyh6ExY.js.map +0 -1
  526. package/dist/cjs/AuthenticateWithWalletScreen-DCuDM7CW.js +0 -2
  527. package/dist/cjs/AuthenticateWithWalletScreen-DCuDM7CW.js.map +0 -1
  528. package/dist/cjs/AwaitingEvmToSolBridgingScreen-DXtUoUL9.js +0 -3
  529. package/dist/cjs/AwaitingEvmToSolBridgingScreen-DXtUoUL9.js.map +0 -1
  530. package/dist/cjs/AwaitingExternalEthereumTransferScreen-BkSjZDM7.js +0 -3
  531. package/dist/cjs/AwaitingExternalEthereumTransferScreen-BkSjZDM7.js.map +0 -1
  532. package/dist/cjs/AwaitingPasswordlessCodeScreen-DMeM9Uib.js +0 -104
  533. package/dist/cjs/AwaitingPasswordlessCodeScreen-DMeM9Uib.js.map +0 -1
  534. package/dist/cjs/AwaitingSolToEvmBridgingScreen-BfCaNKPC.js +0 -3
  535. package/dist/cjs/AwaitingSolToEvmBridgingScreen-BfCaNKPC.js.map +0 -1
  536. package/dist/cjs/BridgeNetworkSelectionView-CRLI1-IO.js +0 -69
  537. package/dist/cjs/BridgeNetworkSelectionView-CRLI1-IO.js.map +0 -1
  538. package/dist/cjs/CaptchaScreen-DpT39-mp.js +0 -2
  539. package/dist/cjs/CaptchaScreen-DpT39-mp.js.map +0 -1
  540. package/dist/cjs/CoinbaseOnrampStatusScreen-CPCJZnbQ.js +0 -17
  541. package/dist/cjs/CoinbaseOnrampStatusScreen-CPCJZnbQ.js.map +0 -1
  542. package/dist/cjs/ConnectEmailForm-DSvvUQHo.js +0 -4
  543. package/dist/cjs/ConnectEmailForm-DSvvUQHo.js.map +0 -1
  544. package/dist/cjs/ConnectLedgerScreen-CkrLaSdR.js +0 -10
  545. package/dist/cjs/ConnectLedgerScreen-CkrLaSdR.js.map +0 -1
  546. package/dist/cjs/ConnectOnlyLandingScreen-C_q6XTTD.js +0 -2
  547. package/dist/cjs/ConnectOnlyLandingScreen-C_q6XTTD.js.map +0 -1
  548. package/dist/cjs/ConnectOnlyStatusScreen-CfSHLQ4p.js +0 -2
  549. package/dist/cjs/ConnectOnlyStatusScreen-CfSHLQ4p.js.map +0 -1
  550. package/dist/cjs/ConnectOrCreateScreen-DUjg-NhU.js +0 -2
  551. package/dist/cjs/ConnectOrCreateScreen-DUjg-NhU.js.map +0 -1
  552. package/dist/cjs/ConnectPhoneForm-Koct2o1C.js +0 -96
  553. package/dist/cjs/ConnectPhoneForm-Koct2o1C.js.map +0 -1
  554. package/dist/cjs/ConnectWalletView-CWNiebGE.js +0 -75
  555. package/dist/cjs/ConnectWalletView-CWNiebGE.js.map +0 -1
  556. package/dist/cjs/ConnectionStatusScreen-BzWD2UMt.js +0 -8
  557. package/dist/cjs/ConnectionStatusScreen-BzWD2UMt.js.map +0 -1
  558. package/dist/cjs/CrossAppAuthScreen-elJWOtxW.js +0 -2
  559. package/dist/cjs/CrossAppAuthScreen-elJWOtxW.js.map +0 -1
  560. package/dist/cjs/CustomLandingScreenView-CwRXQGmm.js +0 -24
  561. package/dist/cjs/CustomLandingScreenView-CwRXQGmm.js.map +0 -1
  562. package/dist/cjs/DelegatedActionsConsentScreen-BBo7SPMc.js +0 -2
  563. package/dist/cjs/DelegatedActionsConsentScreen-BBo7SPMc.js.map +0 -1
  564. package/dist/cjs/DelegatedActionsRevokeScreen-CfQuBLvt.js +0 -2
  565. package/dist/cjs/DelegatedActionsRevokeScreen-CfQuBLvt.js.map +0 -1
  566. package/dist/cjs/DepositAddressAddressStepView-CJ0i4qXq.js +0 -188
  567. package/dist/cjs/DepositAddressAddressStepView-CJ0i4qXq.js.map +0 -1
  568. package/dist/cjs/DepositAddressScreen-D6wVu86d.js +0 -9
  569. package/dist/cjs/DepositAddressScreen-D6wVu86d.js.map +0 -1
  570. package/dist/cjs/DepositAddressV3Screen-D26GYieC.js +0 -2
  571. package/dist/cjs/DepositAddressV3Screen-D26GYieC.js.map +0 -1
  572. package/dist/cjs/EmbeddedWalletConnectingScreen-CxwkhP9O.js +0 -2
  573. package/dist/cjs/EmbeddedWalletConnectingScreen-CxwkhP9O.js.map +0 -1
  574. package/dist/cjs/EmbeddedWalletCreatedScreen-J1_Qiwxh.js +0 -2
  575. package/dist/cjs/EmbeddedWalletCreatedScreen-J1_Qiwxh.js.map +0 -1
  576. package/dist/cjs/EmbeddedWalletKeyExportScreen-D-7Rfbbo.js +0 -25
  577. package/dist/cjs/EmbeddedWalletKeyExportScreen-D-7Rfbbo.js.map +0 -1
  578. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-DFZV5f9e.js +0 -2
  579. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-DFZV5f9e.js.map +0 -1
  580. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-C80WOEnX.js +0 -2
  581. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-C80WOEnX.js.map +0 -1
  582. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-DRX_F8Ba.js +0 -2
  583. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-DRX_F8Ba.js.map +0 -1
  584. package/dist/cjs/EnrollTotp-CybT_eFf.js +0 -64
  585. package/dist/cjs/EnrollTotp-CybT_eFf.js.map +0 -1
  586. package/dist/cjs/ErrorScreen-BE0K9ZIM.js +0 -5
  587. package/dist/cjs/ErrorScreen-BE0K9ZIM.js.map +0 -1
  588. package/dist/cjs/FarcasterConnectStatusScreen-GjxbvrEs.js +0 -77
  589. package/dist/cjs/FarcasterConnectStatusScreen-GjxbvrEs.js.map +0 -1
  590. package/dist/cjs/FarcasterSignerStatusScreen-ceuaqNxx.js +0 -30
  591. package/dist/cjs/FarcasterSignerStatusScreen-ceuaqNxx.js.map +0 -1
  592. package/dist/cjs/FiatOnrampScreen-B1xn74jc.js +0 -489
  593. package/dist/cjs/FiatOnrampScreen-B1xn74jc.js.map +0 -1
  594. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-DCS74z1J.js +0 -3
  595. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-DCS74z1J.js.map +0 -1
  596. package/dist/cjs/FundWalletMethodHeader-auaN4LLz.js +0 -2
  597. package/dist/cjs/FundWalletMethodHeader-auaN4LLz.js.map +0 -1
  598. package/dist/cjs/FundWithBankDepositScreen-Bt2HctBq.js +0 -59
  599. package/dist/cjs/FundWithBankDepositScreen-Bt2HctBq.js.map +0 -1
  600. package/dist/cjs/FundingEditAmountScreen-yG_JLJnD.js +0 -2
  601. package/dist/cjs/FundingEditAmountScreen-yG_JLJnD.js.map +0 -1
  602. package/dist/cjs/FundingMethodSelectionScreen-DxeH5eZ-.js +0 -2
  603. package/dist/cjs/FundingMethodSelectionScreen-DxeH5eZ-.js.map +0 -1
  604. package/dist/cjs/InAppBrowserLoginNotPossible-DxYVAfzn.js +0 -2
  605. package/dist/cjs/InAppBrowserLoginNotPossible-DxYVAfzn.js.map +0 -1
  606. package/dist/cjs/InstallWalletScreen-B4vfJAtC.js +0 -2
  607. package/dist/cjs/InstallWalletScreen-B4vfJAtC.js.map +0 -1
  608. package/dist/cjs/LandingScreen-6ZIWM6-r.js +0 -2
  609. package/dist/cjs/LandingScreen-6ZIWM6-r.js.map +0 -1
  610. package/dist/cjs/Link-CFvbHzAg.js +0 -41
  611. package/dist/cjs/Link-CFvbHzAg.js.map +0 -1
  612. package/dist/cjs/LinkConflictScreen-b9BK4qAs.js +0 -78
  613. package/dist/cjs/LinkConflictScreen-b9BK4qAs.js.map +0 -1
  614. package/dist/cjs/LinkEmailScreen-CJwBH1YS.js +0 -2
  615. package/dist/cjs/LinkEmailScreen-CJwBH1YS.js.map +0 -1
  616. package/dist/cjs/LinkPasskeyScreen-COzsF_uZ.js +0 -118
  617. package/dist/cjs/LinkPasskeyScreen-COzsF_uZ.js.map +0 -1
  618. package/dist/cjs/LinkPhoneScreen-DB9OkGGh.js +0 -2
  619. package/dist/cjs/LinkPhoneScreen-DB9OkGGh.js.map +0 -1
  620. package/dist/cjs/LoginFailedScreen-D1_eRTn_.js +0 -2
  621. package/dist/cjs/LoginFailedScreen-D1_eRTn_.js.map +0 -1
  622. package/dist/cjs/ManualTransferScreen-Cfd2Z2ZK.js +0 -2
  623. package/dist/cjs/ManualTransferScreen-Cfd2Z2ZK.js.map +0 -1
  624. package/dist/cjs/MfaAuthEnrollmentFlowScreen-BfglrNw6.js +0 -2
  625. package/dist/cjs/MfaAuthEnrollmentFlowScreen-BfglrNw6.js.map +0 -1
  626. package/dist/cjs/MfaAuthVerifyFlowScreen-Cy2uSxVK.js +0 -2
  627. package/dist/cjs/MfaAuthVerifyFlowScreen-Cy2uSxVK.js.map +0 -1
  628. package/dist/cjs/MfaEnrollmentFlowScreen-BKoqGB0q.js +0 -2
  629. package/dist/cjs/MfaEnrollmentFlowScreen-BKoqGB0q.js.map +0 -1
  630. package/dist/cjs/MfaVerifyFlowScreen-Dy-lUjte.js +0 -2
  631. package/dist/cjs/MfaVerifyFlowScreen-Dy-lUjte.js.map +0 -1
  632. package/dist/cjs/ModalFooter-DTgM_bBt.js +0 -40
  633. package/dist/cjs/ModalFooter-DTgM_bBt.js.map +0 -1
  634. package/dist/cjs/ModalHeader-CTGmQ0nB.js +0 -369
  635. package/dist/cjs/ModalHeader-CTGmQ0nB.js.map +0 -1
  636. package/dist/cjs/MoonpayStatusScreen-BkJHAMKG.js +0 -17
  637. package/dist/cjs/MoonpayStatusScreen-BkJHAMKG.js.map +0 -1
  638. package/dist/cjs/OAuthStatusScreen-C37Dvx7b.js +0 -2
  639. package/dist/cjs/OAuthStatusScreen-C37Dvx7b.js.map +0 -1
  640. package/dist/cjs/PasskeySelectSignupOrLogin-CPul1x4V.js +0 -2
  641. package/dist/cjs/PasskeySelectSignupOrLogin-CPul1x4V.js.map +0 -1
  642. package/dist/cjs/PasskeyStatusScreen-CGBC0OjG.js +0 -4
  643. package/dist/cjs/PasskeyStatusScreen-CGBC0OjG.js.map +0 -1
  644. package/dist/cjs/PasswordRecoveryScreen-BWg8IBn7.js +0 -21
  645. package/dist/cjs/PasswordRecoveryScreen-BWg8IBn7.js.map +0 -1
  646. package/dist/cjs/QrCode-qk1JohGZ.js +0 -17
  647. package/dist/cjs/QrCode-qk1JohGZ.js.map +0 -1
  648. package/dist/cjs/RecoveryOAuthStatusScreen-B9x9LBEi.js +0 -2
  649. package/dist/cjs/RecoveryOAuthStatusScreen-B9x9LBEi.js.map +0 -1
  650. package/dist/cjs/RecoveryPasswordCreateScreen-GQJb9Frq.js +0 -2
  651. package/dist/cjs/RecoveryPasswordCreateScreen-GQJb9Frq.js.map +0 -1
  652. package/dist/cjs/RecoverySelectionScreen-Cn5wCxWu.js +0 -8
  653. package/dist/cjs/RecoverySelectionScreen-Cn5wCxWu.js.map +0 -1
  654. package/dist/cjs/Screen-CoUo43GE.js +0 -184
  655. package/dist/cjs/Screen-CoUo43GE.js.map +0 -1
  656. package/dist/cjs/ScreenLayout-C152SnCD.js +0 -2
  657. package/dist/cjs/ScreenLayout-C152SnCD.js.map +0 -1
  658. package/dist/cjs/SelectSourceAsset-BqAb5LEC.js +0 -141
  659. package/dist/cjs/SelectSourceAsset-BqAb5LEC.js.map +0 -1
  660. package/dist/cjs/SetAutomaticRecoveryScreen-BiqW1dbL.js +0 -15
  661. package/dist/cjs/SetAutomaticRecoveryScreen-BiqW1dbL.js.map +0 -1
  662. package/dist/cjs/SetWalletPasswordForm-BskNok_j.js +0 -13
  663. package/dist/cjs/SetWalletPasswordForm-BskNok_j.js.map +0 -1
  664. package/dist/cjs/SignRequestScreen-CC3_yAaH.js +0 -27
  665. package/dist/cjs/SignRequestScreen-CC3_yAaH.js.map +0 -1
  666. package/dist/cjs/StandardSignAndSendTransactionScreen-CQiZvUZN.js +0 -21
  667. package/dist/cjs/StandardSignAndSendTransactionScreen-CQiZvUZN.js.map +0 -1
  668. package/dist/cjs/TelegramAuthScreen-BMQJb7Fj.js +0 -2
  669. package/dist/cjs/TelegramAuthScreen-BMQJb7Fj.js.map +0 -1
  670. package/dist/cjs/TransactionDetails-a0usVS0j.js +0 -112
  671. package/dist/cjs/TransactionDetails-a0usVS0j.js.map +0 -1
  672. package/dist/cjs/TransactionErrorView-sV2F3os7.js +0 -165
  673. package/dist/cjs/TransactionErrorView-sV2F3os7.js.map +0 -1
  674. package/dist/cjs/TransferFromWalletScreen-DvBjrpQo.js +0 -32
  675. package/dist/cjs/TransferFromWalletScreen-DvBjrpQo.js.map +0 -1
  676. package/dist/cjs/TransferOrBridgeLoadingScreen-DnNVuRZV.js +0 -7
  677. package/dist/cjs/TransferOrBridgeLoadingScreen-DnNVuRZV.js.map +0 -1
  678. package/dist/cjs/TurnstileWrapper-kHHIwzzS.js +0 -2
  679. package/dist/cjs/TurnstileWrapper-kHHIwzzS.js.map +0 -1
  680. package/dist/cjs/UpdateEmailScreen-2sCsmQjM.js +0 -2
  681. package/dist/cjs/UpdateEmailScreen-2sCsmQjM.js.map +0 -1
  682. package/dist/cjs/UpdatePhoneScreen-VuEDKpFN.js +0 -2
  683. package/dist/cjs/UpdatePhoneScreen-VuEDKpFN.js.map +0 -1
  684. package/dist/cjs/UserLimitReachedScreen-BUMMi09j.js +0 -2
  685. package/dist/cjs/UserLimitReachedScreen-BUMMi09j.js.map +0 -1
  686. package/dist/cjs/WalletInfoCard-CCXfqAzB.js +0 -30
  687. package/dist/cjs/WalletInfoCard-CCXfqAzB.js.map +0 -1
  688. package/dist/cjs/WalletInterstitialScreen-BI7YEr99.js +0 -2
  689. package/dist/cjs/WalletInterstitialScreen-BI7YEr99.js.map +0 -1
  690. package/dist/cjs/WalletOverflowButton--cKsBkdG.js +0 -2
  691. package/dist/cjs/WalletOverflowButton--cKsBkdG.js.map +0 -1
  692. package/dist/cjs/fetch-deposit-config-v3-BKkSddM7.js +0 -2
  693. package/dist/cjs/fetch-deposit-config-v3-BKkSddM7.js.map +0 -1
  694. package/dist/cjs/get-entropy-details-for-user-Bt2Lf6vi.js +0 -2
  695. package/dist/cjs/get-entropy-details-for-user-Bt2Lf6vi.js.map +0 -1
  696. package/dist/cjs/index-BJTQC3BK.js +0 -34
  697. package/dist/cjs/index-BJTQC3BK.js.map +0 -1
  698. package/dist/cjs/index-BODJF8gf.js +0 -2
  699. package/dist/cjs/index-BODJF8gf.js.map +0 -1
  700. package/dist/cjs/index-C1TO1sJg.js +0 -13
  701. package/dist/cjs/index-C1TO1sJg.js.map +0 -1
  702. package/dist/cjs/index-CKhGc4Uq.js +0 -2
  703. package/dist/cjs/index-CKhGc4Uq.js.map +0 -1
  704. package/dist/cjs/modal-context-CQwg_w-g.js +0 -2
  705. package/dist/cjs/modal-context-CQwg_w-g.js.map +0 -1
  706. package/dist/cjs/pkce-BpRoTb2Q.js +0 -2
  707. package/dist/cjs/pkce-BpRoTb2Q.js.map +0 -1
  708. package/dist/cjs/privy-context-jN1x5EqS.js +0 -2
  709. package/dist/cjs/privy-context-jN1x5EqS.js.map +0 -1
  710. package/dist/cjs/shared-aXaKNTIg.js +0 -194
  711. package/dist/cjs/shared-aXaKNTIg.js.map +0 -1
  712. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-Bk7Nrf9E.js +0 -2
  713. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-Bk7Nrf9E.js.map +0 -1
  714. package/dist/cjs/simulateTransaction-CLQKieCn.js +0 -2
  715. package/dist/cjs/simulateTransaction-CLQKieCn.js.map +0 -1
  716. package/dist/cjs/smart-wallets-CpUP1gah.js +0 -2
  717. package/dist/cjs/smart-wallets-CpUP1gah.js.map +0 -1
  718. package/dist/cjs/styles-B99gmSl3.js +0 -165
  719. package/dist/cjs/styles-B99gmSl3.js.map +0 -1
  720. package/dist/cjs/styles-BkhvoKkZ.js +0 -93
  721. package/dist/cjs/styles-BkhvoKkZ.js.map +0 -1
  722. package/dist/cjs/to-ui-error-D4FBS9k6.js +0 -5
  723. package/dist/cjs/to-ui-error-D4FBS9k6.js.map +0 -1
  724. package/dist/cjs/toViemAccount-pgiLYX4j.js +0 -2
  725. package/dist/cjs/toViemAccount-pgiLYX4j.js.map +0 -1
  726. package/dist/cjs/use-deposit-address-DUdsyXcI.js +0 -2
  727. package/dist/cjs/use-deposit-address-DUdsyXcI.js.map +0 -1
  728. package/dist/cjs/use-export-wallet-DkeBXq5w.js +0 -2
  729. package/dist/cjs/use-export-wallet-DkeBXq5w.js.map +0 -1
  730. package/dist/cjs/use-sign-with-user-signer-0cUXGhxq.js +0 -2
  731. package/dist/cjs/use-sign-with-user-signer-0cUXGhxq.js.map +0 -1
  732. package/dist/cjs/use-unlink-wallet-BcHzAIEZ.js +0 -2
  733. package/dist/cjs/use-unlink-wallet-BcHzAIEZ.js.map +0 -1
  734. package/dist/cjs/useActiveWallet-CDZ2_-YF.js +0 -124
  735. package/dist/cjs/useActiveWallet-CDZ2_-YF.js.map +0 -1
  736. package/dist/cjs/useGetTokenPrice-JdN--sxF.js +0 -2
  737. package/dist/cjs/useGetTokenPrice-JdN--sxF.js.map +0 -1
  738. package/dist/cjs/useI18n-SQOW2Fbg.js +0 -2
  739. package/dist/cjs/useI18n-SQOW2Fbg.js.map +0 -1
  740. package/dist/cjs/useSendTransaction-sR_u7rAb.js +0 -402
  741. package/dist/cjs/useSendTransaction-sR_u7rAb.js.map +0 -1
  742. package/dist/cjs/useWallets-B_g8ad52.js +0 -2
  743. package/dist/cjs/useWallets-B_g8ad52.js.map +0 -1
  744. package/dist/cjs/wallet-connect-1fWXL2K3.js +0 -2
  745. package/dist/cjs/wallet-connect-1fWXL2K3.js.map +0 -1
  746. package/dist/dts/events-context-CJtQdB4y.d.mts +0 -329
  747. package/dist/dts/events-context-CJtQdB4y.d.ts +0 -329
  748. package/dist/dts/toViemAccount-sGNd0tZx.d.mts +0 -27
  749. package/dist/dts/toViemAccount-sGNd0tZx.d.ts +0 -27
  750. package/dist/dts/types-DbuRjK23.d.mts +0 -2657
  751. package/dist/dts/types-DbuRjK23.d.ts +0 -2657
  752. package/dist/dts/use-deposit-address-OKmft6lg.d.mts +0 -76
  753. package/dist/dts/use-deposit-address-OKmft6lg.d.ts +0 -76
  754. package/dist/dts/useUpdateAccount-umZMBBfF.d.mts +0 -27
  755. package/dist/dts/useUpdateAccount-umZMBBfF.d.ts +0 -27
  756. package/dist/esm/AccountNotFoundScreen-D_2xxGhq.mjs +0 -2
  757. package/dist/esm/AccountNotFoundScreen-D_2xxGhq.mjs.map +0 -1
  758. package/dist/esm/AddFundsSelectionScreen-CngENswu.mjs +0 -32
  759. package/dist/esm/AddFundsSelectionScreen-CngENswu.mjs.map +0 -1
  760. package/dist/esm/Address-5LBjIuOa.mjs +0 -18
  761. package/dist/esm/Address-5LBjIuOa.mjs.map +0 -1
  762. package/dist/esm/AffirmativeConsentScreen-BZRPJ3vI.mjs +0 -7
  763. package/dist/esm/AffirmativeConsentScreen-BZRPJ3vI.mjs.map +0 -1
  764. package/dist/esm/AllowlistRejectionScreen-BGRXUCtg.mjs +0 -2
  765. package/dist/esm/AllowlistRejectionScreen-BGRXUCtg.mjs.map +0 -1
  766. package/dist/esm/AuthenticateWithWalletScreen-BmJXjPWw.mjs +0 -2
  767. package/dist/esm/AuthenticateWithWalletScreen-BmJXjPWw.mjs.map +0 -1
  768. package/dist/esm/AwaitingEvmToSolBridgingScreen-stAYkvLG.mjs +0 -3
  769. package/dist/esm/AwaitingEvmToSolBridgingScreen-stAYkvLG.mjs.map +0 -1
  770. package/dist/esm/AwaitingExternalEthereumTransferScreen-BamDKhnH.mjs +0 -3
  771. package/dist/esm/AwaitingExternalEthereumTransferScreen-BamDKhnH.mjs.map +0 -1
  772. package/dist/esm/AwaitingPasswordlessCodeScreen-WagpKIvx.mjs +0 -104
  773. package/dist/esm/AwaitingPasswordlessCodeScreen-WagpKIvx.mjs.map +0 -1
  774. package/dist/esm/AwaitingSolToEvmBridgingScreen-BtZNyrEP.mjs +0 -3
  775. package/dist/esm/AwaitingSolToEvmBridgingScreen-BtZNyrEP.mjs.map +0 -1
  776. package/dist/esm/BridgeNetworkSelectionView-C2i_bKsE.mjs +0 -69
  777. package/dist/esm/BridgeNetworkSelectionView-C2i_bKsE.mjs.map +0 -1
  778. package/dist/esm/CaptchaScreen-mMOla-Q2.mjs +0 -2
  779. package/dist/esm/CaptchaScreen-mMOla-Q2.mjs.map +0 -1
  780. package/dist/esm/CoinbaseOnrampStatusScreen-Be1JWEmW.mjs +0 -17
  781. package/dist/esm/CoinbaseOnrampStatusScreen-Be1JWEmW.mjs.map +0 -1
  782. package/dist/esm/ConnectEmailForm-uzZj0kQO.mjs +0 -4
  783. package/dist/esm/ConnectEmailForm-uzZj0kQO.mjs.map +0 -1
  784. package/dist/esm/ConnectLedgerScreen-BbD7zuM9.mjs +0 -10
  785. package/dist/esm/ConnectLedgerScreen-BbD7zuM9.mjs.map +0 -1
  786. package/dist/esm/ConnectOnlyLandingScreen-CiLN9fMQ.mjs +0 -2
  787. package/dist/esm/ConnectOnlyLandingScreen-CiLN9fMQ.mjs.map +0 -1
  788. package/dist/esm/ConnectOnlyStatusScreen-BD47hKp7.mjs +0 -2
  789. package/dist/esm/ConnectOnlyStatusScreen-BD47hKp7.mjs.map +0 -1
  790. package/dist/esm/ConnectOrCreateScreen-C-ol5NIJ.mjs +0 -2
  791. package/dist/esm/ConnectOrCreateScreen-C-ol5NIJ.mjs.map +0 -1
  792. package/dist/esm/ConnectPhoneForm-BAQCq2Yo.mjs +0 -96
  793. package/dist/esm/ConnectPhoneForm-BAQCq2Yo.mjs.map +0 -1
  794. package/dist/esm/ConnectWalletView-Db4jltJ6.mjs +0 -75
  795. package/dist/esm/ConnectWalletView-Db4jltJ6.mjs.map +0 -1
  796. package/dist/esm/ConnectionStatusScreen-QZy-fIKp.mjs +0 -8
  797. package/dist/esm/ConnectionStatusScreen-QZy-fIKp.mjs.map +0 -1
  798. package/dist/esm/CrossAppAuthScreen-irSfhAC7.mjs +0 -2
  799. package/dist/esm/CrossAppAuthScreen-irSfhAC7.mjs.map +0 -1
  800. package/dist/esm/CustomLandingScreenView-Bti_TR5R.mjs +0 -24
  801. package/dist/esm/CustomLandingScreenView-Bti_TR5R.mjs.map +0 -1
  802. package/dist/esm/DelegatedActionsConsentScreen-D0WSUn0A.mjs +0 -2
  803. package/dist/esm/DelegatedActionsConsentScreen-D0WSUn0A.mjs.map +0 -1
  804. package/dist/esm/DelegatedActionsRevokeScreen-Cg5J45mU.mjs +0 -2
  805. package/dist/esm/DelegatedActionsRevokeScreen-Cg5J45mU.mjs.map +0 -1
  806. package/dist/esm/DepositAddressAddressStepView-CYCIZfup.mjs +0 -188
  807. package/dist/esm/DepositAddressAddressStepView-CYCIZfup.mjs.map +0 -1
  808. package/dist/esm/DepositAddressScreen-BMg_SSZO.mjs +0 -9
  809. package/dist/esm/DepositAddressScreen-BMg_SSZO.mjs.map +0 -1
  810. package/dist/esm/DepositAddressV3Screen-rnfn1-GY.mjs +0 -2
  811. package/dist/esm/DepositAddressV3Screen-rnfn1-GY.mjs.map +0 -1
  812. package/dist/esm/EmbeddedWalletConnectingScreen-D9Luqffg.mjs +0 -2
  813. package/dist/esm/EmbeddedWalletConnectingScreen-D9Luqffg.mjs.map +0 -1
  814. package/dist/esm/EmbeddedWalletCreatedScreen-BtPW0Sbh.mjs +0 -2
  815. package/dist/esm/EmbeddedWalletCreatedScreen-BtPW0Sbh.mjs.map +0 -1
  816. package/dist/esm/EmbeddedWalletKeyExportScreen-DvmzcYGE.mjs +0 -25
  817. package/dist/esm/EmbeddedWalletKeyExportScreen-DvmzcYGE.mjs.map +0 -1
  818. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-BRn46jyw.mjs +0 -2
  819. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-BRn46jyw.mjs.map +0 -1
  820. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-DBdET1RS.mjs +0 -2
  821. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-DBdET1RS.mjs.map +0 -1
  822. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-skr3BBWd.mjs +0 -2
  823. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-skr3BBWd.mjs.map +0 -1
  824. package/dist/esm/EnrollTotp-Y0X023TU.mjs +0 -64
  825. package/dist/esm/EnrollTotp-Y0X023TU.mjs.map +0 -1
  826. package/dist/esm/ErrorScreen-ali3Nodt.mjs +0 -5
  827. package/dist/esm/ErrorScreen-ali3Nodt.mjs.map +0 -1
  828. package/dist/esm/FarcasterConnectStatusScreen-B4LfTFp2.mjs +0 -76
  829. package/dist/esm/FarcasterConnectStatusScreen-B4LfTFp2.mjs.map +0 -1
  830. package/dist/esm/FarcasterSignerStatusScreen-DYR2Dt0h.mjs +0 -29
  831. package/dist/esm/FarcasterSignerStatusScreen-DYR2Dt0h.mjs.map +0 -1
  832. package/dist/esm/FiatOnrampScreen-DN6hI7Mc.mjs +0 -489
  833. package/dist/esm/FiatOnrampScreen-DN6hI7Mc.mjs.map +0 -1
  834. package/dist/esm/FundSolWalletWithExternalSolanaWallet-C2_0OhSF.mjs +0 -2
  835. package/dist/esm/FundSolWalletWithExternalSolanaWallet-C2_0OhSF.mjs.map +0 -1
  836. package/dist/esm/FundWalletMethodHeader-Cvy_dGCT.mjs +0 -2
  837. package/dist/esm/FundWalletMethodHeader-Cvy_dGCT.mjs.map +0 -1
  838. package/dist/esm/FundWithBankDepositScreen-BCx-BfYQ.mjs +0 -59
  839. package/dist/esm/FundWithBankDepositScreen-BCx-BfYQ.mjs.map +0 -1
  840. package/dist/esm/FundingEditAmountScreen-B1Rwtoo8.mjs +0 -2
  841. package/dist/esm/FundingEditAmountScreen-B1Rwtoo8.mjs.map +0 -1
  842. package/dist/esm/FundingMethodSelectionScreen-4MQodP-g.mjs +0 -2
  843. package/dist/esm/FundingMethodSelectionScreen-4MQodP-g.mjs.map +0 -1
  844. package/dist/esm/InAppBrowserLoginNotPossible-8vWa4zMg.mjs +0 -2
  845. package/dist/esm/InAppBrowserLoginNotPossible-8vWa4zMg.mjs.map +0 -1
  846. package/dist/esm/InstallWalletScreen-HvfE-ua5.mjs +0 -2
  847. package/dist/esm/InstallWalletScreen-HvfE-ua5.mjs.map +0 -1
  848. package/dist/esm/LandingScreen-CFbQnfrn.mjs +0 -2
  849. package/dist/esm/LandingScreen-CFbQnfrn.mjs.map +0 -1
  850. package/dist/esm/Link-DTncR-24.mjs +0 -41
  851. package/dist/esm/Link-DTncR-24.mjs.map +0 -1
  852. package/dist/esm/LinkConflictScreen-_LxUGjW_.mjs +0 -78
  853. package/dist/esm/LinkConflictScreen-_LxUGjW_.mjs.map +0 -1
  854. package/dist/esm/LinkEmailScreen-ClCgdtI9.mjs +0 -2
  855. package/dist/esm/LinkEmailScreen-ClCgdtI9.mjs.map +0 -1
  856. package/dist/esm/LinkPasskeyScreen-BDbH74WG.mjs +0 -118
  857. package/dist/esm/LinkPasskeyScreen-BDbH74WG.mjs.map +0 -1
  858. package/dist/esm/LinkPhoneScreen-hMIw1kP7.mjs +0 -2
  859. package/dist/esm/LinkPhoneScreen-hMIw1kP7.mjs.map +0 -1
  860. package/dist/esm/LoginFailedScreen-D-7l8Hl1.mjs +0 -2
  861. package/dist/esm/LoginFailedScreen-D-7l8Hl1.mjs.map +0 -1
  862. package/dist/esm/ManualTransferScreen-BGBKh-0L.mjs +0 -2
  863. package/dist/esm/ManualTransferScreen-BGBKh-0L.mjs.map +0 -1
  864. package/dist/esm/MfaAuthEnrollmentFlowScreen-wOGkgs8h.mjs +0 -2
  865. package/dist/esm/MfaAuthEnrollmentFlowScreen-wOGkgs8h.mjs.map +0 -1
  866. package/dist/esm/MfaAuthVerifyFlowScreen-BX4W6MlF.mjs +0 -2
  867. package/dist/esm/MfaAuthVerifyFlowScreen-BX4W6MlF.mjs.map +0 -1
  868. package/dist/esm/MfaEnrollmentFlowScreen-Cqy7q71G.mjs +0 -2
  869. package/dist/esm/MfaEnrollmentFlowScreen-Cqy7q71G.mjs.map +0 -1
  870. package/dist/esm/MfaVerifyFlowScreen-Cg0gB4VH.mjs +0 -2
  871. package/dist/esm/MfaVerifyFlowScreen-Cg0gB4VH.mjs.map +0 -1
  872. package/dist/esm/ModalFooter-Dgk75taJ.mjs +0 -40
  873. package/dist/esm/ModalFooter-Dgk75taJ.mjs.map +0 -1
  874. package/dist/esm/ModalHeader-CLx9o4BQ.mjs +0 -369
  875. package/dist/esm/ModalHeader-CLx9o4BQ.mjs.map +0 -1
  876. package/dist/esm/MoonpayStatusScreen-DGKt3e4A.mjs +0 -17
  877. package/dist/esm/MoonpayStatusScreen-DGKt3e4A.mjs.map +0 -1
  878. package/dist/esm/OAuthStatusScreen-Cnnp8aSL.mjs +0 -2
  879. package/dist/esm/OAuthStatusScreen-Cnnp8aSL.mjs.map +0 -1
  880. package/dist/esm/PasskeySelectSignupOrLogin-xZdhaucf.mjs +0 -2
  881. package/dist/esm/PasskeySelectSignupOrLogin-xZdhaucf.mjs.map +0 -1
  882. package/dist/esm/PasskeyStatusScreen-Cdk7UfMT.mjs +0 -4
  883. package/dist/esm/PasskeyStatusScreen-Cdk7UfMT.mjs.map +0 -1
  884. package/dist/esm/PasswordRecoveryScreen-DW0NAhXi.mjs +0 -21
  885. package/dist/esm/PasswordRecoveryScreen-DW0NAhXi.mjs.map +0 -1
  886. package/dist/esm/QrCode-BCA-TcDO.mjs +0 -17
  887. package/dist/esm/QrCode-BCA-TcDO.mjs.map +0 -1
  888. package/dist/esm/RecoveryOAuthStatusScreen-CtjtU0S7.mjs +0 -2
  889. package/dist/esm/RecoveryOAuthStatusScreen-CtjtU0S7.mjs.map +0 -1
  890. package/dist/esm/RecoveryPasswordCreateScreen-BCMvgQz5.mjs +0 -2
  891. package/dist/esm/RecoveryPasswordCreateScreen-BCMvgQz5.mjs.map +0 -1
  892. package/dist/esm/RecoverySelectionScreen-Br6mGHUF.mjs +0 -8
  893. package/dist/esm/RecoverySelectionScreen-Br6mGHUF.mjs.map +0 -1
  894. package/dist/esm/Screen-u_C2Hkch.mjs +0 -183
  895. package/dist/esm/Screen-u_C2Hkch.mjs.map +0 -1
  896. package/dist/esm/ScreenLayout-BAaQVxl-.mjs +0 -2
  897. package/dist/esm/ScreenLayout-BAaQVxl-.mjs.map +0 -1
  898. package/dist/esm/SelectSourceAsset-DYshx4xb.mjs +0 -141
  899. package/dist/esm/SelectSourceAsset-DYshx4xb.mjs.map +0 -1
  900. package/dist/esm/SetAutomaticRecoveryScreen-C84QEYKv.mjs +0 -15
  901. package/dist/esm/SetAutomaticRecoveryScreen-C84QEYKv.mjs.map +0 -1
  902. package/dist/esm/SetWalletPasswordForm-DnigDFR8.mjs +0 -13
  903. package/dist/esm/SetWalletPasswordForm-DnigDFR8.mjs.map +0 -1
  904. package/dist/esm/SignRequestScreen-CTE6JCXf.mjs +0 -27
  905. package/dist/esm/SignRequestScreen-CTE6JCXf.mjs.map +0 -1
  906. package/dist/esm/StandardSignAndSendTransactionScreen-gKsPm6Yk.mjs +0 -21
  907. package/dist/esm/StandardSignAndSendTransactionScreen-gKsPm6Yk.mjs.map +0 -1
  908. package/dist/esm/TelegramAuthScreen-BWcrvCk7.mjs +0 -2
  909. package/dist/esm/TelegramAuthScreen-BWcrvCk7.mjs.map +0 -1
  910. package/dist/esm/TransactionDetails-Cmos84f8.mjs +0 -112
  911. package/dist/esm/TransactionDetails-Cmos84f8.mjs.map +0 -1
  912. package/dist/esm/TransactionErrorView-BaJe79cN.mjs +0 -165
  913. package/dist/esm/TransactionErrorView-BaJe79cN.mjs.map +0 -1
  914. package/dist/esm/TransferFromWalletScreen-D2Ye9CWh.mjs +0 -32
  915. package/dist/esm/TransferFromWalletScreen-D2Ye9CWh.mjs.map +0 -1
  916. package/dist/esm/TransferOrBridgeLoadingScreen-C0ncuDnR.mjs +0 -7
  917. package/dist/esm/TransferOrBridgeLoadingScreen-C0ncuDnR.mjs.map +0 -1
  918. package/dist/esm/TurnstileWrapper-DbKnpWmQ.mjs +0 -2
  919. package/dist/esm/TurnstileWrapper-DbKnpWmQ.mjs.map +0 -1
  920. package/dist/esm/UpdateEmailScreen-CjPSj2jh.mjs +0 -2
  921. package/dist/esm/UpdateEmailScreen-CjPSj2jh.mjs.map +0 -1
  922. package/dist/esm/UpdatePhoneScreen-C8e2pYC6.mjs +0 -2
  923. package/dist/esm/UpdatePhoneScreen-C8e2pYC6.mjs.map +0 -1
  924. package/dist/esm/UserLimitReachedScreen-CmMzD1QK.mjs +0 -2
  925. package/dist/esm/UserLimitReachedScreen-CmMzD1QK.mjs.map +0 -1
  926. package/dist/esm/WalletInfoCard-BP194s6l.mjs +0 -30
  927. package/dist/esm/WalletInfoCard-BP194s6l.mjs.map +0 -1
  928. package/dist/esm/WalletInterstitialScreen-qWD4Kz2Z.mjs +0 -2
  929. package/dist/esm/WalletInterstitialScreen-qWD4Kz2Z.mjs.map +0 -1
  930. package/dist/esm/WalletOverflowButton-EqrtrK27.mjs +0 -2
  931. package/dist/esm/WalletOverflowButton-EqrtrK27.mjs.map +0 -1
  932. package/dist/esm/fetch-deposit-config-v3-BfmcE7Uy.mjs +0 -2
  933. package/dist/esm/fetch-deposit-config-v3-BfmcE7Uy.mjs.map +0 -1
  934. package/dist/esm/get-entropy-details-for-user-D71Gb3Yn.mjs +0 -2
  935. package/dist/esm/get-entropy-details-for-user-D71Gb3Yn.mjs.map +0 -1
  936. package/dist/esm/index-7SmfRjhM.mjs +0 -2
  937. package/dist/esm/index-7SmfRjhM.mjs.map +0 -1
  938. package/dist/esm/index-DUOcURUB.mjs +0 -2
  939. package/dist/esm/index-DUOcURUB.mjs.map +0 -1
  940. package/dist/esm/index-chCfgCOo.mjs +0 -13
  941. package/dist/esm/index-chCfgCOo.mjs.map +0 -1
  942. package/dist/esm/index-nRwC4QtN.mjs +0 -34
  943. package/dist/esm/index-nRwC4QtN.mjs.map +0 -1
  944. package/dist/esm/modal-context-CHccLywy.mjs +0 -2
  945. package/dist/esm/modal-context-CHccLywy.mjs.map +0 -1
  946. package/dist/esm/pkce-GoxUc-qw.mjs +0 -2
  947. package/dist/esm/pkce-GoxUc-qw.mjs.map +0 -1
  948. package/dist/esm/privy-context-Dyl6Kp32.mjs +0 -2
  949. package/dist/esm/privy-context-Dyl6Kp32.mjs.map +0 -1
  950. package/dist/esm/shared-BgKGC1Tq.mjs +0 -194
  951. package/dist/esm/shared-BgKGC1Tq.mjs.map +0 -1
  952. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-CmGe8RE2.mjs +0 -2
  953. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-CmGe8RE2.mjs.map +0 -1
  954. package/dist/esm/simulateTransaction-SE-yJRb4.mjs +0 -2
  955. package/dist/esm/simulateTransaction-SE-yJRb4.mjs.map +0 -1
  956. package/dist/esm/smart-wallets-5SldkLa-.mjs +0 -2
  957. package/dist/esm/smart-wallets-5SldkLa-.mjs.map +0 -1
  958. package/dist/esm/styles-D-SJ-QmO.mjs +0 -165
  959. package/dist/esm/styles-D-SJ-QmO.mjs.map +0 -1
  960. package/dist/esm/styles-SApnC3Gb.mjs +0 -93
  961. package/dist/esm/styles-SApnC3Gb.mjs.map +0 -1
  962. package/dist/esm/to-ui-error-B4HG-iy8.mjs +0 -5
  963. package/dist/esm/to-ui-error-B4HG-iy8.mjs.map +0 -1
  964. package/dist/esm/toViemAccount-CIahZQpW.mjs +0 -2
  965. package/dist/esm/toViemAccount-CIahZQpW.mjs.map +0 -1
  966. package/dist/esm/use-deposit-address-CyCh8k3d.mjs +0 -2
  967. package/dist/esm/use-deposit-address-CyCh8k3d.mjs.map +0 -1
  968. package/dist/esm/use-export-wallet-D8Q_FiTj.mjs +0 -2
  969. package/dist/esm/use-export-wallet-D8Q_FiTj.mjs.map +0 -1
  970. package/dist/esm/use-sign-with-user-signer-D2Ts1pzx.mjs +0 -2
  971. package/dist/esm/use-sign-with-user-signer-D2Ts1pzx.mjs.map +0 -1
  972. package/dist/esm/use-unlink-wallet-CDRQw4pM.mjs +0 -2
  973. package/dist/esm/use-unlink-wallet-CDRQw4pM.mjs.map +0 -1
  974. package/dist/esm/useActiveWallet-CraIKE1B.mjs +0 -124
  975. package/dist/esm/useActiveWallet-CraIKE1B.mjs.map +0 -1
  976. package/dist/esm/useGetTokenPrice-DRP-TqN8.mjs +0 -2
  977. package/dist/esm/useGetTokenPrice-DRP-TqN8.mjs.map +0 -1
  978. package/dist/esm/useI18n-BUmmeeEq.mjs +0 -2
  979. package/dist/esm/useI18n-BUmmeeEq.mjs.map +0 -1
  980. package/dist/esm/useSendTransaction-D0K4YdPS.mjs +0 -402
  981. package/dist/esm/useSendTransaction-D0K4YdPS.mjs.map +0 -1
  982. package/dist/esm/useWallets-BqNikGAM.mjs +0 -2
  983. package/dist/esm/useWallets-BqNikGAM.mjs.map +0 -1
  984. package/dist/esm/wallet-connect-BEyk3i-s.mjs +0 -2
  985. package/dist/esm/wallet-connect-BEyk3i-s.mjs.map +0 -1
@@ -1,2657 +0,0 @@
1
- import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';
2
- import { PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/browser';
3
- import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
4
- import { ReactElement, ReactNode } from 'react';
5
- import { Hex } from 'viem';
6
- import { SignatureOptions, CustomOAuthProviderID, OAuthProviderID, WalletChainType, SmartWalletType, User as User$1, AppResponse, PasskeyAuthenticateInput, OnrampProvider } from '@privy-io/api-types';
7
- import { ConnectedStandardSolanaWallet, CountryCode, DataSuffixPlugin, Chain, CookieWriteBehavior, ChainLikeWithId, RpcConfig } from '@privy-io/js-sdk-core';
8
- import { createBaseAccountSDK } from '@base-org/account';
9
- import { E as EIP1193Provider } from './privyProxyProvider-JBV6XRYP.js';
10
- import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
11
- import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
12
- import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
13
- import { StrictUnsignedTempoTransactionRequest } from '@privy-io/ethereum';
14
- import EventEmitter from 'eventemitter3';
15
-
16
- /**
17
- * Internationalization strings for Privy UI components.
18
- *
19
- * Keys follow the pattern: `component.semanticDescription`
20
- */
21
- type PrivyI18nStrings = {
22
- 'connectionStatus.successfullyConnected': string;
23
- 'connectionStatus.errorTitle': string;
24
- 'connectionStatus.connecting': string;
25
- 'connectionStatus.connectOneWallet': string;
26
- 'connectionStatus.checkOtherWindows': string;
27
- 'connectionStatus.stillHere': string;
28
- 'connectionStatus.tryConnectingAgain': string;
29
- 'connectionStatus.or': string;
30
- 'connectionStatus.useDifferentLink': string;
31
- 'coinbaseWallet.connectingSubtitle': string;
32
- 'coinbaseWallet.connectingSubtitleReset': string;
33
- 'coinbaseWallet.successSubtitle': string;
34
- 'connectWallet.connectYourWallet': string;
35
- 'connectWallet.waitingForWallet': string;
36
- 'connectWallet.connectToAccount': string;
37
- 'connectWallet.installAndConnect': string;
38
- 'connectWallet.tryConnectingAgain': string;
39
- 'connectWallet.openInApp': string;
40
- 'connectWallet.copyLink': string;
41
- 'connectWallet.retry': string;
42
- 'connectWallet.searchPlaceholder': string;
43
- 'connectWallet.noWalletsFound': string;
44
- 'connectWallet.lastUsed': string;
45
- 'connectWallet.selectYourWallet': string;
46
- 'connectWallet.selectNetwork': string;
47
- 'connectWallet.goToWallet': string;
48
- 'connectWallet.scanToConnect': string;
49
- 'connectWallet.openOrInstall': string;
50
- 'cardTransactionList.scrollRegionLabel': string;
51
- 'cardTransactionList.noTransactionsFound': string;
52
- 'cardTransactionList.tryAgain': string;
53
- 'cardTransactionList.badgeCredit': string;
54
- 'cardTransactionList.badgePending': string;
55
- 'cardTransactionList.badgeDeclined': string;
56
- 'cardTransactionList.badgeExpired': string;
57
- 'cardTransactionList.badgeReversed': string;
58
- 'cardDetailsView.cardholderLabel': string;
59
- 'cardDetailsView.validThruLabel': string;
60
- 'cardDetailsView.showDetails': string;
61
- 'cardDetailsView.hideDetails': string;
62
- 'cardDetailsView.pin': string;
63
- 'cardDetailsView.replace': string;
64
- 'cardDetailsView.cancel': string;
65
- 'cardDetailsView.freezeTitle': string;
66
- 'cardDetailsView.freezeSubtitle': string;
67
- 'cardDetailsView.addToWalletTitle': string;
68
- 'cardDetailsView.addToWalletSubtitle': string;
69
- 'cardDetailsView.freezeConfirmTitle': string;
70
- 'cardDetailsView.freezeConfirmDescription': string;
71
- 'cardDetailsView.freezeConfirmCta': string;
72
- 'cardDetailsView.unfreezeConfirmTitle': string;
73
- 'cardDetailsView.unfreezeConfirmDescription': string;
74
- 'cardDetailsView.unfreezeConfirmCta': string;
75
- 'cardDetailsView.cancelConfirmTitle': string;
76
- 'cardDetailsView.cancelConfirmDescription': string;
77
- 'cardDetailsView.cancelConfirmCta': string;
78
- 'cardDetailsView.replaceReasonTitle': string;
79
- 'cardDetailsView.replaceReasonCta': string;
80
- 'cardDetailsView.replaceReasonLost': string;
81
- 'cardDetailsView.replaceReasonStolen': string;
82
- 'cardDetailsView.replaceReasonExpired': string;
83
- 'cardDetailsView.replaceWarnTitle': string;
84
- 'cardDetailsView.replaceWarnDescription': string;
85
- 'cardDetailsView.replaceWarnCta': string;
86
- 'cardDetailsView.dialogDismiss': string;
87
- 'cardDetailsView.dialogBack': string;
88
- 'cardPinDialog.title': string;
89
- 'cardPinDialog.description': string;
90
- 'cardPinDialog.changePin': string;
91
- 'cardPinDialog.close': string;
92
- 'cardPinDialog.cancel': string;
93
- 'cardPinDialog.save': string;
94
- 'cardPinDialog.placeholder': string;
95
- 'cardPinDialog.emptyError': string;
96
- 'cardPinDialog.saveError': string;
97
- 'cardPinDialog.loadError': string;
98
- 'cardPinDialog.pinLabel': string;
99
- 'cardDetailsReveal.cardNumberLabel': string;
100
- 'cardDetailsReveal.expirationLabel': string;
101
- 'cardDetailsReveal.cvcLabel': string;
102
- 'cardDetailsReveal.copyValue': string;
103
- 'cardDetailsReveal.error': string;
104
- 'transactionDetailsView.summarySubheader': string;
105
- 'transactionDetailsView.summarySubheaderFallback': string;
106
- 'transactionDetailsView.detailsHeader': string;
107
- 'transactionDetailsView.disputeCta': string;
108
- 'transactionDetailsView.cardEndingIn': string;
109
- 'transactionDetailsView.amountLabel': string;
110
- 'transactionDetailsView.atmFeeLabel': string;
111
- 'transactionDetailsView.cashbackLabel': string;
112
- 'transactionDetailsView.statusLabel': string;
113
- 'transactionDetailsView.disputeLabel': string;
114
- 'transactionDetailsView.merchantLabel': string;
115
- 'transactionDetailsView.currencyLabel': string;
116
- 'transactionDetailsView.fromLabel': string;
117
- 'transactionDetailsView.dateLabel': string;
118
- 'transactionDetailsView.statusPending': string;
119
- 'transactionDetailsView.statusPosted': string;
120
- 'transactionDetailsView.statusDeclined': string;
121
- 'transactionDetailsView.statusExpired': string;
122
- 'transactionDetailsView.statusReversed': string;
123
- 'transactionDetailsView.disputeNone': string;
124
- 'transactionDetailsView.disputeExpired': string;
125
- 'transactionDetailsView.disputeLost': string;
126
- 'transactionDetailsView.disputeSubmitted': string;
127
- 'transactionDetailsView.disputeUnsubmitted': string;
128
- 'transactionDetailsView.disputeWon': string;
129
- 'transactionDetailsView.disputeDialogTitle': string;
130
- 'transactionDetailsView.disputeDialogBody': string;
131
- 'transactionDetailsView.disputeDoneCta': string;
132
- 'cardSummaryView.walletHeading': string;
133
- 'cardSummaryView.cardHeading': string;
134
- 'cardSummaryView.transactionsHeading': string;
135
- 'cardSummaryView.unknownMerchant': string;
136
- 'cardSummaryView.balanceUnavailable': string;
137
- 'cardSummaryView.currentBalance': string;
138
- 'cardSummaryView.cardTitle': string;
139
- 'cardSummaryView.cardTitleFallback': string;
140
- 'cardSummaryView.cardLoadError': string;
141
- 'cardSummaryView.transactionsLoadError': string;
142
- 'cardSummaryView.freezeError': string;
143
- 'cardSummaryView.cancelError': string;
144
- 'cardSummaryView.replaceError': string;
145
- 'cardSummaryView.walletProvisioningError': string;
146
- 'cardSummaryView.walletProvisioningSuccess': string;
147
- 'cardSummaryView.cardCanceledBanner': string;
148
- 'cardSummaryView.cardFrozenBanner': string;
149
- 'cardSummaryView.sandboxBanner': string;
150
- 'cardSummaryView.back': string;
151
- 'cardSummaryView.close': string;
152
- 'cardStatementDownload.buttonLabel': string;
153
- 'cardStatementDownload.tooltip': string;
154
- 'cardStatementDownload.confirmTitle': string;
155
- 'cardStatementDownload.confirmDescription': string;
156
- 'cardStatementDownload.confirmCta': string;
157
- 'cardStatementDownload.cancelCta': string;
158
- 'cardStatementDownload.error': string;
159
- 'cardStatementDownload.notAvailable': string;
160
- 'cardStatementDownload.empty': string;
161
- 'signUpForCardView.sandboxBanner': string;
162
- 'signUpForCardView.title': string;
163
- 'signUpForCardView.titleFallback': string;
164
- 'signUpForCardView.subtitle': string;
165
- 'signUpForCardView.subtitleFallback': string;
166
- 'signUpForCardView.checklistAgreements': string;
167
- 'signUpForCardView.checklistInformation': string;
168
- 'signUpForCardView.checklistIdentity': string;
169
- 'signUpForCardView.getStartedCta': string;
170
- 'signUpForCardView.workingCta': string;
171
- 'signUpForCardView.termsPromptTitle': string;
172
- 'signUpForCardView.disclosurePromptTitle': string;
173
- 'signUpForCardView.disclosurePromptSubtitle': string;
174
- 'signUpForCardView.disclosureStatementLabel': string;
175
- 'signUpForCardView.acceptingDisclosureTitle': string;
176
- 'signUpForCardView.acceptingDisclosureSubtitle': string;
177
- 'signUpForCardView.bankTermsPromptProviders': string;
178
- 'signUpForCardView.bankTermsPromptProvidersFallback': string;
179
- 'signUpForCardView.bankTermsPromptAgreements': string;
180
- 'signUpForCardView.bankTermsAnd': string;
181
- 'signUpForCardView.acceptingBankTermsTitle': string;
182
- 'signUpForCardView.acceptingBankTermsSubtitle': string;
183
- 'signUpForCardView.providerTermsPromptTitle': string;
184
- 'signUpForCardView.providerTermsPromptSubtitle': string;
185
- 'signUpForCardView.acceptingProviderTermsTitle': string;
186
- 'signUpForCardView.acceptingProviderTermsSubtitle': string;
187
- 'signUpForCardView.acceptAndContinueCta': string;
188
- 'signUpForCardView.kycPromptTitle': string;
189
- 'signUpForCardView.kycPromptSubtitle': string;
190
- 'signUpForCardView.verifyIdentityCta': string;
191
- 'signUpForCardView.verifyingIdentityTitle': string;
192
- 'signUpForCardView.verifyingIdentitySubtitle': string;
193
- 'signUpForCardView.pendingTitle': string;
194
- 'signUpForCardView.pendingSubtitle': string;
195
- 'signUpForCardView.underReviewTitle': string;
196
- 'signUpForCardView.underReviewSubtitle': string;
197
- 'signUpForCardView.creatingCardTitle': string;
198
- 'signUpForCardView.creatingCardSubtitle': string;
199
- 'signUpForCardView.approvePromptTitle': string;
200
- 'signUpForCardView.approvePromptSubtitle': string;
201
- 'signUpForCardView.approvePromptWhat': string;
202
- 'signUpForCardView.approvePromptItemConnect': string;
203
- 'signUpForCardView.approvePromptItemPurchases': string;
204
- 'signUpForCardView.approvePromptItemLimits': string;
205
- 'signUpForCardView.approveAndContinueCta': string;
206
- 'signUpForCardView.approveErrorTitle': string;
207
- 'signUpForCardView.approveErrorSubtitle': string;
208
- 'signUpForCardView.readyTitle': string;
209
- 'signUpForCardView.readySubtitle': string;
210
- 'signUpForCardView.continueCta': string;
211
- 'signUpForCardView.doneCta': string;
212
- 'signUpForCardView.rejectedTitle': string;
213
- 'signUpForCardView.rejectedSubtitle': string;
214
- 'signUpForCardView.errorTitle': string;
215
- 'signUpForCardView.errorSubtitle': string;
216
- 'signUpForCardView.tryAgainCta': string;
217
- };
218
-
219
- interface ConnectorEvents {
220
- walletsUpdated(): void;
221
- initialized(): void;
222
- }
223
- /**
224
- * @hidden
225
- *
226
- * A WalletConnector is identified by a connectorType and walletClientType. A
227
- * connectorType includes injected, wallet_connect, etc. A walletClientType
228
- * includes metamask, trustwallet, etc.
229
- *
230
- * Each WalletConnector manages a list of wallets, identified by an address
231
- * and chainId. Each wallet has a connected property indicating its current
232
- * connection status, which is determined based on events emitted by the
233
- * underlying provider.
234
- *
235
- * The WalletConnector also emits two events: walletsUpdated and initialized.
236
- * The walletsUpdated event is triggered when the list of wallets changes,
237
- * while the initialized event is triggered when the WalletConnector is
238
- * ready and has successfully executed the syncAccounts() function for
239
- * the first time.
240
- */
241
- declare abstract class WalletConnector extends EventEmitter<ConnectorEvents> {
242
- connected: boolean;
243
- initialized: boolean;
244
- walletClientType: WalletClientType;
245
- abstract wallets: (BaseConnectedEthereumWallet | BaseConnectedSolanaWallet)[];
246
- abstract chainType: 'ethereum' | 'solana';
247
- abstract connectorType: ConnectorType;
248
- constructor(walletClientType: WalletClientType);
249
- abstract isConnected(): Promise<boolean>;
250
- abstract subscribeListeners(): void;
251
- abstract unsubscribeListeners(): void;
252
- abstract get walletBranding(): WalletBranding;
253
- abstract initialize(): Promise<void>;
254
- abstract connect(options: {
255
- showPrompt?: boolean;
256
- chainId?: number;
257
- }): Promise<BaseConnectedWallet | null>;
258
- abstract disconnect(): void;
259
- abstract promptConnection(walletClientType: WalletClientType): void;
260
- }
261
-
262
- /**
263
- * We support a subset of the provider methods found here:
264
- *
265
- * https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
266
- *
267
- * For now, we're focused on signing-related methods because the iframe (this code)
268
- * is the only place that has access to the private key and thus is the only one
269
- * who can create signatures. All other methods do not need the private key and
270
- * can therefore be implemented by clients of the iframe.
271
- */
272
-
273
- declare const SUPPORTED_ETHEREUM_RPC_METHODS: readonly ["eth_sign", "eth_populateTransactionRequest", "eth_signTransaction", "personal_sign", "eth_signTypedData_v4", "csw_signUserOperation", "secp256k1_sign"];
274
- type EthereumRpcMethodType = (typeof SUPPORTED_ETHEREUM_RPC_METHODS)[number];
275
- declare const SUPPORTED_SOLANA_RPC_METHODS: string[];
276
- type SolanaRpcMethodType = (typeof SUPPORTED_SOLANA_RPC_METHODS)[number];
277
- type Quantity = string | number | bigint;
278
- type UnsignedTransactionRequest = {
279
- from?: string;
280
- to?: string;
281
- nonce?: Quantity;
282
- gasLimit?: Quantity;
283
- gasPrice?: Quantity;
284
- data?: ArrayLike<number> | string;
285
- value?: Quantity;
286
- chainId?: number;
287
- type?: number;
288
- accessList?: Array<{
289
- address: string;
290
- storageKeys: Array<string>;
291
- }> | Array<[string, Array<string>]> | Record<string, Array<string>>;
292
- maxPriorityFeePerGas?: Quantity;
293
- maxFeePerGas?: Quantity;
294
- };
295
- type TransactionLog = {
296
- blockNumber: number;
297
- blockHash: string;
298
- transactionIndex: number;
299
- removed: boolean;
300
- address: string;
301
- data: string;
302
- topics: Array<string>;
303
- transactionHash: string;
304
- logIndex: number;
305
- };
306
- type TransactionReceipt = {
307
- to: string;
308
- from: string;
309
- contractAddress: string;
310
- transactionIndex: number;
311
- root?: string;
312
- logs: Array<TransactionLog>;
313
- logsBloom: string;
314
- blockHash: string;
315
- transactionHash: string;
316
- blockNumber: number;
317
- confirmations: number;
318
- byzantium: boolean;
319
- type: number;
320
- status?: number;
321
- gasUsed: string;
322
- cumulativeGasUsed: string;
323
- effectiveGasPrice?: string;
324
- };
325
- interface BaseEthereumRpcRequestType {
326
- method: EthereumRpcMethodType;
327
- }
328
- interface BaseSolanaRpcRequestType {
329
- method: SolanaRpcMethodType;
330
- }
331
- interface eth_populateTransactionRequest extends BaseEthereumRpcRequestType {
332
- method: 'eth_populateTransactionRequest';
333
- params: [UnsignedTransactionRequest];
334
- }
335
- interface eth_populateTransactionRequestResponse {
336
- method: 'eth_populateTransactionRequest';
337
- data: UnsignedTransactionRequest;
338
- }
339
- interface eth_signTransaction extends BaseEthereumRpcRequestType {
340
- method: 'eth_signTransaction';
341
- params: [UnsignedTransactionRequest | StrictUnsignedTempoTransactionRequest];
342
- }
343
- interface eth_sign extends BaseEthereumRpcRequestType {
344
- method: 'eth_sign';
345
- params: [address: string, message: string];
346
- }
347
- interface eth_signResponse {
348
- method: 'eth_sign';
349
- data: string;
350
- }
351
- interface personal_sign extends BaseEthereumRpcRequestType {
352
- method: 'personal_sign';
353
- params: [string, string];
354
- }
355
- interface personal_signResponse {
356
- method: 'personal_sign';
357
- data: string;
358
- }
359
- interface eth_signTransactionResponse {
360
- method: 'eth_signTransaction';
361
- data: string;
362
- }
363
- interface eth_signTypedData_v4 extends BaseEthereumRpcRequestType {
364
- method: 'eth_signTypedData_v4';
365
- params: [string, TypedMessage<MessageTypes> | string];
366
- signatureOptions?: SignatureOptions;
367
- caip2?: string;
368
- }
369
- interface eth_signTypedData_v4Response {
370
- method: 'eth_signTypedData_v4';
371
- data: string;
372
- }
373
- interface secp256k1_sign extends BaseEthereumRpcRequestType {
374
- method: 'secp256k1_sign';
375
- params: [`0x${string}`];
376
- }
377
- interface secp256k1_signResponse {
378
- method: 'secp256k1_sign';
379
- data: `0x${string}`;
380
- }
381
- interface solana_signMessage extends BaseSolanaRpcRequestType {
382
- method: 'signMessage';
383
- params: {
384
- message: string;
385
- };
386
- }
387
- interface solana_signMessageResponse {
388
- method: 'signMessage';
389
- data: {
390
- signature: string;
391
- };
392
- }
393
- type EthereumRpcRequestType = eth_signTransaction | eth_populateTransactionRequest | eth_sign | personal_sign | eth_signTypedData_v4 | secp256k1_sign;
394
- type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransactionRequestResponse | eth_signResponse | personal_signResponse | eth_signTypedData_v4Response | secp256k1_signResponse;
395
- type SolanaRpcRequestType = solana_signMessage;
396
- type SolanaRpcResponseType = solana_signMessageResponse;
397
-
398
- type BaseAccountSdkCreateParams = Parameters<typeof createBaseAccountSDK>[0];
399
- type BaseAccountSdkType = ReturnType<typeof createBaseAccountSDK>;
400
- type SetBaseAccountSdkType = (sdk: BaseAccountSdkType | undefined) => void;
401
-
402
- /**
403
- * Type of all Solana chains supported by Privy.
404
- */
405
- type SolanaChain = (typeof SOLANA_CHAINS)[number];
406
- /**
407
- * Helper type for defining a Standard Wallet with a union of Solana features.
408
- */
409
- type SolanaStandardWallet = WalletWithFeatures<{
410
- 'standard:connect'?: StandardConnectFeature['standard:connect'];
411
- 'standard:disconnect'?: StandardDisconnectFeature['standard:disconnect'];
412
- 'standard:events'?: StandardEventsFeature['standard:events'];
413
- 'solana:signMessage'?: SolanaSignMessageFeature['solana:signMessage'];
414
- 'solana:signTransaction'?: SolanaSignTransactionFeature['solana:signTransaction'];
415
- 'solana:signAndSendTransaction'?: SolanaSignAndSendTransactionFeature['solana:signAndSendTransaction'];
416
- 'solana:signIn'?: SolanaSignInFeature['solana:signIn'];
417
- }>;
418
-
419
- /**
420
- * Represents a connection with a single Solana wallet provider. Manages wallet state
421
- * including ongoing connection status, and exposes methods for connecting and disconnecting.
422
- */
423
- declare class SolanaWalletConnector extends WalletConnector {
424
- chainType: "solana";
425
- connectorType: string;
426
- wallets: BaseConnectedSolanaWallet[];
427
- private _wallet;
428
- private autoConnectEnabled;
429
- private _unsubscribeListeners;
430
- constructor(wallet: Wallet$1, autoConnectEnabled: boolean);
431
- get isInstalled(): boolean;
432
- get wallet(): SolanaStandardWallet;
433
- /**
434
- * Builds a connected wallet object to be exposed to the developer. This object
435
- * contains the address and a few helper methods.
436
- *
437
- * Provider methods share the PrivyProxyProvider instance. This means that multiple
438
- * wallets may share the same provider if one wallet was disconnected and another
439
- * wallet was connected.
440
- *
441
- * A wallet is considered connected if it is present in the wallets array and is
442
- * in a connected state.
443
- *
444
- * @hidden
445
- */
446
- buildConnectedWallet(): BaseConnectedSolanaWallet[];
447
- /**
448
- * @hidden
449
- */
450
- syncAccounts(): Promise<void>;
451
- /**
452
- * @hidden
453
- */
454
- get walletBranding(): WalletBranding;
455
- /**
456
- * @hidden
457
- */
458
- initialize(): Promise<void>;
459
- /**
460
- * @hidden
461
- */
462
- connect(options: {
463
- showPrompt: boolean;
464
- }): Promise<BaseConnectedWallet | null>;
465
- /**
466
- * @hidden
467
- */
468
- disconnect: () => Promise<void>;
469
- /**
470
- * @hidden
471
- */
472
- promptConnection: () => Promise<void>;
473
- protected onChange: () => void;
474
- /**
475
- * Get the most recently connected wallet.
476
- *
477
- * @hidden
478
- */
479
- getConnectedWallet(): Promise<BaseConnectedSolanaWallet | null>;
480
- /**
481
- * We depend on the adapter to manage the connection state. We consider a wallet
482
- * connected if the adapter is connected and its readyState is 'Installed'.
483
- *
484
- * @hidden
485
- */
486
- isConnected(): Promise<boolean>;
487
- /**
488
- * @hidden
489
- */
490
- subscribeListeners(): void;
491
- /**
492
- * @hidden
493
- */
494
- unsubscribeListeners(): void;
495
- private shouldAttemptAutoConnect;
496
- }
497
-
498
- interface SolanaWalletConnectorsOptions {
499
- shouldAutoConnect?: boolean;
500
- }
501
- /**
502
- * Plugin object to add solana support to the Privy SDK
503
- */
504
- type SolanaWalletConnectorsConfig = {
505
- /**
506
- * Creates listeners for when solana wallets are registered or unregistered
507
- */
508
- onMount: () => void;
509
- /**
510
- * Remove listener registered by `onMount`
511
- */
512
- onUnmount: () => void;
513
- /**
514
- * Get all Wallets that have been registered, converted to `SolanaWalletConnectors`.
515
- */
516
- get: () => SolanaWalletConnector[];
517
- };
518
- /**
519
- * Wraps the wallet detection logic found in `@solana/wallet-standard-wallet-adapter-base`
520
- * and `@wallet-standard-app`. Returns a `SolanaWalletConnectors` object to be used with the `PrivyProvider`.
521
- *
522
- * @param {SolanaWalletConnectorsOptions} args Configuration object
523
- * @param {boolean} args.shouldAutoConnect Whether to automatically connect to the wallet.
524
- * Defaults to `true` and should not prompt the user loudly for connection. However, some legacy
525
- * adapters may still auto-connect loudly, so this flag can be used to disable that behavior.
526
- */
527
- declare const toSolanaWalletConnectors: (args?: SolanaWalletConnectorsOptions) => SolanaWalletConnectorsConfig;
528
-
529
- /**
530
- * Accepted payment methods for the MoonPay fiat on-ramp.
531
- */
532
- type MoonpayPaymentMethod = 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
533
- type MoonpayUiConfig = {
534
- accentColor?: string;
535
- theme?: 'light' | 'dark';
536
- };
537
- /**
538
- * Cryptocurrency codes for the MoonPay fiat on-ramp. These codes
539
- * follow the format {TOKEN_NAME}_{NETWORK_NAME}.
540
- */
541
- type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'MON_MON' | 'SOL' | 'USDC_SOL';
542
- /**
543
- * Configuration parameter for the MoonPay fiat on-ramp.
544
- */
545
- type MoonpayConfig = {
546
- currencyCode?: MoonpayCurrencyCode;
547
- quoteCurrencyAmount?: number;
548
- paymentMethod?: MoonpayPaymentMethod;
549
- uiConfig?: MoonpayUiConfig;
550
- };
551
- type MoonpaySignRequest = {
552
- address: string;
553
- config: MoonpayConfig;
554
- useSandbox: boolean;
555
- };
556
- type MoonpaySignResponse = {
557
- signedUrl: string;
558
- externalTransactionId: string;
559
- };
560
-
561
- declare const DEFAULT_BICONOMY_PAYMASTER_CONTEXT: {
562
- mode: string;
563
- calculateGasLimits: boolean;
564
- expiryDuration: number;
565
- sponsorshipInfo: {
566
- webhookData: {};
567
- smartAccountInfo: {
568
- name: string;
569
- version: string;
570
- };
571
- };
572
- };
573
- type BiconomyPaymasterContext = typeof DEFAULT_BICONOMY_PAYMASTER_CONTEXT;
574
- type AlchemyPaymasterContextClient = {
575
- policyId: string;
576
- };
577
-
578
- type CrossTabRefreshLockCallbacks<T> = {
579
- onLeader: () => Promise<T>;
580
- onFollowerReleased: () => Promise<T>;
581
- };
582
- type CrossTabRefreshLock = {
583
- withRefreshLock: <T>(callbacks: CrossTabRefreshLockCallbacks<T>) => Promise<T>;
584
- };
585
-
586
- /**
587
- * Plugin that keeps user state in sync across browser tabs using BroadcastChannel.
588
- *
589
- * @experimental This plugin is experimental and may change or be removed in future versions.
590
- */
591
- type CrossTabUserSyncPlugin = {
592
- readonly id: symbol;
593
- withRefreshLock: CrossTabRefreshLock['withRefreshLock'];
594
- };
595
- /**
596
- * Creates a cross-tab user sync plugin.
597
- *
598
- * @experimental This plugin is experimental and may change or be removed in future versions.
599
- *
600
- * @param options.channelId - A unique channel ID for your app.
601
- *
602
- * @example
603
- * ```tsx
604
- * createCrossTabUserSyncPlugin({
605
- * channelId: process.env.NEXT_PUBLIC_PRIVY_SYNC_CHANNEL_ID
606
- * })
607
- * ```
608
- */
609
- declare function createCrossTabUserSyncPlugin(options: {
610
- channelId: string;
611
- }): CrossTabUserSyncPlugin;
612
-
613
- /**
614
- * Plugin that provides default Privy-hosted Solana RPC endpoints.
615
- *
616
- * When registered, chains without user-configured RPCs fall back
617
- * to these defaults instead of returning null.
618
- */
619
- type DefaultSolanaRpcsPlugin = {
620
- readonly id: symbol;
621
- getDefaultRpcs: ({ appId }: {
622
- appId: string;
623
- }) => Partial<Record<SolanaChain, {
624
- rpc: Rpc<SolanaRpcApi>;
625
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
626
- blockExplorerUrl: string;
627
- }>>;
628
- };
629
- declare function defaultSolanaRpcsPlugin(): DefaultSolanaRpcsPlugin;
630
-
631
- /**
632
- * Plugin that overrides automatic embedded wallet creation (createOnLogin config).
633
- *
634
- * When present, the plugin's `shouldCreateWallet` predicate fully overrides the app's
635
- * createOnLogin setting: `true` = create wallet(s), `false` = do not create.
636
- * When the plugin is not registered, the default createOnLogin logic is used.
637
- *
638
- * @experimental This plugin is experimental and may change or be removed in future versions.
639
- */
640
- type WalletCreationFilterPlugin = {
641
- readonly id: typeof WALLET_CREATION_ON_LOGIN_PLUGIN_ID;
642
- /**
643
- * Override for whether to create embedded wallet(s) for this user.
644
- * When the plugin is active, this replaces the createOnLogin config.
645
- */
646
- shouldCreateWallet: ({ user }: {
647
- user: User;
648
- }) => boolean;
649
- };
650
- /**
651
- * Creates a plugin that overrides automatic embedded wallet creation based on a
652
- * user-defined predicate.
653
- *
654
- * When the plugin is registered, it overrides the app's createOnLogin config:
655
- * - `shouldCreateWallet({ user }) === true` → create embedded wallet(s) for this user
656
- * - `shouldCreateWallet({ user }) === false` → do not create
657
- *
658
- * @experimental This plugin is experimental and may change or be removed in future versions.
659
- *
660
- * @param options.shouldCreateWallet Predicate receiving `{ user }`; true = create, false = do not create (overrides createOnLogin).
661
- *
662
- * @example
663
- * ```tsx
664
- * const walletCreationPlugin = createWalletCreationOnLoginPlugin({
665
- * shouldCreateWallet: ({ user }) =>
666
- * user.customMetadata?.['alchemy_org_id'] === undefined,
667
- * });
668
- * <PrivyProvider
669
- * appId="..."
670
- * config={{
671
- * plugins: [walletCreationPlugin],
672
- * }}
673
- * >
674
- * ```
675
- */
676
- declare function createWalletCreationOnLoginPlugin(options: {
677
- shouldCreateWallet: ({ user }: {
678
- user: User;
679
- }) => boolean;
680
- }): WalletCreationFilterPlugin;
681
-
682
- type CustomMetadataType = User$1['custom_metadata'];
683
- declare const SUPPORTED_RECOVERY_PROVIDERS: readonly ["google-drive", "icloud"];
684
- declare const SUPPORTED_MFA_METHODS: readonly ["sms", "totp", "passkey"];
685
- type MfaMethod = (typeof SUPPORTED_MFA_METHODS)[number];
686
- type MfaSubmitArgs = {
687
- mfaMethod: MfaMethod;
688
- mfaCode: string | PasskeyAuthenticateInput['authenticator_response'];
689
- relyingParty: string;
690
- };
691
- type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
692
- /**
693
- * Supported OAuth providers for the recovery flow. Can be `'google-drive'`
694
- */
695
- type RecoveryProviderType = (typeof SUPPORTED_RECOVERY_PROVIDERS)[number];
696
- type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderID | 'passkey' | 'telegram' | 'custom' | 'guest';
697
- type LoginWithCode = {
698
- /**
699
- * One-time password _([OTP](https://en.wikipedia.org/wiki/One-time_password))_ that was sent to user during first login step
700
- */
701
- code: string;
702
- };
703
- declare const EMBEDDED_WALLET_CLIENT_TYPES: readonly ["privy"];
704
- type EmbeddedWalletClientType = (typeof EMBEDDED_WALLET_CLIENT_TYPES)[number];
705
- declare const INJECTED_WALLET_CLIENT_TYPES: readonly ["metamask", "phantom", "brave_wallet", "rainbow", "uniswap_wallet_extension", "uniswap_extension", "rabby_wallet", "bybit_wallet", "ronin_wallet", "haha_wallet", "crypto.com_wallet_extension", "crypto.com_onchain", "binance", "bitget_wallet"];
706
- type InjectedWalletClientType = (typeof INJECTED_WALLET_CLIENT_TYPES)[number];
707
- declare const COINBASE_WALLET_CLIENT_TYPES: readonly ["coinbase_wallet", "coinbase_smart_wallet", "base_account"];
708
- type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
709
- type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
710
- declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
711
- type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
712
- declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "jupiter", "mobile_wallet_adapter"];
713
- type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
714
- type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
715
- declare const SUPPORTED_CONNECTOR_TYPES: string[];
716
- type ConnectorType = (typeof SUPPORTED_CONNECTOR_TYPES)[number];
717
- /**
718
- * Wallet metadata currently for internal use only
719
- */
720
- type WalletBranding = {
721
- name: string;
722
- id: string;
723
- icon?: string | EmbeddedSVG;
724
- };
725
- type LinkedAccountType = 'wallet' | 'smart_wallet' | 'email' | 'phone' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'twitch_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProviderID | 'guest';
726
- /** @ignore */
727
- interface LinkMetadata {
728
- /** Account type, most commonly useful when filtering through linkedAccounts */
729
- type: LinkedAccountType;
730
- /** Datetime when this account was linked to the user. */
731
- firstVerifiedAt: Date | null;
732
- /** Datetime when this account was most recently used as a login/link method by the user. */
733
- latestVerifiedAt: Date | null;
734
- }
735
- /**
736
- * Config for preferred credit card provider. We will default to using this method first if available.
737
- */
738
- type PreferredCardProvider = 'coinbase' | 'moonpay';
739
- /**
740
- * Configuration for the funding flow UIs.
741
- */
742
- type FundingUiConfig = {
743
- receiveFundsTitle?: string;
744
- receiveFundsSubtitle?: string;
745
- landing?: {
746
- title?: string;
747
- };
748
- };
749
- /**
750
- * Configuration for Solana funding
751
- */
752
- type SolanaFundingConfig = {
753
- /** The chain used for connections */
754
- chain?: SolanaChain;
755
- /** The default amount in SOL */
756
- amount?: string;
757
- /** The default funding method */
758
- defaultFundingMethod?: DefaultFundingMethod;
759
- card?: {
760
- /** The preferred card provider for funding */
761
- preferredProvider?: PreferredCardProvider;
762
- };
763
- /** Customization for the funding UIs */
764
- uiConfig?: FundingUiConfig;
765
- /** The asset to fund with */
766
- asset?: 'native-currency' | 'USDC';
767
- };
768
- /**
769
- * Configuration for native funding amount.
770
- */
771
- type NativeFundingConfig = {
772
- chain?: ChainLikeWithId;
773
- amount?: string;
774
- defaultFundingMethod?: DefaultFundingMethod;
775
- card?: {
776
- /** The preferred card onramp for funding */
777
- preferredProvider?: PreferredCardProvider;
778
- };
779
- /** Customization for the funding UIs */
780
- uiConfig?: FundingUiConfig;
781
- } | {
782
- chain?: ChainLikeWithId;
783
- amount: string;
784
- asset: {
785
- erc20: Hex;
786
- } | 'USDC' | 'native-currency';
787
- defaultFundingMethod?: DefaultFundingMethod;
788
- card?: {
789
- /** The preferred card onramp for funding */
790
- preferredProvider?: PreferredCardProvider;
791
- };
792
- /** Customization for the funding UIs */
793
- uiConfig?: FundingUiConfig;
794
- };
795
- /**
796
- * Optional configuration parameter for the fiat on-ramp.
797
- */
798
- type FundWalletConfig = NativeFundingConfig;
799
- /**
800
- * Status of a funding transaction
801
- */
802
- type FundingStatus = 'completed' | 'cancelled';
803
- /**
804
- * Result returned when fundWallet() promise resolves
805
- */
806
- interface FundingResult {
807
- /**
808
- * Status of the funding transaction
809
- */
810
- status: FundingStatus;
811
- /**
812
- * Wallet address that was funded
813
- */
814
- address: string;
815
- /**
816
- * Method used to fund the wallet
817
- */
818
- fundingMethod: FundingMethod | undefined;
819
- /**
820
- * Transaction hash (if available from on-chain transfer or fiat provider)
821
- */
822
- transactionHash?: string;
823
- /**
824
- * Amount transferred
825
- */
826
- amount?: string;
827
- /**
828
- * Asset type transferred (e.g., 'Ether', 'USDC')
829
- */
830
- assetType?: string;
831
- /**
832
- * Additional provider-specific metadata
833
- */
834
- metadata?: {
835
- /** Type of wallet used (e.g., 'metamask', 'rainbow', 'phantom') */
836
- walletClientType?: string;
837
- };
838
- }
839
- /**
840
- * Possible methods of user-driven recovery.
841
- * This is set, per app, on the server.
842
- */
843
- type UserRecoveryMethod = 'user-passcode' | RecoveryProviderType;
844
- /**
845
- * Object representation of a user's wallet.
846
- */
847
- interface Wallet {
848
- /** The server wallet ID of the wallet. Null if the wallet is not delegated. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
849
- id?: string | null;
850
- /** The wallet address. */
851
- address: string;
852
- /**
853
- * Chain type of the wallet address.
854
- */
855
- chainType: WalletChainType;
856
- /**
857
- * The wallet client used for this wallet during the most recent verification.
858
- *
859
- * If the value is `privy`, then this is a privy embedded wallet.
860
- *
861
- * Other values include but are not limited to `metamask`, `rainbow`, `coinbase_wallet`, etc.
862
- */
863
- walletClientType?: string;
864
- /**
865
- * The connector type used for this wallet during the most recent verification.
866
- *
867
- * This includes but is not limited to `injected`, `wallet_connect`, `coinbase_wallet`, `embedded`.
868
- */
869
- connectorType?: string;
870
- /**
871
- * If this is a 'privy' embedded wallet, stores the recovery method:
872
- *
873
- * 1. 'privy': privy escrow of the recovery material
874
- * 2. 'user-passcode': recovery protected by user-input passcode
875
- */
876
- recoveryMethod?: RecoveryMethod;
877
- /** Whether the wallet is imported. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
878
- imported: boolean;
879
- /** Whether the wallet is delegated. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
880
- delegated: boolean;
881
- /** HD index for the wallet. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
882
- walletIndex: number | null;
883
- /** Public key for the wallet. Only applies to tier 2 chains */
884
- publicKey?: string;
885
- }
886
- /**
887
- *
888
- * Object representation of a base connected wallet from a wallet connector.
889
- */
890
- interface BaseConnectedSolanaWallet extends BaseConnectedWallet {
891
- type: 'solana';
892
- provider: ConnectedStandardSolanaWallet;
893
- }
894
- /**
895
- * Union type of all possible base connected wallets.
896
- */
897
- type BaseConnectedWalletType = BaseConnectedEthereumWallet | BaseConnectedSolanaWallet;
898
- /**
899
- * Object representation of metadata reported by a connected wallet from a wallet connector
900
- */
901
- interface ConnectedWalletMetadata {
902
- /** The wallet name (e.g. MetaMask). */
903
- name: string;
904
- /** The wallet RDNS, falls back to the wallet name if none is available. */
905
- id: string;
906
- /** The wallet logo, either a URL string or an embedded SVG component. */
907
- icon?: string | EmbeddedSVG;
908
- }
909
- /**
910
- * Object representation of a base connected wallet from a wallet connector.
911
- */
912
- interface BaseConnectedWallet {
913
- type: 'ethereum' | 'solana';
914
- /** The wallet address. */
915
- address: string;
916
- /** The first time this wallet was connected without break. */
917
- connectedAt: number;
918
- /**
919
- * The wallet client where this key-pair is stored.
920
- * e.g. metamask, rainbow, coinbase_wallet, etc.
921
- */
922
- walletClientType: WalletClientType;
923
- /**
924
- * The connector used to initiate the connection with the wallet client.
925
- * e.g. injected, wallet_connect, coinbase_wallet, etc.
926
- */
927
- connectorType: ConnectorType;
928
- /** Whether the wallet is imported. */
929
- imported: boolean;
930
- /**
931
- * Metadata for the wallet.
932
- */
933
- meta: ConnectedWalletMetadata;
934
- /** Returns true if the wallet is connected, false otherwise */
935
- isConnected: () => Promise<boolean>;
936
- /**
937
- * @experimental **Experimental**: This property is subject to change at any time.
938
- *
939
- * Not all wallet clients support programmatic disconnects (e.g. MetaMask, Phantom).
940
- * In kind, if the wallet's client does not support programmatic disconnects,
941
- * this method will no-op.
942
- */
943
- disconnect: () => void;
944
- }
945
- /**
946
- * Object representation of a base connected Ethereum wallet from a wallet connector.
947
- */
948
- interface BaseConnectedEthereumWallet extends BaseConnectedWallet {
949
- type: 'ethereum';
950
- /** The current chain ID with CAIP-2 formatting. */
951
- chainId: string;
952
- /**
953
- * Switch the network chain to a specified ID.
954
- * Note: The chainId must be a supported network: https://docs.privy.io/guide/frontend/embedded/networks
955
- * Note: This will not update any existing provider instances, re-request `wallet.getEthereumProvider` (e.g.)
956
- * to get a provider with the updated chainId.
957
- *
958
- * @param targetChainId The specified chain ID to switch to, as a number or 0x prefixed string.
959
- * @returns void
960
- */
961
- switchChain: (targetChainId: `0x${string}` | number) => Promise<void>;
962
- /** Helper methods to build providers for interfacing with this wallet. */
963
- getEthereumProvider: () => Promise<EIP1193Provider>;
964
- /**
965
- * Perform personal_sign with the user's wallet.
966
- *
967
- * @param {string} message The message to sign.
968
- * @returns {string} The resulting signature.
969
- */
970
- sign: (message: string) => Promise<string>;
971
- }
972
- interface PrivyConnectedWallet {
973
- /** True if this wallet is linked to the authenticated user. False if it is not yet linked or
974
- * the user has not yet authenticated. */
975
- linked: boolean;
976
- /** Login with this wallet or link this wallet to the authenticated user.
977
- *
978
- * Throws a PrivyClientError if the wallet is not connected.
979
- */
980
- loginOrLink: () => Promise<void>;
981
- /** Unlink this wallet to the authenticated user. Throws a PrivyClientError if the user is not
982
- * authenticated. */
983
- unlink: () => Promise<void>;
984
- /** The HD wallet index */
985
- walletIndex?: number;
986
- }
987
- /**
988
- * Object representation of a connected wallet, with additional Privy flows
989
- */
990
- interface ConnectedWallet extends BaseConnectedEthereumWallet, PrivyConnectedWallet {
991
- /**
992
- * Prompt the user to go through the funding flow and for the connected wallet.
993
- *
994
- * This will open the modal with a prompt for the user to select a funding method (if multiple are enabled).
995
- *
996
- * Once the user continues to the funding flow, Privy will display the funding status screen, and wait
997
- * for the transaction to complete.
998
- *
999
- * Note: Even after a successful funding, funds can take a few minutes to arrive in the user's wallet.
1000
- *
1001
- * Privy currently supports funding via external wallets and Moonpay.
1002
- *
1003
- * @param {FundWalletConfig} fundWalletConfig Funding configuration to specify chain and funding amount (if enabled)
1004
- * **/
1005
- fund: (fundWalletConfig?: FundWalletConfig) => Promise<void>;
1006
- }
1007
- /**
1008
- * Object representation of a smart wallet.
1009
- */
1010
- interface SmartWallet {
1011
- /** The wallet address. */
1012
- address: string;
1013
- /** The provider of the smart wallet. */
1014
- smartWalletType: SmartWalletType;
1015
- /** The version of the smart wallet. */
1016
- smartWalletVersion?: string;
1017
- }
1018
- /** Object representation of a user's email. */
1019
- interface Email {
1020
- /** The email address. */
1021
- address: string;
1022
- }
1023
- /** Object representation of a user's phone number. */
1024
- interface Phone {
1025
- /** The phone number. */
1026
- number: string;
1027
- }
1028
- /** Object representation of a user's Google account. */
1029
- interface Google {
1030
- /** The `sub` claim from the Google-issued JWT for this account. */
1031
- subject: string;
1032
- /** The email associated with the Google account. */
1033
- email: string;
1034
- /** The name associated with the Google account. */
1035
- name: string | null;
1036
- }
1037
- /** Object representation of a user's Twitter account. */
1038
- interface Twitter {
1039
- /** The `sub` claim from the Twitter-issued JWT for this account. */
1040
- subject: string;
1041
- /** The username associated with the Twitter account. */
1042
- username: string | null;
1043
- /** The name associated with the Twitter account. */
1044
- name: string | null;
1045
- /** The profile picture URL associated with the Twitter account.
1046
- * Note that the Twitter image URL returned is appended with `_normal`
1047
- * to return a 48x48px image. In order to retrieve the original-sized image,
1048
- * remove the `_normal` from the URL as specified in the Twitter API docs:
1049
- * https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/user-profile-images-and-banners
1050
- */
1051
- profilePictureUrl: string | null;
1052
- }
1053
- /** Object representation of a user's Discord account. */
1054
- interface Discord {
1055
- /** The `sub` claim from the Discord-issued JWT for this account. */
1056
- subject: string;
1057
- /** The username associated with the Discord account. */
1058
- username: string | null;
1059
- /** The email associated with the Discord account. */
1060
- email: string | null;
1061
- }
1062
- /** Object representation of a user's Github account. */
1063
- interface Github {
1064
- /** The `sub` claim from the Github-issued JWT for this account. */
1065
- subject: string;
1066
- /** The username associated with the Github account. */
1067
- username: string | null;
1068
- /** The name associated with the Github account. */
1069
- name: string | null;
1070
- /** The email associated with the Github account. */
1071
- email: string | null;
1072
- }
1073
- /** Object representation of a user's Spotify account. */
1074
- interface Spotify {
1075
- /** The user id associated with the Spotify account. */
1076
- subject: string;
1077
- /** The email associated with the Spotify account. */
1078
- email: string | null;
1079
- /** The display name associated with the Spotify account. */
1080
- name: string | null;
1081
- }
1082
- /** Object representation of a user's Instagram account. */
1083
- interface Instagram {
1084
- /** The user id associated with the Instagram account. */
1085
- subject: string;
1086
- /** The username associated with the Instagram account. */
1087
- username: string | null;
1088
- }
1089
- /** Object representation of a user's Tiktok account. */
1090
- interface Tiktok {
1091
- /** The `sub` claim from the Tiktok-issued JWT for this account. */
1092
- subject: string;
1093
- /** The username associated with the Tiktok account. */
1094
- username: string | null;
1095
- /** The display name associated with the Tiktok account. */
1096
- name: string | null;
1097
- }
1098
- /** Object representation of a user's Line account. */
1099
- interface Line {
1100
- /** The `sub` claim from the Line-issued JWT for this account. */
1101
- subject: string;
1102
- /** The name associated with the Line account. */
1103
- name: string | null;
1104
- /** The email associated with the Line account. */
1105
- email: string | null;
1106
- /** The profile image URL associated with the Line account. */
1107
- profilePictureUrl: string | null;
1108
- }
1109
- /** Object representation of a user's Twitch account. */
1110
- interface Twitch {
1111
- /** The unique identifier for the Twitch account. */
1112
- subject: string;
1113
- /** The username associated with the Twitch account. */
1114
- username: string | null;
1115
- }
1116
- /** Object representation of a user's LinkedIn account. */
1117
- interface LinkedIn {
1118
- /** The `sub` claim from the LinkedIn-issued JWT for this account. */
1119
- subject: string;
1120
- /** The name associated with the LinkedIn account. */
1121
- name: string | null;
1122
- /** The email associated with the LinkedIn account. */
1123
- email: string | null;
1124
- /** The vanityName/profile URL associated with the LinkedIn account. */
1125
- vanityName: string | null;
1126
- }
1127
- /** Object representation of a user's Apple account. */
1128
- interface Apple {
1129
- /** The `sub` claim from the Apple-issued JWT for this account. */
1130
- subject: string;
1131
- /** The email associated with the Apple account. */
1132
- email: string;
1133
- }
1134
- /** Object representation of a user's Custom OAuth Account. */
1135
- interface CustomOAuth {
1136
- /** The `sub` claim from the Custom OAuth-issued JWT for this account. */
1137
- subject: string;
1138
- /** The name associated with the Custom OAuth account. */
1139
- name: string | null;
1140
- /** The username associated with the Custom OAuth account. */
1141
- username: string | null;
1142
- /** The email associated with the Custom OAuth account. */
1143
- email: string | null;
1144
- /** The profile picture URL associated with the Custom OAuth account. */
1145
- profilePictureUrl: string | null;
1146
- }
1147
- interface CustomJwtAccount {
1148
- /** The user ID given by the custom auth provider */
1149
- customUserId: string;
1150
- }
1151
- interface Farcaster {
1152
- /** The Farcaster on-chain FID */
1153
- fid: number | null;
1154
- /** The Farcaster ethereum address that owns the FID */
1155
- ownerAddress: string;
1156
- /** The Farcaster protocol username */
1157
- username: string | null;
1158
- /** The Farcaster protocol display name */
1159
- displayName: string | null;
1160
- /** The Farcaster protocol bio */
1161
- bio: string | null;
1162
- /** The Farcaster protocol profile picture */
1163
- pfp: string | null;
1164
- /** The Farcaster protocol profile url */
1165
- url: string | null;
1166
- /** The public key of the signer, if set. This is not guaranteed to be valid, as the user can revoke the key at any time */
1167
- signerPublicKey: string | null;
1168
- }
1169
- interface Telegram {
1170
- /** The user ID that owns this Telegram account. */
1171
- telegramUserId: string;
1172
- /** The first name of the user . */
1173
- firstName: string | null;
1174
- /** The last name of the user . */
1175
- lastName: string | null;
1176
- /** The username associated with the Telegram account. */
1177
- username: string | null;
1178
- /** The url of the user's profile picture. */
1179
- photoUrl: string | null;
1180
- }
1181
- interface Passkey {
1182
- /** The passkey credential ID */
1183
- credentialId: string;
1184
- /** The passkey public key (base64 encoded) */
1185
- publicKey?: string;
1186
- /** Whether or not this passkey can be used for MFA */
1187
- enrolledInMfa: boolean;
1188
- /** The type of authenticator holding the passkey */
1189
- authenticatorName?: string;
1190
- /** Metadata about the device that registered the passkey */
1191
- createdWithDevice?: string;
1192
- /** Metadata about the OS that registered the passkey */
1193
- createdWithOs?: string;
1194
- /** Metadata about the browser that registered the passkey */
1195
- createdWithBrowser?: string;
1196
- }
1197
- /** Metadata about the provider app for a cross-app account */
1198
- interface ProviderAppMetadata {
1199
- /** Privy app ID for the provider app. */
1200
- id: string;
1201
- /** Name for the provider app. */
1202
- name?: string;
1203
- /** Logo URL for the provider app. */
1204
- logoUrl?: string;
1205
- }
1206
- interface CrossAppAccount {
1207
- /** The user's embedded wallet address(es) from the provider app */
1208
- embeddedWallets: {
1209
- address: string;
1210
- }[];
1211
- smartWallets: {
1212
- address: string;
1213
- }[];
1214
- providerApp: ProviderAppMetadata;
1215
- subject: string;
1216
- }
1217
- /** Object representation of a user's email, with additional metadata for advanced use cases. */
1218
- interface EmailWithMetadata extends LinkMetadata, Email {
1219
- /** Denotes that this is an email account. */
1220
- type: 'email';
1221
- }
1222
- /** Object representation of a user's phone number, with additional metadata for advanced use cases. */
1223
- interface PhoneWithMetadata extends LinkMetadata, Phone {
1224
- /** Denotes that this is a phone account. */
1225
- type: 'phone';
1226
- }
1227
- /** Object representation of a user's wallet, with additional metadata for advanced use cases. */
1228
- interface WalletWithMetadata extends LinkMetadata, Wallet {
1229
- /** Denotes that this is a wallet account. */
1230
- type: 'wallet';
1231
- }
1232
- interface SmartWalletWithMetadata extends LinkMetadata, SmartWallet {
1233
- /** Denotes that this is a smart wallet account. */
1234
- type: 'smart_wallet';
1235
- }
1236
- /** Object representation of an HD embedded wallet with a defined `walletIndex` */
1237
- type HDWalletWithMetadata = WalletWithMetadata & {
1238
- walletIndex: number;
1239
- };
1240
- /** Object representation of a user's Google Account, with additional metadata for advanced use cases. */
1241
- interface GoogleOAuthWithMetadata extends LinkMetadata, Google {
1242
- /** Denotes that this is a Google account. */
1243
- type: 'google_oauth';
1244
- }
1245
- /** Object representation of a user's Twitter Account, with additional metadata for advanced use cases. */
1246
- interface TwitterOAuthWithMetadata extends LinkMetadata, Twitter {
1247
- /** Denotes that this is a Twitter account. */
1248
- type: 'twitter_oauth';
1249
- }
1250
- /** Object representation of a user's Discord Account, with additional metadata for advanced use cases. */
1251
- interface DiscordOAuthWithMetadata extends LinkMetadata, Discord {
1252
- /** Denotes that this is a Discord account. */
1253
- type: 'discord_oauth';
1254
- }
1255
- /** Object representation of a user's Github Account, with additional metadata for advanced use cases. */
1256
- interface GithubOAuthWithMetadata extends LinkMetadata, Github {
1257
- /** Denotes that this is a Github account. */
1258
- type: 'github_oauth';
1259
- }
1260
- /** Object representation of a user's Spotify Account, with additional metadata for advanced use cases. */
1261
- interface SpotifyOAuthWithMetadata extends LinkMetadata, Spotify {
1262
- /** Denotes that this is a Spotify account. */
1263
- type: 'spotify_oauth';
1264
- }
1265
- /** Object representation of a user's Instagram Account, with additional metadata for advanced use cases. */
1266
- interface InstagramOAuthWithMetadata extends LinkMetadata, Instagram {
1267
- /** Denotes that this is a Instagram account. */
1268
- type: 'instagram_oauth';
1269
- }
1270
- /** Object representation of a user's Tiktok Account, with additional metadata for advanced use cases. */
1271
- interface TiktokOAuthWithMetadata extends LinkMetadata, Tiktok {
1272
- /** Denotes that this is a Tiktok account. */
1273
- type: 'tiktok_oauth';
1274
- }
1275
- /** Object representation of a user's Line Account, with additional metadata for advanced use cases. */
1276
- interface LineOAuthWithMetadata extends LinkMetadata, Line {
1277
- /** Denotes that this is a Line account. */
1278
- type: 'line_oauth';
1279
- }
1280
- /** Object representation of a user's Twitch Account, with additional metadata for advanced use cases. */
1281
- interface TwitchOAuthWithMetadata extends LinkMetadata, Twitch {
1282
- /** Denotes that this is a Twitch account. */
1283
- type: 'twitch_oauth';
1284
- }
1285
- /** Object representation of a user's LinkedIn Account, with additional metadata for advanced use cases. */
1286
- interface LinkedInOAuthWithMetadata extends LinkMetadata, LinkedIn {
1287
- /** Denotes that this is a LinkedIn account. */
1288
- type: 'linkedin_oauth';
1289
- }
1290
- /** Object representation of a user's Apple Account, with additional metadata for advanced use cases. */
1291
- interface AppleOAuthWithMetadata extends LinkMetadata, Apple {
1292
- /** Denotes that this is a Apple account. */
1293
- type: 'apple_oauth';
1294
- }
1295
- /** Object representation of a user's Custom OAuth Account, with additional metadata for advanced use cases. */
1296
- interface CustomOAuthWithMetadata extends LinkMetadata, CustomOAuth {
1297
- /** Denotes that this is a Custom OAuth account. */
1298
- type: CustomOAuthProviderID;
1299
- }
1300
- /** Object representation of a user's Custom JWT Account, with additional metadata for advanced use cases. */
1301
- interface CustomJwtAccountWithMetadata extends LinkMetadata, CustomJwtAccount {
1302
- /** Denotes that this is an custom account. */
1303
- type: 'custom_auth';
1304
- }
1305
- /** Object representation of a user's Farcaster Account, with additional metadata for advanced use cases. */
1306
- interface FarcasterWithMetadata extends LinkMetadata, Farcaster {
1307
- /** Denotes that this is a Farcaster account. */
1308
- type: 'farcaster';
1309
- }
1310
- /** Object representation of a user's Passkey Account, with additional metadata for advanced use cases. */
1311
- interface PasskeyWithMetadata extends LinkMetadata, Passkey {
1312
- /** Denotes that this is a Passkey account. */
1313
- type: 'passkey';
1314
- }
1315
- /** Object representation of a user's Telegram Account, with additional metadata for advanced use cases. */
1316
- interface TelegramWithMetadata extends LinkMetadata, Telegram {
1317
- /** Denotes that this is a Telegram account. */
1318
- type: 'telegram';
1319
- }
1320
- /** Object representation of a user's cross-app account, with additional metadata for advanced use cases. */
1321
- interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
1322
- /** Denotes that this is a cross-app account */
1323
- type: 'cross_app';
1324
- }
1325
- /**
1326
- * Object representation of a user's linked accounts
1327
- */
1328
- type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | TwitchOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
1329
- interface User {
1330
- /** The Privy-issued DID for the user. If you need to store additional information
1331
- * about a user, you can use this DID to reference them. */
1332
- id: string;
1333
- /** The datetime of when the user was created. */
1334
- createdAt: Date;
1335
- /** The user's email address, if they have linked one. It cannot be linked to another user. */
1336
- email?: Email;
1337
- /** The user's phone number, if they have linked one. It cannot be linked to another user. */
1338
- phone?: Phone;
1339
- /** The user's first verified wallet, if they have linked at least one wallet.
1340
- * It cannot be linked to another user.
1341
- **/
1342
- wallet?: Wallet;
1343
- /**
1344
- * The user's smart wallet, if they have set up through the Privy Smart Wallet SDK.
1345
- */
1346
- smartWallet?: SmartWallet;
1347
- /** The user's Google account, if they have linked one. It cannot be linked to another user. */
1348
- google?: Google;
1349
- /** The user's Twitter account, if they have linked one. It cannot be linked to another user. */
1350
- twitter?: Twitter;
1351
- /** The user's Discord account, if they have linked one. It cannot be linked to another user. */
1352
- discord?: Discord;
1353
- /** The user's Github account, if they have linked one. It cannot be linked to another user. */
1354
- github?: Github;
1355
- /** The user's Spotify account, if they have linked one. It cannot be linked to another user. */
1356
- spotify?: Spotify;
1357
- /** The user's Instagram account, if they have linked one. It cannot be linked to another user. */
1358
- instagram?: Instagram;
1359
- /** The user's Tiktok account, if they have linked one. It cannot be linked to another user. */
1360
- tiktok?: Tiktok;
1361
- /** The user's Line account, if they have linked one. It cannot be linked to another user. */
1362
- line?: Line;
1363
- /** The user's Twitch account, if they have linked one. It cannot be linked to another user. */
1364
- twitch?: Twitch;
1365
- /** The user's LinkedIn account, if they have linked one. It cannot be linked to another user. */
1366
- linkedin?: LinkedIn;
1367
- /** The user's Apple account, if they have linked one. It cannot be linked to another user. */
1368
- apple?: Apple;
1369
- /** The user's Farcaster account, if they have linked one. It cannot be linked to another user. */
1370
- farcaster?: Farcaster;
1371
- /** The user's Telegram account, if they have linked one. It cannot be linked to another user. */
1372
- telegram?: Telegram;
1373
- /** The list of accounts associated with this user. Each account contains additional metadata
1374
- * that may be helpful for advanced use cases. */
1375
- linkedAccounts: Array<LinkedAccountWithMetadata>;
1376
- /** The list of MFA Methods associated with this user. */
1377
- mfaMethods: Array<MfaMethod>;
1378
- /**
1379
- * Whether or not the user has explicitly accepted the Terms and Conditions
1380
- * and/or Privacy Policy
1381
- */
1382
- hasAcceptedTerms: boolean;
1383
- /** Whether or not the user is a guest */
1384
- isGuest: boolean;
1385
- /** Custom metadata field for a given user account */
1386
- customMetadata?: CustomMetadataType;
1387
- }
1388
- type OAuthTokens = {
1389
- /** The OAuth provider. */
1390
- provider: OAuthProviderID;
1391
- /** The OAuth access token. */
1392
- accessToken: string;
1393
- /** The number of seconds until the OAuth access token expires. */
1394
- accessTokenExpiresInSeconds?: number;
1395
- /** The OAuth refresh token. */
1396
- refreshToken?: string;
1397
- /** The number of seconds until the OAuth refresh token expires.
1398
- * if the refresh token is present and this field is undefined, it is assumed
1399
- * that the refresh token does not have an expiration date
1400
- */
1401
- refreshTokenExpiresInSeconds?: number;
1402
- /** The list of OAuth scopes the access token is approved for. */
1403
- scopes?: string[];
1404
- };
1405
- type FundingMethod = 'moonpay' | 'coinbase-onramp' | 'external';
1406
- /** The default funding method to immediately trigger when funding is requested */
1407
- type DefaultFundingMethod = 'card' | 'exchange' | 'wallet' | 'manual';
1408
- type HexColor = `#${string}`;
1409
- /**
1410
- * Options to customize the display of transaction prices in the embedded wallet's transaction prompt.
1411
- */
1412
- type PriceDisplayOptions = {
1413
- primary: 'fiat-currency';
1414
- secondary: 'native-token';
1415
- } | {
1416
- primary: 'native-token';
1417
- secondary: null;
1418
- };
1419
- type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
1420
- /** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
1421
- | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana'
1422
- /** @deprecated rabby_wallet is no longer supported */
1423
- | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'jupiter' | 'binance' | 'binanceus' | 'bitget_wallet' | 'kraken_wallet' | 'robinhood_wallet';
1424
- type NonEmptyArray<T> = [T, ...T[]];
1425
- type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderID | `privy:${string}` | 'farcaster' | 'telegram';
1426
- type ExternalWalletsConfig = {
1427
- /**
1428
- * Options to configure connections to the Coinbase Wallet (browser extension wallet, mobile wallet, and
1429
- * passkey-based smart wallet).
1430
- *
1431
- * @experimental This is an experimental config designed to give Privy developers a way to test the Coinbase Smart Wallet
1432
- * ahead of its mainnet launch. The smart wallet currently only supports the Base Sepolia testnet. In kind, DO NOT use this
1433
- * configuration in production as it will prevent users from using the Coinbase Wallet on networks other than Base Sepolia.
1434
- */
1435
- coinbaseWallet?: {
1436
- /**
1437
- * Allows you to override the default configuration options for initializing the Coinbase Wallet
1438
- * connector. This includes overriding the connection options (via config.preference.options)
1439
- * or adding additional configuration (i.e. enabling subAccounts)
1440
- */
1441
- config?: Parameters<typeof createCoinbaseWalletSDK>[0];
1442
- };
1443
- /**
1444
- * Options to configure connections to the Base Account (passkey-based smart wallet).
1445
- */
1446
- baseAccount?: {
1447
- /**
1448
- * Allows you to override the default configuration options for initializing the Base Account
1449
- * connector. This includes overriding the connection options (via config.preference.options)
1450
- * or adding additional configuration (i.e. enabling subAccounts)
1451
- */
1452
- config?: BaseAccountSdkCreateParams;
1453
- };
1454
- /**
1455
- * Mapping between `walletClientType`s to the length of time after which signature and RPC requests will timeout for that
1456
- * `walletClientType`.
1457
- *
1458
- * By default, all signature or RPC requests through Privy will timeout after 2 mins (120000 ms). Use this object to
1459
- * override the signature or RPC timeout in ms for specific` walletClientType`s, e.g. 'safe', in order to extend or
1460
- * shorten the timeout duration.
1461
- */
1462
- signatureRequestTimeouts?: {
1463
- [key in string]?: number;
1464
- };
1465
- /**
1466
- * Options to configure WalletConnect behavior.
1467
- *
1468
- * @experimental This may change in future releases
1469
- */
1470
- walletConnect?: {
1471
- /**
1472
- * If disabled, stops WalletConnect from being initialized by the Privy SDK.
1473
- *
1474
- * WARNING: If you allow WalletConnect or WalletConnect-powered wallets, this will cause issues.
1475
- *
1476
- * Note that even if disabled, WalletConnect code may still be loaded in the browser. Defaults to true.
1477
- *
1478
- * @experimental This feature is very experimental and may break your wallet connector experience if you use external wallets.
1479
- */
1480
- enabled: boolean;
1481
- };
1482
- solana?: {
1483
- connectors?: SolanaWalletConnectorsConfig;
1484
- };
1485
- /**
1486
- * If true, disables all connections to external wallets.
1487
- *
1488
- * @experimental This feature is experimental
1489
- */
1490
- disableAllExternalWallets?: boolean;
1491
- };
1492
- interface PrivyClientConfig {
1493
- /** All UI and theme related configuration */
1494
- appearance?: {
1495
- /** Primary theme for the privy UI. This dictates the foreground and background colors within the UI.
1496
- *
1497
- * 'light' (default): The privy default light UI.
1498
- * 'dark': The privy default dark UI.
1499
- * custom hex code (i.e. '#13152F'): A custom background. This will generate the remainder of the foreground and
1500
- * background colors for the UI by modulating the luminance of the passed color. This value should be _either_ dark
1501
- * or light (<20% or >80% luminance), for accessibility. */
1502
- theme?: 'light' | 'dark' | HexColor;
1503
- /** Accent color for the privy UI.
1504
- * Used for buttons, active borders, etc. This will generate light and dark variants.
1505
- * This overrides the server setting `accent_color`. */
1506
- accentColor?: HexColor;
1507
- /** Logo for the main privy modal screen.
1508
- * This can be a string (url) or an img / svg react element.
1509
- * If passing an element, Privy will overwrite the `style` props, to ensure proper rendering.
1510
- * This overrides the server setting `logo_url` */
1511
- logo?: string | ReactElement;
1512
- /**
1513
- * Sender domain text shown on the email verification screen.
1514
- *
1515
- * This is presentation-only and does not affect the actual email sender.
1516
- *
1517
- * Defaults to `privy.io`.
1518
- */
1519
- emailDomain?: string;
1520
- /**
1521
- * Header text for the landing screen of the Privy login modal. We strongly recommend using a string
1522
- * of length 35 or less. Strings longer than the width of the login modal will be ellipsified.
1523
- *
1524
- * Defaults to 'Log in or sign up'.
1525
- */
1526
- landingHeader?: string;
1527
- /**
1528
- * Subtitle text for the landing screen of the Privy login modal.
1529
- *
1530
- * This text will renders below the logo and will be capped at 100 characters.
1531
- *
1532
- * Defaults to undefined.
1533
- */
1534
- loginMessage?: string;
1535
- /** Determines the order of the login options in the privy modal. If true, the wallet login will render above
1536
- * social and email / sms login options.
1537
- * This overrides the server setting `show_wallet_login_first` */
1538
- showWalletLoginFirst?: boolean;
1539
- /**
1540
- * An array of {@link WalletListEntry wallet names} to configure the wallet buttons shown within
1541
- * the `login`, `connectWallet`, and `linkWallet` modals. Privy will show buttons for each option
1542
- * present in the list, in the order in which they are configured.
1543
- *
1544
- * On 'detected_wallets':
1545
- * - This option serves as a fallback to include all wallets that detected by Privy, that might not be
1546
- * individually configured in the `walletList`. Browser extension wallets that are not explicitly configured
1547
- * in the `walletList` will fall into this category.
1548
- * - If Privy detects a wallet, _and_ that wallet is configured within the `walletList` (e.g. 'metamask'),
1549
- * the order of the wallet's explicit name (e.g. 'metamask') in the `walletList` will take priority
1550
- * over the order of 'detected_wallets'.
1551
- *
1552
- * Defaults to ['detected_wallets', 'metamask', 'coinbase_wallet', 'rainbow', 'wallet_connect']
1553
- *
1554
- * @default ['detected_wallets', 'metamask', 'coinbase_wallet', 'rainbow', 'wallet_connect']
1555
- */
1556
- walletList?: WalletListEntry[];
1557
- /**
1558
- * Determines which external wallet types to show in the modal. By default, only Ethereum external wallets
1559
- * are shown. If you want to show Solana wallets, set this to 'solana-only' or 'ethereum-and-solana'.
1560
- *
1561
- * When 'ethereum-and-solana' is set, Solana wallets will have a badge indicating that they are Solana wallets.
1562
- *
1563
- * @defaults 'ethereum-only'
1564
- */
1565
- walletChainType?: 'ethereum-only' | 'solana-only' | 'ethereum-and-solana';
1566
- };
1567
- /**
1568
- * Login methods for the privy modal.
1569
- *
1570
- * This parameter enables you to display a subset of the login methods specified in the developer dashboard. `loginMethods` cannot be an empty array if specified. The order of this array does not dictate order of the login methods in the UI.
1571
- *
1572
- * Note that any login method included in this parameter must also be enabled as a login method in the developer dashboard.
1573
- *
1574
- * If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
1575
- */
1576
- loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'twitch' | 'apple' | 'farcaster' | 'telegram' | 'passkey' | `privy:${string}`>;
1577
- /**
1578
- * @deprecated Use `loginMethods` instead.
1579
- *
1580
- * Login methods for the Privy modal. _This will override carefully designed defaults and should be used with caution._
1581
- *
1582
- * This parameter enables you to display a subset of the login methods specified in the developer dashboard. Login methods will be rendered in the order they appear in the array. The first 4 options specified in the `primary` list will render on the default screen of the login experience. Options in the `overflow` list will appear on the following screen.
1583
- *
1584
- * Note that any login method included in this parameter must also be enabled as a login method in the developer dashboard.
1585
- *
1586
- * If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
1587
- */
1588
- loginMethodsAndOrder?: {
1589
- primary: NonEmptyArray<LoginMethodOrderOption>;
1590
- overflow?: Array<LoginMethodOrderOption>;
1591
- };
1592
- /** Options for internationalization of the privy modal */
1593
- intl?: {
1594
- /**
1595
- * This property is used to configure formatting and validation for the phone number input
1596
- * used when `phone` is enabled as a login method. Must be a valid
1597
- * [two-leter ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) (e.g. 'US').
1598
- * Defaults to 'US'.
1599
- *
1600
- * @default 'US'
1601
- */
1602
- defaultCountry: CountryCode;
1603
- /**
1604
- * Custom localization strings for Privy UI components.
1605
- *
1606
- * Pass a partial object with only the strings you want to override.
1607
- * All other strings will fall back to default English values.
1608
- *
1609
- * Supports simple template interpolation with {variableName} syntax.
1610
- *
1611
- * @experimental This feature is experimental and may change in future releases.
1612
- *
1613
- * @example
1614
- * ```typescript
1615
- * <PrivyProvider
1616
- * appId="your-app-id"
1617
- * config={{
1618
- * intl: {
1619
- * textLocalization: {
1620
- * 'connectWallet.connectYourWallet': 'Connecter un portefeuille',
1621
- * 'connectionStatus.successfullyConnected': 'Connexion réussie avec {walletName}',
1622
- * }
1623
- * }
1624
- * }}
1625
- * >
1626
- * {children}
1627
- * </PrivyProvider>
1628
- * ```
1629
- */
1630
- textLocalization?: Partial<PrivyI18nStrings>;
1631
- };
1632
- /**
1633
- * This property is only required for apps that use a third-party authentication provider.
1634
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1635
- */
1636
- customAuth?: {
1637
- /**
1638
- * If true, enable custom authentication integration.
1639
- * This enables a JWT from a custom auth provider to be used to authenticate Privy embedded wallets.
1640
- * Defaults to true.
1641
- *
1642
- * @default true
1643
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1644
- */
1645
- enabled?: boolean;
1646
- /**
1647
- * A callback that returns the user's custom auth provider's access token as a string.
1648
- * Can be left blank if using cookies to store and send access tokens
1649
- *
1650
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1651
- *
1652
- * @example
1653
- * const {getAccessTokenSilently} = useAuth();
1654
- *
1655
- * <PrivyProvider
1656
- * {...props}
1657
- * config={{
1658
- * customAuth: {
1659
- * getCustomAccessToken: getAccessTokenSilently
1660
- * },
1661
- * }}
1662
- * />
1663
- */
1664
- getCustomAccessToken: () => Promise<string | undefined>;
1665
- /**
1666
- * Custom auth providers loading state
1667
- *
1668
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1669
- *
1670
- * @example
1671
- * const {isLoading} = useAuth();
1672
- *
1673
- * <PrivyProvider
1674
- * {...props}
1675
- * config={{
1676
- * customAuth: {
1677
- * isLoading,
1678
- * },
1679
- * }}
1680
- * />
1681
- */
1682
- isLoading: boolean;
1683
- };
1684
- /** All legal configuration */
1685
- legal?: {
1686
- /** URL to the terms and conditions page for your application.
1687
- * Rendered as a link in the privy modal footer.
1688
- * This overrides the server setting `terms_and_conditions_url` */
1689
- termsAndConditionsUrl?: string | null;
1690
- /** URL to the privacy policy page for your application.
1691
- * Rendered as a link in the privy modal footer.
1692
- * This overrides the server setting `privacy_policy_url` */
1693
- privacyPolicyUrl?: string | null;
1694
- };
1695
- walletConnectCloudProjectId?: string;
1696
- /**
1697
- * Plugins to register with the SDK. Plugins extend SDK functionality
1698
- * and are automatically registered when the PrivyProvider mounts.
1699
- *
1700
- * @example
1701
- * ```tsx
1702
- * import {dataSuffix} from '@privy-io/react-auth';
1703
- *
1704
- * <PrivyProvider
1705
- * appId="..."
1706
- * config={{
1707
- * plugins: [dataSuffix('0x1234abcd')]
1708
- * }}
1709
- * >
1710
- * ```
1711
- */
1712
- plugins?: Array<DataSuffixPlugin | CrossTabUserSyncPlugin | WalletCreationFilterPlugin | DefaultSolanaRpcsPlugin>;
1713
- /**
1714
- * CSP nonce attached to entrypoint scripts on the host page. Required when the
1715
- * page is served with a strict CSP (e.g. `script-src 'nonce-X' 'strict-dynamic'`).
1716
- * The SDK forwards this value to third-party loaders that need it
1717
- * (today: the Cloudflare Turnstile CAPTCHA loader, whose `srcdoc` iframe is
1718
- * not covered by `'strict-dynamic'`).
1719
- *
1720
- * @example
1721
- * // Next.js App Router
1722
- * import {headers} from 'next/headers';
1723
- * const nonce = (await headers()).get('x-nonce') ?? undefined;
1724
- * <PrivyProvider config={{scriptNonce: nonce}}>...</PrivyProvider>
1725
- */
1726
- scriptNonce?: string;
1727
- /**
1728
- * Custom redirect URL for OAuth flows, useful for mobile applications.
1729
- * If not provided, defaults to window.location.href.
1730
- *
1731
- * For Capacitor/mobile apps, use a custom URL scheme like:
1732
- * 'com.yourapp.oauth://callback' or 'yourapp://oauth'
1733
- *
1734
- * Make sure to register this URL scheme in your app configuration
1735
- * and add it to your app's allowed URL schemes in the Privy dashboard.
1736
- */
1737
- customOAuthRedirectUrl?: string;
1738
- /**
1739
- * If true, allows OAuth login in React Native WebViews and other embedded browsers.
1740
- * By default, OAuth (particularly Google) is blocked in these environments because
1741
- * OAuth providers typically reject authentication requests from embedded webviews.
1742
- *
1743
- * Only enable this if you have a specific use case and have confirmed OAuth works
1744
- * in your WebView environment.
1745
- *
1746
- * @default false
1747
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1748
- */
1749
- allowOAuthInEmbeddedBrowsers?: boolean;
1750
- /**
1751
- * A list of supported chains, used to specify which chains should be used throughout the application.
1752
- *
1753
- * Calling `sendTransaction` or `switchChain` on an unsupported network will throw an error.
1754
- *
1755
- * For external wallets, if the wallet's current chain post-connection (during connect-only or siwe flows)
1756
- * is not within the supported chains list, the user will be prompted to switch to the `defaultChain` (if set) or first supplied. If the chain
1757
- * switching process does not fully succeed, the user will **not** be blocked from the application (and the wallet's current `chainId` can always
1758
- * be observed and acted upon accordingly).
1759
- *
1760
- * For embedded wallets, the wallet will automatically default to the `defaultChain` (if set) or first supplied `supportedChain`.
1761
- */
1762
- supportedChains?: Chain[];
1763
- /**
1764
- * When supplied, the `defaultChain` will be the default chain used throughout the application.
1765
- *
1766
- * For external wallets, it will be used if the user's wallet it not within the `supportedChains` (or default chains) list.
1767
- *
1768
- * For embedded wallets, it will be used upon initialization, when the user hasn't switched to another supported chain.
1769
- */
1770
- defaultChain?: Chain;
1771
- captchaEnabled?: boolean;
1772
- /**
1773
- * Options for connecting to external wallets like Coinbase Wallet, MetaMask, etc.
1774
- *
1775
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1776
- */
1777
- externalWallets?: ExternalWalletsConfig;
1778
- /** All embedded wallets configuration */
1779
- embeddedWallets?: {
1780
- ethereum?: {
1781
- /**
1782
- * Whether an Ethereum embedded wallet should be created for the user on login.
1783
- *
1784
- * For `all-users`, the user will be prompted to create a Privy wallet after successfully
1785
- * logging in. If they cancel or are visiting after this flag was put in place, they will be
1786
- * prompted to create a wallet on their next login.
1787
- *
1788
- * For `users-without-wallets`, the user will be prompted to create a Privy wallet after
1789
- * successfully logging in, only if they do not currently have any wallet associated with their
1790
- * user object - for example if they have linked an external wallet.
1791
- *
1792
- * For `off`, an embedded wallet is not created during login. You can always prompt the user to
1793
- * create one manually with your app.
1794
- *
1795
- * Defaults to 'off'.
1796
- */
1797
- createOnLogin?: EmbeddedWalletCreateOnLoginConfig;
1798
- };
1799
- solana?: {
1800
- /**
1801
- * Whether a Solana embedded wallet should be created for the user on login.
1802
- *
1803
- * For `all-users`, the user will be prompted to create a Privy wallet after successfully
1804
- * logging in. If they cancel or are visiting after this flag was put in place, they will be
1805
- * prompted to create a wallet on their next login.
1806
- *
1807
- * For `users-without-wallets`, the user will be prompted to create a Privy wallet after
1808
- * successfully logging in, only if they do not currently have any wallet associated with their
1809
- * user object - for example if they have linked an external wallet.
1810
- *
1811
- * For `off`, an embedded wallet is not created during login. You can always prompt the user to
1812
- * create one manually with your app.
1813
- *
1814
- * Defaults to 'off'.
1815
- */
1816
- createOnLogin?: EmbeddedWalletCreateOnLoginConfig;
1817
- };
1818
- /**
1819
- * Set to `true` to disable automatic migration, if you are migrating
1820
- * manually via the `useMigrateWallets` hook.
1821
- *
1822
- * @default false
1823
- */
1824
- disableAutomaticMigration?: boolean;
1825
- /**
1826
- * Override any settings for the embedded wallet's UI to show or hide the wallet UIs.
1827
- *
1828
- * If true, wallet UIs will always be shown.
1829
- * If false, wallet UIs will always be hidden.
1830
- *
1831
- * If not set, the default behavior will match the server configuration.
1832
- */
1833
- showWalletUIs?: boolean;
1834
- /**
1835
- * Options to customize the display of transaction prices in the embedded wallet's transaction
1836
- * prompt. You may configure a primary currency to emphasize, and a secondary currency to show
1837
- * as subtext. Defaults to emphasizing the price in fiat currency, and showing the price in the native
1838
- * token as subtext.
1839
- *
1840
- * You may either set:
1841
- * - `{primary: 'fiat-currency', secondary: 'native-token'}` to emphasize fiat currency prices, showing native token
1842
- * prices as subtext. This is the default.
1843
- * - `{secondary: 'native-token', secondary: null}` to show native token prices only, with no subtext.
1844
- *
1845
- * Privy does not currently support:
1846
- * - emphasizing native token prices over fiat currency prices
1847
- * - showing prices only in fiat currency, without native token prices
1848
- *
1849
- */
1850
- priceDisplay?: PriceDisplayOptions;
1851
- /**
1852
- * If true, Privy will attempt to additional decoding calldata for 721 and 1155 approval, transfer, and mint sendTransaction calls,
1853
- * in addition to the default ERC20 `transfer` and `approve` decoding.
1854
- * If false, Privy will only decode `transfer` and `approve` calldata for ERC20 tokens.
1855
- *
1856
- * @default false
1857
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1858
- */
1859
- extendedCalldataDecoding?: boolean;
1860
- };
1861
- /**
1862
- * All multi-factor authentication configuration
1863
- */
1864
- mfa?: {
1865
- /**
1866
- * If true, Privy will not prompt or instantiate any UI for MFA Verification. The developer
1867
- * must handle MFA verification themselves.
1868
- * If false, any action that requires MFA will raise a modal and require user to verify MFA
1869
- * before proceeding.
1870
- *
1871
- * Defaults to false.
1872
- */
1873
- noPromptOnMfaRequired?: boolean;
1874
- };
1875
- passkeys?: {
1876
- /**
1877
- * - If `true`, unenrolling a passkey from MFA will also remove it as a login method.
1878
- * - If `false`, it will keep it as a login method as long as it has not been manually unlinked.
1879
- *
1880
- * @default true
1881
- */
1882
- shouldUnlinkOnUnenrollMfa?: boolean;
1883
- /**
1884
- * - If `true`, unlinking a passkey as a login method will also unenroll it from MFA.
1885
- * - If `false`, it will keep it as an mfa method as long as it has not been manually unenrolled.
1886
- *
1887
- * @default true
1888
- */
1889
- shouldUnenrollMfaOnUnlink?: boolean;
1890
- /**
1891
- * Allows overriding the default options returned for passkey registration
1892
- */
1893
- registration?: Pick<PublicKeyCredentialCreationOptionsJSON, 'hints'>;
1894
- };
1895
- /**
1896
- * Settings associated with funding methods
1897
- */
1898
- fundingMethodConfig?: {
1899
- moonpay: {
1900
- /**
1901
- * Determines whether to use the Moonpay sandbox flow.
1902
- *
1903
- * Defaults to false.
1904
- */
1905
- useSandbox?: boolean;
1906
- /**
1907
- * Determines the payment method for each Moonpay transaction.
1908
- *
1909
- * Defaults to Moonpay's default.
1910
- */
1911
- paymentMethod?: MoonpayPaymentMethod;
1912
- /**
1913
- * Determines the UI settings for each Moonpay transaction.
1914
- *
1915
- * Defaults to Moonpay's default.
1916
- */
1917
- uiConfig?: MoonpayUiConfig;
1918
- };
1919
- };
1920
- /**
1921
- * Configuration for Solana
1922
- */
1923
- solana?: {
1924
- /**
1925
- * @solana/kit RPC configuration objects for each solana chain. This applies for solana standard wallet hooks like `useStandardSignMessage`,
1926
- * `useStandardSignTransaction`, `useStandardSignAndSendTransaction`.
1927
- *
1928
- * @example
1929
- * ```typescript
1930
- * import {createSolanaRpc, createSolanaRpcSubscriptions} from '@solana/kit';
1931
- *
1932
- * const rpcs = {
1933
- * 'solana:mainnet': {
1934
- * rpc: createSolanaRpc('https://api.mainnet-beta.solana.com'),
1935
- * rpcSubscriptions: createSolanaRpcSubscriptions('wss://api.mainnet-beta.solana.com'),
1936
- * blockExplorerUrl: 'https://explorer.solana.com',
1937
- * },
1938
- * }
1939
- */
1940
- rpcs?: Partial<Record<SolanaChain, {
1941
- rpc: Rpc<SolanaRpcApi>;
1942
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1943
- blockExplorerUrl?: string;
1944
- }>>;
1945
- };
1946
- /**
1947
- * @experimental
1948
- *
1949
- * Session management configuration.
1950
- */
1951
- sessions?: {
1952
- /**
1953
- * @experimental
1954
- *
1955
- * How to treat the cookie mirror of the session tokens. Cookies are only read by a
1956
- * same-origin server, never by Privy, so `'never'` does not affect auth.
1957
- *
1958
- * @default 'default'
1959
- */
1960
- cookieWriteBehavior?: CookieWriteBehavior;
1961
- };
1962
- }
1963
- /**
1964
- * The data received from Telegram when the user is authenticated.
1965
- *
1966
- * @see https://core.telegram.org/widgets/login#receiving-authorization-data
1967
- */
1968
- interface TelegramAuthResult {
1969
- id: number;
1970
- first_name: string;
1971
- auth_date: number;
1972
- hash: string;
1973
- last_name?: string;
1974
- photo_url?: string;
1975
- username?: string;
1976
- }
1977
- /**
1978
- * Data received from Telegram when the user is authenticated via the Telegram Web App.
1979
- *
1980
- * @see https://core.telegram.org/widgets/login#receiving-authorization-data
1981
- */
1982
- interface TelegramWebAppData {
1983
- query_id?: string;
1984
- auth_date: number;
1985
- hash: string;
1986
- user: string;
1987
- chat_instance?: string;
1988
- chat_type?: string;
1989
- start_param?: string;
1990
- signature?: string;
1991
- }
1992
- /**
1993
- * Data received from an OAuth user endpoint -- only used in account transfer flows
1994
- */
1995
- interface OAuthUserInfo {
1996
- subject: string;
1997
- username?: string;
1998
- name?: string;
1999
- email?: string;
2000
- profilePictureUrl?: string;
2001
- vanityName?: string;
2002
- meta?: {
2003
- providerAppId?: string;
2004
- };
2005
- embeddedWalletAddresses?: string[];
2006
- smartWalletAddresses?: string[];
2007
- }
2008
- /**
2009
- * Object representation of metadata reported by a connected wallet during the SIWE flow
2010
- */
2011
- interface ExternalWalletMetadata {
2012
- walletClientType: WalletClientType;
2013
- chainId?: string;
2014
- connectorType: string;
2015
- }
2016
- /**
2017
- * Configuration for the Privy Smart Wallet SDK.
2018
- * This configuration is used to enable the Smart Wallet SDK and configure the networks that the Smart Wallet will be used on.
2019
- * This is internal so changes to this do not count as breaking API changes.
2020
- */
2021
- type SmartWalletConfig = {
2022
- enabled: false;
2023
- } | {
2024
- enabled: true;
2025
- smartWalletType: SmartWalletType;
2026
- smartWalletVersion?: string;
2027
- configuredNetworks: SmartWalletNetworkConfig[];
2028
- };
2029
- type SmartWalletNetworkConfig = {
2030
- chainId: string;
2031
- bundlerUrl: string;
2032
- paymasterUrl?: string;
2033
- paymasterContext?: AlchemyPaymasterContextClient | BiconomyPaymasterContext;
2034
- };
2035
- /**
2036
- * There are two options For how to prioritize/highlight the user's login method options:
2037
- * - `web3-first`: highlight the web3 login method options (wallets)
2038
- * - `web2-first`: highlight the web2 login method options (email, sms, social)
2039
- */
2040
- type LoginGroupPriority = 'web2-first' | 'web3-first';
2041
- /** Privy configuration object used throughout the application
2042
- * This is a composition of the server config and client config, and contains data used throughout the app.
2043
- * This is just used internally - changes to this don't count as breaking API changes. */
2044
- type AppConfig = {
2045
- id: AppResponse['id'];
2046
- appClientId: string | undefined;
2047
- name: AppResponse['name'];
2048
- /** The legal name of the company that operates the app, set in the dashboard. */
2049
- legalName: string | null;
2050
- scriptNonce: string | undefined;
2051
- allowlistConfig: {
2052
- errorTitle: string | null;
2053
- errorDetail: string | null;
2054
- errorCtaText: string | null;
2055
- errorCtaLink: string | null;
2056
- };
2057
- legacyWalletUiConfig: AppResponse['legacy_wallet_ui_config'];
2058
- appearance: {
2059
- logo?: NonNullable<PrivyClientConfig['appearance']>['logo'];
2060
- emailDomain?: NonNullable<PrivyClientConfig['appearance']>['emailDomain'];
2061
- landingHeader: NonNullable<PrivyClientConfig['appearance']>['landingHeader'];
2062
- loginMessage: NonNullable<PrivyClientConfig['appearance']>['loginMessage'];
2063
- footerLogo: NonNullable<PrivyClientConfig['appearance']>['footerLogo'];
2064
- palette: PrivyPalette;
2065
- loginGroupPriority: LoginGroupPriority;
2066
- hideDirectWeb2Inputs?: boolean;
2067
- walletList: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletList']>;
2068
- walletChainType: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletChainType']>;
2069
- };
2070
- loginMethods: {
2071
- wallet?: boolean;
2072
- email?: boolean;
2073
- sms?: boolean;
2074
- google?: boolean;
2075
- twitter?: boolean;
2076
- discord?: boolean;
2077
- github?: boolean;
2078
- spotify?: boolean;
2079
- instagram?: boolean;
2080
- tiktok?: boolean;
2081
- line?: boolean;
2082
- twitch?: boolean;
2083
- linkedin?: boolean;
2084
- apple?: boolean;
2085
- farcaster?: boolean;
2086
- passkey?: boolean;
2087
- telegram?: boolean;
2088
- };
2089
- disablePlusEmails: AppResponse['disable_plus_emails'];
2090
- globalDisablePasskeys: NonNullable<PrivyClientConfig['globalDisablePasskeys']>;
2091
- loginMethodsAndOrder?: PrivyClientConfig['loginMethodsAndOrder'];
2092
- legal: {
2093
- termsAndConditionsUrl: AppResponse['terms_and_conditions_url'];
2094
- privacyPolicyUrl: AppResponse['privacy_policy_url'];
2095
- requireUsersAcceptTerms: NonNullable<AppResponse['require_users_accept_terms']>;
2096
- };
2097
- walletConnectCloudProjectId: NonNullable<AppResponse['wallet_connect_cloud_project_id']>;
2098
- rpcConfig: RpcConfig;
2099
- chains: Chain[];
2100
- defaultChain: Chain;
2101
- intl: {
2102
- defaultCountry: CountryCode;
2103
- textLocalization?: Partial<PrivyI18nStrings>;
2104
- };
2105
- customOAuthProviders: AppResponse['custom_oauth_providers'];
2106
- /**
2107
- * Cross-app providers specified in the loginMethods array (format: privy:${appId})
2108
- */
2109
- crossAppProviders: string[];
2110
- /**
2111
- * Whether the `defaultChain` in the internal config should be enforced on connection requests. This
2112
- * gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
2113
- *
2114
- * If true, Privy will prompt wallets to switch to the `defaultChain` on connection, and will include
2115
- * the default chain in the required chains namespace for WalletConnect.
2116
- */
2117
- shouldEnforceDefaultChainOnConnect: boolean;
2118
- captcha: {
2119
- /**
2120
- * Null if captcha is disabled, otherwise the enabled captcha provider.
2121
- */
2122
- enabledProvider: AppResponse['enabled_captcha_provider'];
2123
- siteKey: NonNullable<AppResponse['captcha_site_key']>;
2124
- };
2125
- externalWallets: {
2126
- coinbaseWallet: {
2127
- config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
2128
- };
2129
- baseAccount: {
2130
- config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['baseAccount']>['config']>;
2131
- };
2132
- walletConnect: {
2133
- enabled: boolean;
2134
- };
2135
- solana: {
2136
- connectors: NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['solana']>['connectors'];
2137
- };
2138
- disableAllExternalWallets: boolean;
2139
- };
2140
- embeddedWallets: {
2141
- ethereum: {
2142
- createOnLogin: NonNullable<AppResponse['embedded_wallet_config']>['ethereum']['create_on_login'];
2143
- };
2144
- solana: {
2145
- createOnLogin: NonNullable<AppResponse['embedded_wallet_config']>['solana']['create_on_login'];
2146
- };
2147
- disableAutomaticMigration: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['disableAutomaticMigration']>;
2148
- requireUserOwnedRecoveryOnCreate: NonNullable<AppResponse['embedded_wallet_config']>['require_user_owned_recovery_on_create'];
2149
- userOwnedRecoveryOptions: NonNullable<AppResponse['embedded_wallet_config']>['user_owned_recovery_options'];
2150
- mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
2151
- priceDisplay: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['priceDisplay']>;
2152
- showWalletUIs: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['showWalletUIs']>;
2153
- extendedCalldataDecoding: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['extendedCalldataDecoding']>;
2154
- transactionScanning: {
2155
- enabled: boolean;
2156
- domain: NonNullable<NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['transactionScanning']>['domain']>;
2157
- };
2158
- };
2159
- mfa: {
2160
- methods: MfaMethod[];
2161
- noPromptOnMfaRequired?: NonNullable<PrivyClientConfig['mfa']>['noPromptOnMfaRequired'];
2162
- };
2163
- passkeys: {
2164
- shouldUnlinkOnUnenrollMfa: NonNullable<PrivyClientConfig['passkeys']>['shouldUnlinkOnUnenrollMfa'];
2165
- shouldUnenrollMfaOnUnlink: NonNullable<PrivyClientConfig['passkeys']>['shouldUnenrollMfaOnUnlink'];
2166
- registration: NonNullable<PrivyClientConfig['passkeys']>['registration'];
2167
- };
2168
- customAuth?: {
2169
- enabled?: boolean;
2170
- getCustomAccessToken: NonNullable<PrivyClientConfig['customAuth']>['getCustomAccessToken'];
2171
- isLoading: NonNullable<PrivyClientConfig['customAuth']>['isLoading'];
2172
- };
2173
- render: {
2174
- standalone: NonNullable<PrivyClientConfig['_render']>['standalone'];
2175
- };
2176
- loginConfig: {
2177
- telegramAuthConfiguration?: {
2178
- botId: string;
2179
- botName: string;
2180
- linkEnabled: boolean;
2181
- seamlessAuthEnabled: boolean;
2182
- };
2183
- telegramHasHmacCredentials: boolean;
2184
- telegramSeamlessAuthEnabled: boolean;
2185
- passkeysForSignupEnabled: AppResponse['passkeys_for_signup_enabled'];
2186
- };
2187
- headless: boolean;
2188
- fundingConfig?: {
2189
- methods: NonNullable<AppResponse['funding_config']>['methods'];
2190
- options: NonNullable<AppResponse['funding_config']>['options'];
2191
- defaultRecommendedAmount: string;
2192
- defaultRecommendedCurrency: NonNullable<AppResponse['funding_config']>['default_recommended_currency'];
2193
- promptFundingOnWalletCreation: boolean;
2194
- crossChainBridgingEnabled: boolean;
2195
- };
2196
- fundingMethodConfig: NonNullable<PrivyClientConfig['fundingMethodConfig']>;
2197
- whatsAppEnabled: boolean;
2198
- customOAuthRedirectUrl?: string;
2199
- allowOAuthInEmbeddedBrowsers: boolean;
2200
- solanaRpcs: Record<SolanaChain, {
2201
- rpc: Rpc<SolanaRpcApi>;
2202
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
2203
- blockExplorerUrl?: string;
2204
- } | null>;
2205
- smartWallets?: SmartWalletConfig;
2206
- /** Enable debug logging for wallet connectors */
2207
- connectorsDebugLogs: boolean;
2208
- };
2209
- /** Privy's generated color palette.
2210
- * This will be generated, given a passed theme and accent color (from configuration),
2211
- * and then passed along to css variables. Generated attributes can be overridden by the user.
2212
- * at the css level. */
2213
- type PrivyPalette = {
2214
- colorScheme: 'light' | 'dark';
2215
- background: string;
2216
- background2: string;
2217
- background3: string;
2218
- foreground: string;
2219
- foreground2: string;
2220
- foreground3: string;
2221
- foreground4: string;
2222
- foregroundAccent: string;
2223
- accent: string;
2224
- accentLight: string;
2225
- accentHover: string;
2226
- accentDark: string;
2227
- accentDarkest: string;
2228
- success: string;
2229
- warn: string;
2230
- warnLight: string;
2231
- successDark: string;
2232
- successLight: string;
2233
- error: string;
2234
- errorLight: string;
2235
- borderDefault: string;
2236
- borderHover: string;
2237
- borderFocus: string;
2238
- borderError: string;
2239
- borderSuccess: string;
2240
- borderWarning: string;
2241
- borderInfo: string;
2242
- borderInteractive: string;
2243
- borderInteractiveHover: string;
2244
- backgroundHover: string;
2245
- backgroundClicked: string;
2246
- backgroundDisabled: string;
2247
- backgroundInteractive: string;
2248
- backgroundInteractiveHover: string;
2249
- backgroundInteractiveClicked: string;
2250
- backgroundInteractiveDisabled: string;
2251
- foregroundHover: string;
2252
- foregroundClicked: string;
2253
- foregroundDisabled: string;
2254
- foregroundInteractive: string;
2255
- foregroundInteractiveHover: string;
2256
- warningDark: string;
2257
- errorDark: string;
2258
- successBg: string;
2259
- errorBg: string;
2260
- errorBgHover: string;
2261
- warnBg: string;
2262
- infoBg: string;
2263
- infoBgHover: string;
2264
- accentHasGoodContrast: string;
2265
- linkNavigationColor: string;
2266
- linkNavigationDecoration: string;
2267
- iconDefault: string;
2268
- iconMuted: string;
2269
- iconSubtle: string;
2270
- iconInverse: string;
2271
- iconSuccess: string;
2272
- iconWarning: string;
2273
- iconError: string;
2274
- iconInteractive: string;
2275
- iconDefaultHover: string;
2276
- iconMutedHover: string;
2277
- iconSubtleHover: string;
2278
- iconDefaultClicked: string;
2279
- iconMutedClicked: string;
2280
- iconSubtleClicked: string;
2281
- iconDefaultDisabled: string;
2282
- iconMutedDisabled: string;
2283
- iconSubtleDisabled: string;
2284
- iconErrorHover: string;
2285
- iconInteractiveHover: string;
2286
- iconErrorClicked: string;
2287
- iconInteractiveClicked: string;
2288
- iconMutedDisabledAlt: string;
2289
- iconSubtleDisabledAlt: string;
2290
- };
2291
- type EmbeddedWalletCreateOnLoginConfig = 'users-without-wallets' | 'all-users' | 'off';
2292
- type OtpFlowState = {
2293
- status: 'initial';
2294
- } | {
2295
- status: 'error';
2296
- error: Error | null;
2297
- } | {
2298
- status: 'sending-code';
2299
- } | {
2300
- status: 'awaiting-code-input';
2301
- } | {
2302
- status: 'submitting-code';
2303
- } | {
2304
- status: 'done';
2305
- };
2306
- type PasskeyFlowState = {
2307
- status: 'initial';
2308
- } | {
2309
- status: 'error';
2310
- error: Error | null;
2311
- } | {
2312
- status: 'generating-challenge';
2313
- } | {
2314
- status: 'awaiting-passkey';
2315
- } | {
2316
- status: 'submitting-response';
2317
- } | {
2318
- status: 'done';
2319
- };
2320
- type SiweFlowState = {
2321
- status: 'initial';
2322
- } | {
2323
- status: 'error';
2324
- error: Error | null;
2325
- } | {
2326
- status: 'generating-message';
2327
- } | {
2328
- status: 'awaiting-signature';
2329
- } | {
2330
- status: 'submitting-signature';
2331
- } | {
2332
- status: 'done';
2333
- };
2334
- type SiwsFlowState = {
2335
- status: 'initial';
2336
- } | {
2337
- status: 'error';
2338
- error: Error | null;
2339
- } | {
2340
- status: 'generating-message';
2341
- } | {
2342
- status: 'awaiting-signature';
2343
- } | {
2344
- status: 'submitting-signature';
2345
- } | {
2346
- status: 'done';
2347
- };
2348
- type OAuthFlowState = {
2349
- status: 'initial';
2350
- } | {
2351
- status: 'loading';
2352
- } | {
2353
- status: 'done';
2354
- } | {
2355
- status: 'error';
2356
- error: Error | null;
2357
- };
2358
- type TelegramAuthFlowState = {
2359
- status: 'initial';
2360
- } | {
2361
- status: 'loading';
2362
- } | {
2363
- status: 'done';
2364
- } | {
2365
- status: 'error';
2366
- error: Error | null;
2367
- };
2368
- /**
2369
- * UI configuration object for the embedded wallet's Sign Message screen
2370
- */
2371
- type SignMessageModalUIOptions = {
2372
- /**
2373
- * Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled
2374
- * for your app in the Privy Dashboard, or `showWalletUIs` in the `embeddedWallets` config.
2375
- */
2376
- showWalletUIs?: boolean;
2377
- /**
2378
- * Title for the Sign Message screen. Defaults to 'Sign'.
2379
- */
2380
- title?: string;
2381
- /**
2382
- * Description text for the Sign Message screen. Defaults to
2383
- * 'Sign to continue'.
2384
- */
2385
- description?: string;
2386
- /**
2387
- * Text for the CTA button on the Sign Message screen. Defaults to
2388
- * 'Sign and Continue'
2389
- */
2390
- buttonText?: string;
2391
- /**
2392
- * An icon to display on the Sign Message screen. Defaults to no icon.
2393
- */
2394
- iconUrl?: string;
2395
- /**
2396
- * Whether or not to display a cancel button on the transaction confirmation screen
2397
- */
2398
- isCancellable?: boolean;
2399
- };
2400
- type MessageTypeProperty = {
2401
- name: string;
2402
- type: string;
2403
- };
2404
- type MessageTypes = {
2405
- [additionalProperties: string]: MessageTypeProperty[];
2406
- };
2407
- /**
2408
- * JSON Object that conforms to the EIP-712 [`TypedData JSON schema.`](https://eips.ethereum.org/EIPS/eip-712#specification-of-the-eth_signtypeddata-json-rpc)
2409
- *
2410
- */
2411
- type TypedMessage<T extends MessageTypes> = {
2412
- types: T;
2413
- primaryType: keyof T;
2414
- domain: {
2415
- name?: string;
2416
- version?: string;
2417
- chainId?: number;
2418
- verifyingContract?: string;
2419
- salt?: ArrayBuffer;
2420
- };
2421
- message: Record<string, unknown>;
2422
- };
2423
- /**
2424
- * JSON Object that conforms to the EIP-712 [`TypedData JSON schema.`](https://eips.ethereum.org/EIPS/eip-712#specification-of-the-eth_signtypeddata-json-rpc)
2425
- * See [`TypedMessage`](TypedMessage) for specs on the specific params of typedData.
2426
- */
2427
- type SignTypedDataParams = TypedMessage<MessageTypes>;
2428
- /**
2429
- * UI customization object for additional transaction details. Will be shown
2430
- * in an expandable accordion in the Send Transaction screen.
2431
- */
2432
- type TransactionUIOptions = {
2433
- /**
2434
- * Title for the transaction details accordion within the
2435
- * Send Transaction screen. Defaults to 'Details'.
2436
- */
2437
- title?: string;
2438
- /**
2439
- * Action that the user is taking when sending this transaction. This
2440
- * should be short (<4 words, e.g. 'Buy NFT'). Will be shown inside
2441
- * the transaction details accordion in Send Transaction screen.
2442
- */
2443
- action?: string;
2444
- /**
2445
- * If the transaction to be sent is a call to a smart contract, you may
2446
- * use this object to fill in additional details about the contract being called.
2447
- */
2448
- contractInfo?: ContractUIOptions;
2449
- };
2450
- /**
2451
- * If the transaction to be sent is a call to a smart contract, you may use this
2452
- * object to fill in additional details about the contract being called.
2453
- */
2454
- type ContractUIOptions = {
2455
- /**
2456
- * URL with more information about the smart contract.
2457
- */
2458
- url?: string;
2459
- /**
2460
- * Name of smart contract being called.
2461
- */
2462
- name?: string;
2463
- /**
2464
- * URL for an image to show in the Send Transaction screen.
2465
- */
2466
- imgUrl?: string;
2467
- /**
2468
- * Alt text for the image in the Send Transaction screen, if a
2469
- * valid `imgUrl` is set.
2470
- */
2471
- imgAltText?: string;
2472
- /**
2473
- * Size for the image in the Send Transaction screen, if a valid
2474
- * `imgUrl` is set.
2475
- */
2476
- imgSize?: 'sm' | 'lg';
2477
- };
2478
- /**
2479
- * UI customization object for the embedded wallet's Send Transaction screen
2480
- */
2481
- type SendTransactionModalUIOptions = {
2482
- /**
2483
- * Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled
2484
- * for your app in the Privy Dashboard, or `showWalletUIs` in the `embeddedWallets` config.
2485
- */
2486
- showWalletUIs?: boolean;
2487
- /**
2488
- * Description of the transaction being sent.
2489
- */
2490
- description?: string;
2491
- /**
2492
- * Text to show on CTA button for Send Transaction screen. Defaults to
2493
- * 'Submit'. For fund transactions, defaults to 'Approve'.
2494
- */
2495
- buttonText?: string;
2496
- /**
2497
- * Details about the transaction that the user will send. Will be shown
2498
- * in an accordion in the Send Transaction screen.
2499
- */
2500
- transactionInfo?: TransactionUIOptions;
2501
- /**
2502
- * Text to display at top of Send Transaction Success screen. Defaults to
2503
- * 'Transaction complete!' if transaction is successful.
2504
- */
2505
- successHeader?: string;
2506
- /**
2507
- * Description of the transaction Success screen. Defaults to 'You're all set.'
2508
- */
2509
- successDescription?: string;
2510
- /**
2511
- * Whether or not to display a cancel button on the transaction confirmation screen
2512
- */
2513
- isCancellable?: boolean;
2514
- };
2515
- /**
2516
- * Our external-facing `UnsignedTransactionRequest` type makes the `chainId` field optional,
2517
- * matching ethers, wagmi, and other libraries. However, our modal needs to be "aware"
2518
- * of the transaction's `chainId` to ensure it does price conversion, quote labeling, etc. importantly.
2519
- *
2520
- * Thus, in the modal, we enforce a stricter type `UnsignedTransactionRequestWithChainId` which wraps
2521
- * `UnsignedTransactionRequest` to make `chainId` required.
2522
- *
2523
- * If the developer does not set a `chainId` in their `UnsignedTransactionRequest`, we default to the embedded
2524
- * provider's current `chainId` in `privy-provider.tsx` > `sendTransaction`
2525
- */
2526
- type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
2527
- chainId: number;
2528
- };
2529
- type LoginModalOptions = RuntimeLoginOverridableOptions & {
2530
- isSigningInWithLedgerSolana?: boolean;
2531
- };
2532
- type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
2533
- type BridgeProviders = OnrampProvider;
2534
- type PrivyFarcasterSignerInitResponse = {
2535
- public_key: string;
2536
- status: 'pending_approval';
2537
- signer_approval_url: string;
2538
- } | {
2539
- public_key: string;
2540
- status: 'approved';
2541
- fid: bigint;
2542
- } | {
2543
- public_key: string;
2544
- status: 'revoked';
2545
- };
2546
- type PrefillLoginOptions = {
2547
- type: 'email' | 'phone';
2548
- value: string;
2549
- };
2550
- /** Options for Privy's `login` method. */
2551
- type RuntimeLoginOverridableOptions = {
2552
- /** An array of login methods to display in the login modal. */
2553
- loginMethods?: PrivyClientConfig['loginMethods'];
2554
- /** Details to prefill a user's email or phone number for email or SMS login. */
2555
- prefill?: PrefillLoginOptions;
2556
- /**
2557
- * Whether or not to block sign ups (only allow existing users to log in).
2558
- */
2559
- disableSignup?: boolean;
2560
- /**
2561
- * Filter the login wallet options to only show wallets that support the specified chain type.
2562
- */
2563
- walletChainType?: NonNullable<PrivyClientConfig['appearance']>['walletChainType'];
2564
- };
2565
- /** Options for Privy's `connectWallet` method */
2566
- type ExternalConnectWalletModalOptions = {
2567
- /**
2568
- * @deprecated Use `description` instead to provide custom text for the connect wallet modal.
2569
- * An address to suggest the user to connect in Privy's UIs. This is only a suggestion for the
2570
- * user and the method will not error if they connect a different address.
2571
- */
2572
- suggestedAddress?: string;
2573
- /**
2574
- * An array of wallet options to present the user in the connect wallet modal.
2575
- */
2576
- walletList?: WalletListEntry[];
2577
- /**
2578
- * Filter the login wallet options to only show wallets that support the specified chain type.
2579
- */
2580
- walletChainType?: NonNullable<PrivyClientConfig['appearance']>['walletChainType'];
2581
- /**
2582
- * Custom description text to display in the connect wallet modal. If not provided,
2583
- * a default description will be shown based on the context (e.g., "Connect a wallet to your [app] account").
2584
- * To hide completely, set to an empty string.
2585
- */
2586
- description?: ReactNode;
2587
- /**
2588
- * When set, the connect view will skip the wallets list and go straight to the wallet connection.
2589
- */
2590
- preSelectedWalletId?: string;
2591
- /**
2592
- * Whether to hide the modal header content (wallet icon, title, and description).
2593
- * The close button and padding will still be shown. Defaults to false (header is visible).
2594
- */
2595
- hideHeader?: boolean;
2596
- };
2597
- /** Options for Privy's `createWallet` method */
2598
- type CreateWalletOptions = {
2599
- /**
2600
- * Whether or not to create an additional Ethereum embedded wallet for a user that already has
2601
- * an Ethereum embedded wallet. If this is set to `true` and the user does not already have an Ethereum
2602
- * embedded wallet, `createWallet` will throw an error.
2603
- *
2604
- * Defaults to `false`.
2605
- */
2606
- createAdditional?: boolean;
2607
- /**
2608
- * Session signers to associate with the wallet at creation time.
2609
- * Only supported for TEE execution mode (`user-controlled-server-wallets-only`).
2610
- */
2611
- signers?: SessionSignerInput;
2612
- } | {
2613
- /**
2614
- * Specify the hierarchical deterministic (HD) index of the embedded wallet to create.
2615
- * **A wallet with HD index 0 must be created before creating a wallet at greater HD indices.**
2616
- * If a value < 0 is passed in, `createWallet` will throw an error.
2617
- * If a value > 1 is passed in, and the user does not have a primary wallet (HD index == 0),
2618
- * `createWallet` will throw an error.
2619
- *
2620
- */
2621
- walletIndex: number;
2622
- /**
2623
- * Session signers to associate with the wallet at creation time.
2624
- * Only supported for TEE execution mode (`user-controlled-server-wallets-only`).
2625
- */
2626
- signers?: SessionSignerInput;
2627
- };
2628
- type SetWalletRecoveryOptions = {};
2629
- type CrossAppProviderDetails = {
2630
- name: string;
2631
- icon_url: string | null;
2632
- };
2633
- type LoginToMiniApp = {
2634
- /**
2635
- * The message the Farcaster wallet signed
2636
- */
2637
- message: string;
2638
- /**
2639
- * The SIWF signature
2640
- */
2641
- signature: string;
2642
- };
2643
- /**
2644
- * For SIWS flows, indicates the message signing format:
2645
- * - 'plain': raw message bytes signed directly
2646
- * - 'transaction': SIWS message wrapped in a memo transaction (Phantom Ledger workaround)
2647
- * - 'offchain-message': Solana off-chain message format with preamble (hardware wallet support)
2648
- */
2649
- type SiwsMessageType = 'plain' | 'transaction' | 'offchain-message';
2650
- type SessionSignerInput = {
2651
- signerId: string;
2652
- policyIds?: string[];
2653
- }[];
2654
- type SignerInput = SessionSignerInput;
2655
-
2656
- export { createCrossTabUserSyncPlugin as aX, createWalletCreationOnLoginPlugin as aY, SolanaWalletConnector as k, defaultSolanaRpcsPlugin as l, WalletConnector as r, toSolanaWalletConnectors as t };
2657
- export type { OAuthUserInfo as $, AppConfig as A, BaseConnectedEthereumWallet as B, ConnectedWallet as C, ConnectWalletModalOptions as D, EthereumRpcRequestType as E, FundingMethod as F, LoginModalOptions as G, HDWalletWithMetadata as H, SetWalletRecoveryOptions as I, SignTypedDataParams as J, UnsignedTransactionRequest as K, LoginMethod as L, MfaMethod as M, FundWalletConfig as N, OAuthTokens as O, PrivyFarcasterSignerInitResponse as P, CrossAppProviderDetails as Q, RuntimeLoginOverridableOptions as R, SolanaChain as S, MoonpaySignRequest as T, User as U, MoonpaySignResponse as V, Wallet as W, SiwsMessageType as X, ExternalWalletMetadata as Y, TelegramAuthResult as Z, TelegramWebAppData as _, LinkedAccountWithMetadata as a, OAuthFlowState as a0, LoginWithCode as a1, OtpFlowState as a2, PasskeyFlowState as a3, SiweFlowState as a4, BridgeProviders as a5, FundingResult as a6, BaseAccountSdkType as a7, UnsignedTransactionRequestWithChainId as a8, BaseConnectedWalletType as a9, MoonpayPaymentMethod as aA, NativeFundingConfig as aB, NonEmptyArray as aC, Passkey as aD, PasskeyWithMetadata as aE, Phone as aF, PhoneWithMetadata as aG, PriceDisplayOptions as aH, PrivyI18nStrings as aI, Quantity as aJ, SiwsFlowState as aK, SmartWallet as aL, Telegram as aM, TelegramWithMetadata as aN, Tiktok as aO, TiktokOAuthWithMetadata as aP, TransactionLog as aQ, TransactionReceipt as aR, TransactionUIOptions as aS, Twitter as aT, TwitterOAuthWithMetadata as aU, TypedMessage as aV, WalletWithMetadata as aW, SignerInput as aa, TelegramAuthFlowState as ab, Apple as ac, AppleOAuthWithMetadata as ad, ContractUIOptions as ae, CrossAppAccount as af, CrossAppAccountWithMetadata as ag, Discord as ah, DiscordOAuthWithMetadata as ai, Email as aj, EmailWithMetadata as ak, Farcaster as al, FarcasterWithMetadata as am, FundingStatus as an, Github as ao, GithubOAuthWithMetadata as ap, Google as aq, GoogleOAuthWithMetadata as ar, Line as as, LineOAuthWithMetadata as at, LinkedAccountType as au, LinkedIn as av, LinkedInOAuthWithMetadata as aw, LoginMethodOrderOption as ax, MessageTypes as ay, MoonpayCurrencyCode as az, BaseConnectedSolanaWallet as b, UserRecoveryMethod as c, LoginToMiniApp as d, SendTransactionModalUIOptions as e, SignMessageModalUIOptions as f, SessionSignerInput as g, SolanaStandardWallet as h, CreateWalletOptions as i, SolanaFundingConfig as j, MfaSubmitArgs as m, SolanaRpcRequestType as n, EthereumRpcResponseType as o, SolanaRpcResponseType as p, EntropyIdVerifier as q, WalletClientType as s, ConnectedWalletMetadata as u, PrivyClientConfig as v, SetBaseAccountSdkType as w, WalletListEntry as x, BaseConnectedWallet as y, ConnectorType as z };