@privy-io/react-auth 3.22.1 → 3.22.2

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 (881) hide show
  1. package/dist/cjs/AccountNotFoundScreen-Df-KSHgO.js +2 -0
  2. package/dist/cjs/AccountNotFoundScreen-Df-KSHgO.js.map +1 -0
  3. package/dist/cjs/Address-BXnAaPIw.js +18 -0
  4. package/dist/cjs/Address-BXnAaPIw.js.map +1 -0
  5. package/dist/cjs/AffirmativeConsentScreen-BRYZL54S.js +7 -0
  6. package/dist/cjs/AffirmativeConsentScreen-BRYZL54S.js.map +1 -0
  7. package/dist/cjs/AllowlistRejectionScreen-DjTPsNGC.js +2 -0
  8. package/dist/cjs/AllowlistRejectionScreen-DjTPsNGC.js.map +1 -0
  9. package/dist/cjs/AuthenticateWithWalletScreen-2ZQ61kOv.js +2 -0
  10. package/dist/cjs/AuthenticateWithWalletScreen-2ZQ61kOv.js.map +1 -0
  11. package/dist/cjs/AwaitingEvmToSolBridgingScreen-BPl7NY3O.js +3 -0
  12. package/dist/cjs/AwaitingEvmToSolBridgingScreen-BPl7NY3O.js.map +1 -0
  13. package/dist/cjs/AwaitingExternalEthereumTransferScreen-DIQY5Rzm.js +3 -0
  14. package/dist/cjs/AwaitingExternalEthereumTransferScreen-DIQY5Rzm.js.map +1 -0
  15. package/dist/cjs/AwaitingPasswordlessCodeScreen-CM513_Ol.js +104 -0
  16. package/dist/cjs/AwaitingPasswordlessCodeScreen-CM513_Ol.js.map +1 -0
  17. package/dist/cjs/AwaitingSolToEvmBridgingScreen-Da-r2BEf.js +3 -0
  18. package/dist/cjs/AwaitingSolToEvmBridgingScreen-Da-r2BEf.js.map +1 -0
  19. package/dist/cjs/BridgeNetworkSelectionView-CdWvQEpD.js +70 -0
  20. package/dist/cjs/BridgeNetworkSelectionView-CdWvQEpD.js.map +1 -0
  21. package/dist/cjs/CaptchaScreen-DYm8R2Fm.js +2 -0
  22. package/dist/cjs/CaptchaScreen-DYm8R2Fm.js.map +1 -0
  23. package/dist/cjs/CoinbaseOnrampStatusScreen-DXD_qvVP.js +17 -0
  24. package/dist/cjs/CoinbaseOnrampStatusScreen-DXD_qvVP.js.map +1 -0
  25. package/dist/cjs/ConnectEmailForm-D2J0nQsT.js +4 -0
  26. package/dist/cjs/ConnectEmailForm-D2J0nQsT.js.map +1 -0
  27. package/dist/cjs/ConnectLedgerScreen-CbG4zOU6.js +10 -0
  28. package/dist/cjs/ConnectLedgerScreen-CbG4zOU6.js.map +1 -0
  29. package/dist/cjs/ConnectOnlyLandingScreen-YlkvxEr_.js +2 -0
  30. package/dist/cjs/ConnectOnlyLandingScreen-YlkvxEr_.js.map +1 -0
  31. package/dist/cjs/ConnectOnlyStatusScreen-BUom00zX.js +2 -0
  32. package/dist/cjs/ConnectOnlyStatusScreen-BUom00zX.js.map +1 -0
  33. package/dist/cjs/ConnectOrCreateScreen-D2NQ5YU7.js +2 -0
  34. package/dist/cjs/ConnectOrCreateScreen-D2NQ5YU7.js.map +1 -0
  35. package/dist/cjs/ConnectPhoneForm-4oyTsl1C.js +98 -0
  36. package/dist/cjs/ConnectPhoneForm-4oyTsl1C.js.map +1 -0
  37. package/dist/cjs/ConnectWalletView-2tYdLkd5.js +148 -0
  38. package/dist/cjs/ConnectWalletView-2tYdLkd5.js.map +1 -0
  39. package/dist/cjs/ConnectionStatusScreen-CIZFEX0z.js +8 -0
  40. package/dist/cjs/ConnectionStatusScreen-CIZFEX0z.js.map +1 -0
  41. package/dist/cjs/CrossAppAuthScreen-pz1EpmU-.js +2 -0
  42. package/dist/cjs/CrossAppAuthScreen-pz1EpmU-.js.map +1 -0
  43. package/dist/cjs/CustomLandingScreenView-CDTfuVYv.js +24 -0
  44. package/dist/cjs/CustomLandingScreenView-CDTfuVYv.js.map +1 -0
  45. package/dist/cjs/DelegatedActionsConsentScreen-CB29Y4t8.js +2 -0
  46. package/dist/cjs/DelegatedActionsConsentScreen-CB29Y4t8.js.map +1 -0
  47. package/dist/cjs/DelegatedActionsRevokeScreen-Cpi90-JK.js +2 -0
  48. package/dist/cjs/DelegatedActionsRevokeScreen-Cpi90-JK.js.map +1 -0
  49. package/dist/cjs/EmbeddedWalletConnectingScreen-CM1n67n0.js +2 -0
  50. package/dist/cjs/EmbeddedWalletConnectingScreen-CM1n67n0.js.map +1 -0
  51. package/dist/cjs/EmbeddedWalletCreatedScreen-CeT1L9mT.js +2 -0
  52. package/dist/cjs/EmbeddedWalletCreatedScreen-CeT1L9mT.js.map +1 -0
  53. package/dist/cjs/EmbeddedWalletKeyExportScreen-KScSAxPL.js +26 -0
  54. package/dist/cjs/EmbeddedWalletKeyExportScreen-KScSAxPL.js.map +1 -0
  55. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BZDDYfWk.js +2 -0
  56. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BZDDYfWk.js.map +1 -0
  57. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-DLd-ijpI.js +2 -0
  58. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-DLd-ijpI.js.map +1 -0
  59. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-meh7uJnh.js +2 -0
  60. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-meh7uJnh.js.map +1 -0
  61. package/dist/cjs/EnrollTotp-CJaHT3oc.js +66 -0
  62. package/dist/cjs/EnrollTotp-CJaHT3oc.js.map +1 -0
  63. package/dist/cjs/ErrorScreen-Ak671Dk8.js +5 -0
  64. package/dist/cjs/ErrorScreen-Ak671Dk8.js.map +1 -0
  65. package/dist/cjs/FarcasterConnectStatusScreen-hC29ilvx.js +77 -0
  66. package/dist/cjs/FarcasterConnectStatusScreen-hC29ilvx.js.map +1 -0
  67. package/dist/cjs/FarcasterSignerStatusScreen-DKpnIFdF.js +30 -0
  68. package/dist/cjs/FarcasterSignerStatusScreen-DKpnIFdF.js.map +1 -0
  69. package/dist/cjs/FiatOnrampScreen-BXauBEWA.js +87 -0
  70. package/dist/cjs/FiatOnrampScreen-BXauBEWA.js.map +1 -0
  71. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-MYp81t_p.js +3 -0
  72. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-MYp81t_p.js.map +1 -0
  73. package/dist/cjs/FundWalletMethodHeader-BaODpEcm.js +2 -0
  74. package/dist/cjs/FundWalletMethodHeader-BaODpEcm.js.map +1 -0
  75. package/dist/cjs/FundWithBankDepositScreen-8aZgDCci.js +59 -0
  76. package/dist/cjs/FundWithBankDepositScreen-8aZgDCci.js.map +1 -0
  77. package/dist/cjs/FundingEditAmountScreen-Df9pEXrM.js +2 -0
  78. package/dist/cjs/FundingEditAmountScreen-Df9pEXrM.js.map +1 -0
  79. package/dist/cjs/FundingMethodSelectionScreen-B-2MKkeF.js +2 -0
  80. package/dist/cjs/FundingMethodSelectionScreen-B-2MKkeF.js.map +1 -0
  81. package/dist/cjs/InAppBrowserLoginNotPossible-BUl0R8qS.js +2 -0
  82. package/dist/cjs/InAppBrowserLoginNotPossible-BUl0R8qS.js.map +1 -0
  83. package/dist/cjs/InstallWalletScreen-jlkwZVFc.js +2 -0
  84. package/dist/cjs/InstallWalletScreen-jlkwZVFc.js.map +1 -0
  85. package/dist/cjs/LandingScreen-BMd1v1A_.js +2 -0
  86. package/dist/cjs/LandingScreen-BMd1v1A_.js.map +1 -0
  87. package/dist/cjs/LinkConflictScreen-BcKWCfqh.js +80 -0
  88. package/dist/cjs/LinkConflictScreen-BcKWCfqh.js.map +1 -0
  89. package/dist/cjs/LinkEmailScreen-C2qqFTGv.js +2 -0
  90. package/dist/cjs/LinkEmailScreen-C2qqFTGv.js.map +1 -0
  91. package/dist/cjs/LinkPasskeyScreen-C4kDb9bb.js +106 -0
  92. package/dist/cjs/LinkPasskeyScreen-C4kDb9bb.js.map +1 -0
  93. package/dist/cjs/LinkPhoneScreen-fZdpKeBT.js +2 -0
  94. package/dist/cjs/LinkPhoneScreen-fZdpKeBT.js.map +1 -0
  95. package/dist/cjs/LoginFailedScreen-BAtn7W3I.js +2 -0
  96. package/dist/cjs/LoginFailedScreen-BAtn7W3I.js.map +1 -0
  97. package/dist/cjs/ManualTransferScreen-CeS0kSCo.js +2 -0
  98. package/dist/cjs/ManualTransferScreen-CeS0kSCo.js.map +1 -0
  99. package/dist/cjs/MfaAuthEnrollmentFlowScreen-CS1nX-dq.js +2 -0
  100. package/dist/cjs/MfaAuthEnrollmentFlowScreen-CS1nX-dq.js.map +1 -0
  101. package/dist/cjs/MfaAuthVerifyFlowScreen-CGFmSKMA.js +2 -0
  102. package/dist/cjs/MfaAuthVerifyFlowScreen-CGFmSKMA.js.map +1 -0
  103. package/dist/cjs/MfaEnrollmentFlowScreen-BChdDImK.js +2 -0
  104. package/dist/cjs/MfaEnrollmentFlowScreen-BChdDImK.js.map +1 -0
  105. package/dist/cjs/MfaVerifyFlowScreen-CKUbYDUd.js +2 -0
  106. package/dist/cjs/MfaVerifyFlowScreen-CKUbYDUd.js.map +1 -0
  107. package/dist/cjs/ModalHeader-YHLfI8TV.js +382 -0
  108. package/dist/cjs/ModalHeader-YHLfI8TV.js.map +1 -0
  109. package/dist/cjs/MoonpayStatusScreen-EC7xpzy7.js +17 -0
  110. package/dist/cjs/MoonpayStatusScreen-EC7xpzy7.js.map +1 -0
  111. package/dist/cjs/OAuthStatusScreen-cNrcq-5n.js +2 -0
  112. package/dist/cjs/OAuthStatusScreen-cNrcq-5n.js.map +1 -0
  113. package/dist/cjs/PasskeySelectSignupOrLogin-I78wYOu4.js +2 -0
  114. package/dist/cjs/PasskeySelectSignupOrLogin-I78wYOu4.js.map +1 -0
  115. package/dist/cjs/PasskeyStatusScreen-U7Ddtaj2.js +4 -0
  116. package/dist/cjs/PasskeyStatusScreen-U7Ddtaj2.js.map +1 -0
  117. package/dist/cjs/PasswordRecoveryScreen-D6TwVdKe.js +21 -0
  118. package/dist/cjs/PasswordRecoveryScreen-D6TwVdKe.js.map +1 -0
  119. package/dist/cjs/QrCode-CzSZ-lHA.js +17 -0
  120. package/dist/cjs/QrCode-CzSZ-lHA.js.map +1 -0
  121. package/dist/cjs/RecoveryOAuthStatusScreen-Di0iUrdU.js +2 -0
  122. package/dist/cjs/RecoveryOAuthStatusScreen-Di0iUrdU.js.map +1 -0
  123. package/dist/cjs/RecoveryPasswordCreateScreen-CFoYl4Z2.js +2 -0
  124. package/dist/cjs/RecoveryPasswordCreateScreen-CFoYl4Z2.js.map +1 -0
  125. package/dist/cjs/RecoverySelectionScreen-EguzceRC.js +8 -0
  126. package/dist/cjs/RecoverySelectionScreen-EguzceRC.js.map +1 -0
  127. package/dist/cjs/Screen-Bj5oheRx.js +184 -0
  128. package/dist/cjs/Screen-Bj5oheRx.js.map +1 -0
  129. package/dist/cjs/ScreenLayout-dTge8X6o.js +2 -0
  130. package/dist/cjs/ScreenLayout-dTge8X6o.js.map +1 -0
  131. package/dist/cjs/SelectSourceAsset-BJzH1CkI.js +122 -0
  132. package/dist/cjs/SelectSourceAsset-BJzH1CkI.js.map +1 -0
  133. package/dist/cjs/SetAutomaticRecoveryScreen-CUc3Rh-Y.js +15 -0
  134. package/dist/cjs/SetAutomaticRecoveryScreen-CUc3Rh-Y.js.map +1 -0
  135. package/dist/cjs/SetWalletPasswordForm-DRdrdQut.js +13 -0
  136. package/dist/cjs/SetWalletPasswordForm-DRdrdQut.js.map +1 -0
  137. package/dist/cjs/SignRequestScreen-CQ1lvzOt.js +27 -0
  138. package/dist/cjs/SignRequestScreen-CQ1lvzOt.js.map +1 -0
  139. package/dist/cjs/StandardSignAndSendTransactionScreen-P1tALmhb.js +21 -0
  140. package/dist/cjs/StandardSignAndSendTransactionScreen-P1tALmhb.js.map +1 -0
  141. package/dist/cjs/TelegramAuthScreen-yUIH8BfU.js +2 -0
  142. package/dist/cjs/TelegramAuthScreen-yUIH8BfU.js.map +1 -0
  143. package/dist/cjs/TransactionDetails-CaV3NtRD.js +112 -0
  144. package/dist/cjs/TransactionDetails-CaV3NtRD.js.map +1 -0
  145. package/dist/cjs/TransactionErrorView-0e0suVad.js +167 -0
  146. package/dist/cjs/TransactionErrorView-0e0suVad.js.map +1 -0
  147. package/dist/cjs/TransferFromWalletScreen-C8oyRvXd.js +32 -0
  148. package/dist/cjs/TransferFromWalletScreen-C8oyRvXd.js.map +1 -0
  149. package/dist/cjs/TransferOrBridgeLoadingScreen-DD2bW2Ds.js +7 -0
  150. package/dist/cjs/TransferOrBridgeLoadingScreen-DD2bW2Ds.js.map +1 -0
  151. package/dist/cjs/UpdateEmailScreen-BmBNK7RB.js +2 -0
  152. package/dist/cjs/UpdateEmailScreen-BmBNK7RB.js.map +1 -0
  153. package/dist/cjs/UpdatePhoneScreen-DBKUO1D-.js +2 -0
  154. package/dist/cjs/UpdatePhoneScreen-DBKUO1D-.js.map +1 -0
  155. package/dist/cjs/UserLimitReachedScreen-4uKZYRc7.js +2 -0
  156. package/dist/cjs/UserLimitReachedScreen-4uKZYRc7.js.map +1 -0
  157. package/dist/cjs/WalletInfoCard-CfL_OWJ4.js +30 -0
  158. package/dist/cjs/WalletInfoCard-CfL_OWJ4.js.map +1 -0
  159. package/dist/cjs/WalletInterstitialScreen-YgrvZhGD.js +2 -0
  160. package/dist/cjs/WalletInterstitialScreen-YgrvZhGD.js.map +1 -0
  161. package/dist/cjs/WalletLink-L88A0FQf.js +23 -0
  162. package/dist/cjs/WalletLink-L88A0FQf.js.map +1 -0
  163. package/dist/cjs/WalletOverflowButton-BuaKZ-6A.js +2 -0
  164. package/dist/cjs/WalletOverflowButton-BuaKZ-6A.js.map +1 -0
  165. package/dist/cjs/abstract-smart-wallets.js +1 -1
  166. package/dist/cjs/context-HfDbqWZr.js +2 -0
  167. package/dist/cjs/context-HfDbqWZr.js.map +1 -0
  168. package/dist/cjs/ethers-2So80xD-.js +2 -0
  169. package/dist/cjs/ethers-2So80xD-.js.map +1 -0
  170. package/dist/cjs/extended-chains.js +1 -1
  171. package/dist/cjs/get-entropy-details-for-user-BBi6hWE6.js +2 -0
  172. package/dist/cjs/get-entropy-details-for-user-BBi6hWE6.js.map +1 -0
  173. package/dist/cjs/getErc20Balance-Cq4S3ysY.js +2 -0
  174. package/dist/cjs/getErc20Balance-Cq4S3ysY.js.map +1 -0
  175. package/dist/cjs/getErc20TokenInfo-CMbNgME6.js +2 -0
  176. package/dist/cjs/getErc20TokenInfo-CMbNgME6.js.map +1 -0
  177. package/dist/cjs/index-BrhcPcs5.js +13 -0
  178. package/dist/cjs/index-BrhcPcs5.js.map +1 -0
  179. package/dist/cjs/index-CamKKX54.js +175 -0
  180. package/dist/cjs/index-CamKKX54.js.map +1 -0
  181. package/dist/cjs/index-CoK7JldX.js +2 -0
  182. package/dist/cjs/index-CoK7JldX.js.map +1 -0
  183. package/dist/cjs/index.js +1 -1
  184. package/dist/cjs/internal.js +1 -1
  185. package/dist/cjs/privy-context-DofgKV36.js +2 -0
  186. package/dist/cjs/privy-context-DofgKV36.js.map +1 -0
  187. package/dist/cjs/shared-C5ylfa0I.js +181 -0
  188. package/dist/cjs/shared-C5ylfa0I.js.map +1 -0
  189. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-CxnImV7p.js +2 -0
  190. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-CxnImV7p.js.map +1 -0
  191. package/dist/cjs/smart-wallets-BYjzqbCJ.js +2 -0
  192. package/dist/cjs/smart-wallets-BYjzqbCJ.js.map +1 -0
  193. package/dist/cjs/smart-wallets.js +1 -1
  194. package/dist/cjs/solana.js +1 -1
  195. package/dist/cjs/styles-CEhJmkC0.js +94 -0
  196. package/dist/cjs/styles-CEhJmkC0.js.map +1 -0
  197. package/dist/cjs/to-ui-error-UQFflopV.js +5 -0
  198. package/dist/cjs/to-ui-error-UQFflopV.js.map +1 -0
  199. package/dist/cjs/ui.js +3 -3
  200. package/dist/cjs/ui.js.map +1 -1
  201. package/dist/cjs/use-export-wallet-DbQD8Ubw.js +2 -0
  202. package/dist/cjs/use-export-wallet-DbQD8Ubw.js.map +1 -0
  203. package/dist/cjs/use-unlink-wallet-Bi1L_iFJ.js +2 -0
  204. package/dist/cjs/use-unlink-wallet-Bi1L_iFJ.js.map +1 -0
  205. package/dist/cjs/useActiveWallet-DQxFrRoM.js +186 -0
  206. package/dist/cjs/useActiveWallet-DQxFrRoM.js.map +1 -0
  207. package/dist/cjs/useGetTokenPrice-CWC_MITi.js +2 -0
  208. package/dist/cjs/useGetTokenPrice-CWC_MITi.js.map +1 -0
  209. package/dist/cjs/useI18n-BJrVqiDI.js +2 -0
  210. package/dist/cjs/useI18n-BJrVqiDI.js.map +1 -0
  211. package/dist/cjs/usePrivy-DxBYZhPh.js +2 -0
  212. package/dist/cjs/usePrivy-DxBYZhPh.js.map +1 -0
  213. package/dist/cjs/useSolanaRpcClient-Bu9o1a6J.js +2 -0
  214. package/dist/cjs/useSolanaRpcClient-Bu9o1a6J.js.map +1 -0
  215. package/dist/cjs/useWalletBalance-CDiyNlgI.js +2 -0
  216. package/dist/cjs/useWalletBalance-CDiyNlgI.js.map +1 -0
  217. package/dist/cjs/useWallets-BVO0RA10.js +2 -0
  218. package/dist/cjs/useWallets-BVO0RA10.js.map +1 -0
  219. package/dist/dts/abstract-smart-wallets.d.mts +1 -1
  220. package/dist/dts/abstract-smart-wallets.d.ts +1 -1
  221. package/dist/dts/events-context-Cn2kX4Z7.d.mts +328 -0
  222. package/dist/dts/events-context-Cn2kX4Z7.d.ts +328 -0
  223. package/dist/dts/extended-chains.d.mts +1 -1
  224. package/dist/dts/extended-chains.d.ts +1 -1
  225. package/dist/dts/farcaster.d.mts +3 -2
  226. package/dist/dts/farcaster.d.ts +3 -2
  227. package/dist/dts/index.d.mts +1696 -4808
  228. package/dist/dts/index.d.ts +1696 -4808
  229. package/dist/dts/internal.d.mts +3 -2
  230. package/dist/dts/internal.d.ts +3 -2
  231. package/dist/dts/smart-wallets.d.mts +3 -2
  232. package/dist/dts/smart-wallets.d.ts +3 -2
  233. package/dist/dts/solana.d.mts +6 -5
  234. package/dist/dts/solana.d.ts +6 -5
  235. package/dist/dts/types-CM8QDuJa.d.mts +2615 -0
  236. package/dist/dts/types-CM8QDuJa.d.ts +2615 -0
  237. package/dist/dts/ui.d.mts +1 -1
  238. package/dist/dts/ui.d.ts +1 -1
  239. package/dist/esm/AccountNotFoundScreen-BwROXI7t.mjs +2 -0
  240. package/dist/esm/AccountNotFoundScreen-BwROXI7t.mjs.map +1 -0
  241. package/dist/esm/Address-DX6EQMsj.mjs +18 -0
  242. package/dist/esm/Address-DX6EQMsj.mjs.map +1 -0
  243. package/dist/esm/AffirmativeConsentScreen-DRlHbkAi.mjs +7 -0
  244. package/dist/esm/AffirmativeConsentScreen-DRlHbkAi.mjs.map +1 -0
  245. package/dist/esm/AllowlistRejectionScreen-L-GkPEn4.mjs +2 -0
  246. package/dist/esm/AllowlistRejectionScreen-L-GkPEn4.mjs.map +1 -0
  247. package/dist/esm/AuthenticateWithWalletScreen-DYyxmj_O.mjs +2 -0
  248. package/dist/esm/AuthenticateWithWalletScreen-DYyxmj_O.mjs.map +1 -0
  249. package/dist/esm/AwaitingEvmToSolBridgingScreen-BIuV5Eri.mjs +3 -0
  250. package/dist/esm/AwaitingEvmToSolBridgingScreen-BIuV5Eri.mjs.map +1 -0
  251. package/dist/esm/AwaitingExternalEthereumTransferScreen-CT4_akbN.mjs +3 -0
  252. package/dist/esm/AwaitingExternalEthereumTransferScreen-CT4_akbN.mjs.map +1 -0
  253. package/dist/esm/AwaitingPasswordlessCodeScreen-Cr8V8vUF.mjs +104 -0
  254. package/dist/esm/AwaitingPasswordlessCodeScreen-Cr8V8vUF.mjs.map +1 -0
  255. package/dist/esm/AwaitingSolToEvmBridgingScreen-DEfRrZi1.mjs +3 -0
  256. package/dist/esm/AwaitingSolToEvmBridgingScreen-DEfRrZi1.mjs.map +1 -0
  257. package/dist/esm/BridgeNetworkSelectionView-CEqaN0sa.mjs +70 -0
  258. package/dist/esm/BridgeNetworkSelectionView-CEqaN0sa.mjs.map +1 -0
  259. package/dist/esm/CaptchaScreen-1BSwYwce.mjs +2 -0
  260. package/dist/esm/CaptchaScreen-1BSwYwce.mjs.map +1 -0
  261. package/dist/esm/CoinbaseOnrampStatusScreen-CgSP2bG0.mjs +17 -0
  262. package/dist/esm/CoinbaseOnrampStatusScreen-CgSP2bG0.mjs.map +1 -0
  263. package/dist/esm/ConnectEmailForm-kIuJ4nb8.mjs +4 -0
  264. package/dist/esm/ConnectEmailForm-kIuJ4nb8.mjs.map +1 -0
  265. package/dist/esm/ConnectLedgerScreen-p3jX1zpo.mjs +10 -0
  266. package/dist/esm/ConnectLedgerScreen-p3jX1zpo.mjs.map +1 -0
  267. package/dist/esm/ConnectOnlyLandingScreen-CbNkchfN.mjs +2 -0
  268. package/dist/esm/ConnectOnlyLandingScreen-CbNkchfN.mjs.map +1 -0
  269. package/dist/esm/ConnectOnlyStatusScreen-BYmcPuwK.mjs +2 -0
  270. package/dist/esm/ConnectOnlyStatusScreen-BYmcPuwK.mjs.map +1 -0
  271. package/dist/esm/ConnectOrCreateScreen-Q0X3OU07.mjs +2 -0
  272. package/dist/esm/ConnectOrCreateScreen-Q0X3OU07.mjs.map +1 -0
  273. package/dist/esm/ConnectPhoneForm-BVS1xoIq.mjs +98 -0
  274. package/dist/esm/ConnectPhoneForm-BVS1xoIq.mjs.map +1 -0
  275. package/dist/esm/ConnectWalletView-BVAP4U0_.mjs +148 -0
  276. package/dist/esm/ConnectWalletView-BVAP4U0_.mjs.map +1 -0
  277. package/dist/esm/ConnectionStatusScreen-DUzODzvN.mjs +8 -0
  278. package/dist/esm/ConnectionStatusScreen-DUzODzvN.mjs.map +1 -0
  279. package/dist/esm/CrossAppAuthScreen-DXLzIBpo.mjs +2 -0
  280. package/dist/esm/CrossAppAuthScreen-DXLzIBpo.mjs.map +1 -0
  281. package/dist/esm/CustomLandingScreenView-DAEoUVdB.mjs +24 -0
  282. package/dist/esm/CustomLandingScreenView-DAEoUVdB.mjs.map +1 -0
  283. package/dist/esm/DelegatedActionsConsentScreen-O44KDdBn.mjs +2 -0
  284. package/dist/esm/DelegatedActionsConsentScreen-O44KDdBn.mjs.map +1 -0
  285. package/dist/esm/DelegatedActionsRevokeScreen-CTf0nrnV.mjs +2 -0
  286. package/dist/esm/DelegatedActionsRevokeScreen-CTf0nrnV.mjs.map +1 -0
  287. package/dist/esm/EmbeddedWalletConnectingScreen-BjjADj9x.mjs +2 -0
  288. package/dist/esm/EmbeddedWalletConnectingScreen-BjjADj9x.mjs.map +1 -0
  289. package/dist/esm/EmbeddedWalletCreatedScreen-DWpdzW6W.mjs +2 -0
  290. package/dist/esm/EmbeddedWalletCreatedScreen-DWpdzW6W.mjs.map +1 -0
  291. package/dist/esm/EmbeddedWalletKeyExportScreen-Bng1CltV.mjs +26 -0
  292. package/dist/esm/EmbeddedWalletKeyExportScreen-Bng1CltV.mjs.map +1 -0
  293. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-Buq5Wepg.mjs +2 -0
  294. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-Buq5Wepg.mjs.map +1 -0
  295. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-NVaRyqQ8.mjs +2 -0
  296. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-NVaRyqQ8.mjs.map +1 -0
  297. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-B3Vjs6iq.mjs +2 -0
  298. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-B3Vjs6iq.mjs.map +1 -0
  299. package/dist/esm/EnrollTotp-CuJ_eW4o.mjs +66 -0
  300. package/dist/esm/EnrollTotp-CuJ_eW4o.mjs.map +1 -0
  301. package/dist/esm/ErrorScreen-41clEAhn.mjs +5 -0
  302. package/dist/esm/ErrorScreen-41clEAhn.mjs.map +1 -0
  303. package/dist/esm/FarcasterConnectStatusScreen-DU8y1tdn.mjs +76 -0
  304. package/dist/esm/FarcasterConnectStatusScreen-DU8y1tdn.mjs.map +1 -0
  305. package/dist/esm/FarcasterSignerStatusScreen-BHPQ1W60.mjs +29 -0
  306. package/dist/esm/FarcasterSignerStatusScreen-BHPQ1W60.mjs.map +1 -0
  307. package/dist/esm/FiatOnrampScreen-Cf47VPxa.mjs +87 -0
  308. package/dist/esm/FiatOnrampScreen-Cf47VPxa.mjs.map +1 -0
  309. package/dist/esm/FundSolWalletWithExternalSolanaWallet-m59iSRae.mjs +2 -0
  310. package/dist/esm/FundSolWalletWithExternalSolanaWallet-m59iSRae.mjs.map +1 -0
  311. package/dist/esm/FundWalletMethodHeader-DkTVDwkY.mjs +2 -0
  312. package/dist/esm/FundWalletMethodHeader-DkTVDwkY.mjs.map +1 -0
  313. package/dist/esm/FundWithBankDepositScreen-zVvjGzem.mjs +59 -0
  314. package/dist/esm/FundWithBankDepositScreen-zVvjGzem.mjs.map +1 -0
  315. package/dist/esm/FundingEditAmountScreen-DGNqRcLw.mjs +2 -0
  316. package/dist/esm/FundingEditAmountScreen-DGNqRcLw.mjs.map +1 -0
  317. package/dist/esm/FundingMethodSelectionScreen-BI97p42L.mjs +2 -0
  318. package/dist/esm/FundingMethodSelectionScreen-BI97p42L.mjs.map +1 -0
  319. package/dist/esm/InAppBrowserLoginNotPossible-DaDJN0-S.mjs +2 -0
  320. package/dist/esm/InAppBrowserLoginNotPossible-DaDJN0-S.mjs.map +1 -0
  321. package/dist/esm/InstallWalletScreen-Dzv8B0in.mjs +2 -0
  322. package/dist/esm/InstallWalletScreen-Dzv8B0in.mjs.map +1 -0
  323. package/dist/esm/LandingScreen-CJxTLRpT.mjs +2 -0
  324. package/dist/esm/LandingScreen-CJxTLRpT.mjs.map +1 -0
  325. package/dist/esm/LinkConflictScreen-CAV2fw0T.mjs +80 -0
  326. package/dist/esm/LinkConflictScreen-CAV2fw0T.mjs.map +1 -0
  327. package/dist/esm/LinkEmailScreen-DJS-tu1X.mjs +2 -0
  328. package/dist/esm/LinkEmailScreen-DJS-tu1X.mjs.map +1 -0
  329. package/dist/esm/LinkPasskeyScreen-BiY03Cwe.mjs +106 -0
  330. package/dist/esm/LinkPasskeyScreen-BiY03Cwe.mjs.map +1 -0
  331. package/dist/esm/LinkPhoneScreen-DhTrzZ4t.mjs +2 -0
  332. package/dist/esm/LinkPhoneScreen-DhTrzZ4t.mjs.map +1 -0
  333. package/dist/esm/LoginFailedScreen-6EjdVQ26.mjs +2 -0
  334. package/dist/esm/LoginFailedScreen-6EjdVQ26.mjs.map +1 -0
  335. package/dist/esm/ManualTransferScreen-BV1NwUAT.mjs +2 -0
  336. package/dist/esm/ManualTransferScreen-BV1NwUAT.mjs.map +1 -0
  337. package/dist/esm/MfaAuthEnrollmentFlowScreen-C9MN5x3A.mjs +2 -0
  338. package/dist/esm/MfaAuthEnrollmentFlowScreen-C9MN5x3A.mjs.map +1 -0
  339. package/dist/esm/MfaAuthVerifyFlowScreen-D3Anx7vW.mjs +2 -0
  340. package/dist/esm/MfaAuthVerifyFlowScreen-D3Anx7vW.mjs.map +1 -0
  341. package/dist/esm/MfaEnrollmentFlowScreen-Dc_1Pez4.mjs +2 -0
  342. package/dist/esm/MfaEnrollmentFlowScreen-Dc_1Pez4.mjs.map +1 -0
  343. package/dist/esm/MfaVerifyFlowScreen-BSLPZli3.mjs +2 -0
  344. package/dist/esm/MfaVerifyFlowScreen-BSLPZli3.mjs.map +1 -0
  345. package/dist/esm/ModalHeader-BZvDE1Dr.mjs +382 -0
  346. package/dist/esm/ModalHeader-BZvDE1Dr.mjs.map +1 -0
  347. package/dist/esm/MoonpayStatusScreen-BIiYk7mt.mjs +17 -0
  348. package/dist/esm/MoonpayStatusScreen-BIiYk7mt.mjs.map +1 -0
  349. package/dist/esm/OAuthStatusScreen-B_vsvnxJ.mjs +2 -0
  350. package/dist/esm/OAuthStatusScreen-B_vsvnxJ.mjs.map +1 -0
  351. package/dist/esm/PasskeySelectSignupOrLogin-yoeKjZYx.mjs +2 -0
  352. package/dist/esm/PasskeySelectSignupOrLogin-yoeKjZYx.mjs.map +1 -0
  353. package/dist/esm/PasskeyStatusScreen-BQ45d7_T.mjs +4 -0
  354. package/dist/esm/PasskeyStatusScreen-BQ45d7_T.mjs.map +1 -0
  355. package/dist/esm/PasswordRecoveryScreen-JmSt_D71.mjs +21 -0
  356. package/dist/esm/PasswordRecoveryScreen-JmSt_D71.mjs.map +1 -0
  357. package/dist/esm/QrCode-_SBrSSL8.mjs +17 -0
  358. package/dist/esm/QrCode-_SBrSSL8.mjs.map +1 -0
  359. package/dist/esm/RecoveryOAuthStatusScreen-uo4jCwe3.mjs +2 -0
  360. package/dist/esm/RecoveryOAuthStatusScreen-uo4jCwe3.mjs.map +1 -0
  361. package/dist/esm/RecoveryPasswordCreateScreen-CqXATm6-.mjs +2 -0
  362. package/dist/esm/RecoveryPasswordCreateScreen-CqXATm6-.mjs.map +1 -0
  363. package/dist/esm/RecoverySelectionScreen-DuWSKW0P.mjs +8 -0
  364. package/dist/esm/RecoverySelectionScreen-DuWSKW0P.mjs.map +1 -0
  365. package/dist/esm/Screen-qXNc802H.mjs +183 -0
  366. package/dist/esm/Screen-qXNc802H.mjs.map +1 -0
  367. package/dist/esm/ScreenLayout-DuL-17Ts.mjs +2 -0
  368. package/dist/esm/ScreenLayout-DuL-17Ts.mjs.map +1 -0
  369. package/dist/esm/SelectSourceAsset-CWSJnf7Y.mjs +122 -0
  370. package/dist/esm/SelectSourceAsset-CWSJnf7Y.mjs.map +1 -0
  371. package/dist/esm/SetAutomaticRecoveryScreen-qPDhlUku.mjs +15 -0
  372. package/dist/esm/SetAutomaticRecoveryScreen-qPDhlUku.mjs.map +1 -0
  373. package/dist/esm/SetWalletPasswordForm-yYtUfMaN.mjs +13 -0
  374. package/dist/esm/SetWalletPasswordForm-yYtUfMaN.mjs.map +1 -0
  375. package/dist/esm/SignRequestScreen-CjWILxW8.mjs +27 -0
  376. package/dist/esm/SignRequestScreen-CjWILxW8.mjs.map +1 -0
  377. package/dist/esm/StandardSignAndSendTransactionScreen-DcvDjlJz.mjs +21 -0
  378. package/dist/esm/StandardSignAndSendTransactionScreen-DcvDjlJz.mjs.map +1 -0
  379. package/dist/esm/TelegramAuthScreen-DZE2PF_N.mjs +2 -0
  380. package/dist/esm/TelegramAuthScreen-DZE2PF_N.mjs.map +1 -0
  381. package/dist/esm/TransactionDetails-CjVhG2bW.mjs +112 -0
  382. package/dist/esm/TransactionDetails-CjVhG2bW.mjs.map +1 -0
  383. package/dist/esm/TransactionErrorView-kcmgubnF.mjs +167 -0
  384. package/dist/esm/TransactionErrorView-kcmgubnF.mjs.map +1 -0
  385. package/dist/esm/TransferFromWalletScreen-Bq8VkNzF.mjs +32 -0
  386. package/dist/esm/TransferFromWalletScreen-Bq8VkNzF.mjs.map +1 -0
  387. package/dist/esm/TransferOrBridgeLoadingScreen-DjUb907e.mjs +7 -0
  388. package/dist/esm/TransferOrBridgeLoadingScreen-DjUb907e.mjs.map +1 -0
  389. package/dist/esm/UpdateEmailScreen-DOL44V7t.mjs +2 -0
  390. package/dist/esm/UpdateEmailScreen-DOL44V7t.mjs.map +1 -0
  391. package/dist/esm/UpdatePhoneScreen-_wTIh7oE.mjs +2 -0
  392. package/dist/esm/UpdatePhoneScreen-_wTIh7oE.mjs.map +1 -0
  393. package/dist/esm/UserLimitReachedScreen-D3V6JtmD.mjs +2 -0
  394. package/dist/esm/UserLimitReachedScreen-D3V6JtmD.mjs.map +1 -0
  395. package/dist/esm/WalletInfoCard-O_EaFEag.mjs +30 -0
  396. package/dist/esm/WalletInfoCard-O_EaFEag.mjs.map +1 -0
  397. package/dist/esm/WalletInterstitialScreen-DUbHrwPs.mjs +2 -0
  398. package/dist/esm/WalletInterstitialScreen-DUbHrwPs.mjs.map +1 -0
  399. package/dist/esm/WalletLink-DyVz_qt3.mjs +23 -0
  400. package/dist/esm/WalletLink-DyVz_qt3.mjs.map +1 -0
  401. package/dist/esm/WalletOverflowButton-BaBNnjLh.mjs +2 -0
  402. package/dist/esm/WalletOverflowButton-BaBNnjLh.mjs.map +1 -0
  403. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  404. package/dist/esm/context-Tr8j995_.mjs +2 -0
  405. package/dist/esm/context-Tr8j995_.mjs.map +1 -0
  406. package/dist/esm/ethers-C_PmOQN6.mjs +2 -0
  407. package/dist/esm/ethers-C_PmOQN6.mjs.map +1 -0
  408. package/dist/esm/extended-chains.mjs +1 -1
  409. package/dist/esm/get-entropy-details-for-user-BQP1WEav.mjs +2 -0
  410. package/dist/esm/get-entropy-details-for-user-BQP1WEav.mjs.map +1 -0
  411. package/dist/esm/getErc20Balance-CPQ93dM5.mjs +2 -0
  412. package/dist/esm/getErc20Balance-CPQ93dM5.mjs.map +1 -0
  413. package/dist/esm/getErc20TokenInfo-CZtKsjzS.mjs +2 -0
  414. package/dist/esm/getErc20TokenInfo-CZtKsjzS.mjs.map +1 -0
  415. package/dist/esm/index-2PvY9JpL.mjs +13 -0
  416. package/dist/esm/index-2PvY9JpL.mjs.map +1 -0
  417. package/dist/esm/index-B9fXpAbB.mjs +2 -0
  418. package/dist/esm/index-B9fXpAbB.mjs.map +1 -0
  419. package/dist/esm/index-Dl48IST6.mjs +175 -0
  420. package/dist/esm/index-Dl48IST6.mjs.map +1 -0
  421. package/dist/esm/index.mjs +1 -1
  422. package/dist/esm/internal.mjs +1 -1
  423. package/dist/esm/privy-context-DPljW1Ln.mjs +2 -0
  424. package/dist/esm/privy-context-DPljW1Ln.mjs.map +1 -0
  425. package/dist/esm/shared-DtdK1RfM.mjs +181 -0
  426. package/dist/esm/shared-DtdK1RfM.mjs.map +1 -0
  427. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-D4zUq_7a.mjs +2 -0
  428. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-D4zUq_7a.mjs.map +1 -0
  429. package/dist/esm/smart-wallets-pDFrozCB.mjs +2 -0
  430. package/dist/esm/smart-wallets-pDFrozCB.mjs.map +1 -0
  431. package/dist/esm/smart-wallets.mjs +1 -1
  432. package/dist/esm/solana.mjs +1 -1
  433. package/dist/esm/styles-gdBQcvog.mjs +94 -0
  434. package/dist/esm/styles-gdBQcvog.mjs.map +1 -0
  435. package/dist/esm/to-ui-error-DxZhogAR.mjs +5 -0
  436. package/dist/esm/to-ui-error-DxZhogAR.mjs.map +1 -0
  437. package/dist/esm/ui.mjs +38 -38
  438. package/dist/esm/ui.mjs.map +1 -1
  439. package/dist/esm/use-export-wallet-sB-1uwEd.mjs +2 -0
  440. package/dist/esm/use-export-wallet-sB-1uwEd.mjs.map +1 -0
  441. package/dist/esm/use-unlink-wallet-CdodX9pK.mjs +2 -0
  442. package/dist/esm/use-unlink-wallet-CdodX9pK.mjs.map +1 -0
  443. package/dist/esm/useActiveWallet-63ttQlMM.mjs +186 -0
  444. package/dist/esm/useActiveWallet-63ttQlMM.mjs.map +1 -0
  445. package/dist/esm/useGetTokenPrice-0pZMvhXR.mjs +2 -0
  446. package/dist/esm/useGetTokenPrice-0pZMvhXR.mjs.map +1 -0
  447. package/dist/esm/useI18n-BS6p3k_-.mjs +2 -0
  448. package/dist/esm/useI18n-BS6p3k_-.mjs.map +1 -0
  449. package/dist/esm/usePrivy-BVufTYZt.mjs +2 -0
  450. package/dist/esm/usePrivy-BVufTYZt.mjs.map +1 -0
  451. package/dist/esm/useSolanaRpcClient-Ct0q7f_S.mjs +2 -0
  452. package/dist/esm/useSolanaRpcClient-Ct0q7f_S.mjs.map +1 -0
  453. package/dist/esm/useWalletBalance-B3c8DPBb.mjs +2 -0
  454. package/dist/esm/useWalletBalance-B3c8DPBb.mjs.map +1 -0
  455. package/dist/esm/useWallets-B4o0mbQ3.mjs +2 -0
  456. package/dist/esm/useWallets-B4o0mbQ3.mjs.map +1 -0
  457. package/package.json +21 -20
  458. package/dist/cjs/AccountNotFoundScreen-Fv_6uzHI.js +0 -2
  459. package/dist/cjs/AccountNotFoundScreen-Fv_6uzHI.js.map +0 -1
  460. package/dist/cjs/Address-Conr-EVS.js +0 -18
  461. package/dist/cjs/Address-Conr-EVS.js.map +0 -1
  462. package/dist/cjs/AffirmativeConsentScreen-DlGJ1xVQ.js +0 -7
  463. package/dist/cjs/AffirmativeConsentScreen-DlGJ1xVQ.js.map +0 -1
  464. package/dist/cjs/AllowlistRejectionScreen-DQDPpm4z.js +0 -2
  465. package/dist/cjs/AllowlistRejectionScreen-DQDPpm4z.js.map +0 -1
  466. package/dist/cjs/AuthenticateWithWalletScreen-DC7_SrOY.js +0 -2
  467. package/dist/cjs/AuthenticateWithWalletScreen-DC7_SrOY.js.map +0 -1
  468. package/dist/cjs/AwaitingEvmToSolBridgingScreen-Bk5U13zK.js +0 -3
  469. package/dist/cjs/AwaitingEvmToSolBridgingScreen-Bk5U13zK.js.map +0 -1
  470. package/dist/cjs/AwaitingExternalEthereumTransferScreen-DMLUMHT8.js +0 -3
  471. package/dist/cjs/AwaitingExternalEthereumTransferScreen-DMLUMHT8.js.map +0 -1
  472. package/dist/cjs/AwaitingPasswordlessCodeScreen-BO1XqNRJ.js +0 -104
  473. package/dist/cjs/AwaitingPasswordlessCodeScreen-BO1XqNRJ.js.map +0 -1
  474. package/dist/cjs/AwaitingSolToEvmBridgingScreen-BKHCCguh.js +0 -3
  475. package/dist/cjs/AwaitingSolToEvmBridgingScreen-BKHCCguh.js.map +0 -1
  476. package/dist/cjs/BridgeNetworkSelectionView-DI7zLGmS.js +0 -70
  477. package/dist/cjs/BridgeNetworkSelectionView-DI7zLGmS.js.map +0 -1
  478. package/dist/cjs/CaptchaScreen-CqQaVEZf.js +0 -2
  479. package/dist/cjs/CaptchaScreen-CqQaVEZf.js.map +0 -1
  480. package/dist/cjs/CoinbaseOnrampStatusScreen-8amOBUQy.js +0 -17
  481. package/dist/cjs/CoinbaseOnrampStatusScreen-8amOBUQy.js.map +0 -1
  482. package/dist/cjs/ConnectEmailForm-QA4CV61H.js +0 -4
  483. package/dist/cjs/ConnectEmailForm-QA4CV61H.js.map +0 -1
  484. package/dist/cjs/ConnectLedgerScreen-00rvovE1.js +0 -10
  485. package/dist/cjs/ConnectLedgerScreen-00rvovE1.js.map +0 -1
  486. package/dist/cjs/ConnectOnlyLandingScreen-BytItK8k.js +0 -2
  487. package/dist/cjs/ConnectOnlyLandingScreen-BytItK8k.js.map +0 -1
  488. package/dist/cjs/ConnectOnlyStatusScreen-DvJEz5DQ.js +0 -2
  489. package/dist/cjs/ConnectOnlyStatusScreen-DvJEz5DQ.js.map +0 -1
  490. package/dist/cjs/ConnectOrCreateScreen-DXZSgSW0.js +0 -2
  491. package/dist/cjs/ConnectOrCreateScreen-DXZSgSW0.js.map +0 -1
  492. package/dist/cjs/ConnectPhoneForm-D1--augO.js +0 -98
  493. package/dist/cjs/ConnectPhoneForm-D1--augO.js.map +0 -1
  494. package/dist/cjs/ConnectWalletView-CCkU2jhZ.js +0 -148
  495. package/dist/cjs/ConnectWalletView-CCkU2jhZ.js.map +0 -1
  496. package/dist/cjs/ConnectionStatusScreen-kppKokXh.js +0 -8
  497. package/dist/cjs/ConnectionStatusScreen-kppKokXh.js.map +0 -1
  498. package/dist/cjs/CrossAppAuthScreen-Cm-JHXzw.js +0 -2
  499. package/dist/cjs/CrossAppAuthScreen-Cm-JHXzw.js.map +0 -1
  500. package/dist/cjs/CustomLandingScreenView-DhejpdII.js +0 -24
  501. package/dist/cjs/CustomLandingScreenView-DhejpdII.js.map +0 -1
  502. package/dist/cjs/DelegatedActionsConsentScreen-CTOMFcs-.js +0 -2
  503. package/dist/cjs/DelegatedActionsConsentScreen-CTOMFcs-.js.map +0 -1
  504. package/dist/cjs/DelegatedActionsRevokeScreen-BjdlvXhT.js +0 -2
  505. package/dist/cjs/DelegatedActionsRevokeScreen-BjdlvXhT.js.map +0 -1
  506. package/dist/cjs/EmbeddedWalletConnectingScreen-CkOVAcy1.js +0 -2
  507. package/dist/cjs/EmbeddedWalletConnectingScreen-CkOVAcy1.js.map +0 -1
  508. package/dist/cjs/EmbeddedWalletCreatedScreen-BX_78hac.js +0 -2
  509. package/dist/cjs/EmbeddedWalletCreatedScreen-BX_78hac.js.map +0 -1
  510. package/dist/cjs/EmbeddedWalletKeyExportScreen-C02U5ESL.js +0 -26
  511. package/dist/cjs/EmbeddedWalletKeyExportScreen-C02U5ESL.js.map +0 -1
  512. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BuPJwt0G.js +0 -2
  513. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-BuPJwt0G.js.map +0 -1
  514. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-fVUmSP5d.js +0 -2
  515. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-fVUmSP5d.js.map +0 -1
  516. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-BC-WYr_x.js +0 -2
  517. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-BC-WYr_x.js.map +0 -1
  518. package/dist/cjs/EnrollTotp-CEgJ--Fr.js +0 -66
  519. package/dist/cjs/EnrollTotp-CEgJ--Fr.js.map +0 -1
  520. package/dist/cjs/ErrorScreen-CthoK-Ai.js +0 -5
  521. package/dist/cjs/ErrorScreen-CthoK-Ai.js.map +0 -1
  522. package/dist/cjs/FarcasterConnectStatusScreen-CkRGbza-.js +0 -77
  523. package/dist/cjs/FarcasterConnectStatusScreen-CkRGbza-.js.map +0 -1
  524. package/dist/cjs/FarcasterSignerStatusScreen-CcSlnwl5.js +0 -30
  525. package/dist/cjs/FarcasterSignerStatusScreen-CcSlnwl5.js.map +0 -1
  526. package/dist/cjs/FiatOnrampScreen-X51pn53y.js +0 -87
  527. package/dist/cjs/FiatOnrampScreen-X51pn53y.js.map +0 -1
  528. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-CCnh3ico.js +0 -3
  529. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-CCnh3ico.js.map +0 -1
  530. package/dist/cjs/FundWalletMethodHeader-Dn4EhUbX.js +0 -2
  531. package/dist/cjs/FundWalletMethodHeader-Dn4EhUbX.js.map +0 -1
  532. package/dist/cjs/FundWithBankDepositScreen-BV8KSbqo.js +0 -59
  533. package/dist/cjs/FundWithBankDepositScreen-BV8KSbqo.js.map +0 -1
  534. package/dist/cjs/FundingEditAmountScreen-DEZAtYLK.js +0 -2
  535. package/dist/cjs/FundingEditAmountScreen-DEZAtYLK.js.map +0 -1
  536. package/dist/cjs/FundingMethodSelectionScreen-3Uw9_0IH.js +0 -2
  537. package/dist/cjs/FundingMethodSelectionScreen-3Uw9_0IH.js.map +0 -1
  538. package/dist/cjs/InAppBrowserLoginNotPossible-BGMjAxuS.js +0 -2
  539. package/dist/cjs/InAppBrowserLoginNotPossible-BGMjAxuS.js.map +0 -1
  540. package/dist/cjs/InstallWalletScreen-CTBwMYjq.js +0 -2
  541. package/dist/cjs/InstallWalletScreen-CTBwMYjq.js.map +0 -1
  542. package/dist/cjs/LandingScreen-T5zik1pe.js +0 -2
  543. package/dist/cjs/LandingScreen-T5zik1pe.js.map +0 -1
  544. package/dist/cjs/LinkConflictScreen-A5FF_-KD.js +0 -80
  545. package/dist/cjs/LinkConflictScreen-A5FF_-KD.js.map +0 -1
  546. package/dist/cjs/LinkEmailScreen-BhDGYKkk.js +0 -2
  547. package/dist/cjs/LinkEmailScreen-BhDGYKkk.js.map +0 -1
  548. package/dist/cjs/LinkPasskeyScreen-_pdRd-eY.js +0 -106
  549. package/dist/cjs/LinkPasskeyScreen-_pdRd-eY.js.map +0 -1
  550. package/dist/cjs/LinkPhoneScreen-JZLHysLz.js +0 -2
  551. package/dist/cjs/LinkPhoneScreen-JZLHysLz.js.map +0 -1
  552. package/dist/cjs/LoginFailedScreen-CSNOZDBu.js +0 -2
  553. package/dist/cjs/LoginFailedScreen-CSNOZDBu.js.map +0 -1
  554. package/dist/cjs/ManualTransferScreen-Bf5VLxlg.js +0 -2
  555. package/dist/cjs/ManualTransferScreen-Bf5VLxlg.js.map +0 -1
  556. package/dist/cjs/MfaAuthEnrollmentFlowScreen-C1z6X0op.js +0 -2
  557. package/dist/cjs/MfaAuthEnrollmentFlowScreen-C1z6X0op.js.map +0 -1
  558. package/dist/cjs/MfaAuthVerifyFlowScreen-C1qrFRU2.js +0 -2
  559. package/dist/cjs/MfaAuthVerifyFlowScreen-C1qrFRU2.js.map +0 -1
  560. package/dist/cjs/MfaEnrollmentFlowScreen-Ch1TpxZE.js +0 -2
  561. package/dist/cjs/MfaEnrollmentFlowScreen-Ch1TpxZE.js.map +0 -1
  562. package/dist/cjs/MfaVerifyFlowScreen-Pnu6Sghl.js +0 -2
  563. package/dist/cjs/MfaVerifyFlowScreen-Pnu6Sghl.js.map +0 -1
  564. package/dist/cjs/ModalHeader-BNd9XokS.js +0 -382
  565. package/dist/cjs/ModalHeader-BNd9XokS.js.map +0 -1
  566. package/dist/cjs/MoonpayStatusScreen-CKbQEiP2.js +0 -17
  567. package/dist/cjs/MoonpayStatusScreen-CKbQEiP2.js.map +0 -1
  568. package/dist/cjs/OAuthStatusScreen-CM-g1jAg.js +0 -2
  569. package/dist/cjs/OAuthStatusScreen-CM-g1jAg.js.map +0 -1
  570. package/dist/cjs/PasskeySelectSignupOrLogin-D0lfxsCr.js +0 -2
  571. package/dist/cjs/PasskeySelectSignupOrLogin-D0lfxsCr.js.map +0 -1
  572. package/dist/cjs/PasskeyStatusScreen-uSQD1KB8.js +0 -4
  573. package/dist/cjs/PasskeyStatusScreen-uSQD1KB8.js.map +0 -1
  574. package/dist/cjs/PasswordRecoveryScreen-C261f7G-.js +0 -21
  575. package/dist/cjs/PasswordRecoveryScreen-C261f7G-.js.map +0 -1
  576. package/dist/cjs/QrCode-BiqXux7S.js +0 -17
  577. package/dist/cjs/QrCode-BiqXux7S.js.map +0 -1
  578. package/dist/cjs/RecoveryOAuthStatusScreen-jyoGYh3c.js +0 -2
  579. package/dist/cjs/RecoveryOAuthStatusScreen-jyoGYh3c.js.map +0 -1
  580. package/dist/cjs/RecoveryPasswordCreateScreen-BfjkmqCT.js +0 -2
  581. package/dist/cjs/RecoveryPasswordCreateScreen-BfjkmqCT.js.map +0 -1
  582. package/dist/cjs/RecoverySelectionScreen-CYBCcYmx.js +0 -8
  583. package/dist/cjs/RecoverySelectionScreen-CYBCcYmx.js.map +0 -1
  584. package/dist/cjs/Screen-Bwgy7gXR.js +0 -184
  585. package/dist/cjs/Screen-Bwgy7gXR.js.map +0 -1
  586. package/dist/cjs/ScreenLayout-Egq6j5QN.js +0 -2
  587. package/dist/cjs/ScreenLayout-Egq6j5QN.js.map +0 -1
  588. package/dist/cjs/SelectSourceAsset-XI5r9MZA.js +0 -113
  589. package/dist/cjs/SelectSourceAsset-XI5r9MZA.js.map +0 -1
  590. package/dist/cjs/SetAutomaticRecoveryScreen-BG9o-ma9.js +0 -15
  591. package/dist/cjs/SetAutomaticRecoveryScreen-BG9o-ma9.js.map +0 -1
  592. package/dist/cjs/SetWalletPasswordForm-DWxkm3hB.js +0 -13
  593. package/dist/cjs/SetWalletPasswordForm-DWxkm3hB.js.map +0 -1
  594. package/dist/cjs/SignRequestScreen-BZ-tZSoq.js +0 -27
  595. package/dist/cjs/SignRequestScreen-BZ-tZSoq.js.map +0 -1
  596. package/dist/cjs/StandardSignAndSendTransactionScreen-9Bqp-FMj.js +0 -21
  597. package/dist/cjs/StandardSignAndSendTransactionScreen-9Bqp-FMj.js.map +0 -1
  598. package/dist/cjs/TelegramAuthScreen-DTL5xE7A.js +0 -2
  599. package/dist/cjs/TelegramAuthScreen-DTL5xE7A.js.map +0 -1
  600. package/dist/cjs/TransactionDetails-B-70O4Td.js +0 -112
  601. package/dist/cjs/TransactionDetails-B-70O4Td.js.map +0 -1
  602. package/dist/cjs/TransactionErrorView-DWxdvpDG.js +0 -167
  603. package/dist/cjs/TransactionErrorView-DWxdvpDG.js.map +0 -1
  604. package/dist/cjs/TransferFromWalletScreen-CM7FS_dO.js +0 -32
  605. package/dist/cjs/TransferFromWalletScreen-CM7FS_dO.js.map +0 -1
  606. package/dist/cjs/TransferOrBridgeLoadingScreen-CApA0QtN.js +0 -7
  607. package/dist/cjs/TransferOrBridgeLoadingScreen-CApA0QtN.js.map +0 -1
  608. package/dist/cjs/UpdateEmailScreen-LoJwqpc5.js +0 -2
  609. package/dist/cjs/UpdateEmailScreen-LoJwqpc5.js.map +0 -1
  610. package/dist/cjs/UpdatePhoneScreen-D2uy34f5.js +0 -2
  611. package/dist/cjs/UpdatePhoneScreen-D2uy34f5.js.map +0 -1
  612. package/dist/cjs/UserLimitReachedScreen-CudFxpsP.js +0 -2
  613. package/dist/cjs/UserLimitReachedScreen-CudFxpsP.js.map +0 -1
  614. package/dist/cjs/WalletInfoCard-BdCqRVY6.js +0 -30
  615. package/dist/cjs/WalletInfoCard-BdCqRVY6.js.map +0 -1
  616. package/dist/cjs/WalletInterstitialScreen-bG_wQ7Yf.js +0 -2
  617. package/dist/cjs/WalletInterstitialScreen-bG_wQ7Yf.js.map +0 -1
  618. package/dist/cjs/WalletLink-BPaGWpXt.js +0 -23
  619. package/dist/cjs/WalletLink-BPaGWpXt.js.map +0 -1
  620. package/dist/cjs/WalletOverflowButton-DxApJI8R.js +0 -2
  621. package/dist/cjs/WalletOverflowButton-DxApJI8R.js.map +0 -1
  622. package/dist/cjs/context-kNwYBe9X.js +0 -2
  623. package/dist/cjs/context-kNwYBe9X.js.map +0 -1
  624. package/dist/cjs/ethers-BPnwqfQN.js +0 -2
  625. package/dist/cjs/ethers-BPnwqfQN.js.map +0 -1
  626. package/dist/cjs/get-entropy-details-for-user-Cft3uMS0.js +0 -2
  627. package/dist/cjs/get-entropy-details-for-user-Cft3uMS0.js.map +0 -1
  628. package/dist/cjs/getErc20Balance-Q-ICx5AC.js +0 -2
  629. package/dist/cjs/getErc20Balance-Q-ICx5AC.js.map +0 -1
  630. package/dist/cjs/getErc20TokenInfo-nytfpoB4.js +0 -2
  631. package/dist/cjs/getErc20TokenInfo-nytfpoB4.js.map +0 -1
  632. package/dist/cjs/index-BOnxBibw.js +0 -13
  633. package/dist/cjs/index-BOnxBibw.js.map +0 -1
  634. package/dist/cjs/index-DWZ-GPTK.js +0 -2
  635. package/dist/cjs/index-DWZ-GPTK.js.map +0 -1
  636. package/dist/cjs/index-mSiDdRAI.js +0 -175
  637. package/dist/cjs/index-mSiDdRAI.js.map +0 -1
  638. package/dist/cjs/privy-context-DYbYS8e0.js +0 -2
  639. package/dist/cjs/privy-context-DYbYS8e0.js.map +0 -1
  640. package/dist/cjs/shared-nXDuJL_2.js +0 -181
  641. package/dist/cjs/shared-nXDuJL_2.js.map +0 -1
  642. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-DUjA6Wmh.js +0 -2
  643. package/dist/cjs/shouldProceedtoEmbeddedWalletCreationFlow-DUjA6Wmh.js.map +0 -1
  644. package/dist/cjs/smart-wallets-PzHekNIa.js +0 -2
  645. package/dist/cjs/smart-wallets-PzHekNIa.js.map +0 -1
  646. package/dist/cjs/styles-CMnp8VW-.js +0 -94
  647. package/dist/cjs/styles-CMnp8VW-.js.map +0 -1
  648. package/dist/cjs/to-ui-error-BRiYG3zO.js +0 -5
  649. package/dist/cjs/to-ui-error-BRiYG3zO.js.map +0 -1
  650. package/dist/cjs/use-export-wallet-CG9Lv9np.js +0 -2
  651. package/dist/cjs/use-export-wallet-CG9Lv9np.js.map +0 -1
  652. package/dist/cjs/use-export-wallet-D0YJly3h.js +0 -2
  653. package/dist/cjs/use-export-wallet-D0YJly3h.js.map +0 -1
  654. package/dist/cjs/useActiveWallet-D3l6azKV.js +0 -186
  655. package/dist/cjs/useActiveWallet-D3l6azKV.js.map +0 -1
  656. package/dist/cjs/useGetTokenPrice-USUQiVXu.js +0 -2
  657. package/dist/cjs/useGetTokenPrice-USUQiVXu.js.map +0 -1
  658. package/dist/cjs/useI18n-Bv2SSznc.js +0 -2
  659. package/dist/cjs/useI18n-Bv2SSznc.js.map +0 -1
  660. package/dist/cjs/usePrivy-RPMsZSqp.js +0 -2
  661. package/dist/cjs/usePrivy-RPMsZSqp.js.map +0 -1
  662. package/dist/cjs/useSolanaRpcClient-DscPkIzm.js +0 -2
  663. package/dist/cjs/useSolanaRpcClient-DscPkIzm.js.map +0 -1
  664. package/dist/cjs/useWalletBalance-DekL632A.js +0 -2
  665. package/dist/cjs/useWalletBalance-DekL632A.js.map +0 -1
  666. package/dist/cjs/useWallets-IyC98hsF.js +0 -2
  667. package/dist/cjs/useWallets-IyC98hsF.js.map +0 -1
  668. package/dist/dts/events-context-qLPXtxdp.d.mts +0 -328
  669. package/dist/dts/events-context-qLPXtxdp.d.ts +0 -328
  670. package/dist/dts/types-0EB6fDMO.d.mts +0 -2614
  671. package/dist/dts/types-0EB6fDMO.d.ts +0 -2614
  672. package/dist/esm/AccountNotFoundScreen-C_5pSDsV.mjs +0 -2
  673. package/dist/esm/AccountNotFoundScreen-C_5pSDsV.mjs.map +0 -1
  674. package/dist/esm/Address-CYbJNMNd.mjs +0 -18
  675. package/dist/esm/Address-CYbJNMNd.mjs.map +0 -1
  676. package/dist/esm/AffirmativeConsentScreen-B-0dNJtz.mjs +0 -7
  677. package/dist/esm/AffirmativeConsentScreen-B-0dNJtz.mjs.map +0 -1
  678. package/dist/esm/AllowlistRejectionScreen-D37Qtqwt.mjs +0 -2
  679. package/dist/esm/AllowlistRejectionScreen-D37Qtqwt.mjs.map +0 -1
  680. package/dist/esm/AuthenticateWithWalletScreen-bO8LSVrF.mjs +0 -2
  681. package/dist/esm/AuthenticateWithWalletScreen-bO8LSVrF.mjs.map +0 -1
  682. package/dist/esm/AwaitingEvmToSolBridgingScreen-CxrTLOZI.mjs +0 -3
  683. package/dist/esm/AwaitingEvmToSolBridgingScreen-CxrTLOZI.mjs.map +0 -1
  684. package/dist/esm/AwaitingExternalEthereumTransferScreen-DUsG4N9F.mjs +0 -3
  685. package/dist/esm/AwaitingExternalEthereumTransferScreen-DUsG4N9F.mjs.map +0 -1
  686. package/dist/esm/AwaitingPasswordlessCodeScreen-BRvjtpjt.mjs +0 -104
  687. package/dist/esm/AwaitingPasswordlessCodeScreen-BRvjtpjt.mjs.map +0 -1
  688. package/dist/esm/AwaitingSolToEvmBridgingScreen-BFzKvXPq.mjs +0 -3
  689. package/dist/esm/AwaitingSolToEvmBridgingScreen-BFzKvXPq.mjs.map +0 -1
  690. package/dist/esm/BridgeNetworkSelectionView-DlkSaDDI.mjs +0 -70
  691. package/dist/esm/BridgeNetworkSelectionView-DlkSaDDI.mjs.map +0 -1
  692. package/dist/esm/CaptchaScreen-DlKb2aAS.mjs +0 -2
  693. package/dist/esm/CaptchaScreen-DlKb2aAS.mjs.map +0 -1
  694. package/dist/esm/CoinbaseOnrampStatusScreen-BpAjQHS-.mjs +0 -17
  695. package/dist/esm/CoinbaseOnrampStatusScreen-BpAjQHS-.mjs.map +0 -1
  696. package/dist/esm/ConnectEmailForm-iKktP_6O.mjs +0 -4
  697. package/dist/esm/ConnectEmailForm-iKktP_6O.mjs.map +0 -1
  698. package/dist/esm/ConnectLedgerScreen-DE9jRA7z.mjs +0 -10
  699. package/dist/esm/ConnectLedgerScreen-DE9jRA7z.mjs.map +0 -1
  700. package/dist/esm/ConnectOnlyLandingScreen-D_7jiVlz.mjs +0 -2
  701. package/dist/esm/ConnectOnlyLandingScreen-D_7jiVlz.mjs.map +0 -1
  702. package/dist/esm/ConnectOnlyStatusScreen-DVWwXskL.mjs +0 -2
  703. package/dist/esm/ConnectOnlyStatusScreen-DVWwXskL.mjs.map +0 -1
  704. package/dist/esm/ConnectOrCreateScreen-BNqKm8kG.mjs +0 -2
  705. package/dist/esm/ConnectOrCreateScreen-BNqKm8kG.mjs.map +0 -1
  706. package/dist/esm/ConnectPhoneForm-CaHO9wuU.mjs +0 -98
  707. package/dist/esm/ConnectPhoneForm-CaHO9wuU.mjs.map +0 -1
  708. package/dist/esm/ConnectWalletView-dFWAKCbq.mjs +0 -148
  709. package/dist/esm/ConnectWalletView-dFWAKCbq.mjs.map +0 -1
  710. package/dist/esm/ConnectionStatusScreen-DmwSG43J.mjs +0 -8
  711. package/dist/esm/ConnectionStatusScreen-DmwSG43J.mjs.map +0 -1
  712. package/dist/esm/CrossAppAuthScreen-DA7nesSD.mjs +0 -2
  713. package/dist/esm/CrossAppAuthScreen-DA7nesSD.mjs.map +0 -1
  714. package/dist/esm/CustomLandingScreenView-CBvh6dQb.mjs +0 -24
  715. package/dist/esm/CustomLandingScreenView-CBvh6dQb.mjs.map +0 -1
  716. package/dist/esm/DelegatedActionsConsentScreen-Bh06fPLS.mjs +0 -2
  717. package/dist/esm/DelegatedActionsConsentScreen-Bh06fPLS.mjs.map +0 -1
  718. package/dist/esm/DelegatedActionsRevokeScreen-u0ZCd_s_.mjs +0 -2
  719. package/dist/esm/DelegatedActionsRevokeScreen-u0ZCd_s_.mjs.map +0 -1
  720. package/dist/esm/EmbeddedWalletConnectingScreen-CcvKjdVL.mjs +0 -2
  721. package/dist/esm/EmbeddedWalletConnectingScreen-CcvKjdVL.mjs.map +0 -1
  722. package/dist/esm/EmbeddedWalletCreatedScreen-B6t5v-yw.mjs +0 -2
  723. package/dist/esm/EmbeddedWalletCreatedScreen-B6t5v-yw.mjs.map +0 -1
  724. package/dist/esm/EmbeddedWalletKeyExportScreen-DLk2jGfs.mjs +0 -26
  725. package/dist/esm/EmbeddedWalletKeyExportScreen-DLk2jGfs.mjs.map +0 -1
  726. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-DxU7ptOw.mjs +0 -2
  727. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-DxU7ptOw.mjs.map +0 -1
  728. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-T1Dd8I71.mjs +0 -2
  729. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-T1Dd8I71.mjs.map +0 -1
  730. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-Dyme8t8m.mjs +0 -2
  731. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-Dyme8t8m.mjs.map +0 -1
  732. package/dist/esm/EnrollTotp-jc7AhWWI.mjs +0 -66
  733. package/dist/esm/EnrollTotp-jc7AhWWI.mjs.map +0 -1
  734. package/dist/esm/ErrorScreen-CqYXkFQc.mjs +0 -5
  735. package/dist/esm/ErrorScreen-CqYXkFQc.mjs.map +0 -1
  736. package/dist/esm/FarcasterConnectStatusScreen-BpptTQ2c.mjs +0 -76
  737. package/dist/esm/FarcasterConnectStatusScreen-BpptTQ2c.mjs.map +0 -1
  738. package/dist/esm/FarcasterSignerStatusScreen-C2IGisp6.mjs +0 -29
  739. package/dist/esm/FarcasterSignerStatusScreen-C2IGisp6.mjs.map +0 -1
  740. package/dist/esm/FiatOnrampScreen-CMJk1Pu-.mjs +0 -87
  741. package/dist/esm/FiatOnrampScreen-CMJk1Pu-.mjs.map +0 -1
  742. package/dist/esm/FundSolWalletWithExternalSolanaWallet-BzdJ_2PW.mjs +0 -2
  743. package/dist/esm/FundSolWalletWithExternalSolanaWallet-BzdJ_2PW.mjs.map +0 -1
  744. package/dist/esm/FundWalletMethodHeader-BkqUohJ2.mjs +0 -2
  745. package/dist/esm/FundWalletMethodHeader-BkqUohJ2.mjs.map +0 -1
  746. package/dist/esm/FundWithBankDepositScreen-BOKUaPNU.mjs +0 -59
  747. package/dist/esm/FundWithBankDepositScreen-BOKUaPNU.mjs.map +0 -1
  748. package/dist/esm/FundingEditAmountScreen-Dgcl54fd.mjs +0 -2
  749. package/dist/esm/FundingEditAmountScreen-Dgcl54fd.mjs.map +0 -1
  750. package/dist/esm/FundingMethodSelectionScreen-B6j2A4YL.mjs +0 -2
  751. package/dist/esm/FundingMethodSelectionScreen-B6j2A4YL.mjs.map +0 -1
  752. package/dist/esm/InAppBrowserLoginNotPossible-BuhbPaHi.mjs +0 -2
  753. package/dist/esm/InAppBrowserLoginNotPossible-BuhbPaHi.mjs.map +0 -1
  754. package/dist/esm/InstallWalletScreen-DHBtivoH.mjs +0 -2
  755. package/dist/esm/InstallWalletScreen-DHBtivoH.mjs.map +0 -1
  756. package/dist/esm/LandingScreen-Bhs-WRVQ.mjs +0 -2
  757. package/dist/esm/LandingScreen-Bhs-WRVQ.mjs.map +0 -1
  758. package/dist/esm/LinkConflictScreen-BXjUklA4.mjs +0 -80
  759. package/dist/esm/LinkConflictScreen-BXjUklA4.mjs.map +0 -1
  760. package/dist/esm/LinkEmailScreen-UlXwNUij.mjs +0 -2
  761. package/dist/esm/LinkEmailScreen-UlXwNUij.mjs.map +0 -1
  762. package/dist/esm/LinkPasskeyScreen-C2ywsQ6d.mjs +0 -106
  763. package/dist/esm/LinkPasskeyScreen-C2ywsQ6d.mjs.map +0 -1
  764. package/dist/esm/LinkPhoneScreen-Dp8Zjxc_.mjs +0 -2
  765. package/dist/esm/LinkPhoneScreen-Dp8Zjxc_.mjs.map +0 -1
  766. package/dist/esm/LoginFailedScreen-DaS2jNK3.mjs +0 -2
  767. package/dist/esm/LoginFailedScreen-DaS2jNK3.mjs.map +0 -1
  768. package/dist/esm/ManualTransferScreen-BklShjqt.mjs +0 -2
  769. package/dist/esm/ManualTransferScreen-BklShjqt.mjs.map +0 -1
  770. package/dist/esm/MfaAuthEnrollmentFlowScreen-cABNEaNs.mjs +0 -2
  771. package/dist/esm/MfaAuthEnrollmentFlowScreen-cABNEaNs.mjs.map +0 -1
  772. package/dist/esm/MfaAuthVerifyFlowScreen-A_Ie2LM5.mjs +0 -2
  773. package/dist/esm/MfaAuthVerifyFlowScreen-A_Ie2LM5.mjs.map +0 -1
  774. package/dist/esm/MfaEnrollmentFlowScreen-XZ2AZq02.mjs +0 -2
  775. package/dist/esm/MfaEnrollmentFlowScreen-XZ2AZq02.mjs.map +0 -1
  776. package/dist/esm/MfaVerifyFlowScreen-HyAlnOXX.mjs +0 -2
  777. package/dist/esm/MfaVerifyFlowScreen-HyAlnOXX.mjs.map +0 -1
  778. package/dist/esm/ModalHeader-ByY2wsBw.mjs +0 -382
  779. package/dist/esm/ModalHeader-ByY2wsBw.mjs.map +0 -1
  780. package/dist/esm/MoonpayStatusScreen-C5z-iZvj.mjs +0 -17
  781. package/dist/esm/MoonpayStatusScreen-C5z-iZvj.mjs.map +0 -1
  782. package/dist/esm/OAuthStatusScreen-BHM-evdm.mjs +0 -2
  783. package/dist/esm/OAuthStatusScreen-BHM-evdm.mjs.map +0 -1
  784. package/dist/esm/PasskeySelectSignupOrLogin-B-cY5-C6.mjs +0 -2
  785. package/dist/esm/PasskeySelectSignupOrLogin-B-cY5-C6.mjs.map +0 -1
  786. package/dist/esm/PasskeyStatusScreen-BRCAC5v9.mjs +0 -4
  787. package/dist/esm/PasskeyStatusScreen-BRCAC5v9.mjs.map +0 -1
  788. package/dist/esm/PasswordRecoveryScreen-Bx_iHYUT.mjs +0 -21
  789. package/dist/esm/PasswordRecoveryScreen-Bx_iHYUT.mjs.map +0 -1
  790. package/dist/esm/QrCode-De3KTDSW.mjs +0 -17
  791. package/dist/esm/QrCode-De3KTDSW.mjs.map +0 -1
  792. package/dist/esm/RecoveryOAuthStatusScreen-Bk40Fsv2.mjs +0 -2
  793. package/dist/esm/RecoveryOAuthStatusScreen-Bk40Fsv2.mjs.map +0 -1
  794. package/dist/esm/RecoveryPasswordCreateScreen-D7o3BbJI.mjs +0 -2
  795. package/dist/esm/RecoveryPasswordCreateScreen-D7o3BbJI.mjs.map +0 -1
  796. package/dist/esm/RecoverySelectionScreen-B2hFN_KA.mjs +0 -8
  797. package/dist/esm/RecoverySelectionScreen-B2hFN_KA.mjs.map +0 -1
  798. package/dist/esm/Screen-17GDtJCX.mjs +0 -183
  799. package/dist/esm/Screen-17GDtJCX.mjs.map +0 -1
  800. package/dist/esm/ScreenLayout-DGbEZh8t.mjs +0 -2
  801. package/dist/esm/ScreenLayout-DGbEZh8t.mjs.map +0 -1
  802. package/dist/esm/SelectSourceAsset-DtAsz7CK.mjs +0 -113
  803. package/dist/esm/SelectSourceAsset-DtAsz7CK.mjs.map +0 -1
  804. package/dist/esm/SetAutomaticRecoveryScreen-CEOFKSqe.mjs +0 -15
  805. package/dist/esm/SetAutomaticRecoveryScreen-CEOFKSqe.mjs.map +0 -1
  806. package/dist/esm/SetWalletPasswordForm-DeCWduRe.mjs +0 -13
  807. package/dist/esm/SetWalletPasswordForm-DeCWduRe.mjs.map +0 -1
  808. package/dist/esm/SignRequestScreen-BmD3UmkU.mjs +0 -27
  809. package/dist/esm/SignRequestScreen-BmD3UmkU.mjs.map +0 -1
  810. package/dist/esm/StandardSignAndSendTransactionScreen-eKXCtVY6.mjs +0 -21
  811. package/dist/esm/StandardSignAndSendTransactionScreen-eKXCtVY6.mjs.map +0 -1
  812. package/dist/esm/TelegramAuthScreen-BX56xLIE.mjs +0 -2
  813. package/dist/esm/TelegramAuthScreen-BX56xLIE.mjs.map +0 -1
  814. package/dist/esm/TransactionDetails-DIpXOQ2z.mjs +0 -112
  815. package/dist/esm/TransactionDetails-DIpXOQ2z.mjs.map +0 -1
  816. package/dist/esm/TransactionErrorView-Dccap26i.mjs +0 -167
  817. package/dist/esm/TransactionErrorView-Dccap26i.mjs.map +0 -1
  818. package/dist/esm/TransferFromWalletScreen-Cayx65zi.mjs +0 -32
  819. package/dist/esm/TransferFromWalletScreen-Cayx65zi.mjs.map +0 -1
  820. package/dist/esm/TransferOrBridgeLoadingScreen-DIcNoaWy.mjs +0 -7
  821. package/dist/esm/TransferOrBridgeLoadingScreen-DIcNoaWy.mjs.map +0 -1
  822. package/dist/esm/UpdateEmailScreen-DpxlWl_W.mjs +0 -2
  823. package/dist/esm/UpdateEmailScreen-DpxlWl_W.mjs.map +0 -1
  824. package/dist/esm/UpdatePhoneScreen-DbpjqxM5.mjs +0 -2
  825. package/dist/esm/UpdatePhoneScreen-DbpjqxM5.mjs.map +0 -1
  826. package/dist/esm/UserLimitReachedScreen-Cijt4tjX.mjs +0 -2
  827. package/dist/esm/UserLimitReachedScreen-Cijt4tjX.mjs.map +0 -1
  828. package/dist/esm/WalletInfoCard-D9suj06P.mjs +0 -30
  829. package/dist/esm/WalletInfoCard-D9suj06P.mjs.map +0 -1
  830. package/dist/esm/WalletInterstitialScreen-CogZNlKe.mjs +0 -2
  831. package/dist/esm/WalletInterstitialScreen-CogZNlKe.mjs.map +0 -1
  832. package/dist/esm/WalletLink-Cw3j6GNA.mjs +0 -23
  833. package/dist/esm/WalletLink-Cw3j6GNA.mjs.map +0 -1
  834. package/dist/esm/WalletOverflowButton-lnfBRPod.mjs +0 -2
  835. package/dist/esm/WalletOverflowButton-lnfBRPod.mjs.map +0 -1
  836. package/dist/esm/context-CN4tm0iy.mjs +0 -2
  837. package/dist/esm/context-CN4tm0iy.mjs.map +0 -1
  838. package/dist/esm/ethers-C123aV2r.mjs +0 -2
  839. package/dist/esm/ethers-C123aV2r.mjs.map +0 -1
  840. package/dist/esm/get-entropy-details-for-user-DV0QC_n_.mjs +0 -2
  841. package/dist/esm/get-entropy-details-for-user-DV0QC_n_.mjs.map +0 -1
  842. package/dist/esm/getErc20Balance-BQolqFpV.mjs +0 -2
  843. package/dist/esm/getErc20Balance-BQolqFpV.mjs.map +0 -1
  844. package/dist/esm/getErc20TokenInfo-JN_ejbMa.mjs +0 -2
  845. package/dist/esm/getErc20TokenInfo-JN_ejbMa.mjs.map +0 -1
  846. package/dist/esm/index-BIM3W67E.mjs +0 -175
  847. package/dist/esm/index-BIM3W67E.mjs.map +0 -1
  848. package/dist/esm/index-BOKlTYUM.mjs +0 -13
  849. package/dist/esm/index-BOKlTYUM.mjs.map +0 -1
  850. package/dist/esm/index-CdgnDgjJ.mjs +0 -2
  851. package/dist/esm/index-CdgnDgjJ.mjs.map +0 -1
  852. package/dist/esm/privy-context-DZKgfhd0.mjs +0 -2
  853. package/dist/esm/privy-context-DZKgfhd0.mjs.map +0 -1
  854. package/dist/esm/shared-DkB_Ojl5.mjs +0 -181
  855. package/dist/esm/shared-DkB_Ojl5.mjs.map +0 -1
  856. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-CrWspe2X.mjs +0 -2
  857. package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-CrWspe2X.mjs.map +0 -1
  858. package/dist/esm/smart-wallets-C8BYaqdz.mjs +0 -2
  859. package/dist/esm/smart-wallets-C8BYaqdz.mjs.map +0 -1
  860. package/dist/esm/styles-BK2WmaO6.mjs +0 -94
  861. package/dist/esm/styles-BK2WmaO6.mjs.map +0 -1
  862. package/dist/esm/to-ui-error-BkZuXio1.mjs +0 -5
  863. package/dist/esm/to-ui-error-BkZuXio1.mjs.map +0 -1
  864. package/dist/esm/use-export-wallet-9YfZ3VXO.mjs +0 -2
  865. package/dist/esm/use-export-wallet-9YfZ3VXO.mjs.map +0 -1
  866. package/dist/esm/use-export-wallet-D_8FuCoc.mjs +0 -2
  867. package/dist/esm/use-export-wallet-D_8FuCoc.mjs.map +0 -1
  868. package/dist/esm/useActiveWallet-DjydqQx5.mjs +0 -186
  869. package/dist/esm/useActiveWallet-DjydqQx5.mjs.map +0 -1
  870. package/dist/esm/useGetTokenPrice-CYNG3u96.mjs +0 -2
  871. package/dist/esm/useGetTokenPrice-CYNG3u96.mjs.map +0 -1
  872. package/dist/esm/useI18n-CfF6_h5l.mjs +0 -2
  873. package/dist/esm/useI18n-CfF6_h5l.mjs.map +0 -1
  874. package/dist/esm/usePrivy-FjSn4tzH.mjs +0 -2
  875. package/dist/esm/usePrivy-FjSn4tzH.mjs.map +0 -1
  876. package/dist/esm/useSolanaRpcClient-Du7-uDZk.mjs +0 -2
  877. package/dist/esm/useSolanaRpcClient-Du7-uDZk.mjs.map +0 -1
  878. package/dist/esm/useWalletBalance-D47pFipV.mjs +0 -2
  879. package/dist/esm/useWalletBalance-D47pFipV.mjs.map +0 -1
  880. package/dist/esm/useWallets-Ddtlgf8d.mjs +0 -2
  881. package/dist/esm/useWallets-Ddtlgf8d.mjs.map +0 -1
@@ -1,2614 +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 { CustomOAuthProviderID, OAuthProviderID, WalletChainType, SmartWalletType, User as User$1, AppResponse, PasskeyAuthenticateInput, OnrampProvider } from '@privy-io/api-types';
7
- import { ConnectedStandardSolanaWallet, CountryCode, Chain, ChainLikeWithId, RpcConfig } from '@privy-io/js-sdk-core';
8
- import { createBaseAccountSDK } from '@base-org/account';
9
- import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
10
- import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
11
- import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
12
- import EventEmitter from 'eventemitter3';
13
-
14
- /**
15
- * Internationalization strings for Privy UI components.
16
- *
17
- * Keys follow the pattern: `component.semanticDescription`
18
- */
19
- type PrivyI18nStrings = {
20
- 'connectionStatus.successfullyConnected': string;
21
- 'connectionStatus.errorTitle': string;
22
- 'connectionStatus.connecting': string;
23
- 'connectionStatus.connectOneWallet': string;
24
- 'connectionStatus.checkOtherWindows': string;
25
- 'connectionStatus.stillHere': string;
26
- 'connectionStatus.tryConnectingAgain': string;
27
- 'connectionStatus.or': string;
28
- 'connectionStatus.useDifferentLink': string;
29
- 'connectWallet.connectYourWallet': string;
30
- 'connectWallet.waitingForWallet': string;
31
- 'connectWallet.connectToAccount': string;
32
- 'connectWallet.installAndConnect': string;
33
- 'connectWallet.tryConnectingAgain': string;
34
- 'connectWallet.openInApp': string;
35
- 'connectWallet.copyLink': string;
36
- 'connectWallet.retry': string;
37
- 'connectWallet.searchPlaceholder': string;
38
- 'connectWallet.noWalletsFound': string;
39
- 'connectWallet.lastUsed': string;
40
- 'connectWallet.selectYourWallet': string;
41
- 'connectWallet.selectNetwork': string;
42
- 'connectWallet.goToWallet': string;
43
- 'connectWallet.scanToConnect': string;
44
- 'connectWallet.openOrInstall': string;
45
- };
46
-
47
- interface ConnectorEvents {
48
- walletsUpdated(): void;
49
- initialized(): void;
50
- }
51
- /**
52
- * @hidden
53
- *
54
- * A WalletConnector is identified by a connectorType and walletClientType. A
55
- * connectorType includes injected, wallet_connect, etc. A walletClientType
56
- * includes metamask, trustwallet, etc.
57
- *
58
- * Each WalletConnector manages a list of wallets, identified by an address
59
- * and chainId. Each wallet has a connected property indicating its current
60
- * connection status, which is determined based on events emitted by the
61
- * underlying provider.
62
- *
63
- * The WalletConnector also emits two events: walletsUpdated and initialized.
64
- * The walletsUpdated event is triggered when the list of wallets changes,
65
- * while the initialized event is triggered when the WalletConnector is
66
- * ready and has successfully executed the syncAccounts() function for
67
- * the first time.
68
- */
69
- declare abstract class WalletConnector extends EventEmitter<ConnectorEvents> {
70
- connected: boolean;
71
- initialized: boolean;
72
- walletClientType: WalletClientType;
73
- abstract wallets: (BaseConnectedEthereumWallet | BaseConnectedSolanaWallet)[];
74
- abstract chainType: 'ethereum' | 'solana';
75
- abstract connectorType: ConnectorType;
76
- constructor(walletClientType: WalletClientType);
77
- abstract isConnected(): Promise<boolean>;
78
- abstract subscribeListeners(): void;
79
- abstract unsubscribeListeners(): void;
80
- abstract get walletBranding(): WalletBranding;
81
- abstract initialize(): Promise<void>;
82
- abstract connect(options: {
83
- showPrompt?: boolean;
84
- chainId?: number;
85
- }): Promise<BaseConnectedWallet | null>;
86
- abstract disconnect(): void;
87
- abstract promptConnection(walletClientType: WalletClientType): void;
88
- }
89
-
90
- /**
91
- * We support a subset of the provider methods found here:
92
- *
93
- * https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
94
- *
95
- * For now, we're focused on signing-related methods because the iframe (this code)
96
- * is the only place that has access to the private key and thus is the only one
97
- * who can create signatures. All other methods do not need the private key and
98
- * can therefore be implemented by clients of the iframe.
99
- */
100
-
101
- declare const SUPPORTED_ETHEREUM_RPC_METHODS: readonly ["eth_sign", "eth_populateTransactionRequest", "eth_signTransaction", "personal_sign", "eth_signTypedData_v4", "csw_signUserOperation", "secp256k1_sign"];
102
- type EthereumRpcMethodType = (typeof SUPPORTED_ETHEREUM_RPC_METHODS)[number];
103
- declare const SUPPORTED_SOLANA_RPC_METHODS: string[];
104
- type SolanaRpcMethodType = (typeof SUPPORTED_SOLANA_RPC_METHODS)[number];
105
- type Quantity = string | number | bigint;
106
- type UnsignedTransactionRequest = {
107
- from?: string;
108
- to?: string;
109
- nonce?: Quantity;
110
- gasLimit?: Quantity;
111
- gasPrice?: Quantity;
112
- data?: ArrayLike<number> | string;
113
- value?: Quantity;
114
- chainId?: number;
115
- type?: number;
116
- accessList?: Array<{
117
- address: string;
118
- storageKeys: Array<string>;
119
- }> | Array<[string, Array<string>]> | Record<string, Array<string>>;
120
- maxPriorityFeePerGas?: Quantity;
121
- maxFeePerGas?: Quantity;
122
- };
123
- type TransactionLog = {
124
- blockNumber: number;
125
- blockHash: string;
126
- transactionIndex: number;
127
- removed: boolean;
128
- address: string;
129
- data: string;
130
- topics: Array<string>;
131
- transactionHash: string;
132
- logIndex: number;
133
- };
134
- type TransactionReceipt = {
135
- to: string;
136
- from: string;
137
- contractAddress: string;
138
- transactionIndex: number;
139
- root?: string;
140
- logs: Array<TransactionLog>;
141
- logsBloom: string;
142
- blockHash: string;
143
- transactionHash: string;
144
- blockNumber: number;
145
- confirmations: number;
146
- byzantium: boolean;
147
- type: number;
148
- status?: number;
149
- gasUsed: string;
150
- cumulativeGasUsed: string;
151
- effectiveGasPrice?: string;
152
- };
153
- interface BaseEthereumRpcRequestType {
154
- method: EthereumRpcMethodType;
155
- }
156
- interface BaseSolanaRpcRequestType {
157
- method: SolanaRpcMethodType;
158
- }
159
- interface eth_populateTransactionRequest extends BaseEthereumRpcRequestType {
160
- method: 'eth_populateTransactionRequest';
161
- params: [UnsignedTransactionRequest];
162
- }
163
- interface eth_populateTransactionRequestResponse {
164
- method: 'eth_populateTransactionRequest';
165
- data: UnsignedTransactionRequest;
166
- }
167
- interface eth_signTransaction extends BaseEthereumRpcRequestType {
168
- method: 'eth_signTransaction';
169
- params: [UnsignedTransactionRequest];
170
- }
171
- interface eth_sign extends BaseEthereumRpcRequestType {
172
- method: 'eth_sign';
173
- params: [address: string, message: string];
174
- }
175
- interface eth_signResponse {
176
- method: 'eth_sign';
177
- data: string;
178
- }
179
- interface personal_sign extends BaseEthereumRpcRequestType {
180
- method: 'personal_sign';
181
- params: [string, string];
182
- }
183
- interface personal_signResponse {
184
- method: 'personal_sign';
185
- data: string;
186
- }
187
- interface eth_signTransactionResponse {
188
- method: 'eth_signTransaction';
189
- data: string;
190
- }
191
- interface eth_signTypedData_v4 extends BaseEthereumRpcRequestType {
192
- method: 'eth_signTypedData_v4';
193
- params: [string, TypedMessage<MessageTypes> | string];
194
- }
195
- interface eth_signTypedData_v4Response {
196
- method: 'eth_signTypedData_v4';
197
- data: string;
198
- }
199
- interface secp256k1_sign extends BaseEthereumRpcRequestType {
200
- method: 'secp256k1_sign';
201
- params: [`0x${string}`];
202
- }
203
- interface secp256k1_signResponse {
204
- method: 'secp256k1_sign';
205
- data: `0x${string}`;
206
- }
207
- interface solana_signMessage extends BaseSolanaRpcRequestType {
208
- method: 'signMessage';
209
- params: {
210
- message: string;
211
- };
212
- }
213
- interface solana_signMessageResponse {
214
- method: 'signMessage';
215
- data: {
216
- signature: string;
217
- };
218
- }
219
- type EthereumRpcRequestType = eth_signTransaction | eth_populateTransactionRequest | eth_sign | personal_sign | eth_signTypedData_v4 | secp256k1_sign;
220
- type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransactionRequestResponse | eth_signResponse | personal_signResponse | eth_signTypedData_v4Response | secp256k1_signResponse;
221
- type SolanaRpcRequestType = solana_signMessage;
222
- type SolanaRpcResponseType = solana_signMessageResponse;
223
-
224
- declare abstract class PrivyError extends Error {
225
- /**
226
- * Privy error type.
227
- */
228
- abstract type: string;
229
- /**
230
- * Original Error object, it the error originated client-side.
231
- */
232
- cause?: Error;
233
- /**
234
- * An optional error code, often included in Privy API responses.
235
- */
236
- privyErrorCode?: PrivyErrorCode;
237
- /**
238
- * @param type Privy error type.
239
- * @param message Human-readable message.
240
- * @param cause Source of this error.
241
- */
242
- protected constructor(message: string, cause?: unknown, privyErrorCode?: PrivyErrorCode);
243
- toString(): string;
244
- }
245
- /**
246
- * The PrivyConnector instance threw an exception.
247
- */
248
- declare class PrivyConnectorError extends PrivyError {
249
- type: string;
250
- constructor(message: string, cause?: unknown, privyErrorCode?: PrivyErrorCode);
251
- }
252
- declare enum PrivyErrorCode {
253
- OAUTH_ACCOUNT_SUSPENDED = "oauth_account_suspended",
254
- MISSING_OR_INVALID_PRIVY_APP_ID = "missing_or_invalid_privy_app_id",
255
- MISSING_OR_INVALID_PRIVY_ACCOUNT_ID = "missing_or_invalid_privy_account_id",
256
- MISSING_OR_INVALID_TOKEN = "missing_or_invalid_token",
257
- INVALID_DATA = "invalid_data",
258
- INVALID_CAPTCHA = "invalid_captcha",
259
- LINKED_TO_ANOTHER_USER = "linked_to_another_user",
260
- CANNOT_LINK_MORE_OF_TYPE = "cannot_link_more_of_type",
261
- FAILED_TO_LINK_ACCOUNT = "failed_to_link_account",
262
- FAILED_TO_UPDATE_ACCOUNT = "failed_to_update_account",
263
- USER_EXITED_UPDATE_FLOW = "exited_update_flow",
264
- ALLOWLIST_REJECTED = "allowlist_rejected",
265
- OAUTH_USER_DENIED = "oauth_user_denied",
266
- OAUTH_UNEXPECTED = "oauth_unexpected",
267
- UNKNOWN_AUTH_ERROR = "unknown_auth_error",
268
- USER_EXITED_AUTH_FLOW = "exited_auth_flow",
269
- USER_EXITED_LINK_FLOW = "exited_link_flow",
270
- USER_EXITED_SET_PASSWORD_FLOW = "user_exited_set_password_flow",
271
- MUST_BE_AUTHENTICATED = "must_be_authenticated",
272
- UNKNOWN_CONNECT_WALLET_ERROR = "unknown_connect_wallet_error",
273
- GENERIC_CONNECT_WALLET_ERROR = "generic_connect_wallet_error",
274
- CLIENT_REQUEST_TIMEOUT = "client_request_timeout",
275
- INVALID_CREDENTIALS = "invalid_credentials",
276
- MISSING_MFA_CREDENTIALS = "missing_or_invalid_mfa",
277
- UNKNOWN_MFA_ERROR = "unknown_mfa_error",
278
- EMBEDDED_WALLET_ALREADY_EXISTS = "embedded_wallet_already_exists",
279
- EMBEDDED_WALLET_NOT_FOUND = "embedded_wallet_not_found",
280
- EMBEDDED_WALLET_CREATE_ERROR = "embedded_wallet_create_error",
281
- UNKNOWN_EMBEDDED_WALLET_ERROR = "unknown_embedded_wallet_error",
282
- EMBEDDED_WALLET_PASSWORD_UNCONFIRMED = "embedded_wallet_password_unconfirmed",
283
- EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS = "embedded_wallet_password_already_exists",
284
- EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS = "embedded_wallet_recovery_already_exists",
285
- TRANSACTION_FAILURE = "transaction_failure",
286
- UNSUPPORTED_CHAIN_ID = "unsupported_chain_id",
287
- NOT_SUPPORTED = "not_supported",
288
- CAPTCHA_TIMEOUT = "captcha_timeout",
289
- INVALID_MESSAGE = "invalid_message",
290
- UNABLE_TO_SIGN = "unable_to_sign",
291
- CAPTCHA_FAILURE = "captcha_failure",
292
- CAPTCHA_DISABLED = "captcha_disabled",
293
- SESSION_STORAGE_UNAVAILABLE = "session_storage_unavailable",
294
- TOO_MANY_REQUESTS = "too_many_requests",
295
- USER_LIMIT_REACHED = "max_accounts_reached",
296
- DISALLOWED_LOGIN_METHOD = "disallowed_login_method",
297
- DISALLOWED_PLUS_EMAIL = "disallowed_plus_email",
298
- PASSKEY_NOT_ALLOWED = "passkey_not_allowed",
299
- USER_DOES_NOT_EXIST = "user_does_not_exist",
300
- INSUFFICIENT_BALANCE = "insufficient_balance",
301
- ACCOUNT_TRANSFER_REQUIRED = "account_transfer_required",
302
- BUFFER_NOT_DEFINED = "buffer_not_defined",
303
- UNSUPPORTED_WALLET_TYPE = "unsupported_wallet_type",
304
- NO_SOLANA_ACCOUNTS = "no_solana_accounts",
305
- UNKNOWN_FUNDING_ERROR = "unknown_funding_error"
306
- }
307
-
308
- declare class WalletTimeoutError extends PrivyConnectorError {
309
- type: string;
310
- constructor();
311
- }
312
- /**
313
- * A ProviderRpcError combines the necessary bits of the {PrivyError} with the
314
- * EIP-compliant ProviderRpcError. This is meant to be a type around errors raised
315
- * by the ethereum provider.
316
- */
317
- declare class ProviderRpcError extends PrivyError {
318
- type: string;
319
- readonly code: number;
320
- readonly data?: unknown;
321
- constructor(message: string, code: number, data?: unknown);
322
- }
323
-
324
- type ProviderConnectInfo = {
325
- chainId: string;
326
- };
327
- type OnConnectEventHandler = (connectInfo: ProviderConnectInfo) => void;
328
- type OnDisconnectEventHandler = (error: ProviderRpcError) => void;
329
- type OnChainChangedEventHandler = (chainId: string | number) => void;
330
- type OnAccountsChangedEventHandler = (accounts: string[]) => void;
331
- type ProviderMessage = {
332
- type: string;
333
- data: unknown;
334
- };
335
- type OnMessageEventHandler = (message: ProviderMessage) => void;
336
- type EIP1193OnEventHandler = OnConnectEventHandler | OnDisconnectEventHandler | OnChainChangedEventHandler | OnAccountsChangedEventHandler | OnMessageEventHandler;
337
- interface EIP1193Provider {
338
- rpcTimeoutDuration?: number;
339
- request: (request: {
340
- method: string;
341
- params?: Array<any> | undefined;
342
- }) => Promise<any>;
343
- on: (eventName: string, listener: EIP1193OnEventHandler) => any;
344
- removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
345
- }
346
- interface RequestArguments {
347
- readonly method: string;
348
- readonly params?: readonly unknown[] | object | any;
349
- }
350
-
351
- declare global {
352
- interface Window {
353
- ethereum?: any;
354
- }
355
- }
356
- /**
357
- * @hidden
358
- *
359
- * The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
360
- * */
361
- declare class PrivyProxyProvider implements EIP1193Provider {
362
- rpcTimeoutDuration: number;
363
- walletProvider?: EIP1193Provider;
364
- private _subscriptions;
365
- constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
366
- on(eventName: string, listener: (...args: any[]) => void): any;
367
- request(request: {
368
- method: string;
369
- params?: any[] | undefined;
370
- }): Promise<any>;
371
- removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
372
- walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
373
- setWalletProvider: (provider: EIP1193Provider) => void;
374
- }
375
-
376
- type BaseAccountSdkCreateParams = Parameters<typeof createBaseAccountSDK>[0];
377
- type BaseAccountSdkType = ReturnType<typeof createBaseAccountSDK>;
378
- type SetBaseAccountSdkType = (sdk: BaseAccountSdkType | undefined) => void;
379
-
380
- /**
381
- * Type of all Solana chains supported by Privy.
382
- */
383
- type SolanaChain = (typeof SOLANA_CHAINS)[number];
384
- /**
385
- * Helper type for defining a Standard Wallet with a union of Solana features.
386
- */
387
- type SolanaStandardWallet = WalletWithFeatures<{
388
- 'standard:connect'?: StandardConnectFeature['standard:connect'];
389
- 'standard:disconnect'?: StandardDisconnectFeature['standard:disconnect'];
390
- 'standard:events'?: StandardEventsFeature['standard:events'];
391
- 'solana:signMessage'?: SolanaSignMessageFeature['solana:signMessage'];
392
- 'solana:signTransaction'?: SolanaSignTransactionFeature['solana:signTransaction'];
393
- 'solana:signAndSendTransaction'?: SolanaSignAndSendTransactionFeature['solana:signAndSendTransaction'];
394
- 'solana:signIn'?: SolanaSignInFeature['solana:signIn'];
395
- }>;
396
-
397
- /**
398
- * Represents a connection with a single Solana wallet provider. Manages wallet state
399
- * including ongoing connection status, and exposes methods for connecting and disconnecting.
400
- */
401
- declare class SolanaWalletConnector extends WalletConnector {
402
- chainType: "solana";
403
- connectorType: string;
404
- wallets: BaseConnectedSolanaWallet[];
405
- private _wallet;
406
- private autoConnectEnabled;
407
- private _unsubscribeListeners;
408
- constructor(wallet: Wallet$1, autoConnectEnabled: boolean);
409
- get isInstalled(): boolean;
410
- get wallet(): SolanaStandardWallet;
411
- /**
412
- * Builds a connected wallet object to be exposed to the developer. This object
413
- * contains the address and a few helper methods.
414
- *
415
- * Provider methods share the PrivyProxyProvider instance. This means that multiple
416
- * wallets may share the same provider if one wallet was disconnected and another
417
- * wallet was connected.
418
- *
419
- * A wallet is considered connected if it is present in the wallets array and is
420
- * in a connected state.
421
- *
422
- * @hidden
423
- */
424
- buildConnectedWallet(): BaseConnectedSolanaWallet[];
425
- /**
426
- * @hidden
427
- */
428
- syncAccounts(): Promise<void>;
429
- /**
430
- * @hidden
431
- */
432
- get walletBranding(): WalletBranding;
433
- /**
434
- * @hidden
435
- */
436
- initialize(): Promise<void>;
437
- /**
438
- * @hidden
439
- */
440
- connect(options: {
441
- showPrompt: boolean;
442
- }): Promise<BaseConnectedWallet | null>;
443
- /**
444
- * @hidden
445
- */
446
- disconnect: () => Promise<void>;
447
- /**
448
- * @hidden
449
- */
450
- promptConnection: () => Promise<void>;
451
- protected onChange: () => void;
452
- /**
453
- * Get the most recently connected wallet.
454
- *
455
- * @hidden
456
- */
457
- getConnectedWallet(): Promise<BaseConnectedSolanaWallet | null>;
458
- /**
459
- * We depend on the adapter to manage the connection state. We consider a wallet
460
- * connected if the adapter is connected and its readyState is 'Installed'.
461
- *
462
- * @hidden
463
- */
464
- isConnected(): Promise<boolean>;
465
- /**
466
- * @hidden
467
- */
468
- subscribeListeners(): void;
469
- /**
470
- * @hidden
471
- */
472
- unsubscribeListeners(): void;
473
- private shouldAttemptAutoConnect;
474
- }
475
-
476
- interface SolanaWalletConnectorsOptions {
477
- shouldAutoConnect?: boolean;
478
- }
479
- /**
480
- * Plugin object to add solana support to the Privy SDK
481
- */
482
- type SolanaWalletConnectorsConfig = {
483
- /**
484
- * Creates listeners for when solana wallets are registered or unregistered
485
- */
486
- onMount: () => void;
487
- /**
488
- * Remove listener registered by `onMount`
489
- */
490
- onUnmount: () => void;
491
- /**
492
- * Get all Wallets that have been registered, converted to `SolanaWalletConnectors`.
493
- */
494
- get: () => SolanaWalletConnector[];
495
- };
496
- /**
497
- * Wraps the wallet detection logic found in `@solana/wallet-standard-wallet-adapter-base`
498
- * and `@wallet-standard-app`. Returns a `SolanaWalletConnectors` object to be used with the `PrivyProvider`.
499
- *
500
- * @param {SolanaWalletConnectorsOptions} args Configuration object
501
- * @param {boolean} args.shouldAutoConnect Whether to automatically connect to the wallet.
502
- * Defaults to `true` and should not prompt the user loudly for connection. However, some legacy
503
- * adapters may still auto-connect loudly, so this flag can be used to disable that behavior.
504
- */
505
- declare const toSolanaWalletConnectors: (args?: SolanaWalletConnectorsOptions) => SolanaWalletConnectorsConfig;
506
-
507
- /**
508
- * Accepted payment methods for the MoonPay fiat on-ramp.
509
- */
510
- 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';
511
- type MoonpayUiConfig = {
512
- accentColor?: string;
513
- theme?: 'light' | 'dark';
514
- };
515
- /**
516
- * Cryptocurrency codes for the MoonPay fiat on-ramp. These codes
517
- * follow the format {TOKEN_NAME}_{NETWORK_NAME}.
518
- */
519
- 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';
520
- /**
521
- * Configuration parameter for the MoonPay fiat on-ramp.
522
- */
523
- type MoonpayConfig = {
524
- currencyCode?: MoonpayCurrencyCode;
525
- quoteCurrencyAmount?: number;
526
- paymentMethod?: MoonpayPaymentMethod;
527
- uiConfig?: MoonpayUiConfig;
528
- };
529
- type MoonpaySignRequest = {
530
- address: string;
531
- config: MoonpayConfig;
532
- useSandbox: boolean;
533
- };
534
- type MoonpaySignResponse = {
535
- signedUrl: string;
536
- externalTransactionId: string;
537
- };
538
-
539
- declare const DEFAULT_BICONOMY_PAYMASTER_CONTEXT: {
540
- mode: string;
541
- calculateGasLimits: boolean;
542
- expiryDuration: number;
543
- sponsorshipInfo: {
544
- webhookData: {};
545
- smartAccountInfo: {
546
- name: string;
547
- version: string;
548
- };
549
- };
550
- };
551
- type BiconomyPaymasterContext = typeof DEFAULT_BICONOMY_PAYMASTER_CONTEXT;
552
- type AlchemyPaymasterContextClient = {
553
- policyId: string;
554
- };
555
-
556
- /**
557
- * Plugin that keeps user state in sync across browser tabs using BroadcastChannel.
558
- *
559
- * @experimental This plugin is experimental and may change or be removed in future versions.
560
- */
561
- type CrossTabUserSyncPlugin = {
562
- readonly id: typeof CROSS_TAB_USER_SYNC_PLUGIN_ID;
563
- };
564
- /**
565
- * Creates a cross-tab user sync plugin.
566
- *
567
- * @experimental This plugin is experimental and may change or be removed in future versions.
568
- *
569
- * @param options.channelId - A unique channel ID for your app.
570
- *
571
- * @example
572
- * ```tsx
573
- * createCrossTabUserSyncPlugin({
574
- * channelId: process.env.NEXT_PUBLIC_PRIVY_SYNC_CHANNEL_ID
575
- * })
576
- * ```
577
- */
578
- declare function createCrossTabUserSyncPlugin(options: {
579
- channelId: string;
580
- }): CrossTabUserSyncPlugin;
581
-
582
- /**
583
- * Plugin that adds data suffix support to the SDK.
584
- */
585
- type DataSuffixPlugin = {
586
- readonly id: typeof DATA_SUFFIX_PLUGIN_ID;
587
- /** The normalized suffix value with 0x prefix. */
588
- readonly suffix: Hex;
589
- /**
590
- * Appends a data suffix to transaction data.
591
- *
592
- * @param opts.data - The current transaction data (if any)
593
- * @returns The transaction data with the suffix appended
594
- */
595
- appendDataSuffix: (opts: {
596
- data: Hex;
597
- }) => Hex;
598
- };
599
- /**
600
- * Creates a data suffix plugin instance with the configured suffix.
601
- *
602
- * @param suffix - The hex suffix to append to transaction data (with or without '0x' prefix).
603
- * Must be valid hex data.
604
- * @returns A plugin instance that transforms transaction data.
605
- * @throws {Error} If the suffix is not valid hex.
606
- */
607
- declare function createDataSuffixPlugin(suffix: string): DataSuffixPlugin;
608
-
609
- /**
610
- * Plugin that provides default Privy-hosted Solana RPC endpoints.
611
- *
612
- * When registered, chains without user-configured RPCs fall back
613
- * to these defaults instead of returning null.
614
- */
615
- type DefaultSolanaRpcsPlugin = {
616
- readonly id: symbol;
617
- getDefaultRpcs: ({ appId }: {
618
- appId: string;
619
- }) => Partial<Record<SolanaChain, {
620
- rpc: Rpc<SolanaRpcApi>;
621
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
622
- blockExplorerUrl: string;
623
- }>>;
624
- };
625
- declare function defaultSolanaRpcsPlugin(): DefaultSolanaRpcsPlugin;
626
-
627
- /**
628
- * Plugin that overrides automatic embedded wallet creation (createOnLogin config).
629
- *
630
- * When present, the plugin's `shouldCreateWallet` predicate fully overrides the app's
631
- * createOnLogin setting: `true` = create wallet(s), `false` = do not create.
632
- * When the plugin is not registered, the default createOnLogin logic is used.
633
- *
634
- * @experimental This plugin is experimental and may change or be removed in future versions.
635
- */
636
- type WalletCreationFilterPlugin = {
637
- readonly id: typeof WALLET_CREATION_ON_LOGIN_PLUGIN_ID;
638
- /**
639
- * Override for whether to create embedded wallet(s) for this user.
640
- * When the plugin is active, this replaces the createOnLogin config.
641
- */
642
- shouldCreateWallet: ({ user }: {
643
- user: User;
644
- }) => boolean;
645
- };
646
- /**
647
- * Creates a plugin that overrides automatic embedded wallet creation based on a
648
- * user-defined predicate.
649
- *
650
- * When the plugin is registered, it overrides the app's createOnLogin config:
651
- * - `shouldCreateWallet({ user }) === true` → create embedded wallet(s) for this user
652
- * - `shouldCreateWallet({ user }) === false` → do not create
653
- *
654
- * @experimental This plugin is experimental and may change or be removed in future versions.
655
- *
656
- * @param options.shouldCreateWallet Predicate receiving `{ user }`; true = create, false = do not create (overrides createOnLogin).
657
- *
658
- * @example
659
- * ```tsx
660
- * const walletCreationPlugin = createWalletCreationOnLoginPlugin({
661
- * shouldCreateWallet: ({ user }) =>
662
- * user.customMetadata?.['alchemy_org_id'] === undefined,
663
- * });
664
- * <PrivyProvider
665
- * appId="..."
666
- * config={{
667
- * plugins: [walletCreationPlugin],
668
- * }}
669
- * >
670
- * ```
671
- */
672
- declare function createWalletCreationOnLoginPlugin(options: {
673
- shouldCreateWallet: ({ user }: {
674
- user: User;
675
- }) => boolean;
676
- }): WalletCreationFilterPlugin;
677
-
678
- type CustomMetadataType = User$1['custom_metadata'];
679
- declare const SUPPORTED_RECOVERY_PROVIDERS: readonly ["google-drive", "icloud"];
680
- declare const SUPPORTED_MFA_METHODS: readonly ["sms", "totp", "passkey"];
681
- type MfaMethod = (typeof SUPPORTED_MFA_METHODS)[number];
682
- type MfaSubmitArgs = {
683
- mfaMethod: MfaMethod;
684
- mfaCode: string | PasskeyAuthenticateInput['authenticator_response'];
685
- relyingParty: string;
686
- };
687
- type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
688
- /**
689
- * Supported OAuth providers for the recovery flow. Can be `'google-drive'`
690
- */
691
- type RecoveryProviderType = (typeof SUPPORTED_RECOVERY_PROVIDERS)[number];
692
- type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderID | 'passkey' | 'telegram' | 'custom' | 'guest';
693
- type LoginWithCode = {
694
- /**
695
- * One-time password _([OTP](https://en.wikipedia.org/wiki/One-time_password))_ that was sent to user during first login step
696
- */
697
- code: string;
698
- };
699
- declare const EMBEDDED_WALLET_CLIENT_TYPES: readonly ["privy"];
700
- type EmbeddedWalletClientType = (typeof EMBEDDED_WALLET_CLIENT_TYPES)[number];
701
- 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"];
702
- type InjectedWalletClientType = (typeof INJECTED_WALLET_CLIENT_TYPES)[number];
703
- declare const COINBASE_WALLET_CLIENT_TYPES: readonly ["coinbase_wallet", "coinbase_smart_wallet", "base_account"];
704
- type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
705
- type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
706
- declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
707
- type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
708
- declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "jupiter", "mobile_wallet_adapter"];
709
- type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
710
- type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
711
- declare const SUPPORTED_CONNECTOR_TYPES: string[];
712
- type ConnectorType = (typeof SUPPORTED_CONNECTOR_TYPES)[number];
713
- /**
714
- * Wallet metadata currently for internal use only
715
- */
716
- type WalletBranding = {
717
- name: string;
718
- id: string;
719
- icon?: string | EmbeddedSVG;
720
- };
721
- 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';
722
- /** @ignore */
723
- interface LinkMetadata {
724
- /** Account type, most commonly useful when filtering through linkedAccounts */
725
- type: LinkedAccountType;
726
- /** Datetime when this account was linked to the user. */
727
- firstVerifiedAt: Date | null;
728
- /** Datetime when this account was most recently used as a login/link method by the user. */
729
- latestVerifiedAt: Date | null;
730
- }
731
- /**
732
- * Config for preferred credit card provider. We will default to using this method first if available.
733
- */
734
- type PreferredCardProvider = 'coinbase' | 'moonpay';
735
- /**
736
- * Configuration for the funding flow UIs.
737
- */
738
- type FundingUiConfig = {
739
- receiveFundsTitle?: string;
740
- receiveFundsSubtitle?: string;
741
- landing?: {
742
- title?: string;
743
- };
744
- };
745
- /**
746
- * Configuration for Solana funding
747
- */
748
- type SolanaFundingConfig = {
749
- /** The chain used for connections */
750
- chain?: SolanaChain;
751
- /** The default amount in SOL */
752
- amount?: string;
753
- /** The default funding method */
754
- defaultFundingMethod?: DefaultFundingMethod;
755
- card?: {
756
- /** The preferred card provider for funding */
757
- preferredProvider?: PreferredCardProvider;
758
- };
759
- /** Customization for the funding UIs */
760
- uiConfig?: FundingUiConfig;
761
- /** The asset to fund with */
762
- asset?: 'native-currency' | 'USDC';
763
- };
764
- /**
765
- * Configuration for native funding amount.
766
- */
767
- type NativeFundingConfig = {
768
- chain?: ChainLikeWithId;
769
- amount?: string;
770
- defaultFundingMethod?: DefaultFundingMethod;
771
- card?: {
772
- /** The preferred card onramp for funding */
773
- preferredProvider?: PreferredCardProvider;
774
- };
775
- /** Customization for the funding UIs */
776
- uiConfig?: FundingUiConfig;
777
- } | {
778
- chain?: ChainLikeWithId;
779
- amount: string;
780
- asset: {
781
- erc20: Hex;
782
- } | 'USDC' | 'native-currency';
783
- defaultFundingMethod?: DefaultFundingMethod;
784
- card?: {
785
- /** The preferred card onramp for funding */
786
- preferredProvider?: PreferredCardProvider;
787
- };
788
- /** Customization for the funding UIs */
789
- uiConfig?: FundingUiConfig;
790
- };
791
- /**
792
- * Optional configuration parameter for the fiat on-ramp.
793
- */
794
- type FundWalletConfig = NativeFundingConfig;
795
- /**
796
- * Status of a funding transaction
797
- */
798
- type FundingStatus = 'completed' | 'cancelled';
799
- /**
800
- * Result returned when fundWallet() promise resolves
801
- */
802
- interface FundingResult {
803
- /**
804
- * Status of the funding transaction
805
- */
806
- status: FundingStatus;
807
- /**
808
- * Wallet address that was funded
809
- */
810
- address: string;
811
- /**
812
- * Method used to fund the wallet
813
- */
814
- fundingMethod: FundingMethod | undefined;
815
- /**
816
- * Transaction hash (if available from on-chain transfer or fiat provider)
817
- */
818
- transactionHash?: string;
819
- /**
820
- * Amount transferred
821
- */
822
- amount?: string;
823
- /**
824
- * Asset type transferred (e.g., 'Ether', 'USDC')
825
- */
826
- assetType?: string;
827
- /**
828
- * Additional provider-specific metadata
829
- */
830
- metadata?: {
831
- /** Type of wallet used (e.g., 'metamask', 'rainbow', 'phantom') */
832
- walletClientType?: string;
833
- };
834
- }
835
- /**
836
- * Possible methods of user-driven recovery.
837
- * This is set, per app, on the server.
838
- */
839
- type UserRecoveryMethod = 'user-passcode' | RecoveryProviderType;
840
- /**
841
- * Object representation of a user's wallet.
842
- */
843
- interface Wallet {
844
- /** 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'`). */
845
- id?: string | null;
846
- /** The wallet address. */
847
- address: string;
848
- /**
849
- * Chain type of the wallet address.
850
- */
851
- chainType: WalletChainType;
852
- /**
853
- * The wallet client used for this wallet during the most recent verification.
854
- *
855
- * If the value is `privy`, then this is a privy embedded wallet.
856
- *
857
- * Other values include but are not limited to `metamask`, `rainbow`, `coinbase_wallet`, etc.
858
- */
859
- walletClientType?: string;
860
- /**
861
- * The connector type used for this wallet during the most recent verification.
862
- *
863
- * This includes but is not limited to `injected`, `wallet_connect`, `coinbase_wallet`, `embedded`.
864
- */
865
- connectorType?: string;
866
- /**
867
- * If this is a 'privy' embedded wallet, stores the recovery method:
868
- *
869
- * 1. 'privy': privy escrow of the recovery material
870
- * 2. 'user-passcode': recovery protected by user-input passcode
871
- */
872
- recoveryMethod?: RecoveryMethod;
873
- /** Whether the wallet is imported. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
874
- imported: boolean;
875
- /** Whether the wallet is delegated. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
876
- delegated: boolean;
877
- /** HD index for the wallet. Only applies to embedded wallets (`walletClientType === 'privy'` or `walletClientType === 'privy-v2'`). */
878
- walletIndex: number | null;
879
- /** Public key for the wallet. Only applies to tier 2 chains */
880
- publicKey?: string;
881
- }
882
- /**
883
- *
884
- * Object representation of a base connected wallet from a wallet connector.
885
- */
886
- interface BaseConnectedSolanaWallet extends BaseConnectedWallet {
887
- type: 'solana';
888
- provider: ConnectedStandardSolanaWallet;
889
- }
890
- /**
891
- * Union type of all possible base connected wallets.
892
- */
893
- type BaseConnectedWalletType = BaseConnectedEthereumWallet | BaseConnectedSolanaWallet;
894
- /**
895
- * Object representation of metadata reported by a connected wallet from a wallet connector
896
- */
897
- interface ConnectedWalletMetadata {
898
- /** The wallet name (e.g. MetaMask). */
899
- name: string;
900
- /** The wallet RDNS, falls back to the wallet name if none is available. */
901
- id: string;
902
- /** The wallet logo */
903
- icon?: string;
904
- }
905
- /**
906
- * Object representation of a base connected wallet from a wallet connector.
907
- */
908
- interface BaseConnectedWallet {
909
- type: 'ethereum' | 'solana';
910
- /** The wallet address. */
911
- address: string;
912
- /** The first time this wallet was connected without break. */
913
- connectedAt: number;
914
- /**
915
- * The wallet client where this key-pair is stored.
916
- * e.g. metamask, rainbow, coinbase_wallet, etc.
917
- */
918
- walletClientType: WalletClientType;
919
- /**
920
- * The connector used to initiate the connection with the wallet client.
921
- * e.g. injected, wallet_connect, coinbase_wallet, etc.
922
- */
923
- connectorType: ConnectorType;
924
- /** Whether the wallet is imported. */
925
- imported: boolean;
926
- /**
927
- * Metadata for the wallet.
928
- */
929
- meta: ConnectedWalletMetadata;
930
- /** Returns true if the wallet is connected, false otherwise */
931
- isConnected: () => Promise<boolean>;
932
- /**
933
- * @experimental **Experimental**: This property is subject to change at any time.
934
- *
935
- * Not all wallet clients support programmatic disconnects (e.g. MetaMask, Phantom).
936
- * In kind, if the wallet's client does not support programmatic disconnects,
937
- * this method will no-op.
938
- */
939
- disconnect: () => void;
940
- }
941
- /**
942
- * Object representation of a base connected Ethereum wallet from a wallet connector.
943
- */
944
- interface BaseConnectedEthereumWallet extends BaseConnectedWallet {
945
- type: 'ethereum';
946
- /** The current chain ID with CAIP-2 formatting. */
947
- chainId: string;
948
- /**
949
- * Switch the network chain to a specified ID.
950
- * Note: The chainId must be a supported network: https://docs.privy.io/guide/frontend/embedded/networks
951
- * Note: This will not update any existing provider instances, re-request `wallet.getEthereumProvider` (e.g.)
952
- * to get a provider with the updated chainId.
953
- *
954
- * @param targetChainId The specified chain ID to switch to, as a number or 0x prefixed string.
955
- * @returns void
956
- */
957
- switchChain: (targetChainId: `0x${string}` | number) => Promise<void>;
958
- /** Helper methods to build providers for interfacing with this wallet. */
959
- getEthereumProvider: () => Promise<EIP1193Provider>;
960
- /**
961
- * Perform personal_sign with the user's wallet.
962
- *
963
- * @param {string} message The message to sign.
964
- * @returns {string} The resulting signature.
965
- */
966
- sign: (message: string) => Promise<string>;
967
- }
968
- interface PrivyConnectedWallet {
969
- /** True if this wallet is linked to the authenticated user. False if it is not yet linked or
970
- * the user has not yet authenticated. */
971
- linked: boolean;
972
- /** Login with this wallet or link this wallet to the authenticated user.
973
- *
974
- * Throws a PrivyClientError if the wallet is not connected.
975
- */
976
- loginOrLink: () => Promise<void>;
977
- /** Unlink this wallet to the authenticated user. Throws a PrivyClientError if the user is not
978
- * authenticated. */
979
- unlink: () => Promise<void>;
980
- /** The HD wallet index */
981
- walletIndex?: number;
982
- }
983
- /**
984
- * Object representation of a connected wallet, with additional Privy flows
985
- */
986
- interface ConnectedWallet extends BaseConnectedEthereumWallet, PrivyConnectedWallet {
987
- /**
988
- * Prompt the user to go through the funding flow and for the connected wallet.
989
- *
990
- * This will open the modal with a prompt for the user to select a funding method (if multiple are enabled).
991
- *
992
- * Once the user continues to the funding flow, Privy will display the funding status screen, and wait
993
- * for the transaction to complete.
994
- *
995
- * Note: Even after a successful funding, funds can take a few minutes to arrive in the user's wallet.
996
- *
997
- * Privy currently supports funding via external wallets and Moonpay.
998
- *
999
- * @param {FundWalletConfig} fundWalletConfig Funding configuration to specify chain and funding amount (if enabled)
1000
- * **/
1001
- fund: (fundWalletConfig?: FundWalletConfig) => Promise<void>;
1002
- }
1003
- /**
1004
- * Object representation of a smart wallet.
1005
- */
1006
- interface SmartWallet {
1007
- /** The wallet address. */
1008
- address: string;
1009
- /** The provider of the smart wallet. */
1010
- smartWalletType: SmartWalletType;
1011
- /** The version of the smart wallet. */
1012
- smartWalletVersion?: string;
1013
- }
1014
- /** Object representation of a user's email. */
1015
- interface Email {
1016
- /** The email address. */
1017
- address: string;
1018
- }
1019
- /** Object representation of a user's phone number. */
1020
- interface Phone {
1021
- /** The phone number. */
1022
- number: string;
1023
- }
1024
- /** Object representation of a user's Google account. */
1025
- interface Google {
1026
- /** The `sub` claim from the Google-issued JWT for this account. */
1027
- subject: string;
1028
- /** The email associated with the Google account. */
1029
- email: string;
1030
- /** The name associated with the Google account. */
1031
- name: string | null;
1032
- }
1033
- /** Object representation of a user's Twitter account. */
1034
- interface Twitter {
1035
- /** The `sub` claim from the Twitter-issued JWT for this account. */
1036
- subject: string;
1037
- /** The username associated with the Twitter account. */
1038
- username: string | null;
1039
- /** The name associated with the Twitter account. */
1040
- name: string | null;
1041
- /** The profile picture URL associated with the Twitter account.
1042
- * Note that the Twitter image URL returned is appended with `_normal`
1043
- * to return a 48x48px image. In order to retrieve the original-sized image,
1044
- * remove the `_normal` from the URL as specified in the Twitter API docs:
1045
- * https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/user-profile-images-and-banners
1046
- */
1047
- profilePictureUrl: string | null;
1048
- }
1049
- /** Object representation of a user's Discord account. */
1050
- interface Discord {
1051
- /** The `sub` claim from the Discord-issued JWT for this account. */
1052
- subject: string;
1053
- /** The username associated with the Discord account. */
1054
- username: string | null;
1055
- /** The email associated with the Discord account. */
1056
- email: string | null;
1057
- }
1058
- /** Object representation of a user's Github account. */
1059
- interface Github {
1060
- /** The `sub` claim from the Github-issued JWT for this account. */
1061
- subject: string;
1062
- /** The username associated with the Github account. */
1063
- username: string | null;
1064
- /** The name associated with the Github account. */
1065
- name: string | null;
1066
- /** The email associated with the Github account. */
1067
- email: string | null;
1068
- }
1069
- /** Object representation of a user's Spotify account. */
1070
- interface Spotify {
1071
- /** The user id associated with the Spotify account. */
1072
- subject: string;
1073
- /** The email associated with the Spotify account. */
1074
- email: string | null;
1075
- /** The display name associated with the Spotify account. */
1076
- name: string | null;
1077
- }
1078
- /** Object representation of a user's Instagram account. */
1079
- interface Instagram {
1080
- /** The user id associated with the Instagram account. */
1081
- subject: string;
1082
- /** The username associated with the Instagram account. */
1083
- username: string | null;
1084
- }
1085
- /** Object representation of a user's Tiktok account. */
1086
- interface Tiktok {
1087
- /** The `sub` claim from the Tiktok-issued JWT for this account. */
1088
- subject: string;
1089
- /** The username associated with the Tiktok account. */
1090
- username: string | null;
1091
- /** The display name associated with the Tiktok account. */
1092
- name: string | null;
1093
- }
1094
- /** Object representation of a user's Line account. */
1095
- interface Line {
1096
- /** The `sub` claim from the Line-issued JWT for this account. */
1097
- subject: string;
1098
- /** The name associated with the Line account. */
1099
- name: string | null;
1100
- /** The email associated with the Line account. */
1101
- email: string | null;
1102
- /** The profile image URL associated with the Line account. */
1103
- profilePictureUrl: string | null;
1104
- }
1105
- /** Object representation of a user's Twitch account. */
1106
- interface Twitch {
1107
- /** The unique identifier for the Twitch account. */
1108
- subject: string;
1109
- /** The username associated with the Twitch account. */
1110
- username: string | null;
1111
- }
1112
- /** Object representation of a user's LinkedIn account. */
1113
- interface LinkedIn {
1114
- /** The `sub` claim from the LinkedIn-issued JWT for this account. */
1115
- subject: string;
1116
- /** The name associated with the LinkedIn account. */
1117
- name: string | null;
1118
- /** The email associated with the LinkedIn account. */
1119
- email: string | null;
1120
- /** The vanityName/profile URL associated with the LinkedIn account. */
1121
- vanityName: string | null;
1122
- }
1123
- /** Object representation of a user's Apple account. */
1124
- interface Apple {
1125
- /** The `sub` claim from the Apple-issued JWT for this account. */
1126
- subject: string;
1127
- /** The email associated with the Apple account. */
1128
- email: string;
1129
- }
1130
- /** Object representation of a user's Custom OAuth Account. */
1131
- interface CustomOAuth {
1132
- /** The `sub` claim from the Custom OAuth-issued JWT for this account. */
1133
- subject: string;
1134
- /** The name associated with the Custom OAuth account. */
1135
- name: string | null;
1136
- /** The username associated with the Custom OAuth account. */
1137
- username: string | null;
1138
- /** The email associated with the Custom OAuth account. */
1139
- email: string | null;
1140
- /** The profile picture URL associated with the Custom OAuth account. */
1141
- profilePictureUrl: string | null;
1142
- }
1143
- interface CustomJwtAccount {
1144
- /** The user ID given by the custom auth provider */
1145
- customUserId: string;
1146
- }
1147
- interface Farcaster {
1148
- /** The Farcaster on-chain FID */
1149
- fid: number | null;
1150
- /** The Farcaster ethereum address that owns the FID */
1151
- ownerAddress: string;
1152
- /** The Farcaster protocol username */
1153
- username: string | null;
1154
- /** The Farcaster protocol display name */
1155
- displayName: string | null;
1156
- /** The Farcaster protocol bio */
1157
- bio: string | null;
1158
- /** The Farcaster protocol profile picture */
1159
- pfp: string | null;
1160
- /** The Farcaster protocol profile url */
1161
- url: string | null;
1162
- /** 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 */
1163
- signerPublicKey: string | null;
1164
- }
1165
- interface Telegram {
1166
- /** The user ID that owns this Telegram account. */
1167
- telegramUserId: string;
1168
- /** The first name of the user . */
1169
- firstName: string | null;
1170
- /** The last name of the user . */
1171
- lastName: string | null;
1172
- /** The username associated with the Telegram account. */
1173
- username: string | null;
1174
- /** The url of the user's profile picture. */
1175
- photoUrl: string | null;
1176
- }
1177
- interface Passkey {
1178
- /** The passkey credential ID */
1179
- credentialId: string;
1180
- /** The passkey public key (base64 encoded) */
1181
- publicKey?: string;
1182
- /** Whether or not this passkey can be used for MFA */
1183
- enrolledInMfa: boolean;
1184
- /** The type of authenticator holding the passkey */
1185
- authenticatorName?: string;
1186
- /** Metadata about the device that registered the passkey */
1187
- createdWithDevice?: string;
1188
- /** Metadata about the OS that registered the passkey */
1189
- createdWithOs?: string;
1190
- /** Metadata about the browser that registered the passkey */
1191
- createdWithBrowser?: string;
1192
- }
1193
- /** Metadata about the provider app for a cross-app account */
1194
- interface ProviderAppMetadata {
1195
- /** Privy app ID for the provider app. */
1196
- id: string;
1197
- /** Name for the provider app. */
1198
- name?: string;
1199
- /** Logo URL for the provider app. */
1200
- logoUrl?: string;
1201
- }
1202
- interface CrossAppAccount {
1203
- /** The user's embedded wallet address(es) from the provider app */
1204
- embeddedWallets: {
1205
- address: string;
1206
- }[];
1207
- smartWallets: {
1208
- address: string;
1209
- }[];
1210
- providerApp: ProviderAppMetadata;
1211
- subject: string;
1212
- }
1213
- /** Object representation of a user's email, with additional metadata for advanced use cases. */
1214
- interface EmailWithMetadata extends LinkMetadata, Email {
1215
- /** Denotes that this is an email account. */
1216
- type: 'email';
1217
- }
1218
- /** Object representation of a user's phone number, with additional metadata for advanced use cases. */
1219
- interface PhoneWithMetadata extends LinkMetadata, Phone {
1220
- /** Denotes that this is a phone account. */
1221
- type: 'phone';
1222
- }
1223
- /** Object representation of a user's wallet, with additional metadata for advanced use cases. */
1224
- interface WalletWithMetadata extends LinkMetadata, Wallet {
1225
- /** Denotes that this is a wallet account. */
1226
- type: 'wallet';
1227
- }
1228
- interface SmartWalletWithMetadata extends LinkMetadata, SmartWallet {
1229
- /** Denotes that this is a smart wallet account. */
1230
- type: 'smart_wallet';
1231
- }
1232
- /** Object representation of an HD embedded wallet with a defined `walletIndex` */
1233
- type HDWalletWithMetadata = WalletWithMetadata & {
1234
- walletIndex: number;
1235
- };
1236
- /** Object representation of a user's Google Account, with additional metadata for advanced use cases. */
1237
- interface GoogleOAuthWithMetadata extends LinkMetadata, Google {
1238
- /** Denotes that this is a Google account. */
1239
- type: 'google_oauth';
1240
- }
1241
- /** Object representation of a user's Twitter Account, with additional metadata for advanced use cases. */
1242
- interface TwitterOAuthWithMetadata extends LinkMetadata, Twitter {
1243
- /** Denotes that this is a Twitter account. */
1244
- type: 'twitter_oauth';
1245
- }
1246
- /** Object representation of a user's Discord Account, with additional metadata for advanced use cases. */
1247
- interface DiscordOAuthWithMetadata extends LinkMetadata, Discord {
1248
- /** Denotes that this is a Discord account. */
1249
- type: 'discord_oauth';
1250
- }
1251
- /** Object representation of a user's Github Account, with additional metadata for advanced use cases. */
1252
- interface GithubOAuthWithMetadata extends LinkMetadata, Github {
1253
- /** Denotes that this is a Github account. */
1254
- type: 'github_oauth';
1255
- }
1256
- /** Object representation of a user's Spotify Account, with additional metadata for advanced use cases. */
1257
- interface SpotifyOAuthWithMetadata extends LinkMetadata, Spotify {
1258
- /** Denotes that this is a Spotify account. */
1259
- type: 'spotify_oauth';
1260
- }
1261
- /** Object representation of a user's Instagram Account, with additional metadata for advanced use cases. */
1262
- interface InstagramOAuthWithMetadata extends LinkMetadata, Instagram {
1263
- /** Denotes that this is a Instagram account. */
1264
- type: 'instagram_oauth';
1265
- }
1266
- /** Object representation of a user's Tiktok Account, with additional metadata for advanced use cases. */
1267
- interface TiktokOAuthWithMetadata extends LinkMetadata, Tiktok {
1268
- /** Denotes that this is a Tiktok account. */
1269
- type: 'tiktok_oauth';
1270
- }
1271
- /** Object representation of a user's Line Account, with additional metadata for advanced use cases. */
1272
- interface LineOAuthWithMetadata extends LinkMetadata, Line {
1273
- /** Denotes that this is a Line account. */
1274
- type: 'line_oauth';
1275
- }
1276
- /** Object representation of a user's Twitch Account, with additional metadata for advanced use cases. */
1277
- interface TwitchOAuthWithMetadata extends LinkMetadata, Twitch {
1278
- /** Denotes that this is a Twitch account. */
1279
- type: 'twitch_oauth';
1280
- }
1281
- /** Object representation of a user's LinkedIn Account, with additional metadata for advanced use cases. */
1282
- interface LinkedInOAuthWithMetadata extends LinkMetadata, LinkedIn {
1283
- /** Denotes that this is a LinkedIn account. */
1284
- type: 'linkedin_oauth';
1285
- }
1286
- /** Object representation of a user's Apple Account, with additional metadata for advanced use cases. */
1287
- interface AppleOAuthWithMetadata extends LinkMetadata, Apple {
1288
- /** Denotes that this is a Apple account. */
1289
- type: 'apple_oauth';
1290
- }
1291
- /** Object representation of a user's Custom OAuth Account, with additional metadata for advanced use cases. */
1292
- interface CustomOAuthWithMetadata extends LinkMetadata, CustomOAuth {
1293
- /** Denotes that this is a Custom OAuth account. */
1294
- type: CustomOAuthProviderID;
1295
- }
1296
- /** Object representation of a user's Custom JWT Account, with additional metadata for advanced use cases. */
1297
- interface CustomJwtAccountWithMetadata extends LinkMetadata, CustomJwtAccount {
1298
- /** Denotes that this is an custom account. */
1299
- type: 'custom_auth';
1300
- }
1301
- /** Object representation of a user's Farcaster Account, with additional metadata for advanced use cases. */
1302
- interface FarcasterWithMetadata extends LinkMetadata, Farcaster {
1303
- /** Denotes that this is a Farcaster account. */
1304
- type: 'farcaster';
1305
- }
1306
- /** Object representation of a user's Passkey Account, with additional metadata for advanced use cases. */
1307
- interface PasskeyWithMetadata extends LinkMetadata, Passkey {
1308
- /** Denotes that this is a Passkey account. */
1309
- type: 'passkey';
1310
- }
1311
- /** Object representation of a user's Telegram Account, with additional metadata for advanced use cases. */
1312
- interface TelegramWithMetadata extends LinkMetadata, Telegram {
1313
- /** Denotes that this is a Telegram account. */
1314
- type: 'telegram';
1315
- }
1316
- /** Object representation of a user's cross-app account, with additional metadata for advanced use cases. */
1317
- interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
1318
- /** Denotes that this is a cross-app account */
1319
- type: 'cross_app';
1320
- }
1321
- /**
1322
- * Object representation of a user's linked accounts
1323
- */
1324
- type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | TwitchOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
1325
- interface User {
1326
- /** The Privy-issued DID for the user. If you need to store additional information
1327
- * about a user, you can use this DID to reference them. */
1328
- id: string;
1329
- /** The datetime of when the user was created. */
1330
- createdAt: Date;
1331
- /** The user's email address, if they have linked one. It cannot be linked to another user. */
1332
- email?: Email;
1333
- /** The user's phone number, if they have linked one. It cannot be linked to another user. */
1334
- phone?: Phone;
1335
- /** The user's first verified wallet, if they have linked at least one wallet.
1336
- * It cannot be linked to another user.
1337
- **/
1338
- wallet?: Wallet;
1339
- /**
1340
- * The user's smart wallet, if they have set up through the Privy Smart Wallet SDK.
1341
- */
1342
- smartWallet?: SmartWallet;
1343
- /** The user's Google account, if they have linked one. It cannot be linked to another user. */
1344
- google?: Google;
1345
- /** The user's Twitter account, if they have linked one. It cannot be linked to another user. */
1346
- twitter?: Twitter;
1347
- /** The user's Discord account, if they have linked one. It cannot be linked to another user. */
1348
- discord?: Discord;
1349
- /** The user's Github account, if they have linked one. It cannot be linked to another user. */
1350
- github?: Github;
1351
- /** The user's Spotify account, if they have linked one. It cannot be linked to another user. */
1352
- spotify?: Spotify;
1353
- /** The user's Instagram account, if they have linked one. It cannot be linked to another user. */
1354
- instagram?: Instagram;
1355
- /** The user's Tiktok account, if they have linked one. It cannot be linked to another user. */
1356
- tiktok?: Tiktok;
1357
- /** The user's Line account, if they have linked one. It cannot be linked to another user. */
1358
- line?: Line;
1359
- /** The user's Twitch account, if they have linked one. It cannot be linked to another user. */
1360
- twitch?: Twitch;
1361
- /** The user's LinkedIn account, if they have linked one. It cannot be linked to another user. */
1362
- linkedin?: LinkedIn;
1363
- /** The user's Apple account, if they have linked one. It cannot be linked to another user. */
1364
- apple?: Apple;
1365
- /** The user's Farcaster account, if they have linked one. It cannot be linked to another user. */
1366
- farcaster?: Farcaster;
1367
- /** The user's Telegram account, if they have linked one. It cannot be linked to another user. */
1368
- telegram?: Telegram;
1369
- /** The list of accounts associated with this user. Each account contains additional metadata
1370
- * that may be helpful for advanced use cases. */
1371
- linkedAccounts: Array<LinkedAccountWithMetadata>;
1372
- /** The list of MFA Methods associated with this user. */
1373
- mfaMethods: Array<MfaMethod>;
1374
- /**
1375
- * Whether or not the user has explicitly accepted the Terms and Conditions
1376
- * and/or Privacy Policy
1377
- */
1378
- hasAcceptedTerms: boolean;
1379
- /** Whether or not the user is a guest */
1380
- isGuest: boolean;
1381
- /** Custom metadata field for a given user account */
1382
- customMetadata?: CustomMetadataType;
1383
- }
1384
- type OAuthTokens = {
1385
- /** The OAuth provider. */
1386
- provider: OAuthProviderID;
1387
- /** The OAuth access token. */
1388
- accessToken: string;
1389
- /** The number of seconds until the OAuth access token expires. */
1390
- accessTokenExpiresInSeconds?: number;
1391
- /** The OAuth refresh token. */
1392
- refreshToken?: string;
1393
- /** The number of seconds until the OAuth refresh token expires.
1394
- * if the refresh token is present and this field is undefined, it is assumed
1395
- * that the refresh token does not have an expiration date
1396
- */
1397
- refreshTokenExpiresInSeconds?: number;
1398
- /** The list of OAuth scopes the access token is approved for. */
1399
- scopes?: string[];
1400
- };
1401
- type FundingMethod = 'moonpay' | 'coinbase-onramp' | 'external';
1402
- /** The default funding method to immediately trigger when funding is requested */
1403
- type DefaultFundingMethod = 'card' | 'exchange' | 'wallet' | 'manual';
1404
- type HexColor = `#${string}`;
1405
- /**
1406
- * Options to customize the display of transaction prices in the embedded wallet's transaction prompt.
1407
- */
1408
- type PriceDisplayOptions = {
1409
- primary: 'fiat-currency';
1410
- secondary: 'native-token';
1411
- } | {
1412
- primary: 'native-token';
1413
- secondary: null;
1414
- };
1415
- type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
1416
- /** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
1417
- | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana'
1418
- /** @deprecated rabby_wallet is no longer supported */
1419
- | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'jupiter' | 'binance' | 'binanceus' | 'bitget_wallet' | 'kraken_wallet';
1420
- type NonEmptyArray<T> = [T, ...T[]];
1421
- type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderID | `privy:${string}` | 'farcaster' | 'telegram';
1422
- type ExternalWalletsConfig = {
1423
- /**
1424
- * Options to configure connections to the Coinbase Wallet (browser extension wallet, mobile wallet, and
1425
- * passkey-based smart wallet).
1426
- *
1427
- * @experimental This is an experimental config designed to give Privy developers a way to test the Coinbase Smart Wallet
1428
- * ahead of its mainnet launch. The smart wallet currently only supports the Base Sepolia testnet. In kind, DO NOT use this
1429
- * configuration in production as it will prevent users from using the Coinbase Wallet on networks other than Base Sepolia.
1430
- */
1431
- coinbaseWallet?: {
1432
- /**
1433
- * Allows you to override the default configuration options for initializing the Coinbase Wallet
1434
- * connector. This includes overriding the connection options (via config.preference.options)
1435
- * or adding additional configuration (i.e. enabling subAccounts)
1436
- */
1437
- config?: Parameters<typeof createCoinbaseWalletSDK>[0];
1438
- };
1439
- /**
1440
- * Options to configure connections to the Base Account (passkey-based smart wallet).
1441
- */
1442
- baseAccount?: {
1443
- /**
1444
- * Allows you to override the default configuration options for initializing the Base Account
1445
- * connector. This includes overriding the connection options (via config.preference.options)
1446
- * or adding additional configuration (i.e. enabling subAccounts)
1447
- */
1448
- config?: BaseAccountSdkCreateParams;
1449
- };
1450
- /**
1451
- * Mapping between `walletClientType`s to the length of time after which signature and RPC requests will timeout for that
1452
- * `walletClientType`.
1453
- *
1454
- * By default, all signature or RPC requests through Privy will timeout after 2 mins (120000 ms). Use this object to
1455
- * override the signature or RPC timeout in ms for specific` walletClientType`s, e.g. 'safe', in order to extend or
1456
- * shorten the timeout duration.
1457
- */
1458
- signatureRequestTimeouts?: {
1459
- [key in string]?: number;
1460
- };
1461
- /**
1462
- * Options to configure WalletConnect behavior.
1463
- *
1464
- * @experimental This may change in future releases
1465
- */
1466
- walletConnect?: {
1467
- /**
1468
- * If disabled, stops WalletConnect from being initialized by the Privy SDK.
1469
- *
1470
- * WARNING: If you allow WalletConnect or WalletConnect-powered wallets, this will cause issues.
1471
- *
1472
- * Note that even if disabled, WalletConnect code may still be loaded in the browser. Defaults to true.
1473
- *
1474
- * @experimental This feature is very experimental and may break your wallet connector experience if you use external wallets.
1475
- */
1476
- enabled: boolean;
1477
- };
1478
- solana?: {
1479
- connectors?: SolanaWalletConnectorsConfig;
1480
- };
1481
- /**
1482
- * If true, disables all connections to external wallets.
1483
- *
1484
- * @experimental This feature is experimental
1485
- */
1486
- disableAllExternalWallets?: boolean;
1487
- };
1488
- interface PrivyClientConfig {
1489
- /** All UI and theme related configuration */
1490
- appearance?: {
1491
- /** Primary theme for the privy UI. This dictates the foreground and background colors within the UI.
1492
- *
1493
- * 'light' (default): The privy default light UI.
1494
- * 'dark': The privy default dark UI.
1495
- * custom hex code (i.e. '#13152F'): A custom background. This will generate the remainder of the foreground and
1496
- * background colors for the UI by modulating the luminance of the passed color. This value should be _either_ dark
1497
- * or light (<20% or >80% luminance), for accessibility. */
1498
- theme?: 'light' | 'dark' | HexColor;
1499
- /** Accent color for the privy UI.
1500
- * Used for buttons, active borders, etc. This will generate light and dark variants.
1501
- * This overrides the server setting `accent_color`. */
1502
- accentColor?: HexColor;
1503
- /** Logo for the main privy modal screen.
1504
- * This can be a string (url) or an img / svg react element.
1505
- * If passing an element, Privy will overwrite the `style` props, to ensure proper rendering.
1506
- * This overrides the server setting `logo_url` */
1507
- logo?: string | ReactElement;
1508
- /**
1509
- * Sender domain text shown on the email verification screen.
1510
- *
1511
- * This is presentation-only and does not affect the actual email sender.
1512
- *
1513
- * Defaults to `privy.io`.
1514
- */
1515
- emailDomain?: string;
1516
- /**
1517
- * Header text for the landing screen of the Privy login modal. We strongly recommend using a string
1518
- * of length 35 or less. Strings longer than the width of the login modal will be ellipsified.
1519
- *
1520
- * Defaults to 'Log in or sign up'.
1521
- */
1522
- landingHeader?: string;
1523
- /**
1524
- * Subtitle text for the landing screen of the Privy login modal.
1525
- *
1526
- * This text will renders below the logo and will be capped at 100 characters.
1527
- *
1528
- * Defaults to undefined.
1529
- */
1530
- loginMessage?: string;
1531
- /** Determines the order of the login options in the privy modal. If true, the wallet login will render above
1532
- * social and email / sms login options.
1533
- * This overrides the server setting `show_wallet_login_first` */
1534
- showWalletLoginFirst?: boolean;
1535
- /**
1536
- * An array of {@link WalletListEntry wallet names} to configure the wallet buttons shown within
1537
- * the `login`, `connectWallet`, and `linkWallet` modals. Privy will show buttons for each option
1538
- * present in the list, in the order in which they are configured.
1539
- *
1540
- * On 'detected_wallets':
1541
- * - This option serves as a fallback to include all wallets that detected by Privy, that might not be
1542
- * individually configured in the `walletList`. Browser extension wallets that are not explicitly configured
1543
- * in the `walletList` will fall into this category.
1544
- * - If Privy detects a wallet, _and_ that wallet is configured within the `walletList` (e.g. 'metamask'),
1545
- * the order of the wallet's explicit name (e.g. 'metamask') in the `walletList` will take priority
1546
- * over the order of 'detected_wallets'.
1547
- *
1548
- * Defaults to ['detected_wallets', 'metamask', 'coinbase_wallet', 'rainbow', 'wallet_connect']
1549
- *
1550
- * @default ['detected_wallets', 'metamask', 'coinbase_wallet', 'rainbow', 'wallet_connect']
1551
- */
1552
- walletList?: WalletListEntry[];
1553
- /**
1554
- * Determines which external wallet types to show in the modal. By default, only Ethereum external wallets
1555
- * are shown. If you want to show Solana wallets, set this to 'solana-only' or 'ethereum-and-solana'.
1556
- *
1557
- * When 'ethereum-and-solana' is set, Solana wallets will have a badge indicating that they are Solana wallets.
1558
- *
1559
- * @defaults 'ethereum-only'
1560
- */
1561
- walletChainType?: 'ethereum-only' | 'solana-only' | 'ethereum-and-solana';
1562
- };
1563
- /**
1564
- * Login methods for the privy modal.
1565
- *
1566
- * 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.
1567
- *
1568
- * Note that any login method included in this parameter must also be enabled as a login method in the developer dashboard.
1569
- *
1570
- * If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
1571
- */
1572
- loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'twitch' | 'apple' | 'farcaster' | 'telegram' | 'passkey' | `privy:${string}`>;
1573
- /**
1574
- * @deprecated Use `loginMethods` instead.
1575
- *
1576
- * Login methods for the Privy modal. _This will override carefully designed defaults and should be used with caution._
1577
- *
1578
- * 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.
1579
- *
1580
- * Note that any login method included in this parameter must also be enabled as a login method in the developer dashboard.
1581
- *
1582
- * If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
1583
- */
1584
- loginMethodsAndOrder?: {
1585
- primary: NonEmptyArray<LoginMethodOrderOption>;
1586
- overflow?: Array<LoginMethodOrderOption>;
1587
- };
1588
- /** Options for internationalization of the privy modal */
1589
- intl?: {
1590
- /**
1591
- * This property is used to configure formatting and validation for the phone number input
1592
- * used when `phone` is enabled as a login method. Must be a valid
1593
- * [two-leter ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) (e.g. 'US').
1594
- * Defaults to 'US'.
1595
- *
1596
- * @default 'US'
1597
- */
1598
- defaultCountry: CountryCode;
1599
- /**
1600
- * Custom localization strings for Privy UI components.
1601
- *
1602
- * Pass a partial object with only the strings you want to override.
1603
- * All other strings will fall back to default English values.
1604
- *
1605
- * Supports simple template interpolation with {variableName} syntax.
1606
- *
1607
- * @experimental This feature is experimental and may change in future releases.
1608
- *
1609
- * @example
1610
- * ```typescript
1611
- * <PrivyProvider
1612
- * appId="your-app-id"
1613
- * config={{
1614
- * intl: {
1615
- * textLocalization: {
1616
- * 'connectWallet.connectYourWallet': 'Connecter un portefeuille',
1617
- * 'connectionStatus.successfullyConnected': 'Connexion réussie avec {walletName}',
1618
- * }
1619
- * }
1620
- * }}
1621
- * >
1622
- * {children}
1623
- * </PrivyProvider>
1624
- * ```
1625
- */
1626
- textLocalization?: Partial<PrivyI18nStrings>;
1627
- };
1628
- /**
1629
- * This property is only required for apps that use a third-party authentication provider.
1630
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1631
- */
1632
- customAuth?: {
1633
- /**
1634
- * If true, enable custom authentication integration.
1635
- * This enables a JWT from a custom auth provider to be used to authenticate Privy embedded wallets.
1636
- * Defaults to true.
1637
- *
1638
- * @default true
1639
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1640
- */
1641
- enabled?: boolean;
1642
- /**
1643
- * A callback that returns the user's custom auth provider's access token as a string.
1644
- * Can be left blank if using cookies to store and send access tokens
1645
- *
1646
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1647
- *
1648
- * @example
1649
- * const {getAccessTokenSilently} = useAuth();
1650
- *
1651
- * <PrivyProvider
1652
- * {...props}
1653
- * config={{
1654
- * customAuth: {
1655
- * getCustomAccessToken: getAccessTokenSilently
1656
- * },
1657
- * }}
1658
- * />
1659
- */
1660
- getCustomAccessToken: () => Promise<string | undefined>;
1661
- /**
1662
- * Custom auth providers loading state
1663
- *
1664
- * @deprecated Use the `useSyncJwtBasedAuthState` hook instead.
1665
- *
1666
- * @example
1667
- * const {isLoading} = useAuth();
1668
- *
1669
- * <PrivyProvider
1670
- * {...props}
1671
- * config={{
1672
- * customAuth: {
1673
- * isLoading,
1674
- * },
1675
- * }}
1676
- * />
1677
- */
1678
- isLoading: boolean;
1679
- };
1680
- /** All legal configuration */
1681
- legal?: {
1682
- /** URL to the terms and conditions page for your application.
1683
- * Rendered as a link in the privy modal footer.
1684
- * This overrides the server setting `terms_and_conditions_url` */
1685
- termsAndConditionsUrl?: string | null;
1686
- /** URL to the privacy policy page for your application.
1687
- * Rendered as a link in the privy modal footer.
1688
- * This overrides the server setting `privacy_policy_url` */
1689
- privacyPolicyUrl?: string | null;
1690
- };
1691
- walletConnectCloudProjectId?: string;
1692
- /**
1693
- * Plugins to register with the SDK. Plugins extend SDK functionality
1694
- * and are automatically registered when the PrivyProvider mounts.
1695
- *
1696
- * @example
1697
- * ```tsx
1698
- * import {dataSuffix} from '@privy-io/react-auth';
1699
- *
1700
- * <PrivyProvider
1701
- * appId="..."
1702
- * config={{
1703
- * plugins: [dataSuffix('0x1234abcd')]
1704
- * }}
1705
- * >
1706
- * ```
1707
- */
1708
- plugins?: Array<DataSuffixPlugin | CrossTabUserSyncPlugin | WalletCreationFilterPlugin | DefaultSolanaRpcsPlugin>;
1709
- /**
1710
- * Custom redirect URL for OAuth flows, useful for mobile applications.
1711
- * If not provided, defaults to window.location.href.
1712
- *
1713
- * For Capacitor/mobile apps, use a custom URL scheme like:
1714
- * 'com.yourapp.oauth://callback' or 'yourapp://oauth'
1715
- *
1716
- * Make sure to register this URL scheme in your app configuration
1717
- * and add it to your app's allowed URL schemes in the Privy dashboard.
1718
- */
1719
- customOAuthRedirectUrl?: string;
1720
- /**
1721
- * If true, allows OAuth login in React Native WebViews and other embedded browsers.
1722
- * By default, OAuth (particularly Google) is blocked in these environments because
1723
- * OAuth providers typically reject authentication requests from embedded webviews.
1724
- *
1725
- * Only enable this if you have a specific use case and have confirmed OAuth works
1726
- * in your WebView environment.
1727
- *
1728
- * @default false
1729
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1730
- */
1731
- allowOAuthInEmbeddedBrowsers?: boolean;
1732
- /**
1733
- * A list of supported chains, used to specify which chains should be used throughout the application.
1734
- *
1735
- * Calling `sendTransaction` or `switchChain` on an unsupported network will throw an error.
1736
- *
1737
- * For external wallets, if the wallet's current chain post-connection (during connect-only or siwe flows)
1738
- * 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
1739
- * switching process does not fully succeed, the user will **not** be blocked from the application (and the wallet's current `chainId` can always
1740
- * be observed and acted upon accordingly).
1741
- *
1742
- * For embedded wallets, the wallet will automatically default to the `defaultChain` (if set) or first supplied `supportedChain`.
1743
- */
1744
- supportedChains?: Chain[];
1745
- /**
1746
- * When supplied, the `defaultChain` will be the default chain used throughout the application.
1747
- *
1748
- * For external wallets, it will be used if the user's wallet it not within the `supportedChains` (or default chains) list.
1749
- *
1750
- * For embedded wallets, it will be used upon initialization, when the user hasn't switched to another supported chain.
1751
- */
1752
- defaultChain?: Chain;
1753
- captchaEnabled?: boolean;
1754
- /**
1755
- * Options for connecting to external wallets like Coinbase Wallet, MetaMask, etc.
1756
- *
1757
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1758
- */
1759
- externalWallets?: ExternalWalletsConfig;
1760
- /** All embedded wallets configuration */
1761
- embeddedWallets?: {
1762
- ethereum?: {
1763
- /**
1764
- * Whether an Ethereum embedded wallet should be created for the user on login.
1765
- *
1766
- * For `all-users`, the user will be prompted to create a Privy wallet after successfully
1767
- * logging in. If they cancel or are visiting after this flag was put in place, they will be
1768
- * prompted to create a wallet on their next login.
1769
- *
1770
- * For `users-without-wallets`, the user will be prompted to create a Privy wallet after
1771
- * successfully logging in, only if they do not currently have any wallet associated with their
1772
- * user object - for example if they have linked an external wallet.
1773
- *
1774
- * For `off`, an embedded wallet is not created during login. You can always prompt the user to
1775
- * create one manually with your app.
1776
- *
1777
- * Defaults to 'off'.
1778
- */
1779
- createOnLogin?: EmbeddedWalletCreateOnLoginConfig;
1780
- };
1781
- solana?: {
1782
- /**
1783
- * Whether a Solana embedded wallet should be created for the user on login.
1784
- *
1785
- * For `all-users`, the user will be prompted to create a Privy wallet after successfully
1786
- * logging in. If they cancel or are visiting after this flag was put in place, they will be
1787
- * prompted to create a wallet on their next login.
1788
- *
1789
- * For `users-without-wallets`, the user will be prompted to create a Privy wallet after
1790
- * successfully logging in, only if they do not currently have any wallet associated with their
1791
- * user object - for example if they have linked an external wallet.
1792
- *
1793
- * For `off`, an embedded wallet is not created during login. You can always prompt the user to
1794
- * create one manually with your app.
1795
- *
1796
- * Defaults to 'off'.
1797
- */
1798
- createOnLogin?: EmbeddedWalletCreateOnLoginConfig;
1799
- };
1800
- /**
1801
- * Set to `true` to disable automatic migration, if you are migrating
1802
- * manually via the `useMigrateWallets` hook.
1803
- *
1804
- * @default false
1805
- */
1806
- disableAutomaticMigration?: boolean;
1807
- /**
1808
- * Override any settings for the embedded wallet's UI to show or hide the wallet UIs.
1809
- *
1810
- * If true, wallet UIs will always be shown.
1811
- * If false, wallet UIs will always be hidden.
1812
- *
1813
- * If not set, the default behavior will match the server configuration.
1814
- */
1815
- showWalletUIs?: boolean;
1816
- /**
1817
- * Options to customize the display of transaction prices in the embedded wallet's transaction
1818
- * prompt. You may configure a primary currency to emphasize, and a secondary currency to show
1819
- * as subtext. Defaults to emphasizing the price in fiat currency, and showing the price in the native
1820
- * token as subtext.
1821
- *
1822
- * You may either set:
1823
- * - `{primary: 'fiat-currency', secondary: 'native-token'}` to emphasize fiat currency prices, showing native token
1824
- * prices as subtext. This is the default.
1825
- * - `{secondary: 'native-token', secondary: null}` to show native token prices only, with no subtext.
1826
- *
1827
- * Privy does not currently support:
1828
- * - emphasizing native token prices over fiat currency prices
1829
- * - showing prices only in fiat currency, without native token prices
1830
- *
1831
- */
1832
- priceDisplay?: PriceDisplayOptions;
1833
- /**
1834
- * If true, Privy will attempt to additional decoding calldata for 721 and 1155 approval, transfer, and mint sendTransaction calls,
1835
- * in addition to the default ERC20 `transfer` and `approve` decoding.
1836
- * If false, Privy will only decode `transfer` and `approve` calldata for ERC20 tokens.
1837
- *
1838
- * @default false
1839
- * @experimental This is an experimental config that is subject to breaking changes without a major version bump of the SDK.
1840
- */
1841
- extendedCalldataDecoding?: boolean;
1842
- };
1843
- /**
1844
- * All multi-factor authentication configuration
1845
- */
1846
- mfa?: {
1847
- /**
1848
- * If true, Privy will not prompt or instantiate any UI for MFA Verification. The developer
1849
- * must handle MFA verification themselves.
1850
- * If false, any action that requires MFA will raise a modal and require user to verify MFA
1851
- * before proceeding.
1852
- *
1853
- * Defaults to false.
1854
- */
1855
- noPromptOnMfaRequired?: boolean;
1856
- };
1857
- passkeys?: {
1858
- /**
1859
- * - If `true`, unenrolling a passkey from MFA will also remove it as a login method.
1860
- * - If `false`, it will keep it as a login method as long as it has not been manually unlinked.
1861
- *
1862
- * @default true
1863
- */
1864
- shouldUnlinkOnUnenrollMfa?: boolean;
1865
- /**
1866
- * - If `true`, unlinking a passkey as a login method will also unenroll it from MFA.
1867
- * - If `false`, it will keep it as an mfa method as long as it has not been manually unenrolled.
1868
- *
1869
- * @default true
1870
- */
1871
- shouldUnenrollMfaOnUnlink?: boolean;
1872
- /**
1873
- * Allows overriding the default options returned for passkey registration
1874
- */
1875
- registration?: Pick<PublicKeyCredentialCreationOptionsJSON, 'hints'>;
1876
- };
1877
- /**
1878
- * Settings associated with funding methods
1879
- */
1880
- fundingMethodConfig?: {
1881
- moonpay: {
1882
- /**
1883
- * Determines whether to use the Moonpay sandbox flow.
1884
- *
1885
- * Defaults to false.
1886
- */
1887
- useSandbox?: boolean;
1888
- /**
1889
- * Determines the payment method for each Moonpay transaction.
1890
- *
1891
- * Defaults to Moonpay's default.
1892
- */
1893
- paymentMethod?: MoonpayPaymentMethod;
1894
- /**
1895
- * Determines the UI settings for each Moonpay transaction.
1896
- *
1897
- * Defaults to Moonpay's default.
1898
- */
1899
- uiConfig?: MoonpayUiConfig;
1900
- };
1901
- };
1902
- /**
1903
- * Configuration for Solana
1904
- */
1905
- solana?: {
1906
- /**
1907
- * @solana/kit RPC configuration objects for each solana chain. This applies for solana standard wallet hooks like `useStandardSignMessage`,
1908
- * `useStandardSignTransaction`, `useStandardSignAndSendTransaction`.
1909
- *
1910
- * @example
1911
- * ```typescript
1912
- * import {createSolanaRpc, createSolanaRpcSubscriptions} from '@solana/kit';
1913
- *
1914
- * const rpcs = {
1915
- * 'solana:mainnet': {
1916
- * rpc: createSolanaRpc('https://api.mainnet-beta.solana.com'),
1917
- * rpcSubscriptions: createSolanaRpcSubscriptions('wss://api.mainnet-beta.solana.com'),
1918
- * blockExplorerUrl: 'https://explorer.solana.com',
1919
- * },
1920
- * }
1921
- */
1922
- rpcs?: Partial<Record<SolanaChain, {
1923
- rpc: Rpc<SolanaRpcApi>;
1924
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1925
- blockExplorerUrl?: string;
1926
- }>>;
1927
- };
1928
- }
1929
- /**
1930
- * The data received from Telegram when the user is authenticated.
1931
- *
1932
- * @see https://core.telegram.org/widgets/login#receiving-authorization-data
1933
- */
1934
- interface TelegramAuthResult {
1935
- id: number;
1936
- first_name: string;
1937
- auth_date: number;
1938
- hash: string;
1939
- last_name?: string;
1940
- photo_url?: string;
1941
- username?: string;
1942
- }
1943
- /**
1944
- * Data received from Telegram when the user is authenticated via the Telegram Web App.
1945
- *
1946
- * @see https://core.telegram.org/widgets/login#receiving-authorization-data
1947
- */
1948
- interface TelegramWebAppData {
1949
- query_id?: string;
1950
- auth_date: number;
1951
- hash: string;
1952
- user: string;
1953
- chat_instance?: string;
1954
- chat_type?: string;
1955
- start_param?: string;
1956
- signature?: string;
1957
- }
1958
- /**
1959
- * Data received from an OAuth user endpoint -- only used in account transfer flows
1960
- */
1961
- interface OAuthUserInfo {
1962
- subject: string;
1963
- username?: string;
1964
- name?: string;
1965
- email?: string;
1966
- profilePictureUrl?: string;
1967
- vanityName?: string;
1968
- meta?: {
1969
- providerAppId?: string;
1970
- };
1971
- embeddedWalletAddresses?: string[];
1972
- smartWalletAddresses?: string[];
1973
- }
1974
- /**
1975
- * Object representation of metadata reported by a connected wallet during the SIWE flow
1976
- */
1977
- interface ExternalWalletMetadata {
1978
- walletClientType: WalletClientType;
1979
- chainId?: string;
1980
- connectorType: string;
1981
- }
1982
- /**
1983
- * Configuration for the Privy Smart Wallet SDK.
1984
- * This configuration is used to enable the Smart Wallet SDK and configure the networks that the Smart Wallet will be used on.
1985
- * This is internal so changes to this do not count as breaking API changes.
1986
- */
1987
- type SmartWalletConfig = {
1988
- enabled: false;
1989
- } | {
1990
- enabled: true;
1991
- smartWalletType: SmartWalletType;
1992
- smartWalletVersion?: string;
1993
- configuredNetworks: SmartWalletNetworkConfig[];
1994
- };
1995
- type SmartWalletNetworkConfig = {
1996
- chainId: string;
1997
- bundlerUrl: string;
1998
- paymasterUrl?: string;
1999
- paymasterContext?: AlchemyPaymasterContextClient | BiconomyPaymasterContext;
2000
- };
2001
- /**
2002
- * There are two options For how to prioritize/highlight the user's login method options:
2003
- * - `web3-first`: highlight the web3 login method options (wallets)
2004
- * - `web2-first`: highlight the web2 login method options (email, sms, social)
2005
- */
2006
- type LoginGroupPriority = 'web2-first' | 'web3-first';
2007
- /** Privy configuration object used throughout the application
2008
- * This is a composition of the server config and client config, and contains data used throughout the app.
2009
- * This is just used internally - changes to this don't count as breaking API changes. */
2010
- type AppConfig = {
2011
- id: AppResponse['id'];
2012
- appClientId: string | undefined;
2013
- name: AppResponse['name'];
2014
- allowlistConfig: {
2015
- errorTitle: string | null;
2016
- errorDetail: string | null;
2017
- errorCtaText: string | null;
2018
- errorCtaLink: string | null;
2019
- };
2020
- legacyWalletUiConfig: AppResponse['legacy_wallet_ui_config'];
2021
- appearance: {
2022
- logo?: NonNullable<PrivyClientConfig['appearance']>['logo'];
2023
- emailDomain?: NonNullable<PrivyClientConfig['appearance']>['emailDomain'];
2024
- landingHeader: NonNullable<PrivyClientConfig['appearance']>['landingHeader'];
2025
- loginMessage: NonNullable<PrivyClientConfig['appearance']>['loginMessage'];
2026
- footerLogo: NonNullable<PrivyClientConfig['appearance']>['footerLogo'];
2027
- palette: PrivyPalette;
2028
- loginGroupPriority: LoginGroupPriority;
2029
- hideDirectWeb2Inputs?: boolean;
2030
- walletList: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletList']>;
2031
- walletChainType: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletChainType']>;
2032
- };
2033
- loginMethods: {
2034
- wallet?: boolean;
2035
- email?: boolean;
2036
- sms?: boolean;
2037
- google?: boolean;
2038
- twitter?: boolean;
2039
- discord?: boolean;
2040
- github?: boolean;
2041
- spotify?: boolean;
2042
- instagram?: boolean;
2043
- tiktok?: boolean;
2044
- line?: boolean;
2045
- twitch?: boolean;
2046
- linkedin?: boolean;
2047
- apple?: boolean;
2048
- farcaster?: boolean;
2049
- passkey?: boolean;
2050
- telegram?: boolean;
2051
- };
2052
- disablePlusEmails: AppResponse['disable_plus_emails'];
2053
- globalDisablePasskeys: NonNullable<PrivyClientConfig['globalDisablePasskeys']>;
2054
- loginMethodsAndOrder?: PrivyClientConfig['loginMethodsAndOrder'];
2055
- legal: {
2056
- termsAndConditionsUrl: AppResponse['terms_and_conditions_url'];
2057
- privacyPolicyUrl: AppResponse['privacy_policy_url'];
2058
- requireUsersAcceptTerms: NonNullable<AppResponse['require_users_accept_terms']>;
2059
- };
2060
- walletConnectCloudProjectId: NonNullable<AppResponse['wallet_connect_cloud_project_id']>;
2061
- rpcConfig: RpcConfig;
2062
- chains: Chain[];
2063
- defaultChain: Chain;
2064
- intl: {
2065
- defaultCountry: CountryCode;
2066
- textLocalization?: Partial<PrivyI18nStrings>;
2067
- };
2068
- customOAuthProviders: AppResponse['custom_oauth_providers'];
2069
- /**
2070
- * Cross-app providers specified in the loginMethods array (format: privy:${appId})
2071
- */
2072
- crossAppProviders: string[];
2073
- /**
2074
- * Whether the `defaultChain` in the internal config should be enforced on connection requests. This
2075
- * gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
2076
- *
2077
- * If true, Privy will prompt wallets to switch to the `defaultChain` on connection, and will include
2078
- * the default chain in the required chains namespace for WalletConnect.
2079
- */
2080
- shouldEnforceDefaultChainOnConnect: boolean;
2081
- captcha: {
2082
- /**
2083
- * Null if captcha is disabled, otherwise the enabled captcha provider.
2084
- */
2085
- enabledProvider: AppResponse['enabled_captcha_provider'];
2086
- siteKey: NonNullable<AppResponse['captcha_site_key']>;
2087
- };
2088
- externalWallets: {
2089
- coinbaseWallet: {
2090
- config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
2091
- };
2092
- baseAccount: {
2093
- config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['baseAccount']>['config']>;
2094
- };
2095
- walletConnect: {
2096
- enabled: boolean;
2097
- };
2098
- solana: {
2099
- connectors: NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['solana']>['connectors'];
2100
- };
2101
- disableAllExternalWallets: boolean;
2102
- };
2103
- embeddedWallets: {
2104
- ethereum: {
2105
- createOnLogin: NonNullable<AppResponse['embedded_wallet_config']>['ethereum']['create_on_login'];
2106
- };
2107
- solana: {
2108
- createOnLogin: NonNullable<AppResponse['embedded_wallet_config']>['solana']['create_on_login'];
2109
- };
2110
- disableAutomaticMigration: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['disableAutomaticMigration']>;
2111
- requireUserOwnedRecoveryOnCreate: NonNullable<AppResponse['embedded_wallet_config']>['require_user_owned_recovery_on_create'];
2112
- userOwnedRecoveryOptions: NonNullable<AppResponse['embedded_wallet_config']>['user_owned_recovery_options'];
2113
- mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
2114
- priceDisplay: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['priceDisplay']>;
2115
- showWalletUIs: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['showWalletUIs']>;
2116
- extendedCalldataDecoding: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['extendedCalldataDecoding']>;
2117
- transactionScanning: {
2118
- enabled: boolean;
2119
- domain: NonNullable<NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['transactionScanning']>['domain']>;
2120
- };
2121
- };
2122
- mfa: {
2123
- methods: NonNullable<AppResponse['mfa_methods']>;
2124
- noPromptOnMfaRequired?: NonNullable<PrivyClientConfig['mfa']>['noPromptOnMfaRequired'];
2125
- };
2126
- passkeys: {
2127
- shouldUnlinkOnUnenrollMfa: NonNullable<PrivyClientConfig['passkeys']>['shouldUnlinkOnUnenrollMfa'];
2128
- shouldUnenrollMfaOnUnlink: NonNullable<PrivyClientConfig['passkeys']>['shouldUnenrollMfaOnUnlink'];
2129
- registration: NonNullable<PrivyClientConfig['passkeys']>['registration'];
2130
- };
2131
- customAuth?: {
2132
- enabled?: boolean;
2133
- getCustomAccessToken: NonNullable<PrivyClientConfig['customAuth']>['getCustomAccessToken'];
2134
- isLoading: NonNullable<PrivyClientConfig['customAuth']>['isLoading'];
2135
- };
2136
- render: {
2137
- standalone: NonNullable<PrivyClientConfig['_render']>['standalone'];
2138
- };
2139
- loginConfig: {
2140
- telegramAuthConfiguration?: {
2141
- botId: string;
2142
- botName: string;
2143
- linkEnabled: boolean;
2144
- seamlessAuthEnabled: boolean;
2145
- };
2146
- passkeysForSignupEnabled: AppResponse['passkeys_for_signup_enabled'];
2147
- };
2148
- headless: boolean;
2149
- fundingConfig?: {
2150
- methods: NonNullable<AppResponse['funding_config']>['methods'];
2151
- options: NonNullable<AppResponse['funding_config']>['options'];
2152
- defaultRecommendedAmount: string;
2153
- defaultRecommendedCurrency: NonNullable<AppResponse['funding_config']>['default_recommended_currency'];
2154
- promptFundingOnWalletCreation: boolean;
2155
- crossChainBridgingEnabled: boolean;
2156
- };
2157
- fundingMethodConfig: NonNullable<PrivyClientConfig['fundingMethodConfig']>;
2158
- whatsAppEnabled: boolean;
2159
- customOAuthRedirectUrl?: string;
2160
- allowOAuthInEmbeddedBrowsers: boolean;
2161
- solanaRpcs: Record<SolanaChain, {
2162
- rpc: Rpc<SolanaRpcApi>;
2163
- rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
2164
- blockExplorerUrl?: string;
2165
- } | null>;
2166
- smartWallets?: SmartWalletConfig;
2167
- /** Enable debug logging for wallet connectors */
2168
- connectorsDebugLogs: boolean;
2169
- };
2170
- /** Privy's generated color palette.
2171
- * This will be generated, given a passed theme and accent color (from configuration),
2172
- * and then passed along to css variables. Generated attributes can be overridden by the user.
2173
- * at the css level. */
2174
- type PrivyPalette = {
2175
- colorScheme: 'light' | 'dark';
2176
- background: string;
2177
- background2: string;
2178
- background3: string;
2179
- foreground: string;
2180
- foreground2: string;
2181
- foreground3: string;
2182
- foreground4: string;
2183
- foregroundAccent: string;
2184
- accent: string;
2185
- accentLight: string;
2186
- accentHover: string;
2187
- accentDark: string;
2188
- accentDarkest: string;
2189
- success: string;
2190
- warn: string;
2191
- warnLight: string;
2192
- successDark: string;
2193
- successLight: string;
2194
- error: string;
2195
- errorLight: string;
2196
- borderDefault: string;
2197
- borderHover: string;
2198
- borderFocus: string;
2199
- borderError: string;
2200
- borderSuccess: string;
2201
- borderWarning: string;
2202
- borderInfo: string;
2203
- borderInteractive: string;
2204
- borderInteractiveHover: string;
2205
- backgroundHover: string;
2206
- backgroundClicked: string;
2207
- backgroundDisabled: string;
2208
- backgroundInteractive: string;
2209
- backgroundInteractiveHover: string;
2210
- backgroundInteractiveClicked: string;
2211
- backgroundInteractiveDisabled: string;
2212
- foregroundHover: string;
2213
- foregroundClicked: string;
2214
- foregroundDisabled: string;
2215
- foregroundInteractive: string;
2216
- foregroundInteractiveHover: string;
2217
- warningDark: string;
2218
- errorDark: string;
2219
- successBg: string;
2220
- errorBg: string;
2221
- errorBgHover: string;
2222
- warnBg: string;
2223
- infoBg: string;
2224
- infoBgHover: string;
2225
- accentHasGoodContrast: string;
2226
- linkNavigationColor: string;
2227
- linkNavigationDecoration: string;
2228
- iconDefault: string;
2229
- iconMuted: string;
2230
- iconSubtle: string;
2231
- iconInverse: string;
2232
- iconSuccess: string;
2233
- iconWarning: string;
2234
- iconError: string;
2235
- iconInteractive: string;
2236
- iconDefaultHover: string;
2237
- iconMutedHover: string;
2238
- iconSubtleHover: string;
2239
- iconDefaultClicked: string;
2240
- iconMutedClicked: string;
2241
- iconSubtleClicked: string;
2242
- iconDefaultDisabled: string;
2243
- iconMutedDisabled: string;
2244
- iconSubtleDisabled: string;
2245
- iconErrorHover: string;
2246
- iconInteractiveHover: string;
2247
- iconErrorClicked: string;
2248
- iconInteractiveClicked: string;
2249
- iconMutedDisabledAlt: string;
2250
- iconSubtleDisabledAlt: string;
2251
- };
2252
- type EmbeddedWalletCreateOnLoginConfig = 'users-without-wallets' | 'all-users' | 'off';
2253
- type OtpFlowState = {
2254
- status: 'initial';
2255
- } | {
2256
- status: 'error';
2257
- error: Error | null;
2258
- } | {
2259
- status: 'sending-code';
2260
- } | {
2261
- status: 'awaiting-code-input';
2262
- } | {
2263
- status: 'submitting-code';
2264
- } | {
2265
- status: 'done';
2266
- };
2267
- type PasskeyFlowState = {
2268
- status: 'initial';
2269
- } | {
2270
- status: 'error';
2271
- error: Error | null;
2272
- } | {
2273
- status: 'generating-challenge';
2274
- } | {
2275
- status: 'awaiting-passkey';
2276
- } | {
2277
- status: 'submitting-response';
2278
- } | {
2279
- status: 'done';
2280
- };
2281
- type SiweFlowState = {
2282
- status: 'initial';
2283
- } | {
2284
- status: 'error';
2285
- error: Error | null;
2286
- } | {
2287
- status: 'generating-message';
2288
- } | {
2289
- status: 'awaiting-signature';
2290
- } | {
2291
- status: 'submitting-signature';
2292
- } | {
2293
- status: 'done';
2294
- };
2295
- type SiwsFlowState = {
2296
- status: 'initial';
2297
- } | {
2298
- status: 'error';
2299
- error: Error | null;
2300
- } | {
2301
- status: 'generating-message';
2302
- } | {
2303
- status: 'awaiting-signature';
2304
- } | {
2305
- status: 'submitting-signature';
2306
- } | {
2307
- status: 'done';
2308
- };
2309
- type OAuthFlowState = {
2310
- status: 'initial';
2311
- } | {
2312
- status: 'loading';
2313
- } | {
2314
- status: 'done';
2315
- } | {
2316
- status: 'error';
2317
- error: Error | null;
2318
- };
2319
- type TelegramAuthFlowState = {
2320
- status: 'initial';
2321
- } | {
2322
- status: 'loading';
2323
- } | {
2324
- status: 'done';
2325
- } | {
2326
- status: 'error';
2327
- error: Error | null;
2328
- };
2329
- /**
2330
- * UI configuration object for the embedded wallet's Sign Message screen
2331
- */
2332
- type SignMessageModalUIOptions = {
2333
- /**
2334
- * Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled
2335
- * for your app in the Privy Dashboard, or `showWalletUIs` in the `embeddedWallets` config.
2336
- */
2337
- showWalletUIs?: boolean;
2338
- /**
2339
- * Title for the Sign Message screen. Defaults to 'Sign'.
2340
- */
2341
- title?: string;
2342
- /**
2343
- * Description text for the Sign Message screen. Defaults to
2344
- * 'Sign to continue'.
2345
- */
2346
- description?: string;
2347
- /**
2348
- * Text for the CTA button on the Sign Message screen. Defaults to
2349
- * 'Sign and Continue'
2350
- */
2351
- buttonText?: string;
2352
- /**
2353
- * An icon to display on the Sign Message screen. Defaults to no icon.
2354
- */
2355
- iconUrl?: string;
2356
- /**
2357
- * Whether or not to display a cancel button on the transaction confirmation screen
2358
- */
2359
- isCancellable?: boolean;
2360
- };
2361
- type MessageTypeProperty = {
2362
- name: string;
2363
- type: string;
2364
- };
2365
- type MessageTypes = {
2366
- [additionalProperties: string]: MessageTypeProperty[];
2367
- };
2368
- /**
2369
- * 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)
2370
- *
2371
- */
2372
- type TypedMessage<T extends MessageTypes> = {
2373
- types: T;
2374
- primaryType: keyof T;
2375
- domain: {
2376
- name?: string;
2377
- version?: string;
2378
- chainId?: number;
2379
- verifyingContract?: string;
2380
- salt?: ArrayBuffer;
2381
- };
2382
- message: Record<string, unknown>;
2383
- };
2384
- /**
2385
- * 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)
2386
- * See [`TypedMessage`](TypedMessage) for specs on the specific params of typedData.
2387
- */
2388
- type SignTypedDataParams = TypedMessage<MessageTypes>;
2389
- /**
2390
- * UI customization object for additional transaction details. Will be shown
2391
- * in an expandable accordion in the Send Transaction screen.
2392
- */
2393
- type TransactionUIOptions = {
2394
- /**
2395
- * Title for the transaction details accordion within the
2396
- * Send Transaction screen. Defaults to 'Details'.
2397
- */
2398
- title?: string;
2399
- /**
2400
- * Action that the user is taking when sending this transaction. This
2401
- * should be short (<4 words, e.g. 'Buy NFT'). Will be shown inside
2402
- * the transaction details accordion in Send Transaction screen.
2403
- */
2404
- action?: string;
2405
- /**
2406
- * If the transaction to be sent is a call to a smart contract, you may
2407
- * use this object to fill in additional details about the contract being called.
2408
- */
2409
- contractInfo?: ContractUIOptions;
2410
- };
2411
- /**
2412
- * If the transaction to be sent is a call to a smart contract, you may use this
2413
- * object to fill in additional details about the contract being called.
2414
- */
2415
- type ContractUIOptions = {
2416
- /**
2417
- * URL with more information about the smart contract.
2418
- */
2419
- url?: string;
2420
- /**
2421
- * Name of smart contract being called.
2422
- */
2423
- name?: string;
2424
- /**
2425
- * URL for an image to show in the Send Transaction screen.
2426
- */
2427
- imgUrl?: string;
2428
- /**
2429
- * Alt text for the image in the Send Transaction screen, if a
2430
- * valid `imgUrl` is set.
2431
- */
2432
- imgAltText?: string;
2433
- /**
2434
- * Size for the image in the Send Transaction screen, if a valid
2435
- * `imgUrl` is set.
2436
- */
2437
- imgSize?: 'sm' | 'lg';
2438
- };
2439
- /**
2440
- * UI customization object for the embedded wallet's Send Transaction screen
2441
- */
2442
- type SendTransactionModalUIOptions = {
2443
- /**
2444
- * Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled
2445
- * for your app in the Privy Dashboard, or `showWalletUIs` in the `embeddedWallets` config.
2446
- */
2447
- showWalletUIs?: boolean;
2448
- /**
2449
- * Description of the transaction being sent.
2450
- */
2451
- description?: string;
2452
- /**
2453
- * Text to show on CTA button for Send Transaction screen. Defaults to
2454
- * 'Submit'. For fund transactions, defaults to 'Approve'.
2455
- */
2456
- buttonText?: string;
2457
- /**
2458
- * Details about the transaction that the user will send. Will be shown
2459
- * in an accordion in the Send Transaction screen.
2460
- */
2461
- transactionInfo?: TransactionUIOptions;
2462
- /**
2463
- * Text to display at top of Send Transaction Success screen. Defaults to
2464
- * 'Transaction complete!' if transaction is successful.
2465
- */
2466
- successHeader?: string;
2467
- /**
2468
- * Description of the transaction Success screen. Defaults to 'You're all set.'
2469
- */
2470
- successDescription?: string;
2471
- /**
2472
- * Whether or not to display a cancel button on the transaction confirmation screen
2473
- */
2474
- isCancellable?: boolean;
2475
- };
2476
- /**
2477
- * Our external-facing `UnsignedTransactionRequest` type makes the `chainId` field optional,
2478
- * matching ethers, wagmi, and other libraries. However, our modal needs to be "aware"
2479
- * of the transaction's `chainId` to ensure it does price conversion, quote labeling, etc. importantly.
2480
- *
2481
- * Thus, in the modal, we enforce a stricter type `UnsignedTransactionRequestWithChainId` which wraps
2482
- * `UnsignedTransactionRequest` to make `chainId` required.
2483
- *
2484
- * If the developer does not set a `chainId` in their `UnsignedTransactionRequest`, we default to the embedded
2485
- * provider's current `chainId` in `privy-provider.tsx` > `sendTransaction`
2486
- */
2487
- type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
2488
- chainId: number;
2489
- };
2490
- type LoginModalOptions = RuntimeLoginOverridableOptions & {
2491
- isSigningInWithLedgerSolana?: boolean;
2492
- };
2493
- type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
2494
- type BridgeProviders = OnrampProvider;
2495
- type PrivyFarcasterSignerInitResponse = {
2496
- public_key: string;
2497
- status: 'pending_approval';
2498
- signer_approval_url: string;
2499
- } | {
2500
- public_key: string;
2501
- status: 'approved';
2502
- fid: bigint;
2503
- } | {
2504
- public_key: string;
2505
- status: 'revoked';
2506
- };
2507
- type PrefillLoginOptions = {
2508
- type: 'email' | 'phone';
2509
- value: string;
2510
- };
2511
- /** Options for Privy's `login` method. */
2512
- type RuntimeLoginOverridableOptions = {
2513
- /** An array of login methods to display in the login modal. */
2514
- loginMethods?: PrivyClientConfig['loginMethods'];
2515
- /** Details to prefill a user's email or phone number for email or SMS login. */
2516
- prefill?: PrefillLoginOptions;
2517
- /**
2518
- * Whether or not to block sign ups (only allow existing users to log in).
2519
- */
2520
- disableSignup?: boolean;
2521
- /**
2522
- * Filter the login wallet options to only show wallets that support the specified chain type.
2523
- */
2524
- walletChainType?: NonNullable<PrivyClientConfig['appearance']>['walletChainType'];
2525
- };
2526
- /** Options for Privy's `connectWallet` method */
2527
- type ExternalConnectWalletModalOptions = {
2528
- /**
2529
- * @deprecated Use `description` instead to provide custom text for the connect wallet modal.
2530
- * An address to suggest the user to connect in Privy's UIs. This is only a suggestion for the
2531
- * user and the method will not error if they connect a different address.
2532
- */
2533
- suggestedAddress?: string;
2534
- /**
2535
- * An array of wallet options to present the user in the connect wallet modal.
2536
- */
2537
- walletList?: WalletListEntry[];
2538
- /**
2539
- * Filter the login wallet options to only show wallets that support the specified chain type.
2540
- */
2541
- walletChainType?: NonNullable<PrivyClientConfig['appearance']>['walletChainType'];
2542
- /**
2543
- * Custom description text to display in the connect wallet modal. If not provided,
2544
- * a default description will be shown based on the context (e.g., "Connect a wallet to your [app] account").
2545
- * To hide completely, set to an empty string.
2546
- */
2547
- description?: ReactNode;
2548
- /**
2549
- * When set, the connect view will skip the wallets list and go straight to the wallet connection.
2550
- */
2551
- preSelectedWalletId?: string;
2552
- /**
2553
- * Whether to hide the modal header content (wallet icon, title, and description).
2554
- * The close button and padding will still be shown. Defaults to false (header is visible).
2555
- */
2556
- hideHeader?: boolean;
2557
- };
2558
- /** Options for Privy's `createWallet` method */
2559
- type CreateWalletOptions = {
2560
- /**
2561
- * Whether or not to create an additional Ethereum embedded wallet for a user that already has
2562
- * an Ethereum embedded wallet. If this is set to `true` and the user does not already have an Ethereum
2563
- * embedded wallet, `createWallet` will throw an error.
2564
- *
2565
- * Defaults to `false`.
2566
- */
2567
- createAdditional?: boolean;
2568
- /**
2569
- * Session signers to associate with the wallet at creation time.
2570
- * Only supported for TEE execution mode (`user-controlled-server-wallets-only`).
2571
- */
2572
- signers?: SessionSignerInput;
2573
- } | {
2574
- /**
2575
- * Specify the hierarchical deterministic (HD) index of the embedded wallet to create.
2576
- * **A wallet with HD index 0 must be created before creating a wallet at greater HD indices.**
2577
- * If a value < 0 is passed in, `createWallet` will throw an error.
2578
- * If a value > 1 is passed in, and the user does not have a primary wallet (HD index == 0),
2579
- * `createWallet` will throw an error.
2580
- *
2581
- */
2582
- walletIndex: number;
2583
- /**
2584
- * Session signers to associate with the wallet at creation time.
2585
- * Only supported for TEE execution mode (`user-controlled-server-wallets-only`).
2586
- */
2587
- signers?: SessionSignerInput;
2588
- };
2589
- type SetWalletRecoveryOptions = {};
2590
- type CrossAppProviderDetails = {
2591
- name: string;
2592
- icon_url: string | null;
2593
- };
2594
- type LoginToMiniApp = {
2595
- /**
2596
- * The message the Farcaster wallet signed
2597
- */
2598
- message: string;
2599
- /**
2600
- * The SIWF signature
2601
- */
2602
- signature: string;
2603
- };
2604
- /**
2605
- * For SIWS flows, indicates whether or not the SIWS message is plaintext, or wrapped in a memo transaction
2606
- */
2607
- type SiwsMessageType = 'plain' | 'transaction';
2608
- type SessionSignerInput = {
2609
- signerId: string;
2610
- policyIds?: string[];
2611
- }[];
2612
- type SignerInput = SessionSignerInput;
2613
-
2614
- export { type SiwsMessageType as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectorType as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginMethod as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type MoonpaySignRequest as Z, type MoonpaySignResponse as _, type LinkedAccountWithMetadata as a, createCrossTabUserSyncPlugin as a$, type ExternalWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BridgeProviders as a9, type LinkedInOAuthWithMetadata as aA, type LoginMethodOrderOption as aB, type MessageTypes as aC, type MoonpayCurrencyCode as aD, type MoonpayPaymentMethod as aE, type NativeFundingConfig as aF, type NonEmptyArray as aG, type Passkey as aH, type PasskeyWithMetadata as aI, type Phone as aJ, type PhoneWithMetadata as aK, type PriceDisplayOptions as aL, type PrivyI18nStrings as aM, type Quantity as aN, type SiwsFlowState as aO, type SmartWallet as aP, type Telegram as aQ, type TelegramWithMetadata as aR, type Tiktok as aS, type TiktokOAuthWithMetadata as aT, type TransactionLog as aU, type TransactionReceipt as aV, type TransactionUIOptions as aW, type Twitter as aX, type TwitterOAuthWithMetadata as aY, type TypedMessage as aZ, type WalletWithMetadata as a_, type FundingResult as aa, type BaseAccountSdkType as ab, type UnsignedTransactionRequestWithChainId as ac, type BaseConnectedWalletType as ad, type SignerInput as ae, type TelegramAuthFlowState as af, type Apple as ag, type AppleOAuthWithMetadata as ah, type ContractUIOptions as ai, type CrossAppAccount as aj, type CrossAppAccountWithMetadata as ak, type Discord as al, type DiscordOAuthWithMetadata as am, type Email as an, type EmailWithMetadata as ao, type Farcaster as ap, type FarcasterWithMetadata as aq, type FundingStatus as ar, type Github as as, type GithubOAuthWithMetadata as at, type Google as au, type GoogleOAuthWithMetadata as av, type Line as aw, type LineOAuthWithMetadata as ax, type LinkedAccountType as ay, type LinkedIn as az, type BaseConnectedSolanaWallet as b, createWalletCreationOnLoginPlugin as b0, createDataSuffixPlugin as b1, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, defaultSolanaRpcsPlugin as k, type MfaSubmitArgs as l, type SolanaRpcRequestType as m, type EthereumRpcResponseType as n, type SolanaRpcResponseType as o, type PrivyFarcasterSignerInitResponse as p, type EIP1193Provider as q, type EntropyIdVerifier as r, type RequestArguments as s, toSolanaWalletConnectors as t, WalletConnector as u, PrivyProxyProvider as v, type WalletClientType as w, type ConnectedWalletMetadata as x, type PrivyClientConfig as y, type SetBaseAccountSdkType as z };