@b3dotfun/sdk 0.1.69-alpha.8 → 0.1.69-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/cjs/anyspend/constants/rpc.d.ts +1 -1
  2. package/dist/cjs/anyspend/constants/rpc.js +1 -1
  3. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
  4. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  5. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.js +10 -2
  6. package/dist/cjs/anyspend/react/components/checkout/CheckoutSuccess.js +3 -3
  7. package/dist/cjs/anyspend/react/components/checkout/CryptoPayPanel.js +43 -23
  8. package/dist/cjs/anyspend/react/components/common/CryptoPaymentMethod.d.ts +8 -0
  9. package/dist/cjs/anyspend/react/components/common/CryptoPaymentMethod.js +10 -9
  10. package/dist/cjs/anyspend/react/components/common/InsufficientDepositPayment.js +2 -2
  11. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +2 -2
  12. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +2 -2
  13. package/dist/cjs/anyspend/react/components/common/TransferCryptoDetails.js +2 -2
  14. package/dist/cjs/anyspend/utils/chain.js +8 -7
  15. package/dist/cjs/app.shared.js +9 -7
  16. package/dist/cjs/global-account/better-auth-client.d.ts +1883 -0
  17. package/dist/cjs/global-account/better-auth-client.js +17 -0
  18. package/dist/cjs/global-account/bsmnt.d.ts +0 -1
  19. package/dist/cjs/global-account/bsmnt.js +0 -6
  20. package/dist/cjs/global-account/react/components/B3DynamicModal.js +3 -0
  21. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +4 -1
  22. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.js +2 -1
  23. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +8 -1
  24. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +9 -12
  25. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +6 -9
  26. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthProvider.d.ts +16 -0
  27. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthProvider.js +120 -0
  28. package/dist/cjs/global-account/react/components/B3Provider/LocalSDKProvider.d.ts +3 -1
  29. package/dist/cjs/global-account/react/components/B3Provider/LocalSDKProvider.js +3 -1
  30. package/dist/cjs/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.d.ts +3 -1
  31. package/dist/cjs/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.js +4 -2
  32. package/dist/cjs/global-account/react/components/LinkAccount/LinkedAccountItem.js +2 -1
  33. package/dist/cjs/global-account/react/components/ManageAccount/ProfileSection.js +15 -6
  34. package/dist/cjs/global-account/react/components/ManageAccount/SessionDurationContent.d.ts +5 -0
  35. package/dist/cjs/global-account/react/components/ManageAccount/SessionDurationContent.js +57 -0
  36. package/dist/cjs/global-account/react/components/ManageAccount/SettingsContent.js +12 -29
  37. package/dist/cjs/global-account/react/components/ManageAccount/SettingsProfileCard.js +2 -2
  38. package/dist/cjs/global-account/react/components/Send/Send.js +5 -2
  39. package/dist/cjs/global-account/react/components/SignInWithB3/BetterAuthResetPassword.d.ts +21 -0
  40. package/dist/cjs/global-account/react/components/SignInWithB3/BetterAuthResetPassword.js +67 -0
  41. package/dist/cjs/global-account/react/components/SignInWithB3/BetterAuthSignIn.d.ts +34 -0
  42. package/dist/cjs/global-account/react/components/SignInWithB3/BetterAuthSignIn.js +163 -0
  43. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -4
  44. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.d.ts +6 -0
  45. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.js +138 -0
  46. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +5 -1
  47. package/dist/cjs/global-account/react/components/SingleUserSearchSelector/SingleUserSearchSelector.js +2 -1
  48. package/dist/cjs/global-account/react/components/custom/Button.d.ts +1 -1
  49. package/dist/cjs/global-account/react/components/index.d.ts +3 -0
  50. package/dist/cjs/global-account/react/components/index.js +7 -3
  51. package/dist/cjs/global-account/react/components/ui/button.d.ts +1 -1
  52. package/dist/cjs/global-account/react/hooks/index.d.ts +1 -0
  53. package/dist/cjs/global-account/react/hooks/index.js +5 -2
  54. package/dist/cjs/global-account/react/hooks/useAuth.js +24 -11
  55. package/dist/cjs/global-account/react/hooks/useAuthentication.js +21 -8
  56. package/dist/cjs/global-account/react/hooks/useBetterAuth.d.ts +973 -0
  57. package/dist/cjs/global-account/react/hooks/useBetterAuth.js +157 -0
  58. package/dist/cjs/global-account/react/hooks/useFirstEOA.d.ts +8 -8
  59. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +10 -1
  60. package/dist/cjs/global-account/react/utils/createWagmiConfig.d.ts +4 -13
  61. package/dist/cjs/global-account/react/utils/createWagmiConfig.js +5 -7
  62. package/dist/cjs/global-account/react/utils/index.d.ts +0 -1
  63. package/dist/cjs/global-account/react/utils/index.js +0 -1
  64. package/dist/cjs/global-account/react/utils/profileDisplay.js +17 -18
  65. package/dist/cjs/shared/constants/chains/b3Chain.d.ts +7 -7
  66. package/dist/cjs/shared/constants/chains/b3Chain.js +4 -4
  67. package/dist/cjs/shared/constants/chains/b3Viem.d.ts +6 -0
  68. package/dist/cjs/shared/constants/chains/b3Viem.js +19 -0
  69. package/dist/cjs/shared/constants/chains/supported.d.ts +1 -1
  70. package/dist/cjs/shared/generated/chain-networks.json +2 -2
  71. package/dist/cjs/shared/utils/chains.d.ts +1 -1
  72. package/dist/cjs/shared/utils/chains.js +2 -2
  73. package/dist/cjs/shared/utils/session-duration.d.ts +15 -0
  74. package/dist/cjs/shared/utils/session-duration.js +69 -0
  75. package/dist/cjs/wallet/react/components/ConnectWallet.d.ts +11 -0
  76. package/dist/cjs/wallet/react/components/ConnectWallet.js +467 -0
  77. package/dist/cjs/wallet/react/components/WalletProvider.d.ts +35 -0
  78. package/dist/cjs/wallet/react/components/WalletProvider.js +20 -0
  79. package/dist/cjs/wallet/react/hooks/useWalletDisconnect.d.ts +13 -0
  80. package/dist/cjs/wallet/react/hooks/useWalletDisconnect.js +22 -0
  81. package/dist/cjs/wallet/react/hooks/useWalletState.d.ts +31 -0
  82. package/dist/cjs/wallet/react/hooks/useWalletState.js +63 -0
  83. package/dist/cjs/wallet/react/index.d.ts +5 -0
  84. package/dist/cjs/wallet/react/index.js +16 -0
  85. package/dist/cjs/wallet/utils/createWalletConfig.d.ts +21 -0
  86. package/dist/cjs/wallet/utils/createWalletConfig.js +24 -0
  87. package/dist/esm/anyspend/constants/rpc.d.ts +1 -1
  88. package/dist/esm/anyspend/constants/rpc.js +1 -1
  89. package/dist/esm/anyspend/react/components/AnySpendNFT.js +2 -2
  90. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  91. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.js +10 -2
  92. package/dist/esm/anyspend/react/components/checkout/CheckoutSuccess.js +3 -3
  93. package/dist/esm/anyspend/react/components/checkout/CryptoPayPanel.js +44 -24
  94. package/dist/esm/anyspend/react/components/common/CryptoPaymentMethod.d.ts +8 -0
  95. package/dist/esm/anyspend/react/components/common/CryptoPaymentMethod.js +9 -8
  96. package/dist/esm/anyspend/react/components/common/InsufficientDepositPayment.js +2 -2
  97. package/dist/esm/anyspend/react/components/common/OrderDetails.js +2 -2
  98. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +2 -2
  99. package/dist/esm/anyspend/react/components/common/TransferCryptoDetails.js +2 -2
  100. package/dist/esm/anyspend/utils/chain.js +10 -9
  101. package/dist/esm/app.shared.js +9 -7
  102. package/dist/esm/global-account/better-auth-client.d.ts +1883 -0
  103. package/dist/esm/global-account/better-auth-client.js +13 -0
  104. package/dist/esm/global-account/bsmnt.d.ts +0 -1
  105. package/dist/esm/global-account/bsmnt.js +0 -5
  106. package/dist/esm/global-account/react/components/B3DynamicModal.js +3 -0
  107. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +4 -1
  108. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.js +2 -1
  109. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +8 -1
  110. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +4 -7
  111. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +2 -5
  112. package/dist/esm/global-account/react/components/B3Provider/BetterAuthProvider.d.ts +16 -0
  113. package/dist/esm/global-account/react/components/B3Provider/BetterAuthProvider.js +115 -0
  114. package/dist/esm/global-account/react/components/B3Provider/LocalSDKProvider.d.ts +3 -1
  115. package/dist/esm/global-account/react/components/B3Provider/LocalSDKProvider.js +3 -1
  116. package/dist/esm/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.d.ts +3 -1
  117. package/dist/esm/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.js +4 -2
  118. package/dist/esm/global-account/react/components/LinkAccount/LinkedAccountItem.js +2 -1
  119. package/dist/esm/global-account/react/components/ManageAccount/ProfileSection.js +13 -7
  120. package/dist/esm/global-account/react/components/ManageAccount/SessionDurationContent.d.ts +5 -0
  121. package/dist/esm/global-account/react/components/ManageAccount/SessionDurationContent.js +52 -0
  122. package/dist/esm/global-account/react/components/ManageAccount/SettingsContent.js +12 -29
  123. package/dist/esm/global-account/react/components/ManageAccount/SettingsProfileCard.js +2 -2
  124. package/dist/esm/global-account/react/components/Send/Send.js +5 -2
  125. package/dist/esm/global-account/react/components/SignInWithB3/BetterAuthResetPassword.d.ts +21 -0
  126. package/dist/esm/global-account/react/components/SignInWithB3/BetterAuthResetPassword.js +64 -0
  127. package/dist/esm/global-account/react/components/SignInWithB3/BetterAuthSignIn.d.ts +34 -0
  128. package/dist/esm/global-account/react/components/SignInWithB3/BetterAuthSignIn.js +160 -0
  129. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -4
  130. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.d.ts +6 -0
  131. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.js +135 -0
  132. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +5 -1
  133. package/dist/esm/global-account/react/components/SingleUserSearchSelector/SingleUserSearchSelector.js +2 -1
  134. package/dist/esm/global-account/react/components/custom/Button.d.ts +1 -1
  135. package/dist/esm/global-account/react/components/index.d.ts +3 -0
  136. package/dist/esm/global-account/react/components/index.js +2 -0
  137. package/dist/esm/global-account/react/components/ui/button.d.ts +1 -1
  138. package/dist/esm/global-account/react/hooks/index.d.ts +1 -0
  139. package/dist/esm/global-account/react/hooks/index.js +1 -0
  140. package/dist/esm/global-account/react/hooks/useAuth.js +24 -11
  141. package/dist/esm/global-account/react/hooks/useAuthentication.js +21 -8
  142. package/dist/esm/global-account/react/hooks/useBetterAuth.d.ts +973 -0
  143. package/dist/esm/global-account/react/hooks/useBetterAuth.js +149 -0
  144. package/dist/esm/global-account/react/hooks/useFirstEOA.d.ts +8 -8
  145. package/dist/esm/global-account/react/stores/useModalStore.d.ts +10 -1
  146. package/dist/esm/global-account/react/utils/createWagmiConfig.d.ts +4 -13
  147. package/dist/esm/global-account/react/utils/createWagmiConfig.js +5 -7
  148. package/dist/esm/global-account/react/utils/index.d.ts +0 -1
  149. package/dist/esm/global-account/react/utils/index.js +0 -1
  150. package/dist/esm/global-account/react/utils/profileDisplay.js +17 -18
  151. package/dist/esm/shared/constants/chains/b3Chain.d.ts +7 -7
  152. package/dist/esm/shared/constants/chains/b3Chain.js +4 -4
  153. package/dist/esm/shared/constants/chains/b3Viem.d.ts +6 -0
  154. package/dist/esm/shared/constants/chains/b3Viem.js +16 -0
  155. package/dist/esm/shared/constants/chains/supported.d.ts +1 -1
  156. package/dist/esm/shared/generated/chain-networks.json +2 -2
  157. package/dist/esm/shared/utils/chains.d.ts +1 -1
  158. package/dist/esm/shared/utils/chains.js +2 -2
  159. package/dist/esm/shared/utils/session-duration.d.ts +15 -0
  160. package/dist/esm/shared/utils/session-duration.js +64 -0
  161. package/dist/esm/wallet/react/components/ConnectWallet.d.ts +11 -0
  162. package/dist/esm/wallet/react/components/ConnectWallet.js +431 -0
  163. package/dist/esm/wallet/react/components/WalletProvider.d.ts +35 -0
  164. package/dist/esm/wallet/react/components/WalletProvider.js +17 -0
  165. package/dist/esm/wallet/react/hooks/useWalletDisconnect.d.ts +13 -0
  166. package/dist/esm/wallet/react/hooks/useWalletDisconnect.js +19 -0
  167. package/dist/esm/wallet/react/hooks/useWalletState.d.ts +31 -0
  168. package/dist/esm/wallet/react/hooks/useWalletState.js +60 -0
  169. package/dist/esm/wallet/react/index.d.ts +5 -0
  170. package/dist/esm/wallet/react/index.js +8 -0
  171. package/dist/esm/wallet/utils/createWalletConfig.d.ts +21 -0
  172. package/dist/esm/wallet/utils/createWalletConfig.js +21 -0
  173. package/dist/styles/index.css +1 -1
  174. package/dist/types/anyspend/constants/rpc.d.ts +1 -1
  175. package/dist/types/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  176. package/dist/types/anyspend/react/components/common/CryptoPaymentMethod.d.ts +8 -0
  177. package/dist/types/global-account/better-auth-client.d.ts +1883 -0
  178. package/dist/types/global-account/bsmnt.d.ts +0 -1
  179. package/dist/types/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +4 -1
  180. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +8 -1
  181. package/dist/types/global-account/react/components/B3Provider/BetterAuthProvider.d.ts +16 -0
  182. package/dist/types/global-account/react/components/B3Provider/LocalSDKProvider.d.ts +3 -1
  183. package/dist/types/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.d.ts +3 -1
  184. package/dist/types/global-account/react/components/ManageAccount/SessionDurationContent.d.ts +5 -0
  185. package/dist/types/global-account/react/components/SignInWithB3/BetterAuthResetPassword.d.ts +21 -0
  186. package/dist/types/global-account/react/components/SignInWithB3/BetterAuthSignIn.d.ts +34 -0
  187. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.d.ts +6 -0
  188. package/dist/types/global-account/react/components/custom/Button.d.ts +1 -1
  189. package/dist/types/global-account/react/components/index.d.ts +3 -0
  190. package/dist/types/global-account/react/components/ui/button.d.ts +1 -1
  191. package/dist/types/global-account/react/hooks/index.d.ts +1 -0
  192. package/dist/types/global-account/react/hooks/useBetterAuth.d.ts +973 -0
  193. package/dist/types/global-account/react/hooks/useFirstEOA.d.ts +8 -8
  194. package/dist/types/global-account/react/stores/useModalStore.d.ts +10 -1
  195. package/dist/types/global-account/react/utils/createWagmiConfig.d.ts +4 -13
  196. package/dist/types/global-account/react/utils/index.d.ts +0 -1
  197. package/dist/types/shared/constants/chains/b3Chain.d.ts +7 -7
  198. package/dist/types/shared/constants/chains/b3Viem.d.ts +6 -0
  199. package/dist/types/shared/constants/chains/supported.d.ts +1 -1
  200. package/dist/types/shared/utils/chains.d.ts +1 -1
  201. package/dist/types/shared/utils/session-duration.d.ts +15 -0
  202. package/dist/types/wallet/react/components/ConnectWallet.d.ts +11 -0
  203. package/dist/types/wallet/react/components/WalletProvider.d.ts +35 -0
  204. package/dist/types/wallet/react/hooks/useWalletDisconnect.d.ts +13 -0
  205. package/dist/types/wallet/react/hooks/useWalletState.d.ts +31 -0
  206. package/dist/types/wallet/react/index.d.ts +5 -0
  207. package/dist/types/wallet/utils/createWalletConfig.d.ts +21 -0
  208. package/package.json +14 -6
  209. package/src/anyspend/constants/rpc.ts +2 -1
  210. package/src/anyspend/react/components/AnySpendNFT.tsx +2 -2
  211. package/src/anyspend/react/components/checkout/AnySpendCheckout.tsx +15 -1
  212. package/src/anyspend/react/components/checkout/CheckoutSuccess.tsx +3 -3
  213. package/src/anyspend/react/components/checkout/CryptoPayPanel.tsx +45 -27
  214. package/src/anyspend/react/components/common/CryptoPaymentMethod.tsx +10 -8
  215. package/src/anyspend/react/components/common/InsufficientDepositPayment.tsx +2 -2
  216. package/src/anyspend/react/components/common/OrderDetails.tsx +2 -2
  217. package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +4 -4
  218. package/src/anyspend/react/components/common/TransferCryptoDetails.tsx +2 -2
  219. package/src/anyspend/utils/chain.ts +9 -9
  220. package/src/app.shared.ts +9 -8
  221. package/src/global-account/better-auth-client.ts +17 -0
  222. package/src/global-account/bsmnt.ts +0 -6
  223. package/src/global-account/react/components/B3DynamicModal.tsx +3 -0
  224. package/src/global-account/react/components/B3Provider/B3ConfigProvider.tsx +6 -0
  225. package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +14 -20
  226. package/src/global-account/react/components/B3Provider/B3Provider.tsx +52 -40
  227. package/src/global-account/react/components/B3Provider/BetterAuthProvider.tsx +127 -0
  228. package/src/global-account/react/components/B3Provider/LocalSDKProvider.tsx +5 -0
  229. package/src/global-account/react/components/IPFSMediaRenderer/IPFSMediaRenderer.tsx +17 -10
  230. package/src/global-account/react/components/LinkAccount/LinkedAccountItem.tsx +2 -1
  231. package/src/global-account/react/components/ManageAccount/ProfileSection.tsx +29 -11
  232. package/src/global-account/react/components/ManageAccount/SessionDurationContent.tsx +107 -0
  233. package/src/global-account/react/components/ManageAccount/SettingsContent.tsx +28 -30
  234. package/src/global-account/react/components/ManageAccount/SettingsProfileCard.tsx +2 -2
  235. package/src/global-account/react/components/Send/Send.tsx +8 -5
  236. package/src/global-account/react/components/SignInWithB3/BetterAuthResetPassword.tsx +146 -0
  237. package/src/global-account/react/components/SignInWithB3/BetterAuthSignIn.tsx +426 -0
  238. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +13 -4
  239. package/src/global-account/react/components/SignInWithB3/steps/LoginStepBetterAuth.tsx +308 -0
  240. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +5 -1
  241. package/src/global-account/react/components/SingleUserSearchSelector/SingleUserSearchSelector.tsx +2 -1
  242. package/src/global-account/react/components/index.ts +3 -0
  243. package/src/global-account/react/hooks/index.ts +1 -0
  244. package/src/global-account/react/hooks/useAuth.ts +24 -11
  245. package/src/global-account/react/hooks/useAuthentication.ts +21 -8
  246. package/src/global-account/react/hooks/useBetterAuth.ts +191 -0
  247. package/src/global-account/react/stores/useModalStore.ts +11 -0
  248. package/src/global-account/react/utils/createWagmiConfig.tsx +6 -7
  249. package/src/global-account/react/utils/index.ts +0 -1
  250. package/src/global-account/react/utils/profileDisplay.ts +21 -19
  251. package/src/shared/constants/chains/b3Chain.ts +5 -5
  252. package/src/shared/constants/chains/b3Viem.ts +18 -0
  253. package/src/shared/generated/chain-networks.json +2 -2
  254. package/src/shared/utils/chains.ts +3 -2
  255. package/src/shared/utils/session-duration.ts +64 -0
  256. package/src/wallet/__tests__/createWalletConfig.test.ts +39 -0
  257. package/src/wallet/react/components/ConnectWallet.tsx +665 -0
  258. package/src/wallet/react/components/WalletProvider.tsx +64 -0
  259. package/src/wallet/react/hooks/useWalletDisconnect.ts +22 -0
  260. package/src/wallet/react/hooks/useWalletState.ts +93 -0
  261. package/src/wallet/react/index.ts +10 -0
  262. package/src/wallet/utils/createWalletConfig.ts +39 -0
  263. package/dist/cjs/global-account/react/components/AvatarCreator/AvatarCreator.d.ts +0 -6
  264. package/dist/cjs/global-account/react/components/AvatarCreator/AvatarCreator.js +0 -54
  265. package/dist/cjs/global-account/react/components/ProfileAvatar.d.ts +0 -0
  266. package/dist/cjs/global-account/react/components/ProfileAvatar.js +0 -127
  267. package/dist/cjs/global-account/react/hooks/useRPMToken.d.ts +0 -7
  268. package/dist/cjs/global-account/react/hooks/useRPMToken.js +0 -11
  269. package/dist/cjs/global-account/react/utils/updateAvatar.d.ts +0 -4
  270. package/dist/cjs/global-account/react/utils/updateAvatar.js +0 -54
  271. package/dist/esm/global-account/react/components/AvatarCreator/AvatarCreator.d.ts +0 -6
  272. package/dist/esm/global-account/react/components/AvatarCreator/AvatarCreator.js +0 -51
  273. package/dist/esm/global-account/react/components/ProfileAvatar.d.ts +0 -0
  274. package/dist/esm/global-account/react/components/ProfileAvatar.js +0 -127
  275. package/dist/esm/global-account/react/hooks/useRPMToken.d.ts +0 -7
  276. package/dist/esm/global-account/react/hooks/useRPMToken.js +0 -8
  277. package/dist/esm/global-account/react/utils/updateAvatar.d.ts +0 -4
  278. package/dist/esm/global-account/react/utils/updateAvatar.js +0 -18
  279. package/dist/types/global-account/react/components/AvatarCreator/AvatarCreator.d.ts +0 -6
  280. package/dist/types/global-account/react/components/ProfileAvatar.d.ts +0 -0
  281. package/dist/types/global-account/react/hooks/useRPMToken.d.ts +0 -7
  282. package/dist/types/global-account/react/utils/updateAvatar.d.ts +0 -4
  283. package/src/global-account/react/components/AvatarCreator/AvatarCreator.tsx +0 -90
  284. package/src/global-account/react/components/ProfileAvatar.tsx +0 -138
  285. package/src/global-account/react/hooks/useRPMToken.ts +0 -17
  286. package/src/global-account/react/utils/updateAvatar.ts +0 -21
@@ -0,0 +1,1883 @@
1
+ export type B3BetterAuthClient = ReturnType<typeof createB3BetterAuthClient>;
2
+ export declare function createB3BetterAuthClient(baseURL?: string): {
3
+ signIn: {
4
+ social: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
5
+ provider: (string & {}) | "apple" | "google" | "github" | "discord" | "line" | "facebook" | "twitch" | "tiktok" | "zoom" | "linear" | "huggingface" | "atlassian" | "cognito" | "figma" | "microsoft" | "slack" | "spotify" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
6
+ callbackURL?: string | undefined;
7
+ newUserCallbackURL?: string | undefined;
8
+ errorCallbackURL?: string | undefined;
9
+ disableRedirect?: boolean | undefined;
10
+ idToken?: {
11
+ token: string;
12
+ nonce?: string | undefined;
13
+ accessToken?: string | undefined;
14
+ refreshToken?: string | undefined;
15
+ expiresAt?: number | undefined;
16
+ user?: {
17
+ name?: {
18
+ firstName?: string | undefined;
19
+ lastName?: string | undefined;
20
+ } | undefined;
21
+ email?: string | undefined;
22
+ } | undefined;
23
+ } | undefined;
24
+ scopes?: string[] | undefined;
25
+ requestSignUp?: boolean | undefined;
26
+ loginHint?: string | undefined;
27
+ additionalData?: Record<string, any> | undefined;
28
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
29
+ provider: (string & {}) | "apple" | "google" | "github" | "discord" | "line" | "facebook" | "twitch" | "tiktok" | "zoom" | "linear" | "huggingface" | "atlassian" | "cognito" | "figma" | "microsoft" | "slack" | "spotify" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
30
+ callbackURL?: string | undefined;
31
+ newUserCallbackURL?: string | undefined;
32
+ errorCallbackURL?: string | undefined;
33
+ disableRedirect?: boolean | undefined;
34
+ idToken?: {
35
+ token: string;
36
+ nonce?: string | undefined;
37
+ accessToken?: string | undefined;
38
+ refreshToken?: string | undefined;
39
+ expiresAt?: number | undefined;
40
+ user?: {
41
+ name?: {
42
+ firstName?: string | undefined;
43
+ lastName?: string | undefined;
44
+ } | undefined;
45
+ email?: string | undefined;
46
+ } | undefined;
47
+ } | undefined;
48
+ scopes?: string[] | undefined;
49
+ requestSignUp?: boolean | undefined;
50
+ loginHint?: string | undefined;
51
+ additionalData?: Record<string, any> | undefined;
52
+ } & {
53
+ fetchOptions?: FetchOptions | undefined;
54
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
55
+ redirect: boolean;
56
+ url: string;
57
+ } | (Omit<{
58
+ redirect: boolean;
59
+ token: string;
60
+ url: undefined;
61
+ user: {
62
+ id: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ email: string;
66
+ emailVerified: boolean;
67
+ name: string;
68
+ image?: string | null | undefined | undefined;
69
+ };
70
+ }, "user"> & {
71
+ user: import("better-auth/client").StripEmptyObjects<{
72
+ id: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
75
+ email: string;
76
+ emailVerified: boolean;
77
+ name: string;
78
+ image?: string | null | undefined;
79
+ }>;
80
+ }), {
81
+ code?: string | undefined;
82
+ message?: string | undefined;
83
+ }, FetchOptions["throw"] extends true ? true : false>>;
84
+ };
85
+ } & {
86
+ signOut: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
87
+ query?: Record<string, any> | undefined;
88
+ fetchOptions?: FetchOptions | undefined;
89
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
90
+ success: boolean;
91
+ }, {
92
+ code?: string | undefined;
93
+ message?: string | undefined;
94
+ }, FetchOptions["throw"] extends true ? true : false>>;
95
+ } & {
96
+ signUp: {
97
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
98
+ name: string;
99
+ email: string;
100
+ password: string;
101
+ image?: string | undefined;
102
+ callbackURL?: string | undefined;
103
+ rememberMe?: boolean | undefined;
104
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
105
+ email: string;
106
+ name: string;
107
+ password: string;
108
+ image?: string | undefined;
109
+ callbackURL?: string | undefined;
110
+ fetchOptions?: FetchOptions | undefined;
111
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<(Omit<{
112
+ token: null;
113
+ user: {
114
+ id: string;
115
+ createdAt: Date;
116
+ updatedAt: Date;
117
+ email: string;
118
+ emailVerified: boolean;
119
+ name: string;
120
+ image?: string | null | undefined | undefined;
121
+ };
122
+ }, "user"> & {
123
+ user: import("better-auth/client").StripEmptyObjects<{
124
+ id: string;
125
+ createdAt: Date;
126
+ updatedAt: Date;
127
+ email: string;
128
+ emailVerified: boolean;
129
+ name: string;
130
+ image?: string | null | undefined;
131
+ }>;
132
+ }) | (Omit<{
133
+ token: string;
134
+ user: {
135
+ id: string;
136
+ createdAt: Date;
137
+ updatedAt: Date;
138
+ email: string;
139
+ emailVerified: boolean;
140
+ name: string;
141
+ image?: string | null | undefined | undefined;
142
+ };
143
+ }, "user"> & {
144
+ user: import("better-auth/client").StripEmptyObjects<{
145
+ id: string;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ email: string;
149
+ emailVerified: boolean;
150
+ name: string;
151
+ image?: string | null | undefined;
152
+ }>;
153
+ }), {
154
+ code?: string | undefined;
155
+ message?: string | undefined;
156
+ }, FetchOptions["throw"] extends true ? true : false>>;
157
+ };
158
+ } & {
159
+ signIn: {
160
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
161
+ email: string;
162
+ password: string;
163
+ callbackURL?: string | undefined;
164
+ rememberMe?: boolean | undefined;
165
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
166
+ email: string;
167
+ password: string;
168
+ callbackURL?: string | undefined;
169
+ rememberMe?: boolean | undefined;
170
+ } & {
171
+ fetchOptions?: FetchOptions | undefined;
172
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<Omit<{
173
+ redirect: boolean;
174
+ token: string;
175
+ url?: string | undefined;
176
+ user: {
177
+ id: string;
178
+ createdAt: Date;
179
+ updatedAt: Date;
180
+ email: string;
181
+ emailVerified: boolean;
182
+ name: string;
183
+ image?: string | null | undefined | undefined;
184
+ };
185
+ }, "user"> & {
186
+ user: import("better-auth/client").StripEmptyObjects<{
187
+ id: string;
188
+ createdAt: Date;
189
+ updatedAt: Date;
190
+ email: string;
191
+ emailVerified: boolean;
192
+ name: string;
193
+ image?: string | null | undefined;
194
+ }>;
195
+ }, {
196
+ code?: string | undefined;
197
+ message?: string | undefined;
198
+ }, FetchOptions["throw"] extends true ? true : false>>;
199
+ };
200
+ } & {
201
+ resetPassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
202
+ newPassword: string;
203
+ token?: string | undefined;
204
+ }> & Record<string, any>, Partial<{
205
+ token?: string | undefined;
206
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
207
+ newPassword: string;
208
+ token?: string | undefined;
209
+ } & {
210
+ fetchOptions?: FetchOptions | undefined;
211
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
212
+ status: boolean;
213
+ }, {
214
+ code?: string | undefined;
215
+ message?: string | undefined;
216
+ }, FetchOptions["throw"] extends true ? true : false>>;
217
+ } & {
218
+ verifyEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
219
+ token: string;
220
+ callbackURL?: string | undefined;
221
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
222
+ query: {
223
+ token: string;
224
+ callbackURL?: string | undefined;
225
+ };
226
+ fetchOptions?: FetchOptions | undefined;
227
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<void | {
228
+ status: boolean;
229
+ }>, {
230
+ code?: string | undefined;
231
+ message?: string | undefined;
232
+ }, FetchOptions["throw"] extends true ? true : false>>;
233
+ } & {
234
+ sendVerificationEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
235
+ email: string;
236
+ callbackURL?: string | undefined;
237
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
238
+ email: string;
239
+ callbackURL?: string | undefined;
240
+ } & {
241
+ fetchOptions?: FetchOptions | undefined;
242
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
243
+ status: boolean;
244
+ }, {
245
+ code?: string | undefined;
246
+ message?: string | undefined;
247
+ }, FetchOptions["throw"] extends true ? true : false>>;
248
+ } & {
249
+ changeEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
250
+ newEmail: string;
251
+ callbackURL?: string | undefined;
252
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
253
+ newEmail: string;
254
+ callbackURL?: string | undefined;
255
+ } & {
256
+ fetchOptions?: FetchOptions | undefined;
257
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
258
+ status: boolean;
259
+ }, {
260
+ code?: string | undefined;
261
+ message?: string | undefined;
262
+ }, FetchOptions["throw"] extends true ? true : false>>;
263
+ } & {
264
+ changePassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
265
+ newPassword: string;
266
+ currentPassword: string;
267
+ revokeOtherSessions?: boolean | undefined;
268
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
269
+ newPassword: string;
270
+ currentPassword: string;
271
+ revokeOtherSessions?: boolean | undefined;
272
+ } & {
273
+ fetchOptions?: FetchOptions | undefined;
274
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<Omit<{
275
+ token: string | null;
276
+ user: {
277
+ id: string;
278
+ createdAt: Date;
279
+ updatedAt: Date;
280
+ email: string;
281
+ emailVerified: boolean;
282
+ name: string;
283
+ image?: string | null | undefined;
284
+ } & Record<string, any> & {
285
+ id: string;
286
+ createdAt: Date;
287
+ updatedAt: Date;
288
+ email: string;
289
+ emailVerified: boolean;
290
+ name: string;
291
+ image?: string | null | undefined;
292
+ };
293
+ }, "user"> & {
294
+ user: import("better-auth/client").StripEmptyObjects<{
295
+ id: string;
296
+ createdAt: Date;
297
+ updatedAt: Date;
298
+ email: string;
299
+ emailVerified: boolean;
300
+ name: string;
301
+ image?: string | null | undefined;
302
+ }>;
303
+ }, {
304
+ code?: string | undefined;
305
+ message?: string | undefined;
306
+ }, FetchOptions["throw"] extends true ? true : false>>;
307
+ } & {
308
+ updateSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<Partial<{}> & {
309
+ fetchOptions?: FetchOptions | undefined;
310
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
311
+ session: {
312
+ id: string;
313
+ createdAt: Date;
314
+ updatedAt: Date;
315
+ userId: string;
316
+ expiresAt: Date;
317
+ token: string;
318
+ ipAddress?: string | null | undefined;
319
+ userAgent?: string | null | undefined;
320
+ };
321
+ }, {
322
+ code?: string | undefined;
323
+ message?: string | undefined;
324
+ }, FetchOptions["throw"] extends true ? true : false>>;
325
+ } & {
326
+ updateUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}> & {
327
+ name?: string | undefined;
328
+ image?: string | undefined | null;
329
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<import("better-auth/client").InferUserUpdateCtx<{
330
+ baseURL: string;
331
+ basePath: string;
332
+ fetchOptions: {
333
+ credentials: "include";
334
+ };
335
+ }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
336
+ status: boolean;
337
+ }, {
338
+ code?: string | undefined;
339
+ message?: string | undefined;
340
+ }, FetchOptions["throw"] extends true ? true : false>>;
341
+ } & {
342
+ deleteUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
343
+ callbackURL?: string | undefined;
344
+ password?: string | undefined;
345
+ token?: string | undefined;
346
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
347
+ callbackURL?: string | undefined;
348
+ password?: string | undefined;
349
+ token?: string | undefined;
350
+ } & {
351
+ fetchOptions?: FetchOptions | undefined;
352
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
353
+ success: boolean;
354
+ message: string;
355
+ }, {
356
+ code?: string | undefined;
357
+ message?: string | undefined;
358
+ }, FetchOptions["throw"] extends true ? true : false>>;
359
+ } & {
360
+ requestPasswordReset: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
361
+ email: string;
362
+ redirectTo?: string | undefined;
363
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
364
+ email: string;
365
+ redirectTo?: string | undefined;
366
+ } & {
367
+ fetchOptions?: FetchOptions | undefined;
368
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
369
+ status: boolean;
370
+ message: string;
371
+ }, {
372
+ code?: string | undefined;
373
+ message?: string | undefined;
374
+ }, FetchOptions["throw"] extends true ? true : false>>;
375
+ } & {
376
+ resetPassword: {
377
+ ":token": <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
378
+ callbackURL: string;
379
+ }> & Record<string, any>, {
380
+ token: string;
381
+ }>>(data_0: import("better-auth/client").Prettify<{
382
+ query: {
383
+ callbackURL: string;
384
+ };
385
+ fetchOptions?: FetchOptions | undefined;
386
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<never, {
387
+ code?: string | undefined;
388
+ message?: string | undefined;
389
+ }, FetchOptions["throw"] extends true ? true : false>>;
390
+ };
391
+ } & {
392
+ listSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
393
+ query?: Record<string, any> | undefined;
394
+ fetchOptions?: FetchOptions | undefined;
395
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth/client").Prettify<{
396
+ id: string;
397
+ createdAt: Date;
398
+ updatedAt: Date;
399
+ userId: string;
400
+ expiresAt: Date;
401
+ token: string;
402
+ ipAddress?: string | null | undefined | undefined;
403
+ userAgent?: string | null | undefined | undefined;
404
+ }>[], {
405
+ code?: string | undefined;
406
+ message?: string | undefined;
407
+ }, FetchOptions["throw"] extends true ? true : false>>;
408
+ } & {
409
+ revokeSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
410
+ token: string;
411
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
412
+ token: string;
413
+ } & {
414
+ fetchOptions?: FetchOptions | undefined;
415
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
416
+ status: boolean;
417
+ }, {
418
+ code?: string | undefined;
419
+ message?: string | undefined;
420
+ }, FetchOptions["throw"] extends true ? true : false>>;
421
+ } & {
422
+ revokeSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
423
+ query?: Record<string, any> | undefined;
424
+ fetchOptions?: FetchOptions | undefined;
425
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
426
+ status: boolean;
427
+ }, {
428
+ code?: string | undefined;
429
+ message?: string | undefined;
430
+ }, FetchOptions["throw"] extends true ? true : false>>;
431
+ } & {
432
+ revokeOtherSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
433
+ query?: Record<string, any> | undefined;
434
+ fetchOptions?: FetchOptions | undefined;
435
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
436
+ status: boolean;
437
+ }, {
438
+ code?: string | undefined;
439
+ message?: string | undefined;
440
+ }, FetchOptions["throw"] extends true ? true : false>>;
441
+ } & {
442
+ linkSocial: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
443
+ provider: unknown;
444
+ callbackURL?: string | undefined;
445
+ idToken?: {
446
+ token: string;
447
+ nonce?: string | undefined;
448
+ accessToken?: string | undefined;
449
+ refreshToken?: string | undefined;
450
+ scopes?: string[] | undefined;
451
+ } | undefined;
452
+ requestSignUp?: boolean | undefined;
453
+ scopes?: string[] | undefined;
454
+ errorCallbackURL?: string | undefined;
455
+ disableRedirect?: boolean | undefined;
456
+ additionalData?: Record<string, any> | undefined;
457
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
458
+ provider: unknown;
459
+ callbackURL?: string | undefined;
460
+ idToken?: {
461
+ token: string;
462
+ nonce?: string | undefined;
463
+ accessToken?: string | undefined;
464
+ refreshToken?: string | undefined;
465
+ scopes?: string[] | undefined;
466
+ } | undefined;
467
+ requestSignUp?: boolean | undefined;
468
+ scopes?: string[] | undefined;
469
+ errorCallbackURL?: string | undefined;
470
+ disableRedirect?: boolean | undefined;
471
+ additionalData?: Record<string, any> | undefined;
472
+ } & {
473
+ fetchOptions?: FetchOptions | undefined;
474
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
475
+ url: string;
476
+ redirect: boolean;
477
+ }, {
478
+ code?: string | undefined;
479
+ message?: string | undefined;
480
+ }, FetchOptions["throw"] extends true ? true : false>>;
481
+ } & {
482
+ listAccounts: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
483
+ query?: Record<string, any> | undefined;
484
+ fetchOptions?: FetchOptions | undefined;
485
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
486
+ scopes: string[];
487
+ id: string;
488
+ createdAt: Date;
489
+ updatedAt: Date;
490
+ userId: string;
491
+ providerId: string;
492
+ accountId: string;
493
+ }[], {
494
+ code?: string | undefined;
495
+ message?: string | undefined;
496
+ }, FetchOptions["throw"] extends true ? true : false>>;
497
+ } & {
498
+ deleteUser: {
499
+ callback: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
500
+ token: string;
501
+ callbackURL?: string | undefined;
502
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
503
+ query: {
504
+ token: string;
505
+ callbackURL?: string | undefined;
506
+ };
507
+ fetchOptions?: FetchOptions | undefined;
508
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
509
+ success: boolean;
510
+ message: string;
511
+ }, {
512
+ code?: string | undefined;
513
+ message?: string | undefined;
514
+ }, FetchOptions["throw"] extends true ? true : false>>;
515
+ };
516
+ } & {
517
+ unlinkAccount: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
518
+ providerId: string;
519
+ accountId?: string | undefined;
520
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
521
+ providerId: string;
522
+ accountId?: string | undefined;
523
+ } & {
524
+ fetchOptions?: FetchOptions | undefined;
525
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
526
+ status: boolean;
527
+ }, {
528
+ code?: string | undefined;
529
+ message?: string | undefined;
530
+ }, FetchOptions["throw"] extends true ? true : false>>;
531
+ } & {
532
+ refreshToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
533
+ providerId: string;
534
+ accountId?: string | undefined;
535
+ userId?: string | undefined;
536
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
537
+ providerId: string;
538
+ accountId?: string | undefined;
539
+ userId?: string | undefined;
540
+ } & {
541
+ fetchOptions?: FetchOptions | undefined;
542
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
543
+ accessToken: string | undefined;
544
+ refreshToken: string;
545
+ accessTokenExpiresAt: Date | undefined;
546
+ refreshTokenExpiresAt: Date | null | undefined;
547
+ scope: string | null | undefined;
548
+ idToken: string | null | undefined;
549
+ providerId: string;
550
+ accountId: string;
551
+ }, {
552
+ code?: string | undefined;
553
+ message?: string | undefined;
554
+ }, FetchOptions["throw"] extends true ? true : false>>;
555
+ } & {
556
+ getAccessToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
557
+ providerId: string;
558
+ accountId?: string | undefined;
559
+ userId?: string | undefined;
560
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
561
+ providerId: string;
562
+ accountId?: string | undefined;
563
+ userId?: string | undefined;
564
+ } & {
565
+ fetchOptions?: FetchOptions | undefined;
566
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
567
+ accessToken: string;
568
+ accessTokenExpiresAt: Date | undefined;
569
+ scopes: string[];
570
+ idToken: string | undefined;
571
+ }, {
572
+ code?: string | undefined;
573
+ message?: string | undefined;
574
+ }, FetchOptions["throw"] extends true ? true : false>>;
575
+ } & {
576
+ accountInfo: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
577
+ accountId?: string | undefined;
578
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
579
+ query?: {
580
+ accountId?: string | undefined;
581
+ } | undefined;
582
+ fetchOptions?: FetchOptions | undefined;
583
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
584
+ user: import("@better-auth/core/oauth2").OAuth2UserInfo;
585
+ data: Record<string, any>;
586
+ }, {
587
+ code?: string | undefined;
588
+ message?: string | undefined;
589
+ }, FetchOptions["throw"] extends true ? true : false>>;
590
+ } & {
591
+ getSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
592
+ disableCookieCache?: unknown;
593
+ disableRefresh?: unknown;
594
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
595
+ query?: {
596
+ disableCookieCache?: unknown;
597
+ disableRefresh?: unknown;
598
+ } | undefined;
599
+ fetchOptions?: FetchOptions | undefined;
600
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
601
+ user: import("better-auth/client").StripEmptyObjects<{
602
+ id: string;
603
+ createdAt: Date;
604
+ updatedAt: Date;
605
+ email: string;
606
+ emailVerified: boolean;
607
+ name: string;
608
+ image?: string | null | undefined;
609
+ }>;
610
+ session: import("better-auth/client").StripEmptyObjects<{
611
+ id: string;
612
+ createdAt: Date;
613
+ updatedAt: Date;
614
+ userId: string;
615
+ expiresAt: Date;
616
+ token: string;
617
+ ipAddress?: string | null | undefined;
618
+ userAgent?: string | null | undefined;
619
+ }>;
620
+ } | null, {
621
+ code?: string | undefined;
622
+ message?: string | undefined;
623
+ }, FetchOptions["throw"] extends true ? true : false>>;
624
+ } & {
625
+ useSession: import("nanostores/atom").Atom<{
626
+ data: {
627
+ user: import("better-auth/client").StripEmptyObjects<{
628
+ id: string;
629
+ createdAt: Date;
630
+ updatedAt: Date;
631
+ email: string;
632
+ emailVerified: boolean;
633
+ name: string;
634
+ image?: string | null | undefined;
635
+ }>;
636
+ session: import("better-auth/client").StripEmptyObjects<{
637
+ id: string;
638
+ createdAt: Date;
639
+ updatedAt: Date;
640
+ userId: string;
641
+ expiresAt: Date;
642
+ token: string;
643
+ ipAddress?: string | null | undefined;
644
+ userAgent?: string | null | undefined;
645
+ }>;
646
+ } | null;
647
+ error: import("@better-fetch/fetch").BetterFetchError | null;
648
+ isPending: boolean;
649
+ isRefetching: boolean;
650
+ refetch: (queryParams?: {
651
+ query?: import("better-auth/client").SessionQueryParams;
652
+ } | undefined) => Promise<void>;
653
+ }>;
654
+ $fetch: import("@better-fetch/fetch").BetterFetch<{
655
+ plugins: (import("@better-fetch/fetch").BetterFetchPlugin<Record<string, any>> | {
656
+ id: string;
657
+ name: string;
658
+ hooks: {
659
+ onSuccess(context: import("@better-fetch/fetch").SuccessContext<any>): void;
660
+ };
661
+ } | {
662
+ id: string;
663
+ name: string;
664
+ hooks: {
665
+ onSuccess: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
666
+ onError: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
667
+ onRequest: (<T extends Record<string, any>>(context: import("@better-fetch/fetch").RequestContext<T>) => Promise<import("@better-fetch/fetch").RequestContext | void> | import("@better-fetch/fetch").RequestContext | void) | undefined;
668
+ onResponse: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
669
+ };
670
+ })[];
671
+ cache?: RequestCache | undefined;
672
+ priority?: RequestPriority | undefined;
673
+ credentials?: RequestCredentials;
674
+ headers?: (HeadersInit & (HeadersInit | {
675
+ accept: "application/json" | "text/plain" | "application/octet-stream";
676
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
677
+ authorization: "Bearer" | "Basic";
678
+ })) | undefined;
679
+ integrity?: string | undefined;
680
+ keepalive?: boolean | undefined;
681
+ method: string;
682
+ mode?: RequestMode | undefined;
683
+ redirect?: RequestRedirect | undefined;
684
+ referrer?: string | undefined;
685
+ referrerPolicy?: ReferrerPolicy | undefined;
686
+ signal?: (AbortSignal | null) | undefined;
687
+ window?: null | undefined;
688
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
689
+ hookOptions?: {
690
+ cloneResponse?: boolean;
691
+ } | undefined;
692
+ timeout?: number | undefined;
693
+ customFetchImpl: import("@better-fetch/fetch").FetchEsque;
694
+ baseURL: string;
695
+ throw?: boolean | undefined;
696
+ auth?: ({
697
+ type: "Bearer";
698
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
699
+ } | {
700
+ type: "Basic";
701
+ username: string | (() => string | undefined) | undefined;
702
+ password: string | (() => string | undefined) | undefined;
703
+ } | {
704
+ type: "Custom";
705
+ prefix: string | (() => string | undefined) | undefined;
706
+ value: string | (() => string | undefined) | undefined;
707
+ }) | undefined;
708
+ body?: any;
709
+ query?: any;
710
+ params?: any;
711
+ duplex?: "full" | "half" | undefined;
712
+ jsonParser: (text: string) => Promise<any> | any;
713
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
714
+ retryAttempt?: number | undefined;
715
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
716
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
717
+ disableValidation?: boolean | undefined;
718
+ disableSignal?: boolean | undefined;
719
+ }, unknown, unknown, {}>;
720
+ $store: {
721
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
722
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
723
+ atoms: Record<string, import("nanostores/atom").WritableAtom<any>>;
724
+ };
725
+ $Infer: {
726
+ Session: {
727
+ user: import("better-auth/client").StripEmptyObjects<{
728
+ id: string;
729
+ createdAt: Date;
730
+ updatedAt: Date;
731
+ email: string;
732
+ emailVerified: boolean;
733
+ name: string;
734
+ image?: string | null | undefined;
735
+ }>;
736
+ session: import("better-auth/client").StripEmptyObjects<{
737
+ id: string;
738
+ createdAt: Date;
739
+ updatedAt: Date;
740
+ userId: string;
741
+ expiresAt: Date;
742
+ token: string;
743
+ ipAddress?: string | null | undefined;
744
+ userAgent?: string | null | undefined;
745
+ }>;
746
+ };
747
+ };
748
+ $ERROR_CODES: {
749
+ USER_NOT_FOUND: {
750
+ readonly code: "USER_NOT_FOUND";
751
+ message: string;
752
+ };
753
+ FAILED_TO_CREATE_USER: {
754
+ readonly code: "FAILED_TO_CREATE_USER";
755
+ message: string;
756
+ };
757
+ FAILED_TO_CREATE_SESSION: {
758
+ readonly code: "FAILED_TO_CREATE_SESSION";
759
+ message: string;
760
+ };
761
+ FAILED_TO_UPDATE_USER: {
762
+ readonly code: "FAILED_TO_UPDATE_USER";
763
+ message: string;
764
+ };
765
+ FAILED_TO_GET_SESSION: {
766
+ readonly code: "FAILED_TO_GET_SESSION";
767
+ message: string;
768
+ };
769
+ INVALID_PASSWORD: {
770
+ readonly code: "INVALID_PASSWORD";
771
+ message: string;
772
+ };
773
+ INVALID_EMAIL: {
774
+ readonly code: "INVALID_EMAIL";
775
+ message: string;
776
+ };
777
+ INVALID_EMAIL_OR_PASSWORD: {
778
+ readonly code: "INVALID_EMAIL_OR_PASSWORD";
779
+ message: string;
780
+ };
781
+ INVALID_USER: {
782
+ readonly code: "INVALID_USER";
783
+ message: string;
784
+ };
785
+ SOCIAL_ACCOUNT_ALREADY_LINKED: {
786
+ readonly code: "SOCIAL_ACCOUNT_ALREADY_LINKED";
787
+ message: string;
788
+ };
789
+ PROVIDER_NOT_FOUND: {
790
+ readonly code: "PROVIDER_NOT_FOUND";
791
+ message: string;
792
+ };
793
+ INVALID_TOKEN: {
794
+ readonly code: "INVALID_TOKEN";
795
+ message: string;
796
+ };
797
+ TOKEN_EXPIRED: {
798
+ readonly code: "TOKEN_EXPIRED";
799
+ message: string;
800
+ };
801
+ ID_TOKEN_NOT_SUPPORTED: {
802
+ readonly code: "ID_TOKEN_NOT_SUPPORTED";
803
+ message: string;
804
+ };
805
+ FAILED_TO_GET_USER_INFO: {
806
+ readonly code: "FAILED_TO_GET_USER_INFO";
807
+ message: string;
808
+ };
809
+ USER_EMAIL_NOT_FOUND: {
810
+ readonly code: "USER_EMAIL_NOT_FOUND";
811
+ message: string;
812
+ };
813
+ EMAIL_NOT_VERIFIED: {
814
+ readonly code: "EMAIL_NOT_VERIFIED";
815
+ message: string;
816
+ };
817
+ PASSWORD_TOO_SHORT: {
818
+ readonly code: "PASSWORD_TOO_SHORT";
819
+ message: string;
820
+ };
821
+ PASSWORD_TOO_LONG: {
822
+ readonly code: "PASSWORD_TOO_LONG";
823
+ message: string;
824
+ };
825
+ USER_ALREADY_EXISTS: {
826
+ readonly code: "USER_ALREADY_EXISTS";
827
+ message: string;
828
+ };
829
+ USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: {
830
+ readonly code: "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL";
831
+ message: string;
832
+ };
833
+ EMAIL_CAN_NOT_BE_UPDATED: {
834
+ readonly code: "EMAIL_CAN_NOT_BE_UPDATED";
835
+ message: string;
836
+ };
837
+ CREDENTIAL_ACCOUNT_NOT_FOUND: {
838
+ readonly code: "CREDENTIAL_ACCOUNT_NOT_FOUND";
839
+ message: string;
840
+ };
841
+ ACCOUNT_NOT_FOUND: {
842
+ readonly code: "ACCOUNT_NOT_FOUND";
843
+ message: string;
844
+ };
845
+ SESSION_EXPIRED: {
846
+ readonly code: "SESSION_EXPIRED";
847
+ message: string;
848
+ };
849
+ FAILED_TO_UNLINK_LAST_ACCOUNT: {
850
+ readonly code: "FAILED_TO_UNLINK_LAST_ACCOUNT";
851
+ message: string;
852
+ };
853
+ USER_ALREADY_HAS_PASSWORD: {
854
+ readonly code: "USER_ALREADY_HAS_PASSWORD";
855
+ message: string;
856
+ };
857
+ CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: {
858
+ readonly code: "CROSS_SITE_NAVIGATION_LOGIN_BLOCKED";
859
+ message: string;
860
+ };
861
+ VERIFICATION_EMAIL_NOT_ENABLED: {
862
+ readonly code: "VERIFICATION_EMAIL_NOT_ENABLED";
863
+ message: string;
864
+ };
865
+ EMAIL_ALREADY_VERIFIED: {
866
+ readonly code: "EMAIL_ALREADY_VERIFIED";
867
+ message: string;
868
+ };
869
+ EMAIL_MISMATCH: {
870
+ readonly code: "EMAIL_MISMATCH";
871
+ message: string;
872
+ };
873
+ SESSION_NOT_FRESH: {
874
+ readonly code: "SESSION_NOT_FRESH";
875
+ message: string;
876
+ };
877
+ LINKED_ACCOUNT_ALREADY_EXISTS: {
878
+ readonly code: "LINKED_ACCOUNT_ALREADY_EXISTS";
879
+ message: string;
880
+ };
881
+ INVALID_ORIGIN: {
882
+ readonly code: "INVALID_ORIGIN";
883
+ message: string;
884
+ };
885
+ INVALID_CALLBACK_URL: {
886
+ readonly code: "INVALID_CALLBACK_URL";
887
+ message: string;
888
+ };
889
+ INVALID_REDIRECT_URL: {
890
+ readonly code: "INVALID_REDIRECT_URL";
891
+ message: string;
892
+ };
893
+ INVALID_ERROR_CALLBACK_URL: {
894
+ readonly code: "INVALID_ERROR_CALLBACK_URL";
895
+ message: string;
896
+ };
897
+ INVALID_NEW_USER_CALLBACK_URL: {
898
+ readonly code: "INVALID_NEW_USER_CALLBACK_URL";
899
+ message: string;
900
+ };
901
+ MISSING_OR_NULL_ORIGIN: {
902
+ readonly code: "MISSING_OR_NULL_ORIGIN";
903
+ message: string;
904
+ };
905
+ CALLBACK_URL_REQUIRED: {
906
+ readonly code: "CALLBACK_URL_REQUIRED";
907
+ message: string;
908
+ };
909
+ FAILED_TO_CREATE_VERIFICATION: {
910
+ readonly code: "FAILED_TO_CREATE_VERIFICATION";
911
+ message: string;
912
+ };
913
+ FIELD_NOT_ALLOWED: {
914
+ readonly code: "FIELD_NOT_ALLOWED";
915
+ message: string;
916
+ };
917
+ ASYNC_VALIDATION_NOT_SUPPORTED: {
918
+ readonly code: "ASYNC_VALIDATION_NOT_SUPPORTED";
919
+ message: string;
920
+ };
921
+ VALIDATION_ERROR: {
922
+ readonly code: "VALIDATION_ERROR";
923
+ message: string;
924
+ };
925
+ MISSING_FIELD: {
926
+ readonly code: "MISSING_FIELD";
927
+ message: string;
928
+ };
929
+ METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: {
930
+ readonly code: "METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED";
931
+ message: string;
932
+ };
933
+ BODY_MUST_BE_AN_OBJECT: {
934
+ readonly code: "BODY_MUST_BE_AN_OBJECT";
935
+ message: string;
936
+ };
937
+ PASSWORD_ALREADY_SET: {
938
+ readonly code: "PASSWORD_ALREADY_SET";
939
+ message: string;
940
+ };
941
+ };
942
+ };
943
+ export declare const betterAuthClient: {
944
+ signIn: {
945
+ social: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
946
+ provider: (string & {}) | "apple" | "google" | "github" | "discord" | "line" | "facebook" | "twitch" | "tiktok" | "zoom" | "linear" | "huggingface" | "atlassian" | "cognito" | "figma" | "microsoft" | "slack" | "spotify" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
947
+ callbackURL?: string | undefined;
948
+ newUserCallbackURL?: string | undefined;
949
+ errorCallbackURL?: string | undefined;
950
+ disableRedirect?: boolean | undefined;
951
+ idToken?: {
952
+ token: string;
953
+ nonce?: string | undefined;
954
+ accessToken?: string | undefined;
955
+ refreshToken?: string | undefined;
956
+ expiresAt?: number | undefined;
957
+ user?: {
958
+ name?: {
959
+ firstName?: string | undefined;
960
+ lastName?: string | undefined;
961
+ } | undefined;
962
+ email?: string | undefined;
963
+ } | undefined;
964
+ } | undefined;
965
+ scopes?: string[] | undefined;
966
+ requestSignUp?: boolean | undefined;
967
+ loginHint?: string | undefined;
968
+ additionalData?: Record<string, any> | undefined;
969
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
970
+ provider: (string & {}) | "apple" | "google" | "github" | "discord" | "line" | "facebook" | "twitch" | "tiktok" | "zoom" | "linear" | "huggingface" | "atlassian" | "cognito" | "figma" | "microsoft" | "slack" | "spotify" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
971
+ callbackURL?: string | undefined;
972
+ newUserCallbackURL?: string | undefined;
973
+ errorCallbackURL?: string | undefined;
974
+ disableRedirect?: boolean | undefined;
975
+ idToken?: {
976
+ token: string;
977
+ nonce?: string | undefined;
978
+ accessToken?: string | undefined;
979
+ refreshToken?: string | undefined;
980
+ expiresAt?: number | undefined;
981
+ user?: {
982
+ name?: {
983
+ firstName?: string | undefined;
984
+ lastName?: string | undefined;
985
+ } | undefined;
986
+ email?: string | undefined;
987
+ } | undefined;
988
+ } | undefined;
989
+ scopes?: string[] | undefined;
990
+ requestSignUp?: boolean | undefined;
991
+ loginHint?: string | undefined;
992
+ additionalData?: Record<string, any> | undefined;
993
+ } & {
994
+ fetchOptions?: FetchOptions | undefined;
995
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
996
+ redirect: boolean;
997
+ url: string;
998
+ } | (Omit<{
999
+ redirect: boolean;
1000
+ token: string;
1001
+ url: undefined;
1002
+ user: {
1003
+ id: string;
1004
+ createdAt: Date;
1005
+ updatedAt: Date;
1006
+ email: string;
1007
+ emailVerified: boolean;
1008
+ name: string;
1009
+ image?: string | null | undefined | undefined;
1010
+ };
1011
+ }, "user"> & {
1012
+ user: import("better-auth/client").StripEmptyObjects<{
1013
+ id: string;
1014
+ createdAt: Date;
1015
+ updatedAt: Date;
1016
+ email: string;
1017
+ emailVerified: boolean;
1018
+ name: string;
1019
+ image?: string | null | undefined;
1020
+ }>;
1021
+ }), {
1022
+ code?: string | undefined;
1023
+ message?: string | undefined;
1024
+ }, FetchOptions["throw"] extends true ? true : false>>;
1025
+ };
1026
+ } & {
1027
+ signOut: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1028
+ query?: Record<string, any> | undefined;
1029
+ fetchOptions?: FetchOptions | undefined;
1030
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1031
+ success: boolean;
1032
+ }, {
1033
+ code?: string | undefined;
1034
+ message?: string | undefined;
1035
+ }, FetchOptions["throw"] extends true ? true : false>>;
1036
+ } & {
1037
+ signUp: {
1038
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1039
+ name: string;
1040
+ email: string;
1041
+ password: string;
1042
+ image?: string | undefined;
1043
+ callbackURL?: string | undefined;
1044
+ rememberMe?: boolean | undefined;
1045
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1046
+ email: string;
1047
+ name: string;
1048
+ password: string;
1049
+ image?: string | undefined;
1050
+ callbackURL?: string | undefined;
1051
+ fetchOptions?: FetchOptions | undefined;
1052
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<(Omit<{
1053
+ token: null;
1054
+ user: {
1055
+ id: string;
1056
+ createdAt: Date;
1057
+ updatedAt: Date;
1058
+ email: string;
1059
+ emailVerified: boolean;
1060
+ name: string;
1061
+ image?: string | null | undefined | undefined;
1062
+ };
1063
+ }, "user"> & {
1064
+ user: import("better-auth/client").StripEmptyObjects<{
1065
+ id: string;
1066
+ createdAt: Date;
1067
+ updatedAt: Date;
1068
+ email: string;
1069
+ emailVerified: boolean;
1070
+ name: string;
1071
+ image?: string | null | undefined;
1072
+ }>;
1073
+ }) | (Omit<{
1074
+ token: string;
1075
+ user: {
1076
+ id: string;
1077
+ createdAt: Date;
1078
+ updatedAt: Date;
1079
+ email: string;
1080
+ emailVerified: boolean;
1081
+ name: string;
1082
+ image?: string | null | undefined | undefined;
1083
+ };
1084
+ }, "user"> & {
1085
+ user: import("better-auth/client").StripEmptyObjects<{
1086
+ id: string;
1087
+ createdAt: Date;
1088
+ updatedAt: Date;
1089
+ email: string;
1090
+ emailVerified: boolean;
1091
+ name: string;
1092
+ image?: string | null | undefined;
1093
+ }>;
1094
+ }), {
1095
+ code?: string | undefined;
1096
+ message?: string | undefined;
1097
+ }, FetchOptions["throw"] extends true ? true : false>>;
1098
+ };
1099
+ } & {
1100
+ signIn: {
1101
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1102
+ email: string;
1103
+ password: string;
1104
+ callbackURL?: string | undefined;
1105
+ rememberMe?: boolean | undefined;
1106
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1107
+ email: string;
1108
+ password: string;
1109
+ callbackURL?: string | undefined;
1110
+ rememberMe?: boolean | undefined;
1111
+ } & {
1112
+ fetchOptions?: FetchOptions | undefined;
1113
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<Omit<{
1114
+ redirect: boolean;
1115
+ token: string;
1116
+ url?: string | undefined;
1117
+ user: {
1118
+ id: string;
1119
+ createdAt: Date;
1120
+ updatedAt: Date;
1121
+ email: string;
1122
+ emailVerified: boolean;
1123
+ name: string;
1124
+ image?: string | null | undefined | undefined;
1125
+ };
1126
+ }, "user"> & {
1127
+ user: import("better-auth/client").StripEmptyObjects<{
1128
+ id: string;
1129
+ createdAt: Date;
1130
+ updatedAt: Date;
1131
+ email: string;
1132
+ emailVerified: boolean;
1133
+ name: string;
1134
+ image?: string | null | undefined;
1135
+ }>;
1136
+ }, {
1137
+ code?: string | undefined;
1138
+ message?: string | undefined;
1139
+ }, FetchOptions["throw"] extends true ? true : false>>;
1140
+ };
1141
+ } & {
1142
+ resetPassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1143
+ newPassword: string;
1144
+ token?: string | undefined;
1145
+ }> & Record<string, any>, Partial<{
1146
+ token?: string | undefined;
1147
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1148
+ newPassword: string;
1149
+ token?: string | undefined;
1150
+ } & {
1151
+ fetchOptions?: FetchOptions | undefined;
1152
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1153
+ status: boolean;
1154
+ }, {
1155
+ code?: string | undefined;
1156
+ message?: string | undefined;
1157
+ }, FetchOptions["throw"] extends true ? true : false>>;
1158
+ } & {
1159
+ verifyEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
1160
+ token: string;
1161
+ callbackURL?: string | undefined;
1162
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1163
+ query: {
1164
+ token: string;
1165
+ callbackURL?: string | undefined;
1166
+ };
1167
+ fetchOptions?: FetchOptions | undefined;
1168
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<void | {
1169
+ status: boolean;
1170
+ }>, {
1171
+ code?: string | undefined;
1172
+ message?: string | undefined;
1173
+ }, FetchOptions["throw"] extends true ? true : false>>;
1174
+ } & {
1175
+ sendVerificationEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1176
+ email: string;
1177
+ callbackURL?: string | undefined;
1178
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1179
+ email: string;
1180
+ callbackURL?: string | undefined;
1181
+ } & {
1182
+ fetchOptions?: FetchOptions | undefined;
1183
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1184
+ status: boolean;
1185
+ }, {
1186
+ code?: string | undefined;
1187
+ message?: string | undefined;
1188
+ }, FetchOptions["throw"] extends true ? true : false>>;
1189
+ } & {
1190
+ changeEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1191
+ newEmail: string;
1192
+ callbackURL?: string | undefined;
1193
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1194
+ newEmail: string;
1195
+ callbackURL?: string | undefined;
1196
+ } & {
1197
+ fetchOptions?: FetchOptions | undefined;
1198
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1199
+ status: boolean;
1200
+ }, {
1201
+ code?: string | undefined;
1202
+ message?: string | undefined;
1203
+ }, FetchOptions["throw"] extends true ? true : false>>;
1204
+ } & {
1205
+ changePassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1206
+ newPassword: string;
1207
+ currentPassword: string;
1208
+ revokeOtherSessions?: boolean | undefined;
1209
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1210
+ newPassword: string;
1211
+ currentPassword: string;
1212
+ revokeOtherSessions?: boolean | undefined;
1213
+ } & {
1214
+ fetchOptions?: FetchOptions | undefined;
1215
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<Omit<{
1216
+ token: string | null;
1217
+ user: {
1218
+ id: string;
1219
+ createdAt: Date;
1220
+ updatedAt: Date;
1221
+ email: string;
1222
+ emailVerified: boolean;
1223
+ name: string;
1224
+ image?: string | null | undefined;
1225
+ } & Record<string, any> & {
1226
+ id: string;
1227
+ createdAt: Date;
1228
+ updatedAt: Date;
1229
+ email: string;
1230
+ emailVerified: boolean;
1231
+ name: string;
1232
+ image?: string | null | undefined;
1233
+ };
1234
+ }, "user"> & {
1235
+ user: import("better-auth/client").StripEmptyObjects<{
1236
+ id: string;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ email: string;
1240
+ emailVerified: boolean;
1241
+ name: string;
1242
+ image?: string | null | undefined;
1243
+ }>;
1244
+ }, {
1245
+ code?: string | undefined;
1246
+ message?: string | undefined;
1247
+ }, FetchOptions["throw"] extends true ? true : false>>;
1248
+ } & {
1249
+ updateSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<Partial<{}> & {
1250
+ fetchOptions?: FetchOptions | undefined;
1251
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1252
+ session: {
1253
+ id: string;
1254
+ createdAt: Date;
1255
+ updatedAt: Date;
1256
+ userId: string;
1257
+ expiresAt: Date;
1258
+ token: string;
1259
+ ipAddress?: string | null | undefined;
1260
+ userAgent?: string | null | undefined;
1261
+ };
1262
+ }, {
1263
+ code?: string | undefined;
1264
+ message?: string | undefined;
1265
+ }, FetchOptions["throw"] extends true ? true : false>>;
1266
+ } & {
1267
+ updateUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}> & {
1268
+ name?: string | undefined;
1269
+ image?: string | undefined | null;
1270
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<import("better-auth/client").InferUserUpdateCtx<{
1271
+ baseURL: string;
1272
+ basePath: string;
1273
+ fetchOptions: {
1274
+ credentials: "include";
1275
+ };
1276
+ }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1277
+ status: boolean;
1278
+ }, {
1279
+ code?: string | undefined;
1280
+ message?: string | undefined;
1281
+ }, FetchOptions["throw"] extends true ? true : false>>;
1282
+ } & {
1283
+ deleteUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1284
+ callbackURL?: string | undefined;
1285
+ password?: string | undefined;
1286
+ token?: string | undefined;
1287
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1288
+ callbackURL?: string | undefined;
1289
+ password?: string | undefined;
1290
+ token?: string | undefined;
1291
+ } & {
1292
+ fetchOptions?: FetchOptions | undefined;
1293
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1294
+ success: boolean;
1295
+ message: string;
1296
+ }, {
1297
+ code?: string | undefined;
1298
+ message?: string | undefined;
1299
+ }, FetchOptions["throw"] extends true ? true : false>>;
1300
+ } & {
1301
+ requestPasswordReset: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1302
+ email: string;
1303
+ redirectTo?: string | undefined;
1304
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1305
+ email: string;
1306
+ redirectTo?: string | undefined;
1307
+ } & {
1308
+ fetchOptions?: FetchOptions | undefined;
1309
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1310
+ status: boolean;
1311
+ message: string;
1312
+ }, {
1313
+ code?: string | undefined;
1314
+ message?: string | undefined;
1315
+ }, FetchOptions["throw"] extends true ? true : false>>;
1316
+ } & {
1317
+ resetPassword: {
1318
+ ":token": <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
1319
+ callbackURL: string;
1320
+ }> & Record<string, any>, {
1321
+ token: string;
1322
+ }>>(data_0: import("better-auth/client").Prettify<{
1323
+ query: {
1324
+ callbackURL: string;
1325
+ };
1326
+ fetchOptions?: FetchOptions | undefined;
1327
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<never, {
1328
+ code?: string | undefined;
1329
+ message?: string | undefined;
1330
+ }, FetchOptions["throw"] extends true ? true : false>>;
1331
+ };
1332
+ } & {
1333
+ listSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1334
+ query?: Record<string, any> | undefined;
1335
+ fetchOptions?: FetchOptions | undefined;
1336
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth/client").Prettify<{
1337
+ id: string;
1338
+ createdAt: Date;
1339
+ updatedAt: Date;
1340
+ userId: string;
1341
+ expiresAt: Date;
1342
+ token: string;
1343
+ ipAddress?: string | null | undefined | undefined;
1344
+ userAgent?: string | null | undefined | undefined;
1345
+ }>[], {
1346
+ code?: string | undefined;
1347
+ message?: string | undefined;
1348
+ }, FetchOptions["throw"] extends true ? true : false>>;
1349
+ } & {
1350
+ revokeSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1351
+ token: string;
1352
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1353
+ token: string;
1354
+ } & {
1355
+ fetchOptions?: FetchOptions | undefined;
1356
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1357
+ status: boolean;
1358
+ }, {
1359
+ code?: string | undefined;
1360
+ message?: string | undefined;
1361
+ }, FetchOptions["throw"] extends true ? true : false>>;
1362
+ } & {
1363
+ revokeSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1364
+ query?: Record<string, any> | undefined;
1365
+ fetchOptions?: FetchOptions | undefined;
1366
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1367
+ status: boolean;
1368
+ }, {
1369
+ code?: string | undefined;
1370
+ message?: string | undefined;
1371
+ }, FetchOptions["throw"] extends true ? true : false>>;
1372
+ } & {
1373
+ revokeOtherSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1374
+ query?: Record<string, any> | undefined;
1375
+ fetchOptions?: FetchOptions | undefined;
1376
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1377
+ status: boolean;
1378
+ }, {
1379
+ code?: string | undefined;
1380
+ message?: string | undefined;
1381
+ }, FetchOptions["throw"] extends true ? true : false>>;
1382
+ } & {
1383
+ linkSocial: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1384
+ provider: unknown;
1385
+ callbackURL?: string | undefined;
1386
+ idToken?: {
1387
+ token: string;
1388
+ nonce?: string | undefined;
1389
+ accessToken?: string | undefined;
1390
+ refreshToken?: string | undefined;
1391
+ scopes?: string[] | undefined;
1392
+ } | undefined;
1393
+ requestSignUp?: boolean | undefined;
1394
+ scopes?: string[] | undefined;
1395
+ errorCallbackURL?: string | undefined;
1396
+ disableRedirect?: boolean | undefined;
1397
+ additionalData?: Record<string, any> | undefined;
1398
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1399
+ provider: unknown;
1400
+ callbackURL?: string | undefined;
1401
+ idToken?: {
1402
+ token: string;
1403
+ nonce?: string | undefined;
1404
+ accessToken?: string | undefined;
1405
+ refreshToken?: string | undefined;
1406
+ scopes?: string[] | undefined;
1407
+ } | undefined;
1408
+ requestSignUp?: boolean | undefined;
1409
+ scopes?: string[] | undefined;
1410
+ errorCallbackURL?: string | undefined;
1411
+ disableRedirect?: boolean | undefined;
1412
+ additionalData?: Record<string, any> | undefined;
1413
+ } & {
1414
+ fetchOptions?: FetchOptions | undefined;
1415
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1416
+ url: string;
1417
+ redirect: boolean;
1418
+ }, {
1419
+ code?: string | undefined;
1420
+ message?: string | undefined;
1421
+ }, FetchOptions["throw"] extends true ? true : false>>;
1422
+ } & {
1423
+ listAccounts: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1424
+ query?: Record<string, any> | undefined;
1425
+ fetchOptions?: FetchOptions | undefined;
1426
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1427
+ scopes: string[];
1428
+ id: string;
1429
+ createdAt: Date;
1430
+ updatedAt: Date;
1431
+ userId: string;
1432
+ providerId: string;
1433
+ accountId: string;
1434
+ }[], {
1435
+ code?: string | undefined;
1436
+ message?: string | undefined;
1437
+ }, FetchOptions["throw"] extends true ? true : false>>;
1438
+ } & {
1439
+ deleteUser: {
1440
+ callback: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
1441
+ token: string;
1442
+ callbackURL?: string | undefined;
1443
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1444
+ query: {
1445
+ token: string;
1446
+ callbackURL?: string | undefined;
1447
+ };
1448
+ fetchOptions?: FetchOptions | undefined;
1449
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1450
+ success: boolean;
1451
+ message: string;
1452
+ }, {
1453
+ code?: string | undefined;
1454
+ message?: string | undefined;
1455
+ }, FetchOptions["throw"] extends true ? true : false>>;
1456
+ };
1457
+ } & {
1458
+ unlinkAccount: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1459
+ providerId: string;
1460
+ accountId?: string | undefined;
1461
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1462
+ providerId: string;
1463
+ accountId?: string | undefined;
1464
+ } & {
1465
+ fetchOptions?: FetchOptions | undefined;
1466
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1467
+ status: boolean;
1468
+ }, {
1469
+ code?: string | undefined;
1470
+ message?: string | undefined;
1471
+ }, FetchOptions["throw"] extends true ? true : false>>;
1472
+ } & {
1473
+ refreshToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1474
+ providerId: string;
1475
+ accountId?: string | undefined;
1476
+ userId?: string | undefined;
1477
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1478
+ providerId: string;
1479
+ accountId?: string | undefined;
1480
+ userId?: string | undefined;
1481
+ } & {
1482
+ fetchOptions?: FetchOptions | undefined;
1483
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1484
+ accessToken: string | undefined;
1485
+ refreshToken: string;
1486
+ accessTokenExpiresAt: Date | undefined;
1487
+ refreshTokenExpiresAt: Date | null | undefined;
1488
+ scope: string | null | undefined;
1489
+ idToken: string | null | undefined;
1490
+ providerId: string;
1491
+ accountId: string;
1492
+ }, {
1493
+ code?: string | undefined;
1494
+ message?: string | undefined;
1495
+ }, FetchOptions["throw"] extends true ? true : false>>;
1496
+ } & {
1497
+ getAccessToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
1498
+ providerId: string;
1499
+ accountId?: string | undefined;
1500
+ userId?: string | undefined;
1501
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/client").Prettify<{
1502
+ providerId: string;
1503
+ accountId?: string | undefined;
1504
+ userId?: string | undefined;
1505
+ } & {
1506
+ fetchOptions?: FetchOptions | undefined;
1507
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1508
+ accessToken: string;
1509
+ accessTokenExpiresAt: Date | undefined;
1510
+ scopes: string[];
1511
+ idToken: string | undefined;
1512
+ }, {
1513
+ code?: string | undefined;
1514
+ message?: string | undefined;
1515
+ }, FetchOptions["throw"] extends true ? true : false>>;
1516
+ } & {
1517
+ accountInfo: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
1518
+ accountId?: string | undefined;
1519
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1520
+ query?: {
1521
+ accountId?: string | undefined;
1522
+ } | undefined;
1523
+ fetchOptions?: FetchOptions | undefined;
1524
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1525
+ user: import("@better-auth/core/oauth2").OAuth2UserInfo;
1526
+ data: Record<string, any>;
1527
+ }, {
1528
+ code?: string | undefined;
1529
+ message?: string | undefined;
1530
+ }, FetchOptions["throw"] extends true ? true : false>>;
1531
+ } & {
1532
+ getSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
1533
+ disableCookieCache?: unknown;
1534
+ disableRefresh?: unknown;
1535
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/client").Prettify<{
1536
+ query?: {
1537
+ disableCookieCache?: unknown;
1538
+ disableRefresh?: unknown;
1539
+ } | undefined;
1540
+ fetchOptions?: FetchOptions | undefined;
1541
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1542
+ user: import("better-auth/client").StripEmptyObjects<{
1543
+ id: string;
1544
+ createdAt: Date;
1545
+ updatedAt: Date;
1546
+ email: string;
1547
+ emailVerified: boolean;
1548
+ name: string;
1549
+ image?: string | null | undefined;
1550
+ }>;
1551
+ session: import("better-auth/client").StripEmptyObjects<{
1552
+ id: string;
1553
+ createdAt: Date;
1554
+ updatedAt: Date;
1555
+ userId: string;
1556
+ expiresAt: Date;
1557
+ token: string;
1558
+ ipAddress?: string | null | undefined;
1559
+ userAgent?: string | null | undefined;
1560
+ }>;
1561
+ } | null, {
1562
+ code?: string | undefined;
1563
+ message?: string | undefined;
1564
+ }, FetchOptions["throw"] extends true ? true : false>>;
1565
+ } & {
1566
+ useSession: import("nanostores/atom").Atom<{
1567
+ data: {
1568
+ user: import("better-auth/client").StripEmptyObjects<{
1569
+ id: string;
1570
+ createdAt: Date;
1571
+ updatedAt: Date;
1572
+ email: string;
1573
+ emailVerified: boolean;
1574
+ name: string;
1575
+ image?: string | null | undefined;
1576
+ }>;
1577
+ session: import("better-auth/client").StripEmptyObjects<{
1578
+ id: string;
1579
+ createdAt: Date;
1580
+ updatedAt: Date;
1581
+ userId: string;
1582
+ expiresAt: Date;
1583
+ token: string;
1584
+ ipAddress?: string | null | undefined;
1585
+ userAgent?: string | null | undefined;
1586
+ }>;
1587
+ } | null;
1588
+ error: import("@better-fetch/fetch").BetterFetchError | null;
1589
+ isPending: boolean;
1590
+ isRefetching: boolean;
1591
+ refetch: (queryParams?: {
1592
+ query?: import("better-auth/client").SessionQueryParams;
1593
+ } | undefined) => Promise<void>;
1594
+ }>;
1595
+ $fetch: import("@better-fetch/fetch").BetterFetch<{
1596
+ plugins: (import("@better-fetch/fetch").BetterFetchPlugin<Record<string, any>> | {
1597
+ id: string;
1598
+ name: string;
1599
+ hooks: {
1600
+ onSuccess(context: import("@better-fetch/fetch").SuccessContext<any>): void;
1601
+ };
1602
+ } | {
1603
+ id: string;
1604
+ name: string;
1605
+ hooks: {
1606
+ onSuccess: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1607
+ onError: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1608
+ onRequest: (<T extends Record<string, any>>(context: import("@better-fetch/fetch").RequestContext<T>) => Promise<import("@better-fetch/fetch").RequestContext | void> | import("@better-fetch/fetch").RequestContext | void) | undefined;
1609
+ onResponse: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1610
+ };
1611
+ })[];
1612
+ cache?: RequestCache | undefined;
1613
+ priority?: RequestPriority | undefined;
1614
+ credentials?: RequestCredentials;
1615
+ headers?: (HeadersInit & (HeadersInit | {
1616
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1617
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1618
+ authorization: "Bearer" | "Basic";
1619
+ })) | undefined;
1620
+ integrity?: string | undefined;
1621
+ keepalive?: boolean | undefined;
1622
+ method: string;
1623
+ mode?: RequestMode | undefined;
1624
+ redirect?: RequestRedirect | undefined;
1625
+ referrer?: string | undefined;
1626
+ referrerPolicy?: ReferrerPolicy | undefined;
1627
+ signal?: (AbortSignal | null) | undefined;
1628
+ window?: null | undefined;
1629
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1630
+ hookOptions?: {
1631
+ cloneResponse?: boolean;
1632
+ } | undefined;
1633
+ timeout?: number | undefined;
1634
+ customFetchImpl: import("@better-fetch/fetch").FetchEsque;
1635
+ baseURL: string;
1636
+ throw?: boolean | undefined;
1637
+ auth?: ({
1638
+ type: "Bearer";
1639
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1640
+ } | {
1641
+ type: "Basic";
1642
+ username: string | (() => string | undefined) | undefined;
1643
+ password: string | (() => string | undefined) | undefined;
1644
+ } | {
1645
+ type: "Custom";
1646
+ prefix: string | (() => string | undefined) | undefined;
1647
+ value: string | (() => string | undefined) | undefined;
1648
+ }) | undefined;
1649
+ body?: any;
1650
+ query?: any;
1651
+ params?: any;
1652
+ duplex?: "full" | "half" | undefined;
1653
+ jsonParser: (text: string) => Promise<any> | any;
1654
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1655
+ retryAttempt?: number | undefined;
1656
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1657
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1658
+ disableValidation?: boolean | undefined;
1659
+ disableSignal?: boolean | undefined;
1660
+ }, unknown, unknown, {}>;
1661
+ $store: {
1662
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
1663
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
1664
+ atoms: Record<string, import("nanostores/atom").WritableAtom<any>>;
1665
+ };
1666
+ $Infer: {
1667
+ Session: {
1668
+ user: import("better-auth/client").StripEmptyObjects<{
1669
+ id: string;
1670
+ createdAt: Date;
1671
+ updatedAt: Date;
1672
+ email: string;
1673
+ emailVerified: boolean;
1674
+ name: string;
1675
+ image?: string | null | undefined;
1676
+ }>;
1677
+ session: import("better-auth/client").StripEmptyObjects<{
1678
+ id: string;
1679
+ createdAt: Date;
1680
+ updatedAt: Date;
1681
+ userId: string;
1682
+ expiresAt: Date;
1683
+ token: string;
1684
+ ipAddress?: string | null | undefined;
1685
+ userAgent?: string | null | undefined;
1686
+ }>;
1687
+ };
1688
+ };
1689
+ $ERROR_CODES: {
1690
+ USER_NOT_FOUND: {
1691
+ readonly code: "USER_NOT_FOUND";
1692
+ message: string;
1693
+ };
1694
+ FAILED_TO_CREATE_USER: {
1695
+ readonly code: "FAILED_TO_CREATE_USER";
1696
+ message: string;
1697
+ };
1698
+ FAILED_TO_CREATE_SESSION: {
1699
+ readonly code: "FAILED_TO_CREATE_SESSION";
1700
+ message: string;
1701
+ };
1702
+ FAILED_TO_UPDATE_USER: {
1703
+ readonly code: "FAILED_TO_UPDATE_USER";
1704
+ message: string;
1705
+ };
1706
+ FAILED_TO_GET_SESSION: {
1707
+ readonly code: "FAILED_TO_GET_SESSION";
1708
+ message: string;
1709
+ };
1710
+ INVALID_PASSWORD: {
1711
+ readonly code: "INVALID_PASSWORD";
1712
+ message: string;
1713
+ };
1714
+ INVALID_EMAIL: {
1715
+ readonly code: "INVALID_EMAIL";
1716
+ message: string;
1717
+ };
1718
+ INVALID_EMAIL_OR_PASSWORD: {
1719
+ readonly code: "INVALID_EMAIL_OR_PASSWORD";
1720
+ message: string;
1721
+ };
1722
+ INVALID_USER: {
1723
+ readonly code: "INVALID_USER";
1724
+ message: string;
1725
+ };
1726
+ SOCIAL_ACCOUNT_ALREADY_LINKED: {
1727
+ readonly code: "SOCIAL_ACCOUNT_ALREADY_LINKED";
1728
+ message: string;
1729
+ };
1730
+ PROVIDER_NOT_FOUND: {
1731
+ readonly code: "PROVIDER_NOT_FOUND";
1732
+ message: string;
1733
+ };
1734
+ INVALID_TOKEN: {
1735
+ readonly code: "INVALID_TOKEN";
1736
+ message: string;
1737
+ };
1738
+ TOKEN_EXPIRED: {
1739
+ readonly code: "TOKEN_EXPIRED";
1740
+ message: string;
1741
+ };
1742
+ ID_TOKEN_NOT_SUPPORTED: {
1743
+ readonly code: "ID_TOKEN_NOT_SUPPORTED";
1744
+ message: string;
1745
+ };
1746
+ FAILED_TO_GET_USER_INFO: {
1747
+ readonly code: "FAILED_TO_GET_USER_INFO";
1748
+ message: string;
1749
+ };
1750
+ USER_EMAIL_NOT_FOUND: {
1751
+ readonly code: "USER_EMAIL_NOT_FOUND";
1752
+ message: string;
1753
+ };
1754
+ EMAIL_NOT_VERIFIED: {
1755
+ readonly code: "EMAIL_NOT_VERIFIED";
1756
+ message: string;
1757
+ };
1758
+ PASSWORD_TOO_SHORT: {
1759
+ readonly code: "PASSWORD_TOO_SHORT";
1760
+ message: string;
1761
+ };
1762
+ PASSWORD_TOO_LONG: {
1763
+ readonly code: "PASSWORD_TOO_LONG";
1764
+ message: string;
1765
+ };
1766
+ USER_ALREADY_EXISTS: {
1767
+ readonly code: "USER_ALREADY_EXISTS";
1768
+ message: string;
1769
+ };
1770
+ USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: {
1771
+ readonly code: "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL";
1772
+ message: string;
1773
+ };
1774
+ EMAIL_CAN_NOT_BE_UPDATED: {
1775
+ readonly code: "EMAIL_CAN_NOT_BE_UPDATED";
1776
+ message: string;
1777
+ };
1778
+ CREDENTIAL_ACCOUNT_NOT_FOUND: {
1779
+ readonly code: "CREDENTIAL_ACCOUNT_NOT_FOUND";
1780
+ message: string;
1781
+ };
1782
+ ACCOUNT_NOT_FOUND: {
1783
+ readonly code: "ACCOUNT_NOT_FOUND";
1784
+ message: string;
1785
+ };
1786
+ SESSION_EXPIRED: {
1787
+ readonly code: "SESSION_EXPIRED";
1788
+ message: string;
1789
+ };
1790
+ FAILED_TO_UNLINK_LAST_ACCOUNT: {
1791
+ readonly code: "FAILED_TO_UNLINK_LAST_ACCOUNT";
1792
+ message: string;
1793
+ };
1794
+ USER_ALREADY_HAS_PASSWORD: {
1795
+ readonly code: "USER_ALREADY_HAS_PASSWORD";
1796
+ message: string;
1797
+ };
1798
+ CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: {
1799
+ readonly code: "CROSS_SITE_NAVIGATION_LOGIN_BLOCKED";
1800
+ message: string;
1801
+ };
1802
+ VERIFICATION_EMAIL_NOT_ENABLED: {
1803
+ readonly code: "VERIFICATION_EMAIL_NOT_ENABLED";
1804
+ message: string;
1805
+ };
1806
+ EMAIL_ALREADY_VERIFIED: {
1807
+ readonly code: "EMAIL_ALREADY_VERIFIED";
1808
+ message: string;
1809
+ };
1810
+ EMAIL_MISMATCH: {
1811
+ readonly code: "EMAIL_MISMATCH";
1812
+ message: string;
1813
+ };
1814
+ SESSION_NOT_FRESH: {
1815
+ readonly code: "SESSION_NOT_FRESH";
1816
+ message: string;
1817
+ };
1818
+ LINKED_ACCOUNT_ALREADY_EXISTS: {
1819
+ readonly code: "LINKED_ACCOUNT_ALREADY_EXISTS";
1820
+ message: string;
1821
+ };
1822
+ INVALID_ORIGIN: {
1823
+ readonly code: "INVALID_ORIGIN";
1824
+ message: string;
1825
+ };
1826
+ INVALID_CALLBACK_URL: {
1827
+ readonly code: "INVALID_CALLBACK_URL";
1828
+ message: string;
1829
+ };
1830
+ INVALID_REDIRECT_URL: {
1831
+ readonly code: "INVALID_REDIRECT_URL";
1832
+ message: string;
1833
+ };
1834
+ INVALID_ERROR_CALLBACK_URL: {
1835
+ readonly code: "INVALID_ERROR_CALLBACK_URL";
1836
+ message: string;
1837
+ };
1838
+ INVALID_NEW_USER_CALLBACK_URL: {
1839
+ readonly code: "INVALID_NEW_USER_CALLBACK_URL";
1840
+ message: string;
1841
+ };
1842
+ MISSING_OR_NULL_ORIGIN: {
1843
+ readonly code: "MISSING_OR_NULL_ORIGIN";
1844
+ message: string;
1845
+ };
1846
+ CALLBACK_URL_REQUIRED: {
1847
+ readonly code: "CALLBACK_URL_REQUIRED";
1848
+ message: string;
1849
+ };
1850
+ FAILED_TO_CREATE_VERIFICATION: {
1851
+ readonly code: "FAILED_TO_CREATE_VERIFICATION";
1852
+ message: string;
1853
+ };
1854
+ FIELD_NOT_ALLOWED: {
1855
+ readonly code: "FIELD_NOT_ALLOWED";
1856
+ message: string;
1857
+ };
1858
+ ASYNC_VALIDATION_NOT_SUPPORTED: {
1859
+ readonly code: "ASYNC_VALIDATION_NOT_SUPPORTED";
1860
+ message: string;
1861
+ };
1862
+ VALIDATION_ERROR: {
1863
+ readonly code: "VALIDATION_ERROR";
1864
+ message: string;
1865
+ };
1866
+ MISSING_FIELD: {
1867
+ readonly code: "MISSING_FIELD";
1868
+ message: string;
1869
+ };
1870
+ METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: {
1871
+ readonly code: "METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED";
1872
+ message: string;
1873
+ };
1874
+ BODY_MUST_BE_AN_OBJECT: {
1875
+ readonly code: "BODY_MUST_BE_AN_OBJECT";
1876
+ message: string;
1877
+ };
1878
+ PASSWORD_ALREADY_SET: {
1879
+ readonly code: "PASSWORD_ALREADY_SET";
1880
+ message: string;
1881
+ };
1882
+ };
1883
+ };