thirdweb 5.44.2-nightly-7c2f616dfe6880beefa4eb48f8dcbce6bba9461a-20240808000401 → 5.45.0-nightly-bbb4f1c53f982b1f9de00fb30efbf2c77f155e96-20240809000532

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 (565) hide show
  1. package/dist/cjs/adapters/ethers5.js +3 -2
  2. package/dist/cjs/adapters/ethers5.js.map +1 -1
  3. package/dist/cjs/adapters/wallet-adapter.js +3 -0
  4. package/dist/cjs/adapters/wallet-adapter.js.map +1 -1
  5. package/dist/cjs/auth/constants.js +1 -2
  6. package/dist/cjs/auth/constants.js.map +1 -1
  7. package/dist/cjs/auth/verify-hash.js +1 -1
  8. package/dist/cjs/auth/verify-hash.js.map +1 -1
  9. package/dist/cjs/chains/chain-definitions/fraxtal-testnet.js +20 -0
  10. package/dist/cjs/chains/chain-definitions/fraxtal-testnet.js.map +1 -0
  11. package/dist/cjs/chains/chain-definitions/mode-testnet.js +20 -0
  12. package/dist/cjs/chains/chain-definitions/mode-testnet.js.map +1 -0
  13. package/dist/cjs/chains/utils.js +7 -0
  14. package/dist/cjs/chains/utils.js.map +1 -1
  15. package/dist/cjs/exports/react.js +4 -2
  16. package/dist/cjs/exports/react.js.map +1 -1
  17. package/dist/cjs/exports/wallets/in-app.js +2 -2
  18. package/dist/cjs/exports/wallets/in-app.js.map +1 -1
  19. package/dist/cjs/exports/wallets.js +4 -1
  20. package/dist/cjs/exports/wallets.js.map +1 -1
  21. package/dist/cjs/react/core/hooks/others/useProfiles.js +36 -0
  22. package/dist/cjs/react/core/hooks/others/useProfiles.js.map +1 -0
  23. package/dist/cjs/react/core/utils/{socialIcons.js → walletIcon.js} +26 -1
  24. package/dist/cjs/react/core/utils/walletIcon.js.map +1 -0
  25. package/dist/cjs/react/native/ui/components/TokenIcon.js +2 -2
  26. package/dist/cjs/react/native/ui/components/TokenIcon.js.map +1 -1
  27. package/dist/cjs/react/native/ui/connect/ConnectButton.js +13 -8
  28. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
  29. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +13 -8
  30. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  31. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +22 -5
  32. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  33. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -2
  34. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  35. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +13 -8
  36. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  37. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  39. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
  40. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  41. package/dist/cjs/react/web/ui/ConnectWallet/icons/AddUserIcon.js +12 -0
  42. package/dist/cjs/react/web/ui/ConnectWallet/icons/AddUserIcon.js.map +1 -0
  43. package/dist/cjs/react/web/ui/ConnectWallet/icons/MultiUserIcon.js +12 -0
  44. package/dist/cjs/react/web/ui/ConnectWallet/icons/MultiUserIcon.js.map +1 -0
  45. package/dist/cjs/react/web/ui/ConnectWallet/locale/de.js +6 -0
  46. package/dist/cjs/react/web/ui/ConnectWallet/locale/de.js.map +1 -1
  47. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js +6 -0
  48. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  49. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js +6 -0
  50. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  51. package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js +6 -0
  52. package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js.map +1 -1
  53. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js +6 -0
  54. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  55. package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js +6 -0
  56. package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js.map +1 -1
  57. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js +6 -0
  58. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  59. package/dist/cjs/react/web/ui/ConnectWallet/locale/vi.js +6 -0
  60. package/dist/cjs/react/web/ui/ConnectWallet/locale/vi.js.map +1 -1
  61. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +3 -1
  62. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  63. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +42 -0
  64. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -0
  65. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +58 -0
  66. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -0
  67. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +8 -5
  68. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  69. package/dist/cjs/react/web/ui/PayEmbed.js +13 -8
  70. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  71. package/dist/cjs/react/web/ui/components/Spinner.js +1 -1
  72. package/dist/cjs/react/web/ui/components/Spinner.js.map +1 -1
  73. package/dist/cjs/react/web/ui/components/TokenIcon.js +2 -2
  74. package/dist/cjs/react/web/ui/components/TokenIcon.js.map +1 -1
  75. package/dist/cjs/react/web/ui/components/WalletImage.js +6 -32
  76. package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
  77. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +8 -4
  78. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  79. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +1 -1
  80. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  81. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  82. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  83. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js +5 -5
  84. package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  85. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +22 -16
  86. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  87. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +36 -49
  88. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  89. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +47 -20
  90. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  91. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +33 -13
  92. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  93. package/dist/cjs/react/web/wallets/shared/locale/en.js +1 -1
  94. package/dist/cjs/react/web/wallets/shared/oauthSignIn.js +1 -1
  95. package/dist/cjs/react/web/wallets/shared/oauthSignIn.js.map +1 -1
  96. package/dist/cjs/reactive/store.js +3 -0
  97. package/dist/cjs/reactive/store.js.map +1 -1
  98. package/dist/cjs/transaction/serialize-transaction.js +20 -142
  99. package/dist/cjs/transaction/serialize-transaction.js.map +1 -1
  100. package/dist/cjs/version.js +1 -1
  101. package/dist/cjs/wallets/coinbase/coinbase-wallet.js +8 -1
  102. package/dist/cjs/wallets/coinbase/coinbase-wallet.js.map +1 -1
  103. package/dist/cjs/wallets/create-wallet.js +8 -1
  104. package/dist/cjs/wallets/create-wallet.js.map +1 -1
  105. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js +14 -3
  106. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  107. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +67 -0
  108. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -0
  109. package/dist/cjs/wallets/in-app/core/authentication/siwe.js +47 -0
  110. package/dist/cjs/wallets/in-app/core/authentication/siwe.js.map +1 -0
  111. package/dist/cjs/wallets/in-app/core/authentication/{type.js → types.js} +1 -1
  112. package/dist/cjs/wallets/in-app/core/authentication/types.js.map +1 -0
  113. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +8 -1
  114. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  115. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +47 -1
  116. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  117. package/dist/cjs/wallets/in-app/core/wallet/index.js +3 -3
  118. package/dist/cjs/wallets/in-app/core/wallet/index.js.map +1 -1
  119. package/dist/cjs/wallets/in-app/core/wallet/profiles.js +60 -0
  120. package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +1 -0
  121. package/dist/cjs/wallets/in-app/native/auth/index.js +3 -3
  122. package/dist/cjs/wallets/in-app/native/auth/index.js.map +1 -1
  123. package/dist/cjs/wallets/in-app/native/auth/native-auth.js +47 -112
  124. package/dist/cjs/wallets/in-app/native/auth/native-auth.js.map +1 -1
  125. package/dist/cjs/wallets/in-app/native/helpers/auth/middleware.js +5 -5
  126. package/dist/cjs/wallets/in-app/native/helpers/auth/middleware.js.map +1 -1
  127. package/dist/cjs/wallets/in-app/native/native-connector.js +76 -36
  128. package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
  129. package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js +0 -2
  130. package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  131. package/dist/cjs/wallets/in-app/web/lib/auth/base-login.js +49 -148
  132. package/dist/cjs/wallets/in-app/web/lib/auth/base-login.js.map +1 -1
  133. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +26 -12
  134. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  135. package/dist/cjs/wallets/in-app/web/lib/auth/index.js +3 -3
  136. package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
  137. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js +2 -2
  138. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  139. package/dist/cjs/wallets/in-app/web/lib/auth/otp.js +89 -0
  140. package/dist/cjs/wallets/in-app/web/lib/auth/otp.js.map +1 -0
  141. package/dist/cjs/wallets/in-app/web/lib/in-app-account.js +7 -7
  142. package/dist/cjs/wallets/in-app/web/lib/in-app-account.js.map +1 -1
  143. package/dist/cjs/wallets/in-app/web/lib/web-connector.js +89 -30
  144. package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
  145. package/dist/cjs/wallets/manager/index.js +41 -5
  146. package/dist/cjs/wallets/manager/index.js.map +1 -1
  147. package/dist/cjs/wallets/native/create-wallet.js +8 -1
  148. package/dist/cjs/wallets/native/create-wallet.js.map +1 -1
  149. package/dist/cjs/wallets/smart/smart-wallet.js +8 -1
  150. package/dist/cjs/wallets/smart/smart-wallet.js.map +1 -1
  151. package/dist/esm/adapters/ethers5.js +3 -2
  152. package/dist/esm/adapters/ethers5.js.map +1 -1
  153. package/dist/esm/adapters/wallet-adapter.js +3 -0
  154. package/dist/esm/adapters/wallet-adapter.js.map +1 -1
  155. package/dist/esm/auth/constants.js +0 -1
  156. package/dist/esm/auth/constants.js.map +1 -1
  157. package/dist/esm/auth/verify-hash.js +2 -2
  158. package/dist/esm/auth/verify-hash.js.map +1 -1
  159. package/dist/esm/chains/chain-definitions/fraxtal-testnet.js +17 -0
  160. package/dist/esm/chains/chain-definitions/fraxtal-testnet.js.map +1 -0
  161. package/dist/esm/chains/chain-definitions/mode-testnet.js +17 -0
  162. package/dist/esm/chains/chain-definitions/mode-testnet.js.map +1 -0
  163. package/dist/esm/chains/utils.js +6 -0
  164. package/dist/esm/chains/utils.js.map +1 -1
  165. package/dist/esm/exports/react.js +1 -0
  166. package/dist/esm/exports/react.js.map +1 -1
  167. package/dist/esm/exports/wallets/embedded.js +1 -1
  168. package/dist/esm/exports/wallets/embedded.js.map +1 -1
  169. package/dist/esm/exports/wallets/in-app.js +2 -2
  170. package/dist/esm/exports/wallets/in-app.js.map +1 -1
  171. package/dist/esm/exports/wallets/in-app.native.js +1 -1
  172. package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
  173. package/dist/esm/exports/wallets.js +1 -0
  174. package/dist/esm/exports/wallets.js.map +1 -1
  175. package/dist/esm/react/core/hooks/others/useProfiles.js +33 -0
  176. package/dist/esm/react/core/hooks/others/useProfiles.js.map +1 -0
  177. package/dist/esm/react/core/utils/{socialIcons.js → walletIcon.js} +25 -1
  178. package/dist/esm/react/core/utils/walletIcon.js.map +1 -0
  179. package/dist/esm/react/native/ui/components/TokenIcon.js +1 -1
  180. package/dist/esm/react/native/ui/components/TokenIcon.js.map +1 -1
  181. package/dist/esm/react/native/ui/connect/ConnectButton.js +14 -9
  182. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
  183. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +13 -8
  184. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  185. package/dist/esm/react/web/ui/ConnectWallet/Details.js +22 -5
  186. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  187. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +1 -1
  188. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  189. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +13 -8
  190. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  191. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js +1 -1
  192. package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
  193. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
  194. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  195. package/dist/esm/react/web/ui/ConnectWallet/icons/AddUserIcon.js +8 -0
  196. package/dist/esm/react/web/ui/ConnectWallet/icons/AddUserIcon.js.map +1 -0
  197. package/dist/esm/react/web/ui/ConnectWallet/icons/MultiUserIcon.js +8 -0
  198. package/dist/esm/react/web/ui/ConnectWallet/icons/MultiUserIcon.js.map +1 -0
  199. package/dist/esm/react/web/ui/ConnectWallet/locale/de.js +6 -0
  200. package/dist/esm/react/web/ui/ConnectWallet/locale/de.js.map +1 -1
  201. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js +6 -0
  202. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  203. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js +6 -0
  204. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  205. package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js +6 -0
  206. package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js.map +1 -1
  207. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js +6 -0
  208. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  209. package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js +6 -0
  210. package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js.map +1 -1
  211. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js +6 -0
  212. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  213. package/dist/esm/react/web/ui/ConnectWallet/locale/vi.js +6 -0
  214. package/dist/esm/react/web/ui/ConnectWallet/locale/vi.js.map +1 -1
  215. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +3 -1
  216. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  217. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +39 -0
  218. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -0
  219. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +55 -0
  220. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -0
  221. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +8 -5
  222. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  223. package/dist/esm/react/web/ui/PayEmbed.js +14 -9
  224. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  225. package/dist/esm/react/web/ui/components/Spinner.js +1 -1
  226. package/dist/esm/react/web/ui/components/Spinner.js.map +1 -1
  227. package/dist/esm/react/web/ui/components/TokenIcon.js +1 -1
  228. package/dist/esm/react/web/ui/components/TokenIcon.js.map +1 -1
  229. package/dist/esm/react/web/ui/components/WalletImage.js +4 -30
  230. package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
  231. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +8 -4
  232. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  233. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +2 -2
  234. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
  235. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  236. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  237. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js +5 -5
  238. package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
  239. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +18 -12
  240. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  241. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +36 -49
  242. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  243. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +47 -20
  244. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  245. package/dist/esm/react/web/wallets/shared/SocialLogin.js +33 -13
  246. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  247. package/dist/esm/react/web/wallets/shared/locale/en.js +1 -1
  248. package/dist/esm/react/web/wallets/shared/oauthSignIn.js +2 -2
  249. package/dist/esm/react/web/wallets/shared/oauthSignIn.js.map +1 -1
  250. package/dist/esm/reactive/store.js +3 -0
  251. package/dist/esm/reactive/store.js.map +1 -1
  252. package/dist/esm/transaction/serialize-transaction.js +21 -142
  253. package/dist/esm/transaction/serialize-transaction.js.map +1 -1
  254. package/dist/esm/version.js +1 -1
  255. package/dist/esm/wallets/coinbase/coinbase-wallet.js +8 -1
  256. package/dist/esm/wallets/coinbase/coinbase-wallet.js.map +1 -1
  257. package/dist/esm/wallets/create-wallet.js +8 -1
  258. package/dist/esm/wallets/create-wallet.js.map +1 -1
  259. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js +11 -1
  260. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  261. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +63 -0
  262. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -0
  263. package/dist/esm/wallets/in-app/core/authentication/siwe.js +44 -0
  264. package/dist/esm/wallets/in-app/core/authentication/siwe.js.map +1 -0
  265. package/dist/esm/wallets/in-app/core/authentication/{type.js → types.js} +1 -1
  266. package/dist/esm/wallets/in-app/core/authentication/types.js.map +1 -0
  267. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +8 -1
  268. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  269. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +47 -1
  270. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  271. package/dist/esm/wallets/in-app/core/wallet/index.js +2 -2
  272. package/dist/esm/wallets/in-app/core/wallet/index.js.map +1 -1
  273. package/dist/esm/wallets/in-app/core/wallet/profiles.js +56 -0
  274. package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +1 -0
  275. package/dist/esm/wallets/in-app/native/auth/index.js +2 -2
  276. package/dist/esm/wallets/in-app/native/auth/index.js.map +1 -1
  277. package/dist/esm/wallets/in-app/native/auth/native-auth.js +47 -112
  278. package/dist/esm/wallets/in-app/native/auth/native-auth.js.map +1 -1
  279. package/dist/esm/wallets/in-app/native/helpers/auth/middleware.js +1 -1
  280. package/dist/esm/wallets/in-app/native/helpers/auth/middleware.js.map +1 -1
  281. package/dist/esm/wallets/in-app/native/native-connector.js +67 -27
  282. package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
  283. package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js +0 -2
  284. package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  285. package/dist/esm/wallets/in-app/web/lib/auth/base-login.js +49 -148
  286. package/dist/esm/wallets/in-app/web/lib/auth/base-login.js.map +1 -1
  287. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +26 -12
  288. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  289. package/dist/esm/wallets/in-app/web/lib/auth/index.js +2 -2
  290. package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
  291. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js +3 -3
  292. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  293. package/dist/esm/wallets/in-app/web/lib/auth/otp.js +84 -0
  294. package/dist/esm/wallets/in-app/web/lib/auth/otp.js.map +1 -0
  295. package/dist/esm/wallets/in-app/web/lib/in-app-account.js +1 -1
  296. package/dist/esm/wallets/in-app/web/lib/in-app-account.js.map +1 -1
  297. package/dist/esm/wallets/in-app/web/lib/web-connector.js +88 -29
  298. package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
  299. package/dist/esm/wallets/manager/index.js +41 -5
  300. package/dist/esm/wallets/manager/index.js.map +1 -1
  301. package/dist/esm/wallets/native/create-wallet.js +8 -1
  302. package/dist/esm/wallets/native/create-wallet.js.map +1 -1
  303. package/dist/esm/wallets/smart/smart-wallet.js +8 -1
  304. package/dist/esm/wallets/smart/smart-wallet.js.map +1 -1
  305. package/dist/types/adapters/ethers5.d.ts +1 -1
  306. package/dist/types/adapters/ethers5.d.ts.map +1 -1
  307. package/dist/types/adapters/wallet-adapter.d.ts.map +1 -1
  308. package/dist/types/auth/constants.d.ts +0 -1
  309. package/dist/types/auth/constants.d.ts.map +1 -1
  310. package/dist/types/auth/verify-hash.d.ts.map +1 -1
  311. package/dist/types/chains/chain-definitions/fraxtal-testnet.d.ts +7 -0
  312. package/dist/types/chains/chain-definitions/fraxtal-testnet.d.ts.map +1 -0
  313. package/dist/types/chains/chain-definitions/mode-testnet.d.ts +7 -0
  314. package/dist/types/chains/chain-definitions/mode-testnet.d.ts.map +1 -0
  315. package/dist/types/chains/utils.d.ts +6 -0
  316. package/dist/types/chains/utils.d.ts.map +1 -1
  317. package/dist/types/exports/react.d.ts +1 -0
  318. package/dist/types/exports/react.d.ts.map +1 -1
  319. package/dist/types/exports/wallets/embedded.d.ts +1 -1
  320. package/dist/types/exports/wallets/embedded.d.ts.map +1 -1
  321. package/dist/types/exports/wallets/in-app.d.ts +2 -2
  322. package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
  323. package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
  324. package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
  325. package/dist/types/exports/wallets.d.ts +1 -0
  326. package/dist/types/exports/wallets.d.ts.map +1 -1
  327. package/dist/types/react/core/hooks/others/useProfiles.d.ts +23 -0
  328. package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +1 -0
  329. package/dist/types/react/core/providers/connection-manager.d.ts +3 -0
  330. package/dist/types/react/core/providers/connection-manager.d.ts.map +1 -1
  331. package/dist/types/react/core/utils/storage.d.ts +2 -2
  332. package/dist/types/react/core/utils/storage.d.ts.map +1 -1
  333. package/dist/types/react/core/utils/{socialIcons.d.ts → walletIcon.d.ts} +2 -1
  334. package/dist/types/react/core/utils/walletIcon.d.ts.map +1 -0
  335. package/dist/types/react/native/ui/connect/ConnectButton.d.ts.map +1 -1
  336. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +1 -1
  337. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  338. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts +1 -1
  339. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
  340. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  341. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  342. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  343. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  344. package/dist/types/react/web/ui/ConnectWallet/icons/AddUserIcon.d.ts +6 -0
  345. package/dist/types/react/web/ui/ConnectWallet/icons/AddUserIcon.d.ts.map +1 -0
  346. package/dist/types/react/web/ui/ConnectWallet/icons/MultiUserIcon.d.ts +6 -0
  347. package/dist/types/react/web/ui/ConnectWallet/icons/MultiUserIcon.d.ts.map +1 -0
  348. package/dist/types/react/web/ui/ConnectWallet/locale/de.d.ts.map +1 -1
  349. package/dist/types/react/web/ui/ConnectWallet/locale/en.d.ts.map +1 -1
  350. package/dist/types/react/web/ui/ConnectWallet/locale/es.d.ts.map +1 -1
  351. package/dist/types/react/web/ui/ConnectWallet/locale/fr.d.ts.map +1 -1
  352. package/dist/types/react/web/ui/ConnectWallet/locale/ja.d.ts.map +1 -1
  353. package/dist/types/react/web/ui/ConnectWallet/locale/kr.d.ts.map +1 -1
  354. package/dist/types/react/web/ui/ConnectWallet/locale/tl.d.ts.map +1 -1
  355. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts +6 -0
  356. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts.map +1 -1
  357. package/dist/types/react/web/ui/ConnectWallet/locale/vi.d.ts.map +1 -1
  358. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts +11 -0
  359. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts.map +1 -0
  360. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts +13 -0
  361. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -0
  362. package/dist/types/react/web/ui/ConnectWallet/screens/ManageWalletScreen.d.ts.map +1 -1
  363. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts +1 -1
  364. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts.map +1 -1
  365. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  366. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  367. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +1 -0
  368. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  369. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts +1 -0
  370. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts.map +1 -1
  371. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +2 -1
  372. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  373. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts +2 -1
  374. package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts.map +1 -1
  375. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +3 -1
  376. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  377. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts +1 -0
  378. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  379. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +4 -1
  380. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  381. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts +3 -0
  382. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  383. package/dist/types/reactive/store.d.ts.map +1 -1
  384. package/dist/types/transaction/serialize-transaction.d.ts +8 -8
  385. package/dist/types/transaction/serialize-transaction.d.ts.map +1 -1
  386. package/dist/types/utils/any-evm/keyless-transaction.d.ts +1 -1
  387. package/dist/types/version.d.ts +1 -1
  388. package/dist/types/wallets/coinbase/coinbase-wallet.d.ts.map +1 -1
  389. package/dist/types/wallets/create-wallet.d.ts.map +1 -1
  390. package/dist/types/wallets/ecosystem/types.d.ts +2 -8
  391. package/dist/types/wallets/ecosystem/types.d.ts.map +1 -1
  392. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +8 -3
  393. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts.map +1 -1
  394. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +24 -0
  395. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -0
  396. package/dist/types/wallets/in-app/core/authentication/siwe.d.ts +14 -0
  397. package/dist/types/wallets/in-app/core/authentication/siwe.d.ts.map +1 -0
  398. package/dist/types/wallets/in-app/core/authentication/{type.d.ts → types.d.ts} +17 -2
  399. package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -0
  400. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts +4 -3
  401. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts.map +1 -1
  402. package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
  403. package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
  404. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +48 -0
  405. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +1 -0
  406. package/dist/types/wallets/in-app/core/wallet/types.d.ts +1 -1
  407. package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
  408. package/dist/types/wallets/in-app/native/auth/index.d.ts +3 -3
  409. package/dist/types/wallets/in-app/native/auth/index.d.ts.map +1 -1
  410. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts +7 -13
  411. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts.map +1 -1
  412. package/dist/types/wallets/in-app/native/helpers/api/fetchers.d.ts +1 -1
  413. package/dist/types/wallets/in-app/native/helpers/api/fetchers.d.ts.map +1 -1
  414. package/dist/types/wallets/in-app/native/helpers/auth/logout.d.ts +1 -1
  415. package/dist/types/wallets/in-app/native/helpers/auth/logout.d.ts.map +1 -1
  416. package/dist/types/wallets/in-app/native/helpers/auth/middleware.d.ts +3 -3
  417. package/dist/types/wallets/in-app/native/helpers/auth/middleware.d.ts.map +1 -1
  418. package/dist/types/wallets/in-app/native/helpers/storage/local.d.ts +1 -1
  419. package/dist/types/wallets/in-app/native/helpers/storage/local.d.ts.map +1 -1
  420. package/dist/types/wallets/in-app/native/helpers/types.d.ts +1 -1
  421. package/dist/types/wallets/in-app/native/helpers/types.d.ts.map +1 -1
  422. package/dist/types/wallets/in-app/native/helpers/wallet/creation.d.ts +1 -1
  423. package/dist/types/wallets/in-app/native/helpers/wallet/retrieval.d.ts +1 -1
  424. package/dist/types/wallets/in-app/native/helpers/wallet/retrieval.d.ts.map +1 -1
  425. package/dist/types/wallets/in-app/native/native-connector.d.ts +6 -4
  426. package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
  427. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts +4 -12
  428. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts.map +1 -1
  429. package/dist/types/wallets/in-app/web/lib/auth/base-login.d.ts +12 -15
  430. package/dist/types/wallets/in-app/web/lib/auth/base-login.d.ts.map +1 -1
  431. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +11 -9
  432. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
  433. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +4 -4
  434. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
  435. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +1 -1
  436. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
  437. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts +15 -0
  438. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts.map +1 -0
  439. package/dist/types/wallets/in-app/web/lib/auth/passkeys.d.ts +1 -1
  440. package/dist/types/wallets/in-app/web/lib/auth/passkeys.d.ts.map +1 -1
  441. package/dist/types/wallets/in-app/web/lib/get-url-token.d.ts +1 -1
  442. package/dist/types/wallets/in-app/web/lib/get-url-token.d.ts.map +1 -1
  443. package/dist/types/wallets/in-app/web/lib/in-app-account.d.ts +1 -1
  444. package/dist/types/wallets/in-app/web/lib/in-app-account.d.ts.map +1 -1
  445. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts +11 -4
  446. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
  447. package/dist/types/wallets/in-app/web/types.d.ts +1 -1
  448. package/dist/types/wallets/in-app/web/types.d.ts.map +1 -1
  449. package/dist/types/wallets/interfaces/wallet.d.ts.map +1 -1
  450. package/dist/types/wallets/manager/index.d.ts +1 -0
  451. package/dist/types/wallets/manager/index.d.ts.map +1 -1
  452. package/dist/types/wallets/native/create-wallet.d.ts.map +1 -1
  453. package/dist/types/wallets/smart/smart-wallet.d.ts.map +1 -1
  454. package/dist/types/wallets/types.d.ts +1 -1
  455. package/dist/types/wallets/types.d.ts.map +1 -1
  456. package/package.json +2 -2
  457. package/src/adapters/ethers5.ts +4 -2
  458. package/src/adapters/wallet-adapter.ts +3 -0
  459. package/src/auth/constants.ts +0 -3
  460. package/src/auth/verify-hash.ts +7 -5
  461. package/src/chains/chain-definitions/fraxtal-testnet.ts +17 -0
  462. package/src/chains/chain-definitions/mode-testnet.ts +17 -0
  463. package/src/chains/utils.ts +7 -0
  464. package/src/exports/react.ts +1 -0
  465. package/src/exports/wallets/embedded.ts +1 -1
  466. package/src/exports/wallets/in-app.native.ts +1 -1
  467. package/src/exports/wallets/in-app.ts +2 -2
  468. package/src/exports/wallets.ts +5 -0
  469. package/src/extensions/marketplace/direct-listings/direct-listings.test.ts +334 -337
  470. package/src/extensions/marketplace/english-auctions/english-auctions.test.ts +231 -236
  471. package/src/extensions/marketplace/offers/offers.test.ts +1 -1
  472. package/src/extensions/prebuilts/deploy-modular-core.test.ts +1 -1
  473. package/src/react/core/hooks/others/useProfiles.ts +36 -0
  474. package/src/react/core/utils/storage.ts +1 -1
  475. package/src/react/core/utils/{socialIcons.ts → walletIcon.ts} +25 -0
  476. package/src/react/native/ui/components/TokenIcon.tsx +1 -1
  477. package/src/react/native/ui/connect/ConnectButton.tsx +14 -9
  478. package/src/react/native/ui/connect/ConnectModal.tsx +1 -1
  479. package/src/react/native/ui/connect/InAppWalletUI.tsx +1 -1
  480. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +13 -8
  481. package/src/react/web/ui/ConnectWallet/Details.tsx +45 -11
  482. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +3 -1
  483. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +13 -8
  484. package/src/react/web/ui/ConnectWallet/Modal/screen.tsx +1 -1
  485. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +1 -1
  486. package/src/react/web/ui/ConnectWallet/icons/AddUserIcon.tsx +25 -0
  487. package/src/react/web/ui/ConnectWallet/icons/MultiUserIcon.tsx +25 -0
  488. package/src/react/web/ui/ConnectWallet/locale/de.ts +6 -0
  489. package/src/react/web/ui/ConnectWallet/locale/en.ts +6 -0
  490. package/src/react/web/ui/ConnectWallet/locale/es.ts +6 -0
  491. package/src/react/web/ui/ConnectWallet/locale/fr.ts +6 -0
  492. package/src/react/web/ui/ConnectWallet/locale/ja.ts +6 -0
  493. package/src/react/web/ui/ConnectWallet/locale/kr.ts +6 -0
  494. package/src/react/web/ui/ConnectWallet/locale/tl.ts +6 -1
  495. package/src/react/web/ui/ConnectWallet/locale/types.ts +6 -0
  496. package/src/react/web/ui/ConnectWallet/locale/vi.ts +6 -0
  497. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +5 -1
  498. package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +88 -0
  499. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +119 -0
  500. package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +20 -4
  501. package/src/react/web/ui/ConnectWallet/screens/types.ts +3 -1
  502. package/src/react/web/ui/PayEmbed.tsx +14 -9
  503. package/src/react/web/ui/components/Spinner.tsx +1 -1
  504. package/src/react/web/ui/components/TokenIcon.tsx +1 -1
  505. package/src/react/web/ui/components/WalletImage.tsx +7 -41
  506. package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +16 -4
  507. package/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx +14 -6
  508. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +17 -5
  509. package/src/react/web/wallets/in-app/InAppWalletFormUI.tsx +13 -12
  510. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +20 -15
  511. package/src/react/web/wallets/shared/OTPLoginUI.tsx +49 -54
  512. package/src/react/web/wallets/shared/PassKeyLogin.tsx +59 -20
  513. package/src/react/web/wallets/shared/SocialLogin.tsx +46 -14
  514. package/src/react/web/wallets/shared/locale/en.ts +1 -1
  515. package/src/react/web/wallets/shared/oauthSignIn.ts +2 -2
  516. package/src/reactive/store.ts +3 -0
  517. package/src/transaction/serialize-transaction.test.ts +13 -9
  518. package/src/transaction/serialize-transaction.ts +31 -258
  519. package/src/version.ts +1 -1
  520. package/src/wallets/coinbase/coinbase-wallet.ts +9 -1
  521. package/src/wallets/create-wallet.ts +9 -1
  522. package/src/wallets/ecosystem/types.ts +2 -10
  523. package/src/wallets/in-app/core/authentication/getLoginPath.ts +22 -3
  524. package/src/wallets/in-app/core/authentication/linkAccount.ts +96 -0
  525. package/src/wallets/in-app/core/authentication/siwe.ts +63 -0
  526. package/src/wallets/in-app/core/authentication/{type.ts → types.ts} +18 -1
  527. package/src/wallets/in-app/core/interfaces/connector.ts +14 -5
  528. package/src/wallets/in-app/core/wallet/ecosystem-core.ts +10 -1
  529. package/src/wallets/in-app/core/wallet/in-app-core.ts +68 -3
  530. package/src/wallets/in-app/core/wallet/index.ts +2 -2
  531. package/src/wallets/in-app/core/wallet/profiles.ts +74 -0
  532. package/src/wallets/in-app/core/wallet/types.ts +1 -1
  533. package/src/wallets/in-app/native/auth/index.ts +2 -2
  534. package/src/wallets/in-app/native/auth/native-auth.ts +70 -183
  535. package/src/wallets/in-app/native/helpers/api/fetchers.ts +1 -1
  536. package/src/wallets/in-app/native/helpers/auth/logout.ts +1 -1
  537. package/src/wallets/in-app/native/helpers/auth/middleware.ts +1 -1
  538. package/src/wallets/in-app/native/helpers/storage/local.ts +1 -1
  539. package/src/wallets/in-app/native/helpers/types.ts +1 -1
  540. package/src/wallets/in-app/native/helpers/wallet/creation.ts +1 -1
  541. package/src/wallets/in-app/native/helpers/wallet/retrieval.ts +1 -1
  542. package/src/wallets/in-app/native/native-connector.ts +96 -35
  543. package/src/wallets/in-app/web/lib/auth/abstract-login.ts +4 -14
  544. package/src/wallets/in-app/web/lib/auth/base-login.ts +75 -177
  545. package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +37 -18
  546. package/src/wallets/in-app/web/lib/auth/index.ts +2 -2
  547. package/src/wallets/in-app/web/lib/auth/oauth.ts +4 -4
  548. package/src/wallets/in-app/web/lib/auth/otp.ts +114 -0
  549. package/src/wallets/in-app/web/lib/auth/passkeys.ts +1 -1
  550. package/src/wallets/in-app/web/lib/get-url-token.ts +1 -1
  551. package/src/wallets/in-app/web/lib/in-app-account.ts +1 -1
  552. package/src/wallets/in-app/web/lib/web-connector.ts +93 -37
  553. package/src/wallets/in-app/web/types.ts +1 -1
  554. package/src/wallets/interfaces/wallet.ts +1 -0
  555. package/src/wallets/manager/index.ts +51 -5
  556. package/src/wallets/native/create-wallet.ts +9 -1
  557. package/src/wallets/smart/smart-wallet-integration.test.ts +3 -3
  558. package/src/wallets/smart/smart-wallet.ts +9 -1
  559. package/src/wallets/types.ts +6 -1
  560. package/dist/cjs/react/core/utils/socialIcons.js.map +0 -1
  561. package/dist/cjs/wallets/in-app/core/authentication/type.js.map +0 -1
  562. package/dist/esm/react/core/utils/socialIcons.js.map +0 -1
  563. package/dist/esm/wallets/in-app/core/authentication/type.js.map +0 -1
  564. package/dist/types/react/core/utils/socialIcons.d.ts.map +0 -1
  565. package/dist/types/wallets/in-app/core/authentication/type.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/reactive/store.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,QAAQ,IAAI,CAAC,CAAC;IACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CA2BxD"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/reactive/store.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,QAAQ,IAAI,CAAC,CAAC;IACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CA8BxD"}
@@ -1,13 +1,14 @@
1
- import { type ExactPartial, type SerializedTransactionReturnType, type Signature, type TransactionSerializable } from "viem";
2
- import { type Hex } from "../utils/encoding/hex.js";
3
- export type SerializeTransactionOptions<_transaction extends TransactionSerializable> = {
4
- transaction: _transaction;
1
+ import { type GetTransactionType, type SerializedTransactionReturnType, type Signature, type TransactionSerializable, type TransactionType } from "viem";
2
+ export type SerializeTransactionOptions = {
3
+ transaction: TransactionSerializable;
4
+ signature?: Signature | undefined;
5
5
  };
6
6
  /**
7
- * Serializes a legacy, EIP-1559, EIP-2930, or EIP-4844 transaction object.
7
+ * Serializes a legacy, EIP-1559, EIP-2930, EIP-4844, or EIP-7702 transaction object.
8
8
  *
9
9
  * @param options - The serialization options.
10
- * @param options.transaction - The transaction object to be serialized, including the signature parameters if necessary.
10
+ * @param options.transaction - The transaction object to be serialized.
11
+ * @param [options.signature] - The signature to include with the transaction, if necessary.
11
12
  * @returns The serialized transaction.
12
13
  * @throws An error if the provided transaction object is invalid.
13
14
  * @transaction
@@ -22,6 +23,5 @@ export type SerializeTransactionOptions<_transaction extends TransactionSerializ
22
23
  * });
23
24
  * ```
24
25
  */
25
- export declare function serializeTransaction<_transaction extends TransactionSerializable>(options: SerializeTransactionOptions<_transaction>): SerializedTransactionReturnType<_transaction>;
26
- export declare function toYParitySignatureArray(signature: ExactPartial<Signature>): Hex[];
26
+ export declare function serializeTransaction<const transaction extends TransactionSerializable, _transactionType extends TransactionType = GetTransactionType<transaction>>(options: SerializeTransactionOptions): SerializedTransactionReturnType<transaction, _transactionType>;
27
27
  //# sourceMappingURL=serialize-transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialize-transaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/serialize-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,+BAA+B,EACpC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAc7B,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,0BAA0B,CAAC;AAE3D,MAAM,MAAM,2BAA2B,CACrC,YAAY,SAAS,uBAAuB,IAC1C;IACF,WAAW,EAAE,YAAY,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,SAAS,uBAAuB,EAE5C,OAAO,EAAE,2BAA2B,CAAC,YAAY,CAAC,GACjD,+BAA+B,CAAC,YAAY,CAAC,CAoD/C;AAmKD,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,GACjC,GAAG,EAAE,CAqBP"}
1
+ {"version":3,"file":"serialize-transaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/serialize-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAErB,MAAM,MAAM,CAAC;AAEd,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,uBAAuB,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,CAAC,WAAW,SAAS,uBAAuB,EACjD,gBAAgB,SAAS,eAAe,GAAG,kBAAkB,CAAC,WAAW,CAAC,EAE1E,OAAO,EAAE,2BAA2B,GACnC,+BAA+B,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAuBhE"}
@@ -12,7 +12,7 @@ type GetKeylessTransactionOptions = {
12
12
  */
13
13
  export declare function getKeylessTransaction(options: GetKeylessTransactionOptions): Promise<{
14
14
  signerAddress: string;
15
- transaction: `0x02${string}` | `0x01${string}` | `0x03${string}` | import("viem").TransactionSerializedLegacy;
15
+ transaction: `0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | import("viem").TransactionSerializedLegacy;
16
16
  }>;
17
17
  export {};
18
18
  //# sourceMappingURL=keyless-transaction.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const version = "5.44.2-nightly-7c2f616dfe6880beefa4eb48f8dcbce6bba9461a-20240808000401";
1
+ export declare const version = "5.45.0-nightly-bbb4f1c53f982b1f9de00fb30efbf2c77f155e96-20240809000532";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coinbase-wallet.d.ts","sourceRoot":"","sources":["../../../../src/wallets/coinbase/coinbase-wallet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClD,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CA6F1B"}
1
+ {"version":3,"file":"coinbase-wallet.d.ts","sourceRoot":"","sources":["../../../../src/wallets/coinbase/coinbase-wallet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClD,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CAoG1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-wallet.d.ts","sourceRoot":"","sources":["../../../src/wallets/create-wallet.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACV,gBAAgB,EAIhB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAkB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EACpD,GAAG,IAAI,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAC5B,MAAM,CAAC,EAAE,CAAC,CAyPZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,4BAE5B"}
1
+ {"version":3,"file":"create-wallet.d.ts","sourceRoot":"","sources":["../../../src/wallets/create-wallet.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACV,gBAAgB,EAIhB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAmB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EACpD,GAAG,IAAI,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAC5B,MAAM,CAAC,EAAE,CAAC,CAgQZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,4BAE5B"}
@@ -1,16 +1,10 @@
1
- import type { Prettify } from "../../utils/type-utils.js";
2
1
  import type { InAppWalletAutoConnectOptions, InAppWalletConnectionOptions } from "../in-app/core/wallet/types.js";
3
- import type { Ecosystem } from "../in-app/web/types.js";
4
2
  export type EcosystemWalletCreationOptions = {
5
3
  partnerId?: string;
6
4
  auth?: {
7
5
  mode?: "popup" | "redirect";
8
6
  };
9
7
  };
10
- export type EcosystemWalletConnectionOptions = Prettify<InAppWalletConnectionOptions & {
11
- ecosystem: Ecosystem;
12
- }>;
13
- export type EcosystemWalletAutoConnectOptions = Prettify<InAppWalletAutoConnectOptions & {
14
- ecosystem: Ecosystem;
15
- }>;
8
+ export type EcosystemWalletConnectionOptions = InAppWalletConnectionOptions;
9
+ export type EcosystemWalletAutoConnectOptions = InAppWalletAutoConnectOptions;
16
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallets/ecosystem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CACrD,4BAA4B,GAAG;IAC7B,SAAS,EAAE,SAAS,CAAC;CACtB,CACF,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,QAAQ,CACtD,6BAA6B,GAAG;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CACzD,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallets/ecosystem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC"}
@@ -1,11 +1,16 @@
1
1
  import type { ThirdwebClient } from "../../../../client/client.js";
2
- import type { SocialAuthOption } from "../../../../wallets/types.js";
2
+ import type { AuthOption } from "../../../../wallets/types.js";
3
3
  import type { Ecosystem } from "../../web/types.js";
4
- export declare const getSocialAuthLoginPath: ({ authOption, client, ecosystem, mode, redirectUrl, }: {
5
- authOption: SocialAuthOption;
4
+ export declare const getLoginUrl: ({ authOption, client, ecosystem, mode, redirectUrl, }: {
5
+ authOption: AuthOption;
6
6
  client: ThirdwebClient;
7
7
  ecosystem?: Ecosystem;
8
8
  mode?: "popup" | "redirect" | "mobile";
9
9
  redirectUrl?: string;
10
10
  }) => string;
11
+ export declare const getLoginCallbackUrl: ({ authOption, client, ecosystem, }: {
12
+ authOption: AuthOption;
13
+ client: ThirdwebClient;
14
+ ecosystem?: Ecosystem;
15
+ }) => string;
11
16
  //# sourceMappingURL=getLoginPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLoginPath.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/getLoginPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,sBAAsB,0DAMhC;IACD,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAuBA,CAAC"}
1
+ {"version":3,"file":"getLoginPath.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/getLoginPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,WAAW,0DAMrB;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAuBA,CAAC;AAEF,eAAO,MAAM,mBAAmB,uCAI7B;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,KAAG,MASH,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { ThirdwebClient } from "../../../../client/client.js";
2
+ import type { Profile } from "./types.js";
3
+ /**
4
+ * @description
5
+ * Links a new account to the current one using an auth token.
6
+ * For the public-facing API, use `wallet.linkProfile` instead.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare function linkAccount({ client, tokenToLink, }: {
11
+ client: ThirdwebClient;
12
+ tokenToLink: string;
13
+ }): Promise<Profile[]>;
14
+ /**
15
+ * @description
16
+ * Gets the linked accounts for the current user.
17
+ * For the public-facing API, use `wallet.getProfiles` instead.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function getLinkedProfilesInternal({ client, }: {
22
+ client: ThirdwebClient;
23
+ }): Promise<Profile[]>;
24
+ //# sourceMappingURL=linkAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,EAChC,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAmCrB;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,GACP,EAAE;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAgCjD"}
@@ -0,0 +1,14 @@
1
+ import type { ThirdwebClient } from "../../../../client/client.js";
2
+ import type { InjectedSupportedWalletIds } from "../../../../wallets/__generated__/wallet-ids.js";
3
+ import type { Ecosystem } from "../../web/types.js";
4
+ import type { AuthStoredTokenWithCookieReturnType } from "./types.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare function siweAuthenticate(args: {
9
+ walletId: InjectedSupportedWalletIds;
10
+ chainId: number;
11
+ client: ThirdwebClient;
12
+ ecosystem?: Ecosystem;
13
+ }): Promise<AuthStoredTokenWithCookieReturnType>;
14
+ //# sourceMappingURL=siwe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siwe.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAElG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,QAAQ,EAAE,0BAA0B,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CA4C/C"}
@@ -1,7 +1,9 @@
1
1
  import type { AuthType } from "@passwordless-id/webauthn/dist/esm/types.js";
2
2
  import type { ThirdwebClient } from "../../../../client/client.js";
3
+ import type { Address } from "../../../../utils/address.js";
4
+ import type { InjectedSupportedWalletIds } from "../../../../wallets/__generated__/wallet-ids.js";
3
5
  import type { Account } from "../../../interfaces/wallet.js";
4
- import type { SocialAuthOption } from "../../../types.js";
6
+ import type { AuthOption, SocialAuthOption } from "../../../types.js";
5
7
  import type { Ecosystem } from "../../web/types.js";
6
8
  export type MultiStepAuthProviderType = {
7
9
  strategy: "email";
@@ -40,6 +42,10 @@ export type SingleStepAuthArgsType = {
40
42
  type: "sign-up" | "sign-in";
41
43
  passkeyName?: string;
42
44
  authenticatorType?: AuthType;
45
+ } | {
46
+ strategy: "siwe";
47
+ walletId: InjectedSupportedWalletIds;
48
+ chainId: number;
43
49
  };
44
50
  export type AuthArgsType = (MultiStepAuthArgsType | SingleStepAuthArgsType) & {
45
51
  client: ThirdwebClient;
@@ -66,6 +72,15 @@ export type OauthOption = {
66
72
  strategy: SocialAuthOption;
67
73
  redirectUrl: string;
68
74
  };
75
+ export type Profile = {
76
+ type: AuthOption;
77
+ details: {
78
+ id?: string;
79
+ email?: string;
80
+ phone?: string;
81
+ address?: Address;
82
+ };
83
+ };
69
84
  /**
70
85
  * @internal
71
86
  */
@@ -183,4 +198,4 @@ export type GetUser = {
183
198
  export type GetAuthenticatedUserParams = {
184
199
  client: ThirdwebClient;
185
200
  };
186
- //# sourceMappingURL=type.d.ts.map
201
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,0B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AM,CAAC;CACvB,GACD,eAAe,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import type { SocialAuthOption } from "../../../../wallets/types.js";
2
2
  import type { Account } from "../../../interfaces/wallet.js";
3
- import type { AuthArgsType, AuthLoginReturnType, AuthStoredTokenWithCookieReturnType, GetUser, LogoutReturnType, PreAuthArgsType, SendEmailOtpReturnType } from "../authentication/type.js";
3
+ import type { AuthLoginReturnType, AuthStoredTokenWithCookieReturnType, GetUser, LogoutReturnType, MultiStepAuthArgsType, PreAuthArgsType, SingleStepAuthArgsType } from "../authentication/types.js";
4
4
  export interface InAppConnector {
5
5
  getUser(): Promise<GetUser>;
6
6
  getAccount(): Promise<Account>;
7
- preAuthenticate(args: PreAuthArgsType): Promise<SendEmailOtpReturnType>;
7
+ preAuthenticate(args: PreAuthArgsType): Promise<void>;
8
8
  authenticateWithRedirect?(strategy: SocialAuthOption): void;
9
9
  loginWithAuthToken?(authResult: AuthStoredTokenWithCookieReturnType): Promise<AuthLoginReturnType>;
10
- authenticate(args: AuthArgsType): Promise<AuthLoginReturnType>;
10
+ authenticate(args: MultiStepAuthArgsType | SingleStepAuthArgsType): Promise<AuthStoredTokenWithCookieReturnType>;
11
+ connect(args: MultiStepAuthArgsType | SingleStepAuthArgsType): Promise<AuthLoginReturnType>;
11
12
  logout(): Promise<LogoutReturnType>;
12
13
  }
13
14
  //# sourceMappingURL=connector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/interfaces/connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mCAAmC,EACnC,O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AC,mBAAmB,CAAC,CAAC;IAEhC,YAAY,CACV,IAAI,EAAE,qBAAqB,GAAG,sBAAsB,GACnD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAEhD,OAAO,CACL,IAAI,EAAE,qBAAqB,GAAG,sBAAsB,GACnD,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC,MAAM,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ecosystem-core.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/ecosystem-core.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,EAAE,EAAE,iBAAiB,CAAC;IACtB,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACvE,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAiG5B"}
1
+ {"version":3,"file":"ecosystem-core.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/ecosystem-core.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,EAAE,EAAE,iBAAiB,CAAC;IACtB,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACvE,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAyG5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"in-app-core.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/in-app-core.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;GAEG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,cAAc,EACtB,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,EACrE,SAAS,CAAC,EAAE,SAAS,2BAStB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACvE,GAAG,MAAM,CAAC,OAAO,CAAC,CAsGlB"}
1
+ {"version":3,"file":"in-app-core.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/in-app-core.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAUpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;GAEG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,cAAc,EACtB,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,EACrE,SAAS,CAAC,EAAE,SAAS,2BAStB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACvE,GAAG,MAAM,CAAC,OAAO,CAAC,CA6JlB"}
@@ -0,0 +1,48 @@
1
+ import type { Wallet } from "../../../interfaces/wallet.js";
2
+ import type { MultiStepAuthArgsType, Profile, SingleStepAuthArgsType } from "../authentication/types.js";
3
+ /**
4
+ * @description
5
+ * Gets the linked profiles for the provided wallet.
6
+ * This method is only available for in-app wallets.
7
+ *
8
+ * @returns An array of accounts user profiles linked to the current wallet.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { inAppWallet } from "thirdweb/wallets";
13
+ *
14
+ * const wallet = inAppWallet();
15
+ * wallet.connect({ strategy: "google" });
16
+ *
17
+ * const profiles = await getProfiles(wallet);
18
+ *
19
+ * console.log(profiles[0].type);
20
+ * console.log(profiles[0].details.email);
21
+ * ```
22
+ */
23
+ export declare function getProfiles(wallet: Wallet<"inApp">): Promise<Profile[]>;
24
+ /**
25
+ * @description
26
+ * Connects a new profile (authentication method) to the current user.
27
+ * The connected profile can be any valid in-app wallet including email, phone, passkey, etc.
28
+ * The inputs mirror those used when authenticating normally, @see {@link Wallet.connect}
29
+ *
30
+ * **When a profile is linked to the account, that profile can then be used to sign into the account.**
31
+ *
32
+ * This method is only available for in-app wallets.
33
+ *
34
+ * @param wallet - The wallet to link an additional profile to.
35
+ * @param auth - The authentications options to add the new profile.
36
+ * @returns A promise that resolves to the currently linked profiles when the connection is successful.
37
+ * @throws If the connection fails, if the profile is already linked to the account, or if the profile is already associated with another account.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const wallet = inAppWallet();
42
+ *
43
+ * await wallet.connect({ strategy: "google" });
44
+ * const profiles = await linkProfile(wallet, { strategy: "discord" });
45
+ * ```
46
+ */
47
+ export declare function linkProfile(wallet: Wallet<"inApp">, auth: MultiStepAuthArgsType | SingleStepAuthArgsType): Promise<Profile[]>;
48
+ //# sourceMappingURL=profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EACV,qBAAqB,EACrB,OAAO,EACP,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,sBAQxD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EACvB,IAAI,EAAE,qBAAqB,GAAG,sBAAsB,GACnD,OAAO,CAAC,OAAO,EAAE,CAAC,CAUpB"}
@@ -2,7 +2,7 @@ import type { Chain } from "../../../../chains/types.js";
2
2
  import type { ThirdwebClient } from "../../../../client/client.js";
3
3
  import type { SmartWalletOptions } from "../../../smart/types.js";
4
4
  import type { AuthOption, SocialAuthOption } from "../../../types.js";
5
- import type { AuthStoredTokenWithCookieReturnType, MultiStepAuthArgsType, SingleStepAuthArgsType } from "../authentication/type.js";
5
+ import type { AuthStoredTokenWithCookieReturnType, MultiStepAuthArgsType, SingleStepAuthArgsType } from "../authentication/types.js";
6
6
  export type InAppWalletConnectionOptions = (MultiStepAuthArgsType | SingleStepAuthArgsType) & {
7
7
  client: ThirdwebClient;
8
8
  chain?: Chain;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,4BAA4B,GAAG,CACvC,qBAAqB,GACrB,sBAAsB,CACzB,GAAG;IACF,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,mCAAmC,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC;IACE,IAAI,CAAC,EAAE;QACL,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U,CAAC,EAAE,mCAAmC,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC;IACE,IAAI,CAAC,EAAE;QACL,OAAO,EAAE,eAAe,EAAE,CAAC;QAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;KAC7B,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type AuthArgsType, type AuthLoginReturnType, type GetAuthenticatedUserParams, type PreAuthArgsType } from "../../core/authentication/type.js";
1
+ import { type AuthArgsType, type AuthLoginReturnType, type GetAuthenticatedUserParams, type PreAuthArgsType } from "../../core/authentication/types.js";
2
2
  /**
3
3
  * Retrieves the authenticated user for the active in-app wallet.
4
4
  * @param options - The arguments for retrieving the authenticated user.
@@ -14,7 +14,7 @@ import { type AuthArgsType, type AuthLoginReturnType, type GetAuthenticatedUserP
14
14
  * ```
15
15
  * @wallet
16
16
  */
17
- export declare function getAuthenticatedUser(options: GetAuthenticatedUserParams): Promise<import("../../core/authentication/type.js").InitializedUser | undefined>;
17
+ export declare function getAuthenticatedUser(options: GetAuthenticatedUserParams): Promise<import("../../core/authentication/types.js").InitializedUser | undefined>;
18
18
  /**
19
19
  * Retrieves the authenticated user email for the active in-app wallet.
20
20
  * @param options - The arguments for retrieving the authenticated user.
@@ -60,7 +60,7 @@ export declare function getUserPhoneNumber(options: GetAuthenticatedUserParams):
60
60
  * ```
61
61
  * @wallet
62
62
  */
63
- export declare function preAuthenticate(args: PreAuthArgsType): Promise<import("../../core/authentication/type.js").SendEmailOtpReturnType>;
63
+ export declare function preAuthenticate(args: PreAuthArgsType): Promise<void>;
64
64
  /**
65
65
  * Authenticates the user based on the provided authentication arguments.
66
66
  * @param args - The authentication arguments.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/auth/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EAErB,MAAM,mCAAmC,CAAC;AAkB3C;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,0BAA0B,oFAWpC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,0BAA0B,+BAMrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,+BAM3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,eAAe,+EAG1D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAG9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/auth/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EAErB,MAAM,oCAAoC,CAAC;AAkB5C;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,0BAA0B,qFAWpC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,0BAA0B,+BAMrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,+BAM3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,eAAe,iBAG1D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAG9B"}
@@ -1,20 +1,14 @@
1
1
  import type { ThirdwebClient } from "../../../../client/client.js";
2
- import { type AuthStoredTokenWithCookieReturnType, type OauthOption, type SendEmailOtpReturnType } from "../../core/authentication/type.js";
3
- export declare function sendVerificationEmail(options: {
4
- email: string;
2
+ import type { InjectedSupportedWalletIds } from "../../../../wallets/__generated__/wallet-ids.js";
3
+ import type { AuthStoredTokenWithCookieReturnType, MultiStepAuthArgsType, OauthOption } from "../../core/authentication/types.js";
4
+ import type { Ecosystem } from "../../web/types.js";
5
+ export declare function otpLogin(options: MultiStepAuthArgsType & {
5
6
  client: ThirdwebClient;
6
- }): Promise<SendEmailOtpReturnType>;
7
- export declare function sendVerificationSms(options: {
8
- phoneNumber: string;
9
- client: ThirdwebClient;
10
- }): Promise<SendEmailOtpReturnType>;
11
- export declare function validateEmailOTP(options: {
12
- email: string;
13
- otp: string;
14
- client: ThirdwebClient;
15
- recoveryCode?: string;
7
+ ecosystem?: Ecosystem;
16
8
  }): Promise<AuthStoredTokenWithCookieReturnType>;
9
+ export declare function authenticate(auth: OauthOption, client: ThirdwebClient): Promise<AuthStoredTokenWithCookieReturnType>;
17
10
  export declare function socialLogin(auth: OauthOption, client: ThirdwebClient): Promise<AuthStoredTokenWithCookieReturnType>;
11
+ export declare function siweLogin(client: ThirdwebClient, walletId: InjectedSupportedWalletIds, chainId: number, ecosystem?: Ecosystem): Promise<AuthStoredTokenWithCookieReturnType>;
18
12
  export declare function customJwt(authOptions: {
19
13
  jwt: string;
20
14
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"native-auth.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/auth/native-auth.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAEL,KAAK,mCAAmC,EACxC,KAAK,WAAW,EAEhB,KAAK,sBAAsB,EAC5B,MAAM,mCAAmC,CAAC;AA4B3C,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA2ClC;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA2ClC;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CA+D/C;AAED,wBAAsB,WAAW,CAC/B,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CA6D9C;AAED,wBAAsB,SAAS,CAC7B,WAAW,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC9C,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CA0C9C;AAED,wBAAsB,YAAY,CAChC,WAAW,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EACvD,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CA+C9C;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,OAAO,CAAC,CAQnB"}
1
+ {"version":3,"file":"native-auth.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/auth/native-auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAGlG,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACrB,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAapD,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,qBAAqB,GAAG;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GACA,OAAO,CAAC,mCAAmC,CAAC,CAsB9C;AAED,wBAAsB,YAAY,CAChC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CAwC9C;AAED,wBAAsB,WAAW,CAC/B,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CAsB9C;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,0BAA0B,EACpC,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,SAAS,GACpB,OAAO,CAAC,mCAAmC,CAAC,CA2B9C;AAED,wBAAsB,SAAS,CAC7B,WAAW,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC9C,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CA0C9C;AAED,wBAAsB,YAAY,CAChC,WAAW,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EACvD,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,mCAAmC,CAAC,CA+C9C;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,OAAO,CAAC,CAQnB"}
@@ -1,6 +1,6 @@
1
1
  import type { CognitoUserSession } from "amazon-cognito-identity-js";
2
2
  import type { ThirdwebClient } from "../../../../../client/client.js";
3
- import type { UserDetailsApiType } from "../../../core/authentication/type.js";
3
+ import type { UserDetailsApiType } from "../../../core/authentication/types.js";
4
4
  import type { IsValidUserManagedEmailOTPResponse, VerifiedTokenResponse } from "../types.js";
5
5
  export declare function getSessionHeaders(): {
6
6
  "Content-Type": string;
@@ -1 +1 @@
1
- {"version":3,"file":"fetchers.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/api/fetchers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAa/E,OAAO,KAAK,EACV,kCAAkC,EAClC,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAOrB,wBAAgB,iBAAiB;;;EAQhC;AAED,eAAO,MAAM,cAAc,WAAkB,cAAc;;EAiB1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,WAC9B,cAAc,OACjB,MAAM,SACJ,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KACjC,OAAO,CAAC,QAAQ,CAoBlB,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAmB9B;AAED,wBAAsB,oCAAoC,CACxD,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE,MAAM,kCAuBjB;AAED,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAmB5E;AAED,wBAAsB,2BAA2B,CAAC,OAAO,EAAE;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB,kCAoBA;AACD,wBAAsB,0BAA0B,CAAC,OAAO,EAAE;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB,+CAoBA;AAED,wBAAsB,eAAe,CAAC,EACpC,MAAM,EACN,aAAa,EACb,4BAA4B,EAC5B,SAAS,GACV,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,4BAA4B,CAAC,EAAE;QAC7B,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,iBA0BA;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG;gBAkB1D,MAAM;mCACa,MAAM,EAAE;GAO5C;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,cAAc,gBAazD"}
1
+ {"version":3,"file":"fetchers.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/api/fetchers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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E;QAC7B,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,iBA0BA;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG;gBAkB1D,MAAM;mCACa,MAAM,EAAE;GAO5C;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,cAAc,gBAazD"}
@@ -1,3 +1,3 @@
1
- import type { LogoutReturnType } from "../../../core/authentication/type.js";
1
+ import type { LogoutReturnType } from "../../../core/authentication/types.js";
2
2
  export declare function logoutUser(clientId: string): Promise<LogoutReturnType>;
3
3
  //# sourceMappingURL=logout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/auth/logout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAO7E,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAM5E"}
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/auth/logout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAO9E,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAM5E"}
@@ -1,5 +1,5 @@
1
1
  import type { ThirdwebClient } from "../../../../../client/client.js";
2
- import { AuthProvider, type AuthStoredTokenWithCookieReturnType } from "../../../core/authentication/type.js";
2
+ import { AuthProvider, type AuthStoredTokenWithCookieReturnType } from "../../../core/authentication/types.js";
3
3
  export declare function preAuth(args: {
4
4
  authenticationMethod: AuthProvider;
5
5
  email?: string;
@@ -9,12 +9,12 @@ export declare function postAuth({ storedToken, client, recoveryCode, }: {
9
9
  storedToken: AuthStoredTokenWithCookieReturnType["storedToken"];
10
10
  client: ThirdwebClient;
11
11
  recoveryCode?: string;
12
- }): Promise<import("../../../core/authentication/type.js").StoredTokenType & {
12
+ }): Promise<import("../../../core/authentication/types.js").StoredTokenType & {
13
13
  cookieString: string;
14
14
  shouldStoreCookieString: boolean;
15
15
  isNewUser: boolean;
16
16
  }>;
17
- export declare function postAuthUserManaged(storedToken: AuthStoredTokenWithCookieReturnType["storedToken"], client: ThirdwebClient, password: string): Promise<import("../../../core/authentication/type.js").StoredTokenType & {
17
+ export declare function postAuthUserManaged(storedToken: AuthStoredTokenWithCookieReturnType["storedToken"], client: ThirdwebClient, password: string): Promise<import("../../../core/authentication/types.js").StoredTokenType & {
18
18
  cookieString: string;
19
19
  shouldStoreCookieString: boolean;
20
20
  isNewUser: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/auth/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,KAAK,mCAAmC,EAEzC,MAAM,sCAAsC,CAAC;AAc9C,wBAAsB,OAAO,CAAC,IAAI,EAAE;IAClC,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,iBAGA;AAED,wBAAsB,QAAQ,CAAC,EAC7B,WAAW,EACX,MAAM,EACN,YAAY,GACb,EAAE;IACD,WAAW,EAAE,mCAAmC,CAAC,aAAa,CAAC,CAAC;IAChE,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;GAoDA;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,mCAAmC,CAAC,aAAa,CAAC,EAC/D,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM;;;;GAwCjB"}
1
+ {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/auth/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,KAAK,mCAAmC,EAEzC,MAAM,uCAAuC,CAAC;AAc/C,wBAAsB,OAAO,CAAC,IAAI,EAAE;IAClC,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,iBAGA;AAED,wBAAsB,QAAQ,CAAC,EAC7B,WAAW,EACX,MAAM,EACN,YAAY,GACb,EAAE;IACD,WAAW,EAAE,mCAAmC,CAAC,aAAa,CAAC,CAAC;IAChE,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;GAoDA;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,mCAAmC,CAAC,aAAa,CAAC,EAC/D,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM;;;;GAwCjB"}
@@ -1,4 +1,4 @@
1
- import type { AuthArgsType } from "../../../core/authentication/type.js";
1
+ import type { AuthArgsType } from "../../../core/authentication/types.js";
2
2
  export declare function getConnectedEmail(): Promise<string | null>;
3
3
  export declare function saveConnectedEmail(email: string): Promise<void>;
4
4
  export declare function clearConnectedEmail(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/storage/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AA4BzE,wBAAsB,iBAAiB,2BAEtC;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,iBAErD;AAED,wBAAsB,mBAAmB,kBAExC;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CACvD,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,CACrC,CAIA;AAED,wBAAsB,yBAAyB,CAAC,YAAY,EAAE,MAAM,iBAKnE;AAED,wBAAsB,0BAA0B,kBAE/C;AAED,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,OAAO,CAAC,CAQlB;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,0BAExD;AAED,wBAAsB,kBAAkB,CACtC,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,wBAAsB,oBAAoB,CAAC,EACzC,QAAQ,EACR,MAAM,EACN,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,iBAeA;AAED,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAazD;AAED,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,iBAKhE;AAED,wBAAsB,cAAc,CAAC,EACnC,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,MAAM,CAAC,CAWlB;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM;;GAgBpD"}
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/storage/local.ts"],"names":[],"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,GAAG,OAAO,CAAC,MAAM,CAAC,CAWlB;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM;;GAgBpD"}
@@ -1,4 +1,4 @@
1
- import type { AuthProvider, RecoveryShareManagement } from "../../core/authentication/type.js";
1
+ import type { AuthProvider, RecoveryShareManagement } from "../../core/authentication/types.js";
2
2
  export type VerifiedTokenResponse = {
3
3
  verifiedToken: {
4
4
  jwtToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,uBAAuB,EACxB,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,YAAY,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE;YACX,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,YAAY,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,uBAAuB,EAAE,uBAAuB,CAAC;SAClD,CAAC;QACF,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/native/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,uBAAuB,EACxB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,YAAY,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE;YACX,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,YAAY,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,uBAAuB,EAAE,uBAAuB,CAAC;SAClD,CAAC;QACF,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;CAC9B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ThirdwebClient } from "../../../../../client/client.js";
2
2
  export declare function setUpNewUserWallet(recoveryCode: string, client: ThirdwebClient): Promise<{
3
3
  recoveryCode: string;
4
- } & import("../../../core/authentication/type.js").WalletAddressObjectType & {
4
+ } & import("../../../core/authentication/types.js").WalletAddressObjectType & {
5
5
  deviceShareStored: string;
6
6
  isIframeStorageEnabled: boolean;
7
7
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { ThirdwebClient } from "../../../../../client/client.js";
2
2
  import type { Account } from "../../../../interfaces/wallet.js";
3
- import type { SetUpWalletRpcReturnType } from "../../../core/authentication/type.js";
3
+ import type { SetUpWalletRpcReturnType } from "../../../core/authentication/types.js";
4
4
  /**
5
5
  * For users on a known device and logged in.
6
6
  * Will throw if called on a new device // user not logged in
@@ -1 +1 @@
1
- {"version":3,"file":"retrieval.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/wallet/retrieval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAMtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAUrF;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,oBAY5E;AAyID,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,mBAGA;AAED,wBAAsB,sBAAsB,CAAC,EAC3C,YAAY,EACZ,MAAM,GACP,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA4BpC"}
1
+ {"version":3,"file":"retrieval.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/native/helpers/wallet/retrieval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAMtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAUtF;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,oBAY5E;AAyID,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,mBAGA;AAED,wBAAsB,sBAAsB,CAAC,EAC3C,YAAY,EACZ,MAAM,GACP,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA4BpC"}
@@ -1,6 +1,6 @@
1
1
  import type { ThirdwebClient } from "../../../client/client.js";
2
2
  import type { Account } from "../../interfaces/wallet.js";
3
- import { type AuthArgsType, type AuthLoginReturnType, type GetUser, type LogoutReturnType, type PreAuthArgsType, type SendEmailOtpReturnType } from "../core/authentication/type.js";
3
+ import { type AuthArgsType, type AuthLoginReturnType, type AuthStoredTokenWithCookieReturnType, type GetUser, type LogoutReturnType, type MultiStepAuthProviderType } from "../core/authentication/types.js";
4
4
  import type { InAppConnector } from "../core/interfaces/connector.js";
5
5
  export type NativeConnectorOptions = {
6
6
  client: ThirdwebClient;
@@ -11,11 +11,13 @@ export declare class InAppNativeConnector implements InAppConnector {
11
11
  constructor(options: NativeConnectorOptions);
12
12
  getUser(): Promise<GetUser>;
13
13
  getAccount(): Promise<Account>;
14
- preAuthenticate(params: PreAuthArgsType): Promise<SendEmailOtpReturnType>;
15
- authenticate(params: AuthArgsType): Promise<AuthLoginReturnType>;
16
- private validateEmailOTP;
14
+ preAuthenticate(args: MultiStepAuthProviderType): Promise<void>;
15
+ authenticate(params: AuthArgsType): Promise<AuthStoredTokenWithCookieReturnType>;
16
+ connect(params: AuthArgsType): Promise<AuthLoginReturnType>;
17
+ private validateOtp;
17
18
  deleteActiveAccount(): Promise<boolean>;
18
19
  private socialLogin;
20
+ private siweLogin;
19
21
  private customJwt;
20
22
  private authEndpoint;
21
23
  logout(): Promise<LogoutReturnType>;
@@ -1 +1 @@
1
- {"version":3,"file":"native-connector.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/native-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAE5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAetE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAA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