sa2kit 2.0.4 → 3.1.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 (354) hide show
  1. package/dist/{UniversalFileService-GsP6D3Rc.d.ts → UniversalFileService-CC4d3wkc.d.ts} +2 -2
  2. package/dist/{UniversalFileService-BpvbZitV.d.mts → UniversalFileService-CzAE_G4V.d.mts} +2 -2
  3. package/dist/ai/llm/ui/miniapp/index.d.mts +2 -2
  4. package/dist/ai/llm/ui/miniapp/index.d.ts +2 -2
  5. package/dist/ai/llm/ui/rn/index.d.mts +2 -2
  6. package/dist/ai/llm/ui/rn/index.d.ts +2 -2
  7. package/dist/ai/llm/ui/web/index.d.mts +3 -3
  8. package/dist/ai/llm/ui/web/index.d.ts +3 -3
  9. package/dist/analytics/index.d.mts +1 -1
  10. package/dist/analytics/index.d.ts +1 -1
  11. package/dist/business/index.d.mts +1 -5
  12. package/dist/business/index.d.ts +1 -5
  13. package/dist/business/index.js +34 -1135
  14. package/dist/business/index.js.map +1 -1
  15. package/dist/business/index.mjs +5 -1105
  16. package/dist/business/index.mjs.map +1 -1
  17. package/dist/calendar/routes/index.d.mts +74 -1
  18. package/dist/calendar/routes/index.d.ts +74 -1
  19. package/dist/calendar/routes/index.js +186 -97
  20. package/dist/calendar/routes/index.js.map +1 -1
  21. package/dist/calendar/routes/index.mjs +178 -99
  22. package/dist/calendar/routes/index.mjs.map +1 -1
  23. package/dist/{chunk-RJP2BRJD.mjs → chunk-4OOANEJV.mjs} +2 -2
  24. package/dist/{chunk-RJP2BRJD.mjs.map → chunk-4OOANEJV.mjs.map} +1 -1
  25. package/dist/chunk-5FUAQLGC.mjs +14 -0
  26. package/dist/chunk-5FUAQLGC.mjs.map +1 -0
  27. package/dist/{chunk-IIVNHQEI.mjs → chunk-5GBDDXYL.mjs} +4 -3
  28. package/dist/chunk-5GBDDXYL.mjs.map +1 -0
  29. package/dist/{chunk-S732H246.js → chunk-6PMXAK7F.js} +2 -2
  30. package/dist/{chunk-S732H246.js.map → chunk-6PMXAK7F.js.map} +1 -1
  31. package/dist/chunk-6YLCRWKM.mjs +8 -0
  32. package/dist/chunk-6YLCRWKM.mjs.map +1 -0
  33. package/dist/chunk-CAYOQDBR.js +78 -0
  34. package/dist/chunk-CAYOQDBR.js.map +1 -0
  35. package/dist/{chunk-PTMSDNGO.mjs → chunk-CX2GHCAI.mjs} +4 -75
  36. package/dist/chunk-CX2GHCAI.mjs.map +1 -0
  37. package/dist/chunk-EBHPTFG6.mjs +82 -0
  38. package/dist/chunk-EBHPTFG6.mjs.map +1 -0
  39. package/dist/chunk-HQLKOXG7.js +16 -0
  40. package/dist/chunk-HQLKOXG7.js.map +1 -0
  41. package/dist/chunk-IS7O4LPI.js +146 -0
  42. package/dist/chunk-IS7O4LPI.js.map +1 -0
  43. package/dist/chunk-LGHUCQIU.js +93 -0
  44. package/dist/chunk-LGHUCQIU.js.map +1 -0
  45. package/dist/chunk-LKBIVQBT.mjs +34 -0
  46. package/dist/chunk-LKBIVQBT.mjs.map +1 -0
  47. package/dist/chunk-MIDXG6LS.js +32 -0
  48. package/dist/chunk-MIDXG6LS.js.map +1 -0
  49. package/dist/chunk-NDGHXVGS.js +25 -0
  50. package/dist/chunk-NDGHXVGS.js.map +1 -0
  51. package/dist/chunk-PA4ELVGI.js +20 -0
  52. package/dist/chunk-PA4ELVGI.js.map +1 -0
  53. package/dist/chunk-Q5VFBPMG.mjs +76 -0
  54. package/dist/chunk-Q5VFBPMG.mjs.map +1 -0
  55. package/dist/{chunk-WZDTNDYR.js → chunk-QSKLQX6H.js} +11 -11
  56. package/dist/{chunk-WZDTNDYR.js.map → chunk-QSKLQX6H.js.map} +1 -1
  57. package/dist/{chunk-QQ2WFYOD.js → chunk-S6YSGVWD.js} +4 -76
  58. package/dist/chunk-S6YSGVWD.js.map +1 -0
  59. package/dist/chunk-TNJ6LYX7.mjs +18 -0
  60. package/dist/chunk-TNJ6LYX7.mjs.map +1 -0
  61. package/dist/chunk-TTYCVBIQ.mjs +144 -0
  62. package/dist/chunk-TTYCVBIQ.mjs.map +1 -0
  63. package/dist/chunk-VJNDOYEC.js +41 -0
  64. package/dist/chunk-VJNDOYEC.js.map +1 -0
  65. package/dist/{chunk-J77KR2EV.mjs → chunk-WJ7IMUEJ.mjs} +3 -3
  66. package/dist/{chunk-J77KR2EV.mjs.map → chunk-WJ7IMUEJ.mjs.map} +1 -1
  67. package/dist/chunk-YTGUIRRH.js +10 -0
  68. package/dist/chunk-YTGUIRRH.js.map +1 -0
  69. package/dist/chunk-ZF7DKR5A.mjs +26 -0
  70. package/dist/chunk-ZF7DKR5A.mjs.map +1 -0
  71. package/dist/common/auth/client/index.d.mts +3209 -0
  72. package/dist/common/auth/client/index.d.ts +3209 -0
  73. package/dist/common/auth/client/index.js +13 -0
  74. package/dist/common/auth/client/index.mjs +4 -0
  75. package/dist/common/auth/components/index.d.mts +140 -0
  76. package/dist/common/auth/components/index.d.ts +140 -0
  77. package/dist/common/auth/components/index.js +899 -0
  78. package/dist/common/auth/components/index.js.map +1 -0
  79. package/dist/common/auth/components/index.mjs +875 -0
  80. package/dist/common/auth/components/index.mjs.map +1 -0
  81. package/dist/common/auth/hooks/index.d.mts +48 -0
  82. package/dist/common/auth/hooks/index.d.ts +48 -0
  83. package/dist/common/auth/hooks/index.js +19 -0
  84. package/dist/common/auth/hooks/index.mjs +6 -0
  85. package/dist/common/auth/index.d.mts +11 -7
  86. package/dist/common/auth/index.d.ts +11 -7
  87. package/dist/common/auth/index.js +7 -19
  88. package/dist/common/auth/index.mjs +3 -3
  89. package/dist/common/auth/react/index.d.mts +3056 -0
  90. package/dist/common/auth/react/index.d.ts +3056 -0
  91. package/dist/common/auth/react/index.js +31 -0
  92. package/dist/common/auth/react/index.js.map +1 -0
  93. package/dist/common/auth/react/index.mjs +21 -0
  94. package/dist/common/auth/react/index.mjs.map +1 -0
  95. package/dist/common/auth/rn/index.d.mts +3122 -0
  96. package/dist/common/auth/rn/index.d.ts +3122 -0
  97. package/dist/common/auth/rn/index.js +316 -0
  98. package/dist/common/auth/rn/index.js.map +1 -0
  99. package/dist/common/auth/rn/index.mjs +298 -0
  100. package/dist/common/auth/rn/index.mjs.map +1 -0
  101. package/dist/common/auth/schema/index.d.mts +1479 -0
  102. package/dist/common/auth/schema/index.d.ts +1479 -0
  103. package/dist/common/auth/schema/index.js +49 -0
  104. package/dist/common/auth/schema/index.mjs +4 -0
  105. package/dist/common/auth/server/index.d.mts +81 -25
  106. package/dist/common/auth/server/index.d.ts +81 -25
  107. package/dist/common/auth/server/index.js +146 -98
  108. package/dist/common/auth/server/index.js.map +1 -1
  109. package/dist/common/auth/server/index.mjs +125 -5
  110. package/dist/common/auth/server/index.mjs.map +1 -1
  111. package/dist/common/auth/services/index.d.mts +14 -0
  112. package/dist/common/auth/services/index.d.ts +14 -0
  113. package/dist/common/auth/services/index.js +20 -0
  114. package/dist/common/auth/services/index.js.map +1 -0
  115. package/dist/common/auth/services/index.mjs +13 -0
  116. package/dist/common/auth/services/index.mjs.map +1 -0
  117. package/dist/common/file/server/index.js +32 -32
  118. package/dist/common/file/server/index.mjs +3 -3
  119. package/dist/common/index.d.mts +13 -8
  120. package/dist/common/index.d.ts +13 -8
  121. package/dist/common/index.js +19 -18
  122. package/dist/common/index.mjs +8 -7
  123. package/dist/common/storage/index.js +13 -12
  124. package/dist/common/storage/index.mjs +3 -2
  125. package/dist/festivalCard/index.d.mts +3 -3
  126. package/dist/festivalCard/index.d.ts +3 -3
  127. package/dist/festivalCard/routes/index.d.mts +1 -1
  128. package/dist/festivalCard/routes/index.d.ts +1 -1
  129. package/dist/festivalCard/server/index.d.mts +2 -2
  130. package/dist/festivalCard/server/index.d.ts +2 -2
  131. package/dist/{festivalCardService-BFCRhJrq.d.ts → festivalCardService-B3GsnNpV.d.ts} +1 -1
  132. package/dist/{festivalCardService-GriR2VMc.d.mts → festivalCardService-CWhrLNE9.d.mts} +1 -1
  133. package/dist/i18n/index.d.mts +1 -1
  134. package/dist/i18n/index.d.ts +1 -1
  135. package/dist/imageCrop/index.d.mts +3 -3
  136. package/dist/imageCrop/index.d.ts +3 -3
  137. package/dist/index-Bd7cKF1j.d.mts +50 -0
  138. package/dist/{index-CLB80GCP.d.mts → index-D0cqaQEH.d.mts} +5 -5
  139. package/dist/{index-CLB80GCP.d.ts → index-D0cqaQEH.d.ts} +5 -5
  140. package/dist/index-DRQxtCDw.d.ts +50 -0
  141. package/dist/{index-1Ag7IBXN.d.ts → index-DZ5iJtNO.d.mts} +2 -44
  142. package/dist/{index-DdeZSeTJ.d.mts → index-DZ5iJtNO.d.ts} +2 -44
  143. package/dist/{index-BxZauNN_.d.ts → index-DoUo8IrU.d.mts} +8 -8
  144. package/dist/{index-BxZauNN_.d.mts → index-DoUo8IrU.d.ts} +8 -8
  145. package/dist/index.d.mts +6382 -105
  146. package/dist/index.d.ts +6382 -105
  147. package/dist/index.js +1037 -2616
  148. package/dist/index.js.map +1 -1
  149. package/dist/index.mjs +976 -2555
  150. package/dist/index.mjs.map +1 -1
  151. package/dist/mmd/admin/index.d.mts +1 -1
  152. package/dist/mmd/admin/index.d.ts +1 -1
  153. package/dist/mmd/index.d.mts +1 -1
  154. package/dist/mmd/index.d.ts +1 -1
  155. package/dist/mmd/server/index.d.mts +3 -3
  156. package/dist/mmd/server/index.d.ts +3 -3
  157. package/dist/ossFile/server/index.js +32 -32
  158. package/dist/ossFile/server/index.mjs +3 -3
  159. package/dist/storage/index.js +12 -11
  160. package/dist/storage/index.mjs +2 -1
  161. package/dist/{types-DyG3ZV9V.d.mts → types-B6B210gX.d.mts} +1 -1
  162. package/dist/{types-DyG3ZV9V.d.ts → types-B6B210gX.d.ts} +1 -1
  163. package/dist/{types-BTiaMsBz.d.mts → types-Bdnte5EN.d.mts} +1 -1
  164. package/dist/{types-tQfupO6d.d.ts → types-Cs0CLvrH.d.mts} +1 -1
  165. package/dist/{types-tQfupO6d.d.mts → types-Cs0CLvrH.d.ts} +1 -1
  166. package/dist/{types-ERmJyjx8.d.ts → types-_rFX1atk.d.ts} +1 -1
  167. package/dist/universalExport/index.d.mts +3 -3
  168. package/dist/universalExport/index.d.ts +3 -3
  169. package/dist/universalFile/index.d.mts +5 -5
  170. package/dist/universalFile/index.d.ts +5 -5
  171. package/dist/universalFile/server/index.js +62 -62
  172. package/dist/universalFile/server/index.mjs +2 -2
  173. package/dist/useAuthActions-7S5dL7Oh.d.mts +77 -0
  174. package/dist/useAuthActions-7S5dL7Oh.d.ts +77 -0
  175. package/dist/vocaloidBooth/server/index.d.mts +3 -3
  176. package/dist/vocaloidBooth/server/index.d.ts +3 -3
  177. package/package.json +44 -111
  178. package/dist/auth/client/index.d.mts +0 -32
  179. package/dist/auth/client/index.d.ts +0 -32
  180. package/dist/auth/client/index.js +0 -21
  181. package/dist/auth/client/index.mjs +0 -4
  182. package/dist/auth/components/index.d.mts +0 -227
  183. package/dist/auth/components/index.d.ts +0 -227
  184. package/dist/auth/components/index.js +0 -327
  185. package/dist/auth/components/index.js.map +0 -1
  186. package/dist/auth/components/index.mjs +0 -319
  187. package/dist/auth/components/index.mjs.map +0 -1
  188. package/dist/auth/hooks/index.d.mts +0 -31
  189. package/dist/auth/hooks/index.d.ts +0 -31
  190. package/dist/auth/hooks/index.js +0 -17
  191. package/dist/auth/hooks/index.mjs +0 -4
  192. package/dist/auth/index.d.mts +0 -18
  193. package/dist/auth/index.d.ts +0 -18
  194. package/dist/auth/index.js +0 -151
  195. package/dist/auth/index.mjs +0 -10
  196. package/dist/auth/legacy/core/index.d.mts +0 -42
  197. package/dist/auth/legacy/core/index.d.ts +0 -42
  198. package/dist/auth/legacy/core/index.js +0 -242
  199. package/dist/auth/legacy/core/index.js.map +0 -1
  200. package/dist/auth/legacy/core/index.mjs +0 -226
  201. package/dist/auth/legacy/core/index.mjs.map +0 -1
  202. package/dist/auth/legacy/db/index.d.mts +0 -5
  203. package/dist/auth/legacy/db/index.d.ts +0 -5
  204. package/dist/auth/legacy/db/index.js +0 -261
  205. package/dist/auth/legacy/db/index.js.map +0 -1
  206. package/dist/auth/legacy/db/index.mjs +0 -250
  207. package/dist/auth/legacy/db/index.mjs.map +0 -1
  208. package/dist/auth/legacy/index.d.mts +0 -5
  209. package/dist/auth/legacy/index.d.ts +0 -5
  210. package/dist/auth/legacy/index.js +0 -1107
  211. package/dist/auth/legacy/index.js.map +0 -1
  212. package/dist/auth/legacy/index.mjs +0 -1086
  213. package/dist/auth/legacy/index.mjs.map +0 -1
  214. package/dist/auth/legacy/logic/index.d.mts +0 -9
  215. package/dist/auth/legacy/logic/index.d.ts +0 -9
  216. package/dist/auth/legacy/logic/index.js +0 -194
  217. package/dist/auth/legacy/logic/index.js.map +0 -1
  218. package/dist/auth/legacy/logic/index.mjs +0 -187
  219. package/dist/auth/legacy/logic/index.mjs.map +0 -1
  220. package/dist/auth/legacy/miniapp/index.d.mts +0 -5
  221. package/dist/auth/legacy/miniapp/index.d.ts +0 -5
  222. package/dist/auth/legacy/miniapp/index.js +0 -506
  223. package/dist/auth/legacy/miniapp/index.js.map +0 -1
  224. package/dist/auth/legacy/miniapp/index.mjs +0 -487
  225. package/dist/auth/legacy/miniapp/index.mjs.map +0 -1
  226. package/dist/auth/legacy/routes/index.d.mts +0 -53
  227. package/dist/auth/legacy/routes/index.d.ts +0 -53
  228. package/dist/auth/legacy/routes/index.js +0 -278
  229. package/dist/auth/legacy/routes/index.js.map +0 -1
  230. package/dist/auth/legacy/routes/index.mjs +0 -271
  231. package/dist/auth/legacy/routes/index.mjs.map +0 -1
  232. package/dist/auth/legacy/schema/index.d.mts +0 -401
  233. package/dist/auth/legacy/schema/index.d.ts +0 -401
  234. package/dist/auth/legacy/schema/index.js +0 -50
  235. package/dist/auth/legacy/schema/index.js.map +0 -1
  236. package/dist/auth/legacy/schema/index.mjs +0 -44
  237. package/dist/auth/legacy/schema/index.mjs.map +0 -1
  238. package/dist/auth/legacy/server/index.d.mts +0 -13
  239. package/dist/auth/legacy/server/index.d.ts +0 -13
  240. package/dist/auth/legacy/server/index.js +0 -21
  241. package/dist/auth/legacy/server/index.js.map +0 -1
  242. package/dist/auth/legacy/server/index.mjs +0 -19
  243. package/dist/auth/legacy/server/index.mjs.map +0 -1
  244. package/dist/auth/legacy/services/index.d.mts +0 -40
  245. package/dist/auth/legacy/services/index.d.ts +0 -40
  246. package/dist/auth/legacy/services/index.js +0 -258
  247. package/dist/auth/legacy/services/index.js.map +0 -1
  248. package/dist/auth/legacy/services/index.mjs +0 -252
  249. package/dist/auth/legacy/services/index.mjs.map +0 -1
  250. package/dist/auth/legacy/ui/miniapp/index.d.mts +0 -10
  251. package/dist/auth/legacy/ui/miniapp/index.d.ts +0 -10
  252. package/dist/auth/legacy/ui/miniapp/index.js +0 -298
  253. package/dist/auth/legacy/ui/miniapp/index.js.map +0 -1
  254. package/dist/auth/legacy/ui/miniapp/index.mjs +0 -290
  255. package/dist/auth/legacy/ui/miniapp/index.mjs.map +0 -1
  256. package/dist/auth/legacy/ui/web/index.d.mts +0 -22
  257. package/dist/auth/legacy/ui/web/index.d.ts +0 -22
  258. package/dist/auth/legacy/ui/web/index.js +0 -899
  259. package/dist/auth/legacy/ui/web/index.js.map +0 -1
  260. package/dist/auth/legacy/ui/web/index.mjs +0 -889
  261. package/dist/auth/legacy/ui/web/index.mjs.map +0 -1
  262. package/dist/auth/legacy/web/index.d.mts +0 -5
  263. package/dist/auth/legacy/web/index.d.ts +0 -5
  264. package/dist/auth/legacy/web/index.js +0 -1107
  265. package/dist/auth/legacy/web/index.js.map +0 -1
  266. package/dist/auth/legacy/web/index.mjs +0 -1086
  267. package/dist/auth/legacy/web/index.mjs.map +0 -1
  268. package/dist/auth/middleware/index.d.mts +0 -75
  269. package/dist/auth/middleware/index.d.ts +0 -75
  270. package/dist/auth/middleware/index.js +0 -15
  271. package/dist/auth/middleware/index.js.map +0 -1
  272. package/dist/auth/middleware/index.mjs +0 -6
  273. package/dist/auth/middleware/index.mjs.map +0 -1
  274. package/dist/auth/rn/index.d.mts +0 -64
  275. package/dist/auth/rn/index.d.ts +0 -64
  276. package/dist/auth/rn/index.js +0 -765
  277. package/dist/auth/rn/index.js.map +0 -1
  278. package/dist/auth/rn/index.mjs +0 -754
  279. package/dist/auth/rn/index.mjs.map +0 -1
  280. package/dist/auth/routes/index.d.mts +0 -261
  281. package/dist/auth/routes/index.d.ts +0 -261
  282. package/dist/auth/routes/index.js +0 -59
  283. package/dist/auth/routes/index.js.map +0 -1
  284. package/dist/auth/routes/index.mjs +0 -6
  285. package/dist/auth/routes/index.mjs.map +0 -1
  286. package/dist/auth/schema/index.d.mts +0 -789
  287. package/dist/auth/schema/index.d.ts +0 -789
  288. package/dist/auth/schema/index.js +0 -41
  289. package/dist/auth/schema/index.js.map +0 -1
  290. package/dist/auth/schema/index.mjs +0 -4
  291. package/dist/auth/schema/index.mjs.map +0 -1
  292. package/dist/auth/services/index.d.mts +0 -48
  293. package/dist/auth/services/index.d.ts +0 -48
  294. package/dist/auth/services/index.js +0 -34
  295. package/dist/auth/services/index.js.map +0 -1
  296. package/dist/auth/services/index.mjs +0 -5
  297. package/dist/auth/services/index.mjs.map +0 -1
  298. package/dist/base-api-client-ACKKt13v.d.mts +0 -277
  299. package/dist/base-api-client-ACKKt13v.d.ts +0 -277
  300. package/dist/base-api-client-B3wZZoaH.d.ts +0 -103
  301. package/dist/base-api-client-DrL35Ea2.d.mts +0 -103
  302. package/dist/chunk-37HYTHEC.mjs +0 -90
  303. package/dist/chunk-37HYTHEC.mjs.map +0 -1
  304. package/dist/chunk-5WV35FPV.js +0 -131
  305. package/dist/chunk-5WV35FPV.js.map +0 -1
  306. package/dist/chunk-DCRD5CZB.js +0 -573
  307. package/dist/chunk-DCRD5CZB.js.map +0 -1
  308. package/dist/chunk-DDX4JKFS.js +0 -19
  309. package/dist/chunk-DDX4JKFS.js.map +0 -1
  310. package/dist/chunk-DV6M7MFP.js +0 -283
  311. package/dist/chunk-DV6M7MFP.js.map +0 -1
  312. package/dist/chunk-HBF4HPRK.js +0 -186
  313. package/dist/chunk-HBF4HPRK.js.map +0 -1
  314. package/dist/chunk-HCI6JQOU.mjs +0 -183
  315. package/dist/chunk-HCI6JQOU.mjs.map +0 -1
  316. package/dist/chunk-I44HXJ3X.mjs +0 -17
  317. package/dist/chunk-I44HXJ3X.mjs.map +0 -1
  318. package/dist/chunk-IIVNHQEI.mjs.map +0 -1
  319. package/dist/chunk-IJ4YYWE3.mjs +0 -122
  320. package/dist/chunk-IJ4YYWE3.mjs.map +0 -1
  321. package/dist/chunk-J4BEIZUC.js +0 -92
  322. package/dist/chunk-J4BEIZUC.js.map +0 -1
  323. package/dist/chunk-OKPWFVXC.js +0 -24
  324. package/dist/chunk-OKPWFVXC.js.map +0 -1
  325. package/dist/chunk-PNOTQAYK.mjs +0 -560
  326. package/dist/chunk-PNOTQAYK.mjs.map +0 -1
  327. package/dist/chunk-PTMSDNGO.mjs.map +0 -1
  328. package/dist/chunk-Q2IAL7YV.js +0 -36
  329. package/dist/chunk-Q2IAL7YV.js.map +0 -1
  330. package/dist/chunk-QQ2WFYOD.js.map +0 -1
  331. package/dist/chunk-VQ54PUQV.js +0 -216
  332. package/dist/chunk-VQ54PUQV.js.map +0 -1
  333. package/dist/chunk-W5JEGA76.mjs +0 -33
  334. package/dist/chunk-W5JEGA76.mjs.map +0 -1
  335. package/dist/chunk-YGI7UU2D.mjs +0 -212
  336. package/dist/chunk-YGI7UU2D.mjs.map +0 -1
  337. package/dist/chunk-ZCLQSI5F.mjs +0 -271
  338. package/dist/chunk-ZCLQSI5F.mjs.map +0 -1
  339. package/dist/drizzle-auth-service-D-pljzCD.d.mts +0 -145
  340. package/dist/drizzle-auth-service-D3qryE_I.d.ts +0 -145
  341. package/dist/index-Bnh6VqFv.d.ts +0 -35
  342. package/dist/index-DNKZ7-R_.d.mts +0 -184
  343. package/dist/index-DNKZ7-R_.d.ts +0 -184
  344. package/dist/index-DPYkrKZf.d.mts +0 -35
  345. package/dist/types-C5vUWf9u.d.ts +0 -70
  346. package/dist/types-C_W_CoUD.d.ts +0 -99
  347. package/dist/types-DCRvasyH.d.mts +0 -99
  348. package/dist/types-IYCqCk2g.d.mts +0 -70
  349. /package/dist/{auth → common/auth}/client/index.js.map +0 -0
  350. /package/dist/{auth → common/auth}/client/index.mjs.map +0 -0
  351. /package/dist/{auth → common/auth}/hooks/index.js.map +0 -0
  352. /package/dist/{auth → common/auth}/hooks/index.mjs.map +0 -0
  353. /package/dist/{auth → common/auth/schema}/index.js.map +0 -0
  354. /package/dist/{auth → common/auth/schema}/index.mjs.map +0 -0
@@ -0,0 +1,3209 @@
1
+ import * as zod_v4_core from 'zod/v4/core';
2
+ import * as zod from 'zod';
3
+ import * as better_auth_plugins_email_otp from 'better-auth/plugins/email-otp';
4
+ import * as better_auth_plugins_phone_number from 'better-auth/plugins/phone-number';
5
+ import * as better_auth_client from 'better-auth/client';
6
+ import * as better_auth from 'better-auth';
7
+
8
+ type Sa2kitAuthClientOptions = {
9
+ baseURL: string;
10
+ basePath?: string;
11
+ };
12
+ declare function buildSa2kitAuthClient(options: Sa2kitAuthClientOptions): {
13
+ emailOtp: {
14
+ sendVerificationOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
15
+ email: string;
16
+ type: "sign-in" | "change-email" | "email-verification" | "forget-password";
17
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
18
+ email: string;
19
+ type: "sign-in" | "change-email" | "email-verification" | "forget-password";
20
+ } & {
21
+ fetchOptions?: FetchOptions | undefined;
22
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
23
+ success: boolean;
24
+ }, {
25
+ code?: string | undefined;
26
+ message?: string | undefined;
27
+ }, FetchOptions["throw"] extends true ? true : false>>;
28
+ };
29
+ } & {
30
+ emailOtp: {
31
+ checkVerificationOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
32
+ email: string;
33
+ type: "sign-in" | "change-email" | "email-verification" | "forget-password";
34
+ otp: string;
35
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
36
+ email: string;
37
+ type: "sign-in" | "change-email" | "email-verification" | "forget-password";
38
+ otp: string;
39
+ } & {
40
+ fetchOptions?: FetchOptions | undefined;
41
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
42
+ success: boolean;
43
+ }, {
44
+ code?: string | undefined;
45
+ message?: string | undefined;
46
+ }, FetchOptions["throw"] extends true ? true : false>>;
47
+ };
48
+ } & {
49
+ emailOtp: {
50
+ verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
51
+ email: string;
52
+ otp: string;
53
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
54
+ email: string;
55
+ otp: string;
56
+ } & {
57
+ fetchOptions?: FetchOptions | undefined;
58
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<(Omit<{
59
+ status: boolean;
60
+ token: string;
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;
69
+ } & Record<string, any>;
70
+ }, "user"> & {
71
+ user: better_auth.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
+ phoneNumber?: string | null | undefined;
81
+ phoneNumberVerified?: boolean | null | undefined;
82
+ }>;
83
+ }) | (Omit<{
84
+ status: boolean;
85
+ token: null;
86
+ user: {
87
+ id: string;
88
+ createdAt: Date;
89
+ updatedAt: Date;
90
+ email: string;
91
+ emailVerified: boolean;
92
+ name: string;
93
+ image?: string | null | undefined;
94
+ } & Record<string, any>;
95
+ }, "user"> & {
96
+ user: better_auth.StripEmptyObjects<{
97
+ id: string;
98
+ createdAt: Date;
99
+ updatedAt: Date;
100
+ email: string;
101
+ emailVerified: boolean;
102
+ name: string;
103
+ image?: string | null | undefined;
104
+ } & {} & {
105
+ phoneNumber?: string | null | undefined;
106
+ phoneNumberVerified?: boolean | null | undefined;
107
+ }>;
108
+ }), {
109
+ code?: string | undefined;
110
+ message?: string | undefined;
111
+ }, FetchOptions["throw"] extends true ? true : false>>;
112
+ };
113
+ } & {
114
+ signIn: {
115
+ emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
116
+ email: string;
117
+ otp: string;
118
+ name?: string | undefined;
119
+ image?: string | undefined;
120
+ } & Record<string, any>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
121
+ email: string;
122
+ otp: string;
123
+ name?: string | undefined;
124
+ image?: string | undefined;
125
+ } & Record<string, any> & {
126
+ fetchOptions?: FetchOptions | undefined;
127
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<Omit<{
128
+ token: string;
129
+ user: {
130
+ id: string;
131
+ createdAt: Date;
132
+ updatedAt: Date;
133
+ email: string;
134
+ emailVerified: boolean;
135
+ name: string;
136
+ image?: string | null | undefined;
137
+ };
138
+ }, "user"> & {
139
+ user: better_auth.StripEmptyObjects<{
140
+ id: string;
141
+ createdAt: Date;
142
+ updatedAt: Date;
143
+ email: string;
144
+ emailVerified: boolean;
145
+ name: string;
146
+ image?: string | null | undefined;
147
+ } & {} & {
148
+ phoneNumber?: string | null | undefined;
149
+ phoneNumberVerified?: boolean | null | undefined;
150
+ }>;
151
+ }, {
152
+ code?: string | undefined;
153
+ message?: string | undefined;
154
+ }, FetchOptions["throw"] extends true ? true : false>>;
155
+ };
156
+ } & {
157
+ emailOtp: {
158
+ requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
159
+ email: string;
160
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
161
+ email: string;
162
+ } & {
163
+ fetchOptions?: FetchOptions | undefined;
164
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
165
+ success: boolean;
166
+ }, {
167
+ code?: string | undefined;
168
+ message?: string | undefined;
169
+ }, FetchOptions["throw"] extends true ? true : false>>;
170
+ };
171
+ } & {
172
+ forgetPassword: {
173
+ emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
174
+ email: string;
175
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
176
+ email: string;
177
+ } & {
178
+ fetchOptions?: FetchOptions | undefined;
179
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
180
+ success: boolean;
181
+ }, {
182
+ code?: string | undefined;
183
+ message?: string | undefined;
184
+ }, FetchOptions["throw"] extends true ? true : false>>;
185
+ };
186
+ } & {
187
+ emailOtp: {
188
+ resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
189
+ email: string;
190
+ otp: string;
191
+ password: string;
192
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
193
+ email: string;
194
+ otp: string;
195
+ password: string;
196
+ } & {
197
+ fetchOptions?: FetchOptions | undefined;
198
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
199
+ success: boolean;
200
+ }, {
201
+ code?: string | undefined;
202
+ message?: string | undefined;
203
+ }, FetchOptions["throw"] extends true ? true : false>>;
204
+ };
205
+ } & {
206
+ emailOtp: {
207
+ requestEmailChange: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
208
+ newEmail: string;
209
+ otp?: string | undefined;
210
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
211
+ newEmail: string;
212
+ otp?: string | undefined;
213
+ } & {
214
+ fetchOptions?: FetchOptions | undefined;
215
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
216
+ success: boolean;
217
+ }, {
218
+ code?: string | undefined;
219
+ message?: string | undefined;
220
+ }, FetchOptions["throw"] extends true ? true : false>>;
221
+ };
222
+ } & {
223
+ emailOtp: {
224
+ changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
225
+ newEmail: string;
226
+ otp: string;
227
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
228
+ newEmail: string;
229
+ otp: string;
230
+ } & {
231
+ fetchOptions?: FetchOptions | undefined;
232
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
233
+ success: boolean;
234
+ }, {
235
+ code?: string | undefined;
236
+ message?: string | undefined;
237
+ }, FetchOptions["throw"] extends true ? true : false>>;
238
+ };
239
+ } & {
240
+ signIn: {
241
+ phoneNumber: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
242
+ phoneNumber: string;
243
+ password: string;
244
+ rememberMe?: boolean | undefined;
245
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
246
+ phoneNumber: string;
247
+ password: string;
248
+ rememberMe?: boolean | undefined;
249
+ } & {
250
+ fetchOptions?: FetchOptions | undefined;
251
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<Omit<{
252
+ token: string;
253
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
254
+ }, "user"> & {
255
+ user: better_auth.StripEmptyObjects<{
256
+ id: string;
257
+ createdAt: Date;
258
+ updatedAt: Date;
259
+ email: string;
260
+ emailVerified: boolean;
261
+ name: string;
262
+ image?: string | null | undefined;
263
+ } & {} & {
264
+ phoneNumber?: string | null | undefined;
265
+ phoneNumberVerified?: boolean | null | undefined;
266
+ }>;
267
+ }, {
268
+ code?: string | undefined;
269
+ message?: string | undefined;
270
+ }, FetchOptions["throw"] extends true ? true : false>>;
271
+ };
272
+ } & {
273
+ phoneNumber: {
274
+ sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
275
+ phoneNumber: string;
276
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
277
+ phoneNumber: string;
278
+ } & {
279
+ fetchOptions?: FetchOptions | undefined;
280
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
281
+ message: string;
282
+ }, {
283
+ code?: string | undefined;
284
+ message?: string | undefined;
285
+ }, FetchOptions["throw"] extends true ? true : false>>;
286
+ };
287
+ } & {
288
+ phoneNumber: {
289
+ verify: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
290
+ phoneNumber: string;
291
+ code: string;
292
+ disableSession?: boolean | undefined;
293
+ updatePhoneNumber?: boolean | undefined;
294
+ } & Record<string, any>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
295
+ phoneNumber: string;
296
+ code: string;
297
+ disableSession?: boolean | undefined;
298
+ updatePhoneNumber?: boolean | undefined;
299
+ } & Record<string, any> & {
300
+ fetchOptions?: FetchOptions | undefined;
301
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<(Omit<{
302
+ status: boolean;
303
+ token: string;
304
+ user: {
305
+ id: string;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ email: string;
309
+ emailVerified: boolean;
310
+ name: string;
311
+ image?: string | null | undefined;
312
+ } & better_auth_plugins_phone_number.UserWithPhoneNumber;
313
+ }, "user"> & {
314
+ user: better_auth.StripEmptyObjects<{
315
+ id: string;
316
+ createdAt: Date;
317
+ updatedAt: Date;
318
+ email: string;
319
+ emailVerified: boolean;
320
+ name: string;
321
+ image?: string | null | undefined;
322
+ } & {} & {
323
+ phoneNumber?: string | null | undefined;
324
+ phoneNumberVerified?: boolean | null | undefined;
325
+ }>;
326
+ }) | (Omit<{
327
+ status: boolean;
328
+ token: null;
329
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
330
+ }, "user"> & {
331
+ user: better_auth.StripEmptyObjects<{
332
+ id: string;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ email: string;
336
+ emailVerified: boolean;
337
+ name: string;
338
+ image?: string | null | undefined;
339
+ } & {} & {
340
+ phoneNumber?: string | null | undefined;
341
+ phoneNumberVerified?: boolean | null | undefined;
342
+ }>;
343
+ }), {
344
+ code?: string | undefined;
345
+ message?: string | undefined;
346
+ }, FetchOptions["throw"] extends true ? true : false>>;
347
+ };
348
+ } & {
349
+ phoneNumber: {
350
+ requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
351
+ phoneNumber: string;
352
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
353
+ phoneNumber: string;
354
+ } & {
355
+ fetchOptions?: FetchOptions | undefined;
356
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
357
+ status: boolean;
358
+ }, {
359
+ code?: string | undefined;
360
+ message?: string | undefined;
361
+ }, FetchOptions["throw"] extends true ? true : false>>;
362
+ };
363
+ } & {
364
+ phoneNumber: {
365
+ resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
366
+ otp: string;
367
+ phoneNumber: string;
368
+ newPassword: string;
369
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
370
+ otp: string;
371
+ phoneNumber: string;
372
+ newPassword: string;
373
+ } & {
374
+ fetchOptions?: FetchOptions | undefined;
375
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
376
+ status: boolean;
377
+ }, {
378
+ code?: string | undefined;
379
+ message?: string | undefined;
380
+ }, FetchOptions["throw"] extends true ? true : false>>;
381
+ };
382
+ } & {
383
+ signIn: {
384
+ social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
385
+ provider: "line" | (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
386
+ callbackURL?: string | undefined;
387
+ newUserCallbackURL?: string | undefined;
388
+ errorCallbackURL?: string | undefined;
389
+ disableRedirect?: boolean | undefined;
390
+ idToken?: {
391
+ token: string;
392
+ nonce?: string | undefined;
393
+ accessToken?: string | undefined;
394
+ refreshToken?: string | undefined;
395
+ expiresAt?: number | undefined;
396
+ user?: {
397
+ name?: {
398
+ firstName?: string | undefined;
399
+ lastName?: string | undefined;
400
+ } | undefined;
401
+ email?: string | undefined;
402
+ } | undefined;
403
+ } | undefined;
404
+ scopes?: string[] | undefined;
405
+ requestSignUp?: boolean | undefined;
406
+ loginHint?: string | undefined;
407
+ additionalData?: Record<string, any> | undefined;
408
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
409
+ provider: "line" | (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
410
+ callbackURL?: string | undefined;
411
+ newUserCallbackURL?: string | undefined;
412
+ errorCallbackURL?: string | undefined;
413
+ disableRedirect?: boolean | undefined;
414
+ idToken?: {
415
+ token: string;
416
+ nonce?: string | undefined;
417
+ accessToken?: string | undefined;
418
+ refreshToken?: string | undefined;
419
+ expiresAt?: number | undefined;
420
+ user?: {
421
+ name?: {
422
+ firstName?: string | undefined;
423
+ lastName?: string | undefined;
424
+ } | undefined;
425
+ email?: string | undefined;
426
+ } | undefined;
427
+ } | undefined;
428
+ scopes?: string[] | undefined;
429
+ requestSignUp?: boolean | undefined;
430
+ loginHint?: string | undefined;
431
+ additionalData?: Record<string, any> | undefined;
432
+ } & {
433
+ fetchOptions?: FetchOptions | undefined;
434
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
435
+ redirect: boolean;
436
+ url: string;
437
+ } | (Omit<{
438
+ redirect: boolean;
439
+ token: string;
440
+ url: undefined;
441
+ user: {
442
+ id: string;
443
+ createdAt: Date;
444
+ updatedAt: Date;
445
+ email: string;
446
+ emailVerified: boolean;
447
+ name: string;
448
+ image?: string | null | undefined | undefined;
449
+ };
450
+ }, "user"> & {
451
+ user: better_auth.StripEmptyObjects<{
452
+ id: string;
453
+ createdAt: Date;
454
+ updatedAt: Date;
455
+ email: string;
456
+ emailVerified: boolean;
457
+ name: string;
458
+ image?: string | null | undefined;
459
+ } & {} & {
460
+ phoneNumber?: string | null | undefined;
461
+ phoneNumberVerified?: boolean | null | undefined;
462
+ }>;
463
+ }), {
464
+ code?: string | undefined;
465
+ message?: string | undefined;
466
+ }, FetchOptions["throw"] extends true ? true : false>>;
467
+ };
468
+ } & {
469
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
470
+ query?: Record<string, any> | undefined;
471
+ fetchOptions?: FetchOptions | undefined;
472
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
473
+ success: boolean;
474
+ }, {
475
+ code?: string | undefined;
476
+ message?: string | undefined;
477
+ }, FetchOptions["throw"] extends true ? true : false>>;
478
+ } & {
479
+ signUp: {
480
+ email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
481
+ name: string;
482
+ email: string;
483
+ password: string;
484
+ image?: string | undefined;
485
+ callbackURL?: string | undefined;
486
+ rememberMe?: boolean | undefined;
487
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<better_auth_client.InferSignUpEmailCtx<{
488
+ baseURL: string;
489
+ basePath: string;
490
+ plugins: ({
491
+ id: "email-otp";
492
+ version: string;
493
+ $InferServerPlugin: ReturnType<(options: better_auth_plugins_email_otp.EmailOTPOptions) => {
494
+ id: "email-otp";
495
+ version: string;
496
+ init(ctx: better_auth.AuthContext): {
497
+ options: {
498
+ emailVerification: {
499
+ sendVerificationEmail(data: {
500
+ user: {
501
+ id: string;
502
+ createdAt: Date;
503
+ updatedAt: Date;
504
+ email: string;
505
+ emailVerified: boolean;
506
+ name: string;
507
+ image?: string | null | undefined;
508
+ };
509
+ url: string;
510
+ token: string;
511
+ }, request: Request | undefined): Promise<void>;
512
+ };
513
+ };
514
+ } | undefined;
515
+ endpoints: {
516
+ sendVerificationOTP: better_auth.StrictEndpoint<"/email-otp/send-verification-otp", {
517
+ method: "POST";
518
+ body: zod.ZodObject<{
519
+ email: zod.ZodString;
520
+ type: zod.ZodEnum<{
521
+ "sign-in": "sign-in";
522
+ "change-email": "change-email";
523
+ "email-verification": "email-verification";
524
+ "forget-password": "forget-password";
525
+ }>;
526
+ }, zod_v4_core.$strip>;
527
+ metadata: {
528
+ openapi: {
529
+ operationId: string;
530
+ description: string;
531
+ responses: {
532
+ 200: {
533
+ description: string;
534
+ content: {
535
+ "application/json": {
536
+ schema: {
537
+ type: "object";
538
+ properties: {
539
+ success: {
540
+ type: string;
541
+ };
542
+ };
543
+ };
544
+ };
545
+ };
546
+ };
547
+ };
548
+ };
549
+ };
550
+ }, {
551
+ success: boolean;
552
+ }>;
553
+ createVerificationOTP: better_auth.StrictEndpoint<string, {
554
+ method: "POST";
555
+ body: zod.ZodObject<{
556
+ email: zod.ZodString;
557
+ type: zod.ZodEnum<{
558
+ "sign-in": "sign-in";
559
+ "change-email": "change-email";
560
+ "email-verification": "email-verification";
561
+ "forget-password": "forget-password";
562
+ }>;
563
+ }, zod_v4_core.$strip>;
564
+ metadata: {
565
+ openapi: {
566
+ operationId: string;
567
+ description: string;
568
+ responses: {
569
+ 200: {
570
+ description: string;
571
+ content: {
572
+ "application/json": {
573
+ schema: {
574
+ type: "string";
575
+ };
576
+ };
577
+ };
578
+ };
579
+ };
580
+ };
581
+ };
582
+ }, string>;
583
+ getVerificationOTP: better_auth.StrictEndpoint<string, {
584
+ method: "GET";
585
+ query: zod.ZodObject<{
586
+ email: zod.ZodString;
587
+ type: zod.ZodEnum<{
588
+ "sign-in": "sign-in";
589
+ "change-email": "change-email";
590
+ "email-verification": "email-verification";
591
+ "forget-password": "forget-password";
592
+ }>;
593
+ }, zod_v4_core.$strip>;
594
+ metadata: {
595
+ openapi: {
596
+ operationId: string;
597
+ description: string;
598
+ responses: {
599
+ "200": {
600
+ description: string;
601
+ content: {
602
+ "application/json": {
603
+ schema: {
604
+ type: "object";
605
+ properties: {
606
+ otp: {
607
+ type: string;
608
+ nullable: boolean;
609
+ description: string;
610
+ };
611
+ };
612
+ required: string[];
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ };
619
+ };
620
+ }, {
621
+ otp: null;
622
+ } | {
623
+ otp: string;
624
+ }>;
625
+ checkVerificationOTP: better_auth.StrictEndpoint<"/email-otp/check-verification-otp", {
626
+ method: "POST";
627
+ body: zod.ZodObject<{
628
+ email: zod.ZodString;
629
+ type: zod.ZodEnum<{
630
+ "sign-in": "sign-in";
631
+ "change-email": "change-email";
632
+ "email-verification": "email-verification";
633
+ "forget-password": "forget-password";
634
+ }>;
635
+ otp: zod.ZodString;
636
+ }, zod_v4_core.$strip>;
637
+ metadata: {
638
+ openapi: {
639
+ operationId: string;
640
+ description: string;
641
+ responses: {
642
+ 200: {
643
+ description: string;
644
+ content: {
645
+ "application/json": {
646
+ schema: {
647
+ type: "object";
648
+ properties: {
649
+ success: {
650
+ type: string;
651
+ };
652
+ };
653
+ };
654
+ };
655
+ };
656
+ };
657
+ };
658
+ };
659
+ };
660
+ }, {
661
+ success: boolean;
662
+ }>;
663
+ verifyEmailOTP: better_auth.StrictEndpoint<"/email-otp/verify-email", {
664
+ method: "POST";
665
+ body: zod.ZodObject<{
666
+ email: zod.ZodString;
667
+ otp: zod.ZodString;
668
+ }, zod_v4_core.$strip>;
669
+ metadata: {
670
+ openapi: {
671
+ description: string;
672
+ responses: {
673
+ 200: {
674
+ description: string;
675
+ content: {
676
+ "application/json": {
677
+ schema: {
678
+ type: "object";
679
+ properties: {
680
+ status: {
681
+ type: string;
682
+ description: string;
683
+ enum: boolean[];
684
+ };
685
+ token: {
686
+ type: string;
687
+ nullable: boolean;
688
+ description: string;
689
+ };
690
+ user: {
691
+ $ref: string;
692
+ };
693
+ };
694
+ required: string[];
695
+ };
696
+ };
697
+ };
698
+ };
699
+ };
700
+ };
701
+ };
702
+ }, {
703
+ status: boolean;
704
+ token: string;
705
+ user: {
706
+ id: string;
707
+ createdAt: Date;
708
+ updatedAt: Date;
709
+ email: string;
710
+ emailVerified: boolean;
711
+ name: string;
712
+ image?: string | null | undefined;
713
+ } & Record<string, any>;
714
+ } | {
715
+ status: boolean;
716
+ token: null;
717
+ user: {
718
+ id: string;
719
+ createdAt: Date;
720
+ updatedAt: Date;
721
+ email: string;
722
+ emailVerified: boolean;
723
+ name: string;
724
+ image?: string | null | undefined;
725
+ } & Record<string, any>;
726
+ }>;
727
+ signInEmailOTP: better_auth.StrictEndpoint<"/sign-in/email-otp", {
728
+ method: "POST";
729
+ body: zod.ZodIntersection<zod.ZodObject<{
730
+ email: zod.ZodString;
731
+ otp: zod.ZodString;
732
+ name: zod.ZodOptional<zod.ZodString>;
733
+ image: zod.ZodOptional<zod.ZodString>;
734
+ }, zod_v4_core.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
735
+ metadata: {
736
+ openapi: {
737
+ operationId: string;
738
+ description: string;
739
+ responses: {
740
+ 200: {
741
+ description: string;
742
+ content: {
743
+ "application/json": {
744
+ schema: {
745
+ type: "object";
746
+ properties: {
747
+ token: {
748
+ type: string;
749
+ description: string;
750
+ };
751
+ user: {
752
+ $ref: string;
753
+ };
754
+ };
755
+ required: string[];
756
+ };
757
+ };
758
+ };
759
+ };
760
+ };
761
+ };
762
+ };
763
+ }, {
764
+ token: string;
765
+ user: {
766
+ id: string;
767
+ createdAt: Date;
768
+ updatedAt: Date;
769
+ email: string;
770
+ emailVerified: boolean;
771
+ name: string;
772
+ image?: string | null | undefined;
773
+ };
774
+ }>;
775
+ requestPasswordResetEmailOTP: better_auth.StrictEndpoint<"/email-otp/request-password-reset", {
776
+ method: "POST";
777
+ body: zod.ZodObject<{
778
+ email: zod.ZodString;
779
+ }, zod_v4_core.$strip>;
780
+ metadata: {
781
+ openapi: {
782
+ operationId: string;
783
+ description: string;
784
+ responses: {
785
+ 200: {
786
+ description: string;
787
+ content: {
788
+ "application/json": {
789
+ schema: {
790
+ type: "object";
791
+ properties: {
792
+ success: {
793
+ type: string;
794
+ description: string;
795
+ };
796
+ };
797
+ };
798
+ };
799
+ };
800
+ };
801
+ };
802
+ };
803
+ };
804
+ }, {
805
+ success: boolean;
806
+ }>;
807
+ forgetPasswordEmailOTP: better_auth.StrictEndpoint<"/forget-password/email-otp", {
808
+ method: "POST";
809
+ body: zod.ZodObject<{
810
+ email: zod.ZodString;
811
+ }, zod_v4_core.$strip>;
812
+ metadata: {
813
+ openapi: {
814
+ operationId: string;
815
+ description: string;
816
+ responses: {
817
+ 200: {
818
+ description: string;
819
+ content: {
820
+ "application/json": {
821
+ schema: {
822
+ type: "object";
823
+ properties: {
824
+ success: {
825
+ type: string;
826
+ description: string;
827
+ };
828
+ };
829
+ };
830
+ };
831
+ };
832
+ };
833
+ };
834
+ };
835
+ };
836
+ }, {
837
+ success: boolean;
838
+ }>;
839
+ resetPasswordEmailOTP: better_auth.StrictEndpoint<"/email-otp/reset-password", {
840
+ method: "POST";
841
+ body: zod.ZodObject<{
842
+ email: zod.ZodString;
843
+ otp: zod.ZodString;
844
+ password: zod.ZodString;
845
+ }, zod_v4_core.$strip>;
846
+ metadata: {
847
+ openapi: {
848
+ operationId: string;
849
+ description: string;
850
+ responses: {
851
+ 200: {
852
+ description: string;
853
+ content: {
854
+ "application/json": {
855
+ schema: {
856
+ type: "object";
857
+ properties: {
858
+ success: {
859
+ type: string;
860
+ };
861
+ };
862
+ };
863
+ };
864
+ };
865
+ };
866
+ };
867
+ };
868
+ };
869
+ }, {
870
+ success: boolean;
871
+ }>;
872
+ requestEmailChangeEmailOTP: better_auth.StrictEndpoint<"/email-otp/request-email-change", {
873
+ method: "POST";
874
+ body: zod.ZodObject<{
875
+ newEmail: zod.ZodString;
876
+ otp: zod.ZodOptional<zod.ZodString>;
877
+ }, zod_v4_core.$strip>;
878
+ use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
879
+ session: {
880
+ session: Record<string, any> & {
881
+ id: string;
882
+ createdAt: Date;
883
+ updatedAt: Date;
884
+ userId: string;
885
+ expiresAt: Date;
886
+ token: string;
887
+ ipAddress?: string | null | undefined;
888
+ userAgent?: string | null | undefined;
889
+ };
890
+ user: Record<string, any> & {
891
+ id: string;
892
+ createdAt: Date;
893
+ updatedAt: Date;
894
+ email: string;
895
+ emailVerified: boolean;
896
+ name: string;
897
+ image?: string | null | undefined;
898
+ };
899
+ };
900
+ }>)[];
901
+ metadata: {
902
+ openapi: {
903
+ operationId: string;
904
+ description: string;
905
+ responses: {
906
+ 200: {
907
+ description: string;
908
+ content: {
909
+ "application/json": {
910
+ schema: {
911
+ type: "object";
912
+ properties: {
913
+ success: {
914
+ type: string;
915
+ };
916
+ };
917
+ };
918
+ };
919
+ };
920
+ };
921
+ };
922
+ };
923
+ };
924
+ }, {
925
+ success: boolean;
926
+ }>;
927
+ changeEmailEmailOTP: better_auth.StrictEndpoint<"/email-otp/change-email", {
928
+ method: "POST";
929
+ body: zod.ZodObject<{
930
+ newEmail: zod.ZodString;
931
+ otp: zod.ZodString;
932
+ }, zod_v4_core.$strip>;
933
+ use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
934
+ session: {
935
+ session: Record<string, any> & {
936
+ id: string;
937
+ createdAt: Date;
938
+ updatedAt: Date;
939
+ userId: string;
940
+ expiresAt: Date;
941
+ token: string;
942
+ ipAddress?: string | null | undefined;
943
+ userAgent?: string | null | undefined;
944
+ };
945
+ user: Record<string, any> & {
946
+ id: string;
947
+ createdAt: Date;
948
+ updatedAt: Date;
949
+ email: string;
950
+ emailVerified: boolean;
951
+ name: string;
952
+ image?: string | null | undefined;
953
+ };
954
+ };
955
+ }>)[];
956
+ metadata: {
957
+ openapi: {
958
+ operationId: string;
959
+ description: string;
960
+ responses: {
961
+ 200: {
962
+ description: string;
963
+ content: {
964
+ "application/json": {
965
+ schema: {
966
+ type: "object";
967
+ properties: {
968
+ success: {
969
+ type: string;
970
+ };
971
+ };
972
+ };
973
+ };
974
+ };
975
+ };
976
+ };
977
+ };
978
+ };
979
+ }, {
980
+ success: boolean;
981
+ }>;
982
+ };
983
+ hooks: {
984
+ after: {
985
+ matcher(context: better_auth.HookEndpointContext): boolean;
986
+ handler: (inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<void>;
987
+ }[];
988
+ };
989
+ rateLimit: ({
990
+ pathMatcher(path: string): path is "/email-otp/send-verification-otp";
991
+ window: number;
992
+ max: number;
993
+ } | {
994
+ pathMatcher(path: string): path is "/email-otp/check-verification-otp";
995
+ window: number;
996
+ max: number;
997
+ } | {
998
+ pathMatcher(path: string): path is "/email-otp/verify-email";
999
+ window: number;
1000
+ max: number;
1001
+ } | {
1002
+ pathMatcher(path: string): path is "/sign-in/email-otp";
1003
+ window: number;
1004
+ max: number;
1005
+ } | {
1006
+ pathMatcher(path: string): path is "/email-otp/request-password-reset";
1007
+ window: number;
1008
+ max: number;
1009
+ } | {
1010
+ pathMatcher(path: string): path is "/email-otp/reset-password";
1011
+ window: number;
1012
+ max: number;
1013
+ } | {
1014
+ pathMatcher(path: string): path is "/forget-password/email-otp";
1015
+ window: number;
1016
+ max: number;
1017
+ } | {
1018
+ pathMatcher(path: string): path is "/email-otp/request-email-change";
1019
+ window: number;
1020
+ max: number;
1021
+ } | {
1022
+ pathMatcher(path: string): path is "/email-otp/change-email";
1023
+ window: number;
1024
+ max: number;
1025
+ })[];
1026
+ options: better_auth_plugins_email_otp.EmailOTPOptions;
1027
+ $ERROR_CODES: {
1028
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
1029
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
1030
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
1031
+ };
1032
+ }>;
1033
+ atomListeners: {
1034
+ matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp" | "/email-otp/request-email-change";
1035
+ signal: "$sessionSignal";
1036
+ }[];
1037
+ $ERROR_CODES: {
1038
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
1039
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
1040
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
1041
+ };
1042
+ } | {
1043
+ id: "phoneNumber";
1044
+ version: string;
1045
+ $InferServerPlugin: ReturnType<(options?: better_auth_plugins_phone_number.PhoneNumberOptions | undefined) => {
1046
+ id: "phone-number";
1047
+ version: string;
1048
+ init(): {
1049
+ options: {
1050
+ databaseHooks: {
1051
+ user: {
1052
+ update: {
1053
+ before(data: Partial<{
1054
+ id: string;
1055
+ createdAt: Date;
1056
+ updatedAt: Date;
1057
+ email: string;
1058
+ emailVerified: boolean;
1059
+ name: string;
1060
+ image?: string | null | undefined;
1061
+ }> & Record<string, unknown>): Promise<{
1062
+ data: {
1063
+ [x: string]: unknown;
1064
+ id?: string | undefined;
1065
+ createdAt?: Date | undefined;
1066
+ updatedAt?: Date | undefined;
1067
+ email?: string | undefined;
1068
+ emailVerified?: boolean | undefined;
1069
+ name?: string | undefined;
1070
+ image?: string | null | undefined;
1071
+ };
1072
+ } | undefined>;
1073
+ };
1074
+ };
1075
+ };
1076
+ };
1077
+ };
1078
+ hooks: {
1079
+ before: {
1080
+ matcher: (ctx: better_auth.HookEndpointContext) => boolean;
1081
+ handler: (inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<never>;
1082
+ }[];
1083
+ };
1084
+ endpoints: {
1085
+ signInPhoneNumber: better_auth.StrictEndpoint<"/sign-in/phone-number", {
1086
+ method: "POST";
1087
+ body: zod.ZodObject<{
1088
+ phoneNumber: zod.ZodString;
1089
+ password: zod.ZodString;
1090
+ rememberMe: zod.ZodOptional<zod.ZodBoolean>;
1091
+ }, zod_v4_core.$strip>;
1092
+ metadata: {
1093
+ openapi: {
1094
+ summary: string;
1095
+ description: string;
1096
+ responses: {
1097
+ 200: {
1098
+ description: string;
1099
+ content: {
1100
+ "application/json": {
1101
+ schema: {
1102
+ type: "object";
1103
+ properties: {
1104
+ user: {
1105
+ $ref: string;
1106
+ };
1107
+ session: {
1108
+ $ref: string;
1109
+ };
1110
+ };
1111
+ };
1112
+ };
1113
+ };
1114
+ };
1115
+ 400: {
1116
+ description: string;
1117
+ };
1118
+ };
1119
+ };
1120
+ };
1121
+ }, {
1122
+ token: string;
1123
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
1124
+ }>;
1125
+ sendPhoneNumberOTP: better_auth.StrictEndpoint<"/phone-number/send-otp", {
1126
+ method: "POST";
1127
+ body: zod.ZodObject<{
1128
+ phoneNumber: zod.ZodString;
1129
+ }, zod_v4_core.$strip>;
1130
+ metadata: {
1131
+ openapi: {
1132
+ summary: string;
1133
+ description: string;
1134
+ responses: {
1135
+ 200: {
1136
+ description: string;
1137
+ content: {
1138
+ "application/json": {
1139
+ schema: {
1140
+ type: "object";
1141
+ properties: {
1142
+ message: {
1143
+ type: string;
1144
+ };
1145
+ };
1146
+ };
1147
+ };
1148
+ };
1149
+ };
1150
+ };
1151
+ };
1152
+ };
1153
+ }, {
1154
+ message: string;
1155
+ }>;
1156
+ verifyPhoneNumber: better_auth.StrictEndpoint<"/phone-number/verify", {
1157
+ method: "POST";
1158
+ body: zod.ZodIntersection<zod.ZodObject<{
1159
+ phoneNumber: zod.ZodString;
1160
+ code: zod.ZodString;
1161
+ disableSession: zod.ZodOptional<zod.ZodBoolean>;
1162
+ updatePhoneNumber: zod.ZodOptional<zod.ZodBoolean>;
1163
+ }, zod_v4_core.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
1164
+ metadata: {
1165
+ openapi: {
1166
+ summary: string;
1167
+ description: string;
1168
+ responses: {
1169
+ "200": {
1170
+ description: string;
1171
+ content: {
1172
+ "application/json": {
1173
+ schema: {
1174
+ type: "object";
1175
+ properties: {
1176
+ status: {
1177
+ type: string;
1178
+ description: string;
1179
+ enum: boolean[];
1180
+ };
1181
+ token: {
1182
+ type: string;
1183
+ nullable: boolean;
1184
+ description: string;
1185
+ };
1186
+ user: {
1187
+ type: string;
1188
+ nullable: boolean;
1189
+ properties: {
1190
+ id: {
1191
+ type: string;
1192
+ description: string;
1193
+ };
1194
+ email: {
1195
+ type: string;
1196
+ format: string;
1197
+ nullable: boolean;
1198
+ description: string;
1199
+ };
1200
+ emailVerified: {
1201
+ type: string;
1202
+ nullable: boolean;
1203
+ description: string;
1204
+ };
1205
+ name: {
1206
+ type: string;
1207
+ nullable: boolean;
1208
+ description: string;
1209
+ };
1210
+ image: {
1211
+ type: string;
1212
+ format: string;
1213
+ nullable: boolean;
1214
+ description: string;
1215
+ };
1216
+ phoneNumber: {
1217
+ type: string;
1218
+ description: string;
1219
+ };
1220
+ phoneNumberVerified: {
1221
+ type: string;
1222
+ description: string;
1223
+ };
1224
+ createdAt: {
1225
+ type: string;
1226
+ format: string;
1227
+ description: string;
1228
+ };
1229
+ updatedAt: {
1230
+ type: string;
1231
+ format: string;
1232
+ description: string;
1233
+ };
1234
+ };
1235
+ required: string[];
1236
+ description: string;
1237
+ };
1238
+ };
1239
+ required: string[];
1240
+ };
1241
+ };
1242
+ };
1243
+ };
1244
+ 400: {
1245
+ description: string;
1246
+ };
1247
+ };
1248
+ };
1249
+ };
1250
+ }, {
1251
+ status: boolean;
1252
+ token: string;
1253
+ user: {
1254
+ id: string;
1255
+ createdAt: Date;
1256
+ updatedAt: Date;
1257
+ email: string;
1258
+ emailVerified: boolean;
1259
+ name: string;
1260
+ image?: string | null | undefined;
1261
+ } & better_auth_plugins_phone_number.UserWithPhoneNumber;
1262
+ } | {
1263
+ status: boolean;
1264
+ token: null;
1265
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
1266
+ }>;
1267
+ requestPasswordResetPhoneNumber: better_auth.StrictEndpoint<"/phone-number/request-password-reset", {
1268
+ method: "POST";
1269
+ body: zod.ZodObject<{
1270
+ phoneNumber: zod.ZodString;
1271
+ }, zod_v4_core.$strip>;
1272
+ metadata: {
1273
+ openapi: {
1274
+ description: string;
1275
+ responses: {
1276
+ "200": {
1277
+ description: string;
1278
+ content: {
1279
+ "application/json": {
1280
+ schema: {
1281
+ type: "object";
1282
+ properties: {
1283
+ status: {
1284
+ type: string;
1285
+ description: string;
1286
+ enum: boolean[];
1287
+ };
1288
+ };
1289
+ required: string[];
1290
+ };
1291
+ };
1292
+ };
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ }, {
1298
+ status: boolean;
1299
+ }>;
1300
+ resetPasswordPhoneNumber: better_auth.StrictEndpoint<"/phone-number/reset-password", {
1301
+ method: "POST";
1302
+ body: zod.ZodObject<{
1303
+ otp: zod.ZodString;
1304
+ phoneNumber: zod.ZodString;
1305
+ newPassword: zod.ZodString;
1306
+ }, zod_v4_core.$strip>;
1307
+ metadata: {
1308
+ openapi: {
1309
+ description: string;
1310
+ responses: {
1311
+ "200": {
1312
+ description: string;
1313
+ content: {
1314
+ "application/json": {
1315
+ schema: {
1316
+ type: "object";
1317
+ properties: {
1318
+ status: {
1319
+ type: string;
1320
+ description: string;
1321
+ enum: boolean[];
1322
+ };
1323
+ };
1324
+ required: string[];
1325
+ };
1326
+ };
1327
+ };
1328
+ };
1329
+ };
1330
+ };
1331
+ };
1332
+ }, {
1333
+ status: boolean;
1334
+ }>;
1335
+ };
1336
+ schema: {
1337
+ user: {
1338
+ fields: {
1339
+ phoneNumber: {
1340
+ type: "string";
1341
+ required: false;
1342
+ unique: true;
1343
+ sortable: true;
1344
+ returned: true;
1345
+ };
1346
+ phoneNumberVerified: {
1347
+ type: "boolean";
1348
+ required: false;
1349
+ returned: true;
1350
+ input: false;
1351
+ };
1352
+ };
1353
+ };
1354
+ };
1355
+ rateLimit: {
1356
+ pathMatcher(path: string): boolean;
1357
+ window: number;
1358
+ max: number;
1359
+ }[];
1360
+ options: better_auth_plugins_phone_number.PhoneNumberOptions | undefined;
1361
+ $ERROR_CODES: {
1362
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
1363
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
1364
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
1365
+ INVALID_PHONE_NUMBER: better_auth.RawError<"INVALID_PHONE_NUMBER">;
1366
+ PHONE_NUMBER_EXIST: better_auth.RawError<"PHONE_NUMBER_EXIST">;
1367
+ PHONE_NUMBER_NOT_EXIST: better_auth.RawError<"PHONE_NUMBER_NOT_EXIST">;
1368
+ INVALID_PHONE_NUMBER_OR_PASSWORD: better_auth.RawError<"INVALID_PHONE_NUMBER_OR_PASSWORD">;
1369
+ UNEXPECTED_ERROR: better_auth.RawError<"UNEXPECTED_ERROR">;
1370
+ OTP_NOT_FOUND: better_auth.RawError<"OTP_NOT_FOUND">;
1371
+ PHONE_NUMBER_NOT_VERIFIED: better_auth.RawError<"PHONE_NUMBER_NOT_VERIFIED">;
1372
+ PHONE_NUMBER_CANNOT_BE_UPDATED: better_auth.RawError<"PHONE_NUMBER_CANNOT_BE_UPDATED">;
1373
+ SEND_OTP_NOT_IMPLEMENTED: better_auth.RawError<"SEND_OTP_NOT_IMPLEMENTED">;
1374
+ };
1375
+ }>;
1376
+ atomListeners: {
1377
+ matcher(path: string): path is "/phone-number/verify" | "/sign-in/phone-number" | "/phone-number/update";
1378
+ signal: "$sessionSignal";
1379
+ }[];
1380
+ $ERROR_CODES: {
1381
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
1382
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
1383
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
1384
+ INVALID_PHONE_NUMBER: better_auth.RawError<"INVALID_PHONE_NUMBER">;
1385
+ PHONE_NUMBER_EXIST: better_auth.RawError<"PHONE_NUMBER_EXIST">;
1386
+ PHONE_NUMBER_NOT_EXIST: better_auth.RawError<"PHONE_NUMBER_NOT_EXIST">;
1387
+ INVALID_PHONE_NUMBER_OR_PASSWORD: better_auth.RawError<"INVALID_PHONE_NUMBER_OR_PASSWORD">;
1388
+ UNEXPECTED_ERROR: better_auth.RawError<"UNEXPECTED_ERROR">;
1389
+ OTP_NOT_FOUND: better_auth.RawError<"OTP_NOT_FOUND">;
1390
+ PHONE_NUMBER_NOT_VERIFIED: better_auth.RawError<"PHONE_NUMBER_NOT_VERIFIED">;
1391
+ PHONE_NUMBER_CANNOT_BE_UPDATED: better_auth.RawError<"PHONE_NUMBER_CANNOT_BE_UPDATED">;
1392
+ SEND_OTP_NOT_IMPLEMENTED: better_auth.RawError<"SEND_OTP_NOT_IMPLEMENTED">;
1393
+ };
1394
+ })[];
1395
+ }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<(Omit<{
1396
+ token: null;
1397
+ user: {
1398
+ id: string;
1399
+ createdAt: Date;
1400
+ updatedAt: Date;
1401
+ email: string;
1402
+ emailVerified: boolean;
1403
+ name: string;
1404
+ image?: string | null | undefined | undefined;
1405
+ };
1406
+ }, "user"> & {
1407
+ user: better_auth.StripEmptyObjects<{
1408
+ id: string;
1409
+ createdAt: Date;
1410
+ updatedAt: Date;
1411
+ email: string;
1412
+ emailVerified: boolean;
1413
+ name: string;
1414
+ image?: string | null | undefined;
1415
+ } & {} & {
1416
+ phoneNumber?: string | null | undefined;
1417
+ phoneNumberVerified?: boolean | null | undefined;
1418
+ }>;
1419
+ }) | (Omit<{
1420
+ token: string;
1421
+ user: {
1422
+ id: string;
1423
+ createdAt: Date;
1424
+ updatedAt: Date;
1425
+ email: string;
1426
+ emailVerified: boolean;
1427
+ name: string;
1428
+ image?: string | null | undefined | undefined;
1429
+ };
1430
+ }, "user"> & {
1431
+ user: better_auth.StripEmptyObjects<{
1432
+ id: string;
1433
+ createdAt: Date;
1434
+ updatedAt: Date;
1435
+ email: string;
1436
+ emailVerified: boolean;
1437
+ name: string;
1438
+ image?: string | null | undefined;
1439
+ } & {} & {
1440
+ phoneNumber?: string | null | undefined;
1441
+ phoneNumberVerified?: boolean | null | undefined;
1442
+ }>;
1443
+ }), {
1444
+ code?: string | undefined;
1445
+ message?: string | undefined;
1446
+ }, FetchOptions["throw"] extends true ? true : false>>;
1447
+ };
1448
+ } & {
1449
+ signIn: {
1450
+ email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1451
+ email: string;
1452
+ password: string;
1453
+ callbackURL?: string | undefined;
1454
+ rememberMe?: boolean | undefined;
1455
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1456
+ email: string;
1457
+ password: string;
1458
+ callbackURL?: string | undefined;
1459
+ rememberMe?: boolean | undefined;
1460
+ } & {
1461
+ fetchOptions?: FetchOptions | undefined;
1462
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<Omit<{
1463
+ redirect: boolean;
1464
+ token: string;
1465
+ url?: string | undefined;
1466
+ user: {
1467
+ id: string;
1468
+ createdAt: Date;
1469
+ updatedAt: Date;
1470
+ email: string;
1471
+ emailVerified: boolean;
1472
+ name: string;
1473
+ image?: string | null | undefined | undefined;
1474
+ };
1475
+ }, "user"> & {
1476
+ user: better_auth.StripEmptyObjects<{
1477
+ id: string;
1478
+ createdAt: Date;
1479
+ updatedAt: Date;
1480
+ email: string;
1481
+ emailVerified: boolean;
1482
+ name: string;
1483
+ image?: string | null | undefined;
1484
+ } & {} & {
1485
+ phoneNumber?: string | null | undefined;
1486
+ phoneNumberVerified?: boolean | null | undefined;
1487
+ }>;
1488
+ }, {
1489
+ code?: string | undefined;
1490
+ message?: string | undefined;
1491
+ }, FetchOptions["throw"] extends true ? true : false>>;
1492
+ };
1493
+ } & {
1494
+ resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1495
+ newPassword: string;
1496
+ token?: string | undefined;
1497
+ }> & Record<string, any>, Partial<{
1498
+ token?: string | undefined;
1499
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1500
+ newPassword: string;
1501
+ token?: string | undefined;
1502
+ } & {
1503
+ fetchOptions?: FetchOptions | undefined;
1504
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
1505
+ status: boolean;
1506
+ }, {
1507
+ code?: string | undefined;
1508
+ message?: string | undefined;
1509
+ }, FetchOptions["throw"] extends true ? true : false>>;
1510
+ } & {
1511
+ verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1512
+ token: string;
1513
+ callbackURL?: string | undefined;
1514
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1515
+ query: {
1516
+ token: string;
1517
+ callbackURL?: string | undefined;
1518
+ };
1519
+ fetchOptions?: FetchOptions | undefined;
1520
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<NonNullable<void | {
1521
+ status: boolean;
1522
+ }>, {
1523
+ code?: string | undefined;
1524
+ message?: string | undefined;
1525
+ }, FetchOptions["throw"] extends true ? true : false>>;
1526
+ } & {
1527
+ sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1528
+ email: string;
1529
+ callbackURL?: string | undefined;
1530
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1531
+ email: string;
1532
+ callbackURL?: string | undefined;
1533
+ } & {
1534
+ fetchOptions?: FetchOptions | undefined;
1535
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
1536
+ status: boolean;
1537
+ }, {
1538
+ code?: string | undefined;
1539
+ message?: string | undefined;
1540
+ }, FetchOptions["throw"] extends true ? true : false>>;
1541
+ } & {
1542
+ changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1543
+ newEmail: string;
1544
+ callbackURL?: string | undefined;
1545
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1546
+ newEmail: string;
1547
+ callbackURL?: string | undefined;
1548
+ } & {
1549
+ fetchOptions?: FetchOptions | undefined;
1550
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
1551
+ status: boolean;
1552
+ }, {
1553
+ code?: string | undefined;
1554
+ message?: string | undefined;
1555
+ }, FetchOptions["throw"] extends true ? true : false>>;
1556
+ } & {
1557
+ changePassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1558
+ newPassword: string;
1559
+ currentPassword: string;
1560
+ revokeOtherSessions?: boolean | undefined;
1561
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1562
+ newPassword: string;
1563
+ currentPassword: string;
1564
+ revokeOtherSessions?: boolean | undefined;
1565
+ } & {
1566
+ fetchOptions?: FetchOptions | undefined;
1567
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<Omit<{
1568
+ token: string | null;
1569
+ user: {
1570
+ id: string;
1571
+ createdAt: Date;
1572
+ updatedAt: Date;
1573
+ email: string;
1574
+ emailVerified: boolean;
1575
+ name: string;
1576
+ image?: string | null | undefined;
1577
+ } & Record<string, any> & {
1578
+ id: string;
1579
+ createdAt: Date;
1580
+ updatedAt: Date;
1581
+ email: string;
1582
+ emailVerified: boolean;
1583
+ name: string;
1584
+ image?: string | null | undefined;
1585
+ };
1586
+ }, "user"> & {
1587
+ user: better_auth.StripEmptyObjects<{
1588
+ id: string;
1589
+ createdAt: Date;
1590
+ updatedAt: Date;
1591
+ email: string;
1592
+ emailVerified: boolean;
1593
+ name: string;
1594
+ image?: string | null | undefined;
1595
+ } & {} & {
1596
+ phoneNumber?: string | null | undefined;
1597
+ phoneNumberVerified?: boolean | null | undefined;
1598
+ }>;
1599
+ }, {
1600
+ code?: string | undefined;
1601
+ message?: string | undefined;
1602
+ }, FetchOptions["throw"] extends true ? true : false>>;
1603
+ } & {
1604
+ updateSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<Partial<{}> & {
1605
+ fetchOptions?: FetchOptions | undefined;
1606
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
1607
+ session: {
1608
+ id: string;
1609
+ createdAt: Date;
1610
+ updatedAt: Date;
1611
+ userId: string;
1612
+ expiresAt: Date;
1613
+ token: string;
1614
+ ipAddress?: string | null | undefined;
1615
+ userAgent?: string | null | undefined;
1616
+ };
1617
+ }, {
1618
+ code?: string | undefined;
1619
+ message?: string | undefined;
1620
+ }, FetchOptions["throw"] extends true ? true : false>>;
1621
+ } & {
1622
+ updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
1623
+ name?: string | undefined;
1624
+ image?: string | undefined | null;
1625
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<better_auth_client.InferUserUpdateCtx<{
1626
+ baseURL: string;
1627
+ basePath: string;
1628
+ plugins: ({
1629
+ id: "email-otp";
1630
+ version: string;
1631
+ $InferServerPlugin: ReturnType<(options: better_auth_plugins_email_otp.EmailOTPOptions) => {
1632
+ id: "email-otp";
1633
+ version: string;
1634
+ init(ctx: better_auth.AuthContext): {
1635
+ options: {
1636
+ emailVerification: {
1637
+ sendVerificationEmail(data: {
1638
+ user: {
1639
+ id: string;
1640
+ createdAt: Date;
1641
+ updatedAt: Date;
1642
+ email: string;
1643
+ emailVerified: boolean;
1644
+ name: string;
1645
+ image?: string | null | undefined;
1646
+ };
1647
+ url: string;
1648
+ token: string;
1649
+ }, request: Request | undefined): Promise<void>;
1650
+ };
1651
+ };
1652
+ } | undefined;
1653
+ endpoints: {
1654
+ sendVerificationOTP: better_auth.StrictEndpoint<"/email-otp/send-verification-otp", {
1655
+ method: "POST";
1656
+ body: zod.ZodObject<{
1657
+ email: zod.ZodString;
1658
+ type: zod.ZodEnum<{
1659
+ "sign-in": "sign-in";
1660
+ "change-email": "change-email";
1661
+ "email-verification": "email-verification";
1662
+ "forget-password": "forget-password";
1663
+ }>;
1664
+ }, zod_v4_core.$strip>;
1665
+ metadata: {
1666
+ openapi: {
1667
+ operationId: string;
1668
+ description: string;
1669
+ responses: {
1670
+ 200: {
1671
+ description: string;
1672
+ content: {
1673
+ "application/json": {
1674
+ schema: {
1675
+ type: "object";
1676
+ properties: {
1677
+ success: {
1678
+ type: string;
1679
+ };
1680
+ };
1681
+ };
1682
+ };
1683
+ };
1684
+ };
1685
+ };
1686
+ };
1687
+ };
1688
+ }, {
1689
+ success: boolean;
1690
+ }>;
1691
+ createVerificationOTP: better_auth.StrictEndpoint<string, {
1692
+ method: "POST";
1693
+ body: zod.ZodObject<{
1694
+ email: zod.ZodString;
1695
+ type: zod.ZodEnum<{
1696
+ "sign-in": "sign-in";
1697
+ "change-email": "change-email";
1698
+ "email-verification": "email-verification";
1699
+ "forget-password": "forget-password";
1700
+ }>;
1701
+ }, zod_v4_core.$strip>;
1702
+ metadata: {
1703
+ openapi: {
1704
+ operationId: string;
1705
+ description: string;
1706
+ responses: {
1707
+ 200: {
1708
+ description: string;
1709
+ content: {
1710
+ "application/json": {
1711
+ schema: {
1712
+ type: "string";
1713
+ };
1714
+ };
1715
+ };
1716
+ };
1717
+ };
1718
+ };
1719
+ };
1720
+ }, string>;
1721
+ getVerificationOTP: better_auth.StrictEndpoint<string, {
1722
+ method: "GET";
1723
+ query: zod.ZodObject<{
1724
+ email: zod.ZodString;
1725
+ type: zod.ZodEnum<{
1726
+ "sign-in": "sign-in";
1727
+ "change-email": "change-email";
1728
+ "email-verification": "email-verification";
1729
+ "forget-password": "forget-password";
1730
+ }>;
1731
+ }, zod_v4_core.$strip>;
1732
+ metadata: {
1733
+ openapi: {
1734
+ operationId: string;
1735
+ description: string;
1736
+ responses: {
1737
+ "200": {
1738
+ description: string;
1739
+ content: {
1740
+ "application/json": {
1741
+ schema: {
1742
+ type: "object";
1743
+ properties: {
1744
+ otp: {
1745
+ type: string;
1746
+ nullable: boolean;
1747
+ description: string;
1748
+ };
1749
+ };
1750
+ required: string[];
1751
+ };
1752
+ };
1753
+ };
1754
+ };
1755
+ };
1756
+ };
1757
+ };
1758
+ }, {
1759
+ otp: null;
1760
+ } | {
1761
+ otp: string;
1762
+ }>;
1763
+ checkVerificationOTP: better_auth.StrictEndpoint<"/email-otp/check-verification-otp", {
1764
+ method: "POST";
1765
+ body: zod.ZodObject<{
1766
+ email: zod.ZodString;
1767
+ type: zod.ZodEnum<{
1768
+ "sign-in": "sign-in";
1769
+ "change-email": "change-email";
1770
+ "email-verification": "email-verification";
1771
+ "forget-password": "forget-password";
1772
+ }>;
1773
+ otp: zod.ZodString;
1774
+ }, zod_v4_core.$strip>;
1775
+ metadata: {
1776
+ openapi: {
1777
+ operationId: string;
1778
+ description: string;
1779
+ responses: {
1780
+ 200: {
1781
+ description: string;
1782
+ content: {
1783
+ "application/json": {
1784
+ schema: {
1785
+ type: "object";
1786
+ properties: {
1787
+ success: {
1788
+ type: string;
1789
+ };
1790
+ };
1791
+ };
1792
+ };
1793
+ };
1794
+ };
1795
+ };
1796
+ };
1797
+ };
1798
+ }, {
1799
+ success: boolean;
1800
+ }>;
1801
+ verifyEmailOTP: better_auth.StrictEndpoint<"/email-otp/verify-email", {
1802
+ method: "POST";
1803
+ body: zod.ZodObject<{
1804
+ email: zod.ZodString;
1805
+ otp: zod.ZodString;
1806
+ }, zod_v4_core.$strip>;
1807
+ metadata: {
1808
+ openapi: {
1809
+ description: string;
1810
+ responses: {
1811
+ 200: {
1812
+ description: string;
1813
+ content: {
1814
+ "application/json": {
1815
+ schema: {
1816
+ type: "object";
1817
+ properties: {
1818
+ status: {
1819
+ type: string;
1820
+ description: string;
1821
+ enum: boolean[];
1822
+ };
1823
+ token: {
1824
+ type: string;
1825
+ nullable: boolean;
1826
+ description: string;
1827
+ };
1828
+ user: {
1829
+ $ref: string;
1830
+ };
1831
+ };
1832
+ required: string[];
1833
+ };
1834
+ };
1835
+ };
1836
+ };
1837
+ };
1838
+ };
1839
+ };
1840
+ }, {
1841
+ status: boolean;
1842
+ token: string;
1843
+ user: {
1844
+ id: string;
1845
+ createdAt: Date;
1846
+ updatedAt: Date;
1847
+ email: string;
1848
+ emailVerified: boolean;
1849
+ name: string;
1850
+ image?: string | null | undefined;
1851
+ } & Record<string, any>;
1852
+ } | {
1853
+ status: boolean;
1854
+ token: null;
1855
+ user: {
1856
+ id: string;
1857
+ createdAt: Date;
1858
+ updatedAt: Date;
1859
+ email: string;
1860
+ emailVerified: boolean;
1861
+ name: string;
1862
+ image?: string | null | undefined;
1863
+ } & Record<string, any>;
1864
+ }>;
1865
+ signInEmailOTP: better_auth.StrictEndpoint<"/sign-in/email-otp", {
1866
+ method: "POST";
1867
+ body: zod.ZodIntersection<zod.ZodObject<{
1868
+ email: zod.ZodString;
1869
+ otp: zod.ZodString;
1870
+ name: zod.ZodOptional<zod.ZodString>;
1871
+ image: zod.ZodOptional<zod.ZodString>;
1872
+ }, zod_v4_core.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
1873
+ metadata: {
1874
+ openapi: {
1875
+ operationId: string;
1876
+ description: string;
1877
+ responses: {
1878
+ 200: {
1879
+ description: string;
1880
+ content: {
1881
+ "application/json": {
1882
+ schema: {
1883
+ type: "object";
1884
+ properties: {
1885
+ token: {
1886
+ type: string;
1887
+ description: string;
1888
+ };
1889
+ user: {
1890
+ $ref: string;
1891
+ };
1892
+ };
1893
+ required: string[];
1894
+ };
1895
+ };
1896
+ };
1897
+ };
1898
+ };
1899
+ };
1900
+ };
1901
+ }, {
1902
+ token: string;
1903
+ user: {
1904
+ id: string;
1905
+ createdAt: Date;
1906
+ updatedAt: Date;
1907
+ email: string;
1908
+ emailVerified: boolean;
1909
+ name: string;
1910
+ image?: string | null | undefined;
1911
+ };
1912
+ }>;
1913
+ requestPasswordResetEmailOTP: better_auth.StrictEndpoint<"/email-otp/request-password-reset", {
1914
+ method: "POST";
1915
+ body: zod.ZodObject<{
1916
+ email: zod.ZodString;
1917
+ }, zod_v4_core.$strip>;
1918
+ metadata: {
1919
+ openapi: {
1920
+ operationId: string;
1921
+ description: string;
1922
+ responses: {
1923
+ 200: {
1924
+ description: string;
1925
+ content: {
1926
+ "application/json": {
1927
+ schema: {
1928
+ type: "object";
1929
+ properties: {
1930
+ success: {
1931
+ type: string;
1932
+ description: string;
1933
+ };
1934
+ };
1935
+ };
1936
+ };
1937
+ };
1938
+ };
1939
+ };
1940
+ };
1941
+ };
1942
+ }, {
1943
+ success: boolean;
1944
+ }>;
1945
+ forgetPasswordEmailOTP: better_auth.StrictEndpoint<"/forget-password/email-otp", {
1946
+ method: "POST";
1947
+ body: zod.ZodObject<{
1948
+ email: zod.ZodString;
1949
+ }, zod_v4_core.$strip>;
1950
+ metadata: {
1951
+ openapi: {
1952
+ operationId: string;
1953
+ description: string;
1954
+ responses: {
1955
+ 200: {
1956
+ description: string;
1957
+ content: {
1958
+ "application/json": {
1959
+ schema: {
1960
+ type: "object";
1961
+ properties: {
1962
+ success: {
1963
+ type: string;
1964
+ description: string;
1965
+ };
1966
+ };
1967
+ };
1968
+ };
1969
+ };
1970
+ };
1971
+ };
1972
+ };
1973
+ };
1974
+ }, {
1975
+ success: boolean;
1976
+ }>;
1977
+ resetPasswordEmailOTP: better_auth.StrictEndpoint<"/email-otp/reset-password", {
1978
+ method: "POST";
1979
+ body: zod.ZodObject<{
1980
+ email: zod.ZodString;
1981
+ otp: zod.ZodString;
1982
+ password: zod.ZodString;
1983
+ }, zod_v4_core.$strip>;
1984
+ metadata: {
1985
+ openapi: {
1986
+ operationId: string;
1987
+ description: string;
1988
+ responses: {
1989
+ 200: {
1990
+ description: string;
1991
+ content: {
1992
+ "application/json": {
1993
+ schema: {
1994
+ type: "object";
1995
+ properties: {
1996
+ success: {
1997
+ type: string;
1998
+ };
1999
+ };
2000
+ };
2001
+ };
2002
+ };
2003
+ };
2004
+ };
2005
+ };
2006
+ };
2007
+ }, {
2008
+ success: boolean;
2009
+ }>;
2010
+ requestEmailChangeEmailOTP: better_auth.StrictEndpoint<"/email-otp/request-email-change", {
2011
+ method: "POST";
2012
+ body: zod.ZodObject<{
2013
+ newEmail: zod.ZodString;
2014
+ otp: zod.ZodOptional<zod.ZodString>;
2015
+ }, zod_v4_core.$strip>;
2016
+ use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
2017
+ session: {
2018
+ session: Record<string, any> & {
2019
+ id: string;
2020
+ createdAt: Date;
2021
+ updatedAt: Date;
2022
+ userId: string;
2023
+ expiresAt: Date;
2024
+ token: string;
2025
+ ipAddress?: string | null | undefined;
2026
+ userAgent?: string | null | undefined;
2027
+ };
2028
+ user: Record<string, any> & {
2029
+ id: string;
2030
+ createdAt: Date;
2031
+ updatedAt: Date;
2032
+ email: string;
2033
+ emailVerified: boolean;
2034
+ name: string;
2035
+ image?: string | null | undefined;
2036
+ };
2037
+ };
2038
+ }>)[];
2039
+ metadata: {
2040
+ openapi: {
2041
+ operationId: string;
2042
+ description: string;
2043
+ responses: {
2044
+ 200: {
2045
+ description: string;
2046
+ content: {
2047
+ "application/json": {
2048
+ schema: {
2049
+ type: "object";
2050
+ properties: {
2051
+ success: {
2052
+ type: string;
2053
+ };
2054
+ };
2055
+ };
2056
+ };
2057
+ };
2058
+ };
2059
+ };
2060
+ };
2061
+ };
2062
+ }, {
2063
+ success: boolean;
2064
+ }>;
2065
+ changeEmailEmailOTP: better_auth.StrictEndpoint<"/email-otp/change-email", {
2066
+ method: "POST";
2067
+ body: zod.ZodObject<{
2068
+ newEmail: zod.ZodString;
2069
+ otp: zod.ZodString;
2070
+ }, zod_v4_core.$strip>;
2071
+ use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
2072
+ session: {
2073
+ session: Record<string, any> & {
2074
+ id: string;
2075
+ createdAt: Date;
2076
+ updatedAt: Date;
2077
+ userId: string;
2078
+ expiresAt: Date;
2079
+ token: string;
2080
+ ipAddress?: string | null | undefined;
2081
+ userAgent?: string | null | undefined;
2082
+ };
2083
+ user: Record<string, any> & {
2084
+ id: string;
2085
+ createdAt: Date;
2086
+ updatedAt: Date;
2087
+ email: string;
2088
+ emailVerified: boolean;
2089
+ name: string;
2090
+ image?: string | null | undefined;
2091
+ };
2092
+ };
2093
+ }>)[];
2094
+ metadata: {
2095
+ openapi: {
2096
+ operationId: string;
2097
+ description: string;
2098
+ responses: {
2099
+ 200: {
2100
+ description: string;
2101
+ content: {
2102
+ "application/json": {
2103
+ schema: {
2104
+ type: "object";
2105
+ properties: {
2106
+ success: {
2107
+ type: string;
2108
+ };
2109
+ };
2110
+ };
2111
+ };
2112
+ };
2113
+ };
2114
+ };
2115
+ };
2116
+ };
2117
+ }, {
2118
+ success: boolean;
2119
+ }>;
2120
+ };
2121
+ hooks: {
2122
+ after: {
2123
+ matcher(context: better_auth.HookEndpointContext): boolean;
2124
+ handler: (inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<void>;
2125
+ }[];
2126
+ };
2127
+ rateLimit: ({
2128
+ pathMatcher(path: string): path is "/email-otp/send-verification-otp";
2129
+ window: number;
2130
+ max: number;
2131
+ } | {
2132
+ pathMatcher(path: string): path is "/email-otp/check-verification-otp";
2133
+ window: number;
2134
+ max: number;
2135
+ } | {
2136
+ pathMatcher(path: string): path is "/email-otp/verify-email";
2137
+ window: number;
2138
+ max: number;
2139
+ } | {
2140
+ pathMatcher(path: string): path is "/sign-in/email-otp";
2141
+ window: number;
2142
+ max: number;
2143
+ } | {
2144
+ pathMatcher(path: string): path is "/email-otp/request-password-reset";
2145
+ window: number;
2146
+ max: number;
2147
+ } | {
2148
+ pathMatcher(path: string): path is "/email-otp/reset-password";
2149
+ window: number;
2150
+ max: number;
2151
+ } | {
2152
+ pathMatcher(path: string): path is "/forget-password/email-otp";
2153
+ window: number;
2154
+ max: number;
2155
+ } | {
2156
+ pathMatcher(path: string): path is "/email-otp/request-email-change";
2157
+ window: number;
2158
+ max: number;
2159
+ } | {
2160
+ pathMatcher(path: string): path is "/email-otp/change-email";
2161
+ window: number;
2162
+ max: number;
2163
+ })[];
2164
+ options: better_auth_plugins_email_otp.EmailOTPOptions;
2165
+ $ERROR_CODES: {
2166
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
2167
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
2168
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
2169
+ };
2170
+ }>;
2171
+ atomListeners: {
2172
+ matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp" | "/email-otp/request-email-change";
2173
+ signal: "$sessionSignal";
2174
+ }[];
2175
+ $ERROR_CODES: {
2176
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
2177
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
2178
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
2179
+ };
2180
+ } | {
2181
+ id: "phoneNumber";
2182
+ version: string;
2183
+ $InferServerPlugin: ReturnType<(options?: better_auth_plugins_phone_number.PhoneNumberOptions | undefined) => {
2184
+ id: "phone-number";
2185
+ version: string;
2186
+ init(): {
2187
+ options: {
2188
+ databaseHooks: {
2189
+ user: {
2190
+ update: {
2191
+ before(data: Partial<{
2192
+ id: string;
2193
+ createdAt: Date;
2194
+ updatedAt: Date;
2195
+ email: string;
2196
+ emailVerified: boolean;
2197
+ name: string;
2198
+ image?: string | null | undefined;
2199
+ }> & Record<string, unknown>): Promise<{
2200
+ data: {
2201
+ [x: string]: unknown;
2202
+ id?: string | undefined;
2203
+ createdAt?: Date | undefined;
2204
+ updatedAt?: Date | undefined;
2205
+ email?: string | undefined;
2206
+ emailVerified?: boolean | undefined;
2207
+ name?: string | undefined;
2208
+ image?: string | null | undefined;
2209
+ };
2210
+ } | undefined>;
2211
+ };
2212
+ };
2213
+ };
2214
+ };
2215
+ };
2216
+ hooks: {
2217
+ before: {
2218
+ matcher: (ctx: better_auth.HookEndpointContext) => boolean;
2219
+ handler: (inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<never>;
2220
+ }[];
2221
+ };
2222
+ endpoints: {
2223
+ signInPhoneNumber: better_auth.StrictEndpoint<"/sign-in/phone-number", {
2224
+ method: "POST";
2225
+ body: zod.ZodObject<{
2226
+ phoneNumber: zod.ZodString;
2227
+ password: zod.ZodString;
2228
+ rememberMe: zod.ZodOptional<zod.ZodBoolean>;
2229
+ }, zod_v4_core.$strip>;
2230
+ metadata: {
2231
+ openapi: {
2232
+ summary: string;
2233
+ description: string;
2234
+ responses: {
2235
+ 200: {
2236
+ description: string;
2237
+ content: {
2238
+ "application/json": {
2239
+ schema: {
2240
+ type: "object";
2241
+ properties: {
2242
+ user: {
2243
+ $ref: string;
2244
+ };
2245
+ session: {
2246
+ $ref: string;
2247
+ };
2248
+ };
2249
+ };
2250
+ };
2251
+ };
2252
+ };
2253
+ 400: {
2254
+ description: string;
2255
+ };
2256
+ };
2257
+ };
2258
+ };
2259
+ }, {
2260
+ token: string;
2261
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
2262
+ }>;
2263
+ sendPhoneNumberOTP: better_auth.StrictEndpoint<"/phone-number/send-otp", {
2264
+ method: "POST";
2265
+ body: zod.ZodObject<{
2266
+ phoneNumber: zod.ZodString;
2267
+ }, zod_v4_core.$strip>;
2268
+ metadata: {
2269
+ openapi: {
2270
+ summary: string;
2271
+ description: string;
2272
+ responses: {
2273
+ 200: {
2274
+ description: string;
2275
+ content: {
2276
+ "application/json": {
2277
+ schema: {
2278
+ type: "object";
2279
+ properties: {
2280
+ message: {
2281
+ type: string;
2282
+ };
2283
+ };
2284
+ };
2285
+ };
2286
+ };
2287
+ };
2288
+ };
2289
+ };
2290
+ };
2291
+ }, {
2292
+ message: string;
2293
+ }>;
2294
+ verifyPhoneNumber: better_auth.StrictEndpoint<"/phone-number/verify", {
2295
+ method: "POST";
2296
+ body: zod.ZodIntersection<zod.ZodObject<{
2297
+ phoneNumber: zod.ZodString;
2298
+ code: zod.ZodString;
2299
+ disableSession: zod.ZodOptional<zod.ZodBoolean>;
2300
+ updatePhoneNumber: zod.ZodOptional<zod.ZodBoolean>;
2301
+ }, zod_v4_core.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
2302
+ metadata: {
2303
+ openapi: {
2304
+ summary: string;
2305
+ description: string;
2306
+ responses: {
2307
+ "200": {
2308
+ description: string;
2309
+ content: {
2310
+ "application/json": {
2311
+ schema: {
2312
+ type: "object";
2313
+ properties: {
2314
+ status: {
2315
+ type: string;
2316
+ description: string;
2317
+ enum: boolean[];
2318
+ };
2319
+ token: {
2320
+ type: string;
2321
+ nullable: boolean;
2322
+ description: string;
2323
+ };
2324
+ user: {
2325
+ type: string;
2326
+ nullable: boolean;
2327
+ properties: {
2328
+ id: {
2329
+ type: string;
2330
+ description: string;
2331
+ };
2332
+ email: {
2333
+ type: string;
2334
+ format: string;
2335
+ nullable: boolean;
2336
+ description: string;
2337
+ };
2338
+ emailVerified: {
2339
+ type: string;
2340
+ nullable: boolean;
2341
+ description: string;
2342
+ };
2343
+ name: {
2344
+ type: string;
2345
+ nullable: boolean;
2346
+ description: string;
2347
+ };
2348
+ image: {
2349
+ type: string;
2350
+ format: string;
2351
+ nullable: boolean;
2352
+ description: string;
2353
+ };
2354
+ phoneNumber: {
2355
+ type: string;
2356
+ description: string;
2357
+ };
2358
+ phoneNumberVerified: {
2359
+ type: string;
2360
+ description: string;
2361
+ };
2362
+ createdAt: {
2363
+ type: string;
2364
+ format: string;
2365
+ description: string;
2366
+ };
2367
+ updatedAt: {
2368
+ type: string;
2369
+ format: string;
2370
+ description: string;
2371
+ };
2372
+ };
2373
+ required: string[];
2374
+ description: string;
2375
+ };
2376
+ };
2377
+ required: string[];
2378
+ };
2379
+ };
2380
+ };
2381
+ };
2382
+ 400: {
2383
+ description: string;
2384
+ };
2385
+ };
2386
+ };
2387
+ };
2388
+ }, {
2389
+ status: boolean;
2390
+ token: string;
2391
+ user: {
2392
+ id: string;
2393
+ createdAt: Date;
2394
+ updatedAt: Date;
2395
+ email: string;
2396
+ emailVerified: boolean;
2397
+ name: string;
2398
+ image?: string | null | undefined;
2399
+ } & better_auth_plugins_phone_number.UserWithPhoneNumber;
2400
+ } | {
2401
+ status: boolean;
2402
+ token: null;
2403
+ user: better_auth_plugins_phone_number.UserWithPhoneNumber;
2404
+ }>;
2405
+ requestPasswordResetPhoneNumber: better_auth.StrictEndpoint<"/phone-number/request-password-reset", {
2406
+ method: "POST";
2407
+ body: zod.ZodObject<{
2408
+ phoneNumber: zod.ZodString;
2409
+ }, zod_v4_core.$strip>;
2410
+ metadata: {
2411
+ openapi: {
2412
+ description: string;
2413
+ responses: {
2414
+ "200": {
2415
+ description: string;
2416
+ content: {
2417
+ "application/json": {
2418
+ schema: {
2419
+ type: "object";
2420
+ properties: {
2421
+ status: {
2422
+ type: string;
2423
+ description: string;
2424
+ enum: boolean[];
2425
+ };
2426
+ };
2427
+ required: string[];
2428
+ };
2429
+ };
2430
+ };
2431
+ };
2432
+ };
2433
+ };
2434
+ };
2435
+ }, {
2436
+ status: boolean;
2437
+ }>;
2438
+ resetPasswordPhoneNumber: better_auth.StrictEndpoint<"/phone-number/reset-password", {
2439
+ method: "POST";
2440
+ body: zod.ZodObject<{
2441
+ otp: zod.ZodString;
2442
+ phoneNumber: zod.ZodString;
2443
+ newPassword: zod.ZodString;
2444
+ }, zod_v4_core.$strip>;
2445
+ metadata: {
2446
+ openapi: {
2447
+ description: string;
2448
+ responses: {
2449
+ "200": {
2450
+ description: string;
2451
+ content: {
2452
+ "application/json": {
2453
+ schema: {
2454
+ type: "object";
2455
+ properties: {
2456
+ status: {
2457
+ type: string;
2458
+ description: string;
2459
+ enum: boolean[];
2460
+ };
2461
+ };
2462
+ required: string[];
2463
+ };
2464
+ };
2465
+ };
2466
+ };
2467
+ };
2468
+ };
2469
+ };
2470
+ }, {
2471
+ status: boolean;
2472
+ }>;
2473
+ };
2474
+ schema: {
2475
+ user: {
2476
+ fields: {
2477
+ phoneNumber: {
2478
+ type: "string";
2479
+ required: false;
2480
+ unique: true;
2481
+ sortable: true;
2482
+ returned: true;
2483
+ };
2484
+ phoneNumberVerified: {
2485
+ type: "boolean";
2486
+ required: false;
2487
+ returned: true;
2488
+ input: false;
2489
+ };
2490
+ };
2491
+ };
2492
+ };
2493
+ rateLimit: {
2494
+ pathMatcher(path: string): boolean;
2495
+ window: number;
2496
+ max: number;
2497
+ }[];
2498
+ options: better_auth_plugins_phone_number.PhoneNumberOptions | undefined;
2499
+ $ERROR_CODES: {
2500
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
2501
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
2502
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
2503
+ INVALID_PHONE_NUMBER: better_auth.RawError<"INVALID_PHONE_NUMBER">;
2504
+ PHONE_NUMBER_EXIST: better_auth.RawError<"PHONE_NUMBER_EXIST">;
2505
+ PHONE_NUMBER_NOT_EXIST: better_auth.RawError<"PHONE_NUMBER_NOT_EXIST">;
2506
+ INVALID_PHONE_NUMBER_OR_PASSWORD: better_auth.RawError<"INVALID_PHONE_NUMBER_OR_PASSWORD">;
2507
+ UNEXPECTED_ERROR: better_auth.RawError<"UNEXPECTED_ERROR">;
2508
+ OTP_NOT_FOUND: better_auth.RawError<"OTP_NOT_FOUND">;
2509
+ PHONE_NUMBER_NOT_VERIFIED: better_auth.RawError<"PHONE_NUMBER_NOT_VERIFIED">;
2510
+ PHONE_NUMBER_CANNOT_BE_UPDATED: better_auth.RawError<"PHONE_NUMBER_CANNOT_BE_UPDATED">;
2511
+ SEND_OTP_NOT_IMPLEMENTED: better_auth.RawError<"SEND_OTP_NOT_IMPLEMENTED">;
2512
+ };
2513
+ }>;
2514
+ atomListeners: {
2515
+ matcher(path: string): path is "/phone-number/verify" | "/sign-in/phone-number" | "/phone-number/update";
2516
+ signal: "$sessionSignal";
2517
+ }[];
2518
+ $ERROR_CODES: {
2519
+ OTP_EXPIRED: better_auth.RawError<"OTP_EXPIRED">;
2520
+ INVALID_OTP: better_auth.RawError<"INVALID_OTP">;
2521
+ TOO_MANY_ATTEMPTS: better_auth.RawError<"TOO_MANY_ATTEMPTS">;
2522
+ INVALID_PHONE_NUMBER: better_auth.RawError<"INVALID_PHONE_NUMBER">;
2523
+ PHONE_NUMBER_EXIST: better_auth.RawError<"PHONE_NUMBER_EXIST">;
2524
+ PHONE_NUMBER_NOT_EXIST: better_auth.RawError<"PHONE_NUMBER_NOT_EXIST">;
2525
+ INVALID_PHONE_NUMBER_OR_PASSWORD: better_auth.RawError<"INVALID_PHONE_NUMBER_OR_PASSWORD">;
2526
+ UNEXPECTED_ERROR: better_auth.RawError<"UNEXPECTED_ERROR">;
2527
+ OTP_NOT_FOUND: better_auth.RawError<"OTP_NOT_FOUND">;
2528
+ PHONE_NUMBER_NOT_VERIFIED: better_auth.RawError<"PHONE_NUMBER_NOT_VERIFIED">;
2529
+ PHONE_NUMBER_CANNOT_BE_UPDATED: better_auth.RawError<"PHONE_NUMBER_CANNOT_BE_UPDATED">;
2530
+ SEND_OTP_NOT_IMPLEMENTED: better_auth.RawError<"SEND_OTP_NOT_IMPLEMENTED">;
2531
+ };
2532
+ })[];
2533
+ }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2534
+ status: boolean;
2535
+ }, {
2536
+ code?: string | undefined;
2537
+ message?: string | undefined;
2538
+ }, FetchOptions["throw"] extends true ? true : false>>;
2539
+ } & {
2540
+ deleteUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2541
+ callbackURL?: string | undefined;
2542
+ password?: string | undefined;
2543
+ token?: string | undefined;
2544
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2545
+ callbackURL?: string | undefined;
2546
+ password?: string | undefined;
2547
+ token?: string | undefined;
2548
+ } & {
2549
+ fetchOptions?: FetchOptions | undefined;
2550
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2551
+ success: boolean;
2552
+ message: string;
2553
+ }, {
2554
+ code?: string | undefined;
2555
+ message?: string | undefined;
2556
+ }, FetchOptions["throw"] extends true ? true : false>>;
2557
+ } & {
2558
+ requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2559
+ email: string;
2560
+ redirectTo?: string | undefined;
2561
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2562
+ email: string;
2563
+ redirectTo?: string | undefined;
2564
+ } & {
2565
+ fetchOptions?: FetchOptions | undefined;
2566
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2567
+ status: boolean;
2568
+ message: string;
2569
+ }, {
2570
+ code?: string | undefined;
2571
+ message?: string | undefined;
2572
+ }, FetchOptions["throw"] extends true ? true : false>>;
2573
+ } & {
2574
+ resetPassword: {
2575
+ ":token": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2576
+ callbackURL: string;
2577
+ }> & Record<string, any>, {
2578
+ token: string;
2579
+ }>>(data_0: better_auth.Prettify<{
2580
+ query: {
2581
+ callbackURL: string;
2582
+ };
2583
+ fetchOptions?: FetchOptions | undefined;
2584
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<never, {
2585
+ code?: string | undefined;
2586
+ message?: string | undefined;
2587
+ }, FetchOptions["throw"] extends true ? true : false>>;
2588
+ };
2589
+ } & {
2590
+ listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2591
+ query?: Record<string, any> | undefined;
2592
+ fetchOptions?: FetchOptions | undefined;
2593
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<better_auth.Prettify<{
2594
+ id: string;
2595
+ createdAt: Date;
2596
+ updatedAt: Date;
2597
+ userId: string;
2598
+ expiresAt: Date;
2599
+ token: string;
2600
+ ipAddress?: string | null | undefined | undefined;
2601
+ userAgent?: string | null | undefined | undefined;
2602
+ }>[], {
2603
+ code?: string | undefined;
2604
+ message?: string | undefined;
2605
+ }, FetchOptions["throw"] extends true ? true : false>>;
2606
+ } & {
2607
+ revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2608
+ token: string;
2609
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2610
+ token: string;
2611
+ } & {
2612
+ fetchOptions?: FetchOptions | undefined;
2613
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2614
+ status: boolean;
2615
+ }, {
2616
+ code?: string | undefined;
2617
+ message?: string | undefined;
2618
+ }, FetchOptions["throw"] extends true ? true : false>>;
2619
+ } & {
2620
+ revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2621
+ query?: Record<string, any> | undefined;
2622
+ fetchOptions?: FetchOptions | undefined;
2623
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2624
+ status: boolean;
2625
+ }, {
2626
+ code?: string | undefined;
2627
+ message?: string | undefined;
2628
+ }, FetchOptions["throw"] extends true ? true : false>>;
2629
+ } & {
2630
+ revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2631
+ query?: Record<string, any> | undefined;
2632
+ fetchOptions?: FetchOptions | undefined;
2633
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2634
+ status: boolean;
2635
+ }, {
2636
+ code?: string | undefined;
2637
+ message?: string | undefined;
2638
+ }, FetchOptions["throw"] extends true ? true : false>>;
2639
+ } & {
2640
+ linkSocial: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2641
+ provider: unknown;
2642
+ callbackURL?: string | undefined;
2643
+ idToken?: {
2644
+ token: string;
2645
+ nonce?: string | undefined;
2646
+ accessToken?: string | undefined;
2647
+ refreshToken?: string | undefined;
2648
+ scopes?: string[] | undefined;
2649
+ } | undefined;
2650
+ requestSignUp?: boolean | undefined;
2651
+ scopes?: string[] | undefined;
2652
+ errorCallbackURL?: string | undefined;
2653
+ disableRedirect?: boolean | undefined;
2654
+ additionalData?: Record<string, any> | undefined;
2655
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2656
+ provider: unknown;
2657
+ callbackURL?: string | undefined;
2658
+ idToken?: {
2659
+ token: string;
2660
+ nonce?: string | undefined;
2661
+ accessToken?: string | undefined;
2662
+ refreshToken?: string | undefined;
2663
+ scopes?: string[] | undefined;
2664
+ } | undefined;
2665
+ requestSignUp?: boolean | undefined;
2666
+ scopes?: string[] | undefined;
2667
+ errorCallbackURL?: string | undefined;
2668
+ disableRedirect?: boolean | undefined;
2669
+ additionalData?: Record<string, any> | undefined;
2670
+ } & {
2671
+ fetchOptions?: FetchOptions | undefined;
2672
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2673
+ url: string;
2674
+ redirect: boolean;
2675
+ }, {
2676
+ code?: string | undefined;
2677
+ message?: string | undefined;
2678
+ }, FetchOptions["throw"] extends true ? true : false>>;
2679
+ } & {
2680
+ listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2681
+ query?: Record<string, any> | undefined;
2682
+ fetchOptions?: FetchOptions | undefined;
2683
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2684
+ scopes: string[];
2685
+ id: string;
2686
+ createdAt: Date;
2687
+ updatedAt: Date;
2688
+ userId: string;
2689
+ providerId: string;
2690
+ accountId: string;
2691
+ }[], {
2692
+ code?: string | undefined;
2693
+ message?: string | undefined;
2694
+ }, FetchOptions["throw"] extends true ? true : false>>;
2695
+ } & {
2696
+ deleteUser: {
2697
+ callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2698
+ token: string;
2699
+ callbackURL?: string | undefined;
2700
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2701
+ query: {
2702
+ token: string;
2703
+ callbackURL?: string | undefined;
2704
+ };
2705
+ fetchOptions?: FetchOptions | undefined;
2706
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2707
+ success: boolean;
2708
+ message: string;
2709
+ }, {
2710
+ code?: string | undefined;
2711
+ message?: string | undefined;
2712
+ }, FetchOptions["throw"] extends true ? true : false>>;
2713
+ };
2714
+ } & {
2715
+ unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2716
+ providerId: string;
2717
+ accountId?: string | undefined;
2718
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2719
+ providerId: string;
2720
+ accountId?: string | undefined;
2721
+ } & {
2722
+ fetchOptions?: FetchOptions | undefined;
2723
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2724
+ status: boolean;
2725
+ }, {
2726
+ code?: string | undefined;
2727
+ message?: string | undefined;
2728
+ }, FetchOptions["throw"] extends true ? true : false>>;
2729
+ } & {
2730
+ refreshToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2731
+ providerId: string;
2732
+ accountId?: string | undefined;
2733
+ userId?: string | undefined;
2734
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2735
+ providerId: string;
2736
+ accountId?: string | undefined;
2737
+ userId?: string | undefined;
2738
+ } & {
2739
+ fetchOptions?: FetchOptions | undefined;
2740
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2741
+ accessToken: string | undefined;
2742
+ refreshToken: string;
2743
+ accessTokenExpiresAt: Date | undefined;
2744
+ refreshTokenExpiresAt: Date | null | undefined;
2745
+ scope: string | null | undefined;
2746
+ idToken: string | null | undefined;
2747
+ providerId: string;
2748
+ accountId: string;
2749
+ }, {
2750
+ code?: string | undefined;
2751
+ message?: string | undefined;
2752
+ }, FetchOptions["throw"] extends true ? true : false>>;
2753
+ } & {
2754
+ getAccessToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2755
+ providerId: string;
2756
+ accountId?: string | undefined;
2757
+ userId?: string | undefined;
2758
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2759
+ providerId: string;
2760
+ accountId?: string | undefined;
2761
+ userId?: string | undefined;
2762
+ } & {
2763
+ fetchOptions?: FetchOptions | undefined;
2764
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2765
+ accessToken: string;
2766
+ accessTokenExpiresAt: Date | undefined;
2767
+ scopes: string[];
2768
+ idToken: string | undefined;
2769
+ }, {
2770
+ code?: string | undefined;
2771
+ message?: string | undefined;
2772
+ }, FetchOptions["throw"] extends true ? true : false>>;
2773
+ } & {
2774
+ accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2775
+ accountId?: string | undefined;
2776
+ providerId?: string | undefined;
2777
+ userId?: string | undefined;
2778
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2779
+ query?: {
2780
+ accountId?: string | undefined;
2781
+ providerId?: string | undefined;
2782
+ userId?: string | undefined;
2783
+ } | undefined;
2784
+ fetchOptions?: FetchOptions | undefined;
2785
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2786
+ user: better_auth.OAuth2UserInfo;
2787
+ data: Record<string, any>;
2788
+ }, {
2789
+ code?: string | undefined;
2790
+ message?: string | undefined;
2791
+ }, FetchOptions["throw"] extends true ? true : false>>;
2792
+ } & {
2793
+ getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2794
+ disableCookieCache?: unknown;
2795
+ disableRefresh?: unknown;
2796
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2797
+ query?: {
2798
+ disableCookieCache?: unknown;
2799
+ disableRefresh?: unknown;
2800
+ } | undefined;
2801
+ fetchOptions?: FetchOptions | undefined;
2802
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
2803
+ user: better_auth.StripEmptyObjects<{
2804
+ id: string;
2805
+ createdAt: Date;
2806
+ updatedAt: Date;
2807
+ email: string;
2808
+ emailVerified: boolean;
2809
+ name: string;
2810
+ image?: string | null | undefined;
2811
+ } & {} & {
2812
+ phoneNumber?: string | null | undefined;
2813
+ phoneNumberVerified?: boolean | null | undefined;
2814
+ }>;
2815
+ session: better_auth.StripEmptyObjects<{
2816
+ id: string;
2817
+ createdAt: Date;
2818
+ updatedAt: Date;
2819
+ userId: string;
2820
+ expiresAt: Date;
2821
+ token: string;
2822
+ ipAddress?: string | null | undefined;
2823
+ userAgent?: string | null | undefined;
2824
+ }>;
2825
+ } | null, {
2826
+ code?: string | undefined;
2827
+ message?: string | undefined;
2828
+ }, FetchOptions["throw"] extends true ? true : false>>;
2829
+ } & {
2830
+ useSession: better_auth_client.Atom<{
2831
+ data: {
2832
+ user: better_auth.StripEmptyObjects<{
2833
+ id: string;
2834
+ createdAt: Date;
2835
+ updatedAt: Date;
2836
+ email: string;
2837
+ emailVerified: boolean;
2838
+ name: string;
2839
+ image?: string | null | undefined;
2840
+ } & {} & {
2841
+ phoneNumber?: string | null | undefined;
2842
+ phoneNumberVerified?: boolean | null | undefined;
2843
+ }>;
2844
+ session: better_auth.StripEmptyObjects<{
2845
+ id: string;
2846
+ createdAt: Date;
2847
+ updatedAt: Date;
2848
+ userId: string;
2849
+ expiresAt: Date;
2850
+ token: string;
2851
+ ipAddress?: string | null | undefined;
2852
+ userAgent?: string | null | undefined;
2853
+ }>;
2854
+ } | null;
2855
+ error: better_auth_client.BetterFetchError | null;
2856
+ isPending: boolean;
2857
+ isRefetching: boolean;
2858
+ refetch: (queryParams?: {
2859
+ query?: better_auth.SessionQueryParams;
2860
+ } | undefined) => Promise<void>;
2861
+ }>;
2862
+ $fetch: better_auth_client.BetterFetch<{
2863
+ plugins: (better_auth_client.BetterFetchPlugin<Record<string, any>> | {
2864
+ id: string;
2865
+ name: string;
2866
+ hooks: {
2867
+ onSuccess(context: better_auth_client.SuccessContext<any>): void;
2868
+ };
2869
+ } | {
2870
+ id: string;
2871
+ name: string;
2872
+ hooks: {
2873
+ onSuccess: ((context: better_auth_client.SuccessContext<any>) => Promise<void> | void) | undefined;
2874
+ onError: ((context: better_auth_client.ErrorContext) => Promise<void> | void) | undefined;
2875
+ onRequest: (<T extends Record<string, any>>(context: better_auth_client.RequestContext<T>) => Promise<better_auth_client.RequestContext | void> | better_auth_client.RequestContext | void) | undefined;
2876
+ onResponse: ((context: better_auth_client.ResponseContext) => Promise<Response | void | better_auth_client.ResponseContext> | Response | better_auth_client.ResponseContext | void) | undefined;
2877
+ };
2878
+ })[];
2879
+ priority?: RequestPriority | undefined;
2880
+ cache?: RequestCache | undefined;
2881
+ credentials?: RequestCredentials;
2882
+ headers?: (HeadersInit & (HeadersInit | {
2883
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2884
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2885
+ authorization: "Bearer" | "Basic";
2886
+ })) | undefined;
2887
+ integrity?: string | undefined;
2888
+ keepalive?: boolean | undefined;
2889
+ method: string;
2890
+ mode?: RequestMode | undefined;
2891
+ redirect?: RequestRedirect | undefined;
2892
+ referrer?: string | undefined;
2893
+ referrerPolicy?: ReferrerPolicy | undefined;
2894
+ signal?: (AbortSignal | null) | undefined;
2895
+ window?: null | undefined;
2896
+ onRetry?: ((response: better_auth_client.ResponseContext) => Promise<void> | void) | undefined;
2897
+ hookOptions?: {
2898
+ cloneResponse?: boolean;
2899
+ } | undefined;
2900
+ timeout?: number | undefined;
2901
+ customFetchImpl: better_auth_client.FetchEsque;
2902
+ baseURL: string;
2903
+ throw?: boolean | undefined;
2904
+ auth?: ({
2905
+ type: "Bearer";
2906
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2907
+ } | {
2908
+ type: "Basic";
2909
+ username: string | (() => string | undefined) | undefined;
2910
+ password: string | (() => string | undefined) | undefined;
2911
+ } | {
2912
+ type: "Custom";
2913
+ prefix: string | (() => string | undefined) | undefined;
2914
+ value: string | (() => string | undefined) | undefined;
2915
+ }) | undefined;
2916
+ body?: any;
2917
+ query?: any;
2918
+ params?: any;
2919
+ duplex?: "full" | "half" | undefined;
2920
+ jsonParser: (text: string) => Promise<any> | any;
2921
+ retry?: better_auth_client.RetryOptions | undefined;
2922
+ retryAttempt?: number | undefined;
2923
+ output?: (better_auth_client.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2924
+ errorSchema?: better_auth_client.StandardSchemaV1 | undefined;
2925
+ disableValidation?: boolean | undefined;
2926
+ disableSignal?: boolean | undefined;
2927
+ }, unknown, unknown, {}>;
2928
+ $store: {
2929
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2930
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2931
+ atoms: Record<string, better_auth_client.WritableAtom<any>>;
2932
+ };
2933
+ $Infer: {
2934
+ Session: {
2935
+ user: better_auth.StripEmptyObjects<{
2936
+ id: string;
2937
+ createdAt: Date;
2938
+ updatedAt: Date;
2939
+ email: string;
2940
+ emailVerified: boolean;
2941
+ name: string;
2942
+ image?: string | null | undefined;
2943
+ } & {} & {
2944
+ phoneNumber?: string | null | undefined;
2945
+ phoneNumberVerified?: boolean | null | undefined;
2946
+ }>;
2947
+ session: better_auth.StripEmptyObjects<{
2948
+ id: string;
2949
+ createdAt: Date;
2950
+ updatedAt: Date;
2951
+ userId: string;
2952
+ expiresAt: Date;
2953
+ token: string;
2954
+ ipAddress?: string | null | undefined;
2955
+ userAgent?: string | null | undefined;
2956
+ }>;
2957
+ };
2958
+ };
2959
+ $ERROR_CODES: {
2960
+ OTP_EXPIRED: {
2961
+ readonly code: "OTP_EXPIRED";
2962
+ message: string;
2963
+ };
2964
+ INVALID_OTP: {
2965
+ readonly code: "INVALID_OTP";
2966
+ message: string;
2967
+ };
2968
+ TOO_MANY_ATTEMPTS: {
2969
+ readonly code: "TOO_MANY_ATTEMPTS";
2970
+ message: string;
2971
+ };
2972
+ INVALID_PHONE_NUMBER: {
2973
+ readonly code: "INVALID_PHONE_NUMBER";
2974
+ message: string;
2975
+ };
2976
+ PHONE_NUMBER_EXIST: {
2977
+ readonly code: "PHONE_NUMBER_EXIST";
2978
+ message: string;
2979
+ };
2980
+ PHONE_NUMBER_NOT_EXIST: {
2981
+ readonly code: "PHONE_NUMBER_NOT_EXIST";
2982
+ message: string;
2983
+ };
2984
+ INVALID_PHONE_NUMBER_OR_PASSWORD: {
2985
+ readonly code: "INVALID_PHONE_NUMBER_OR_PASSWORD";
2986
+ message: string;
2987
+ };
2988
+ UNEXPECTED_ERROR: {
2989
+ readonly code: "UNEXPECTED_ERROR";
2990
+ message: string;
2991
+ };
2992
+ OTP_NOT_FOUND: {
2993
+ readonly code: "OTP_NOT_FOUND";
2994
+ message: string;
2995
+ };
2996
+ PHONE_NUMBER_NOT_VERIFIED: {
2997
+ readonly code: "PHONE_NUMBER_NOT_VERIFIED";
2998
+ message: string;
2999
+ };
3000
+ PHONE_NUMBER_CANNOT_BE_UPDATED: {
3001
+ readonly code: "PHONE_NUMBER_CANNOT_BE_UPDATED";
3002
+ message: string;
3003
+ };
3004
+ SEND_OTP_NOT_IMPLEMENTED: {
3005
+ readonly code: "SEND_OTP_NOT_IMPLEMENTED";
3006
+ message: string;
3007
+ };
3008
+ USER_NOT_FOUND: {
3009
+ readonly code: "USER_NOT_FOUND";
3010
+ message: string;
3011
+ };
3012
+ FAILED_TO_CREATE_USER: {
3013
+ readonly code: "FAILED_TO_CREATE_USER";
3014
+ message: string;
3015
+ };
3016
+ FAILED_TO_CREATE_SESSION: {
3017
+ readonly code: "FAILED_TO_CREATE_SESSION";
3018
+ message: string;
3019
+ };
3020
+ FAILED_TO_UPDATE_USER: {
3021
+ readonly code: "FAILED_TO_UPDATE_USER";
3022
+ message: string;
3023
+ };
3024
+ FAILED_TO_GET_SESSION: {
3025
+ readonly code: "FAILED_TO_GET_SESSION";
3026
+ message: string;
3027
+ };
3028
+ INVALID_PASSWORD: {
3029
+ readonly code: "INVALID_PASSWORD";
3030
+ message: string;
3031
+ };
3032
+ INVALID_EMAIL: {
3033
+ readonly code: "INVALID_EMAIL";
3034
+ message: string;
3035
+ };
3036
+ INVALID_EMAIL_OR_PASSWORD: {
3037
+ readonly code: "INVALID_EMAIL_OR_PASSWORD";
3038
+ message: string;
3039
+ };
3040
+ INVALID_USER: {
3041
+ readonly code: "INVALID_USER";
3042
+ message: string;
3043
+ };
3044
+ SOCIAL_ACCOUNT_ALREADY_LINKED: {
3045
+ readonly code: "SOCIAL_ACCOUNT_ALREADY_LINKED";
3046
+ message: string;
3047
+ };
3048
+ PROVIDER_NOT_FOUND: {
3049
+ readonly code: "PROVIDER_NOT_FOUND";
3050
+ message: string;
3051
+ };
3052
+ INVALID_TOKEN: {
3053
+ readonly code: "INVALID_TOKEN";
3054
+ message: string;
3055
+ };
3056
+ TOKEN_EXPIRED: {
3057
+ readonly code: "TOKEN_EXPIRED";
3058
+ message: string;
3059
+ };
3060
+ ID_TOKEN_NOT_SUPPORTED: {
3061
+ readonly code: "ID_TOKEN_NOT_SUPPORTED";
3062
+ message: string;
3063
+ };
3064
+ FAILED_TO_GET_USER_INFO: {
3065
+ readonly code: "FAILED_TO_GET_USER_INFO";
3066
+ message: string;
3067
+ };
3068
+ USER_EMAIL_NOT_FOUND: {
3069
+ readonly code: "USER_EMAIL_NOT_FOUND";
3070
+ message: string;
3071
+ };
3072
+ EMAIL_NOT_VERIFIED: {
3073
+ readonly code: "EMAIL_NOT_VERIFIED";
3074
+ message: string;
3075
+ };
3076
+ PASSWORD_TOO_SHORT: {
3077
+ readonly code: "PASSWORD_TOO_SHORT";
3078
+ message: string;
3079
+ };
3080
+ PASSWORD_TOO_LONG: {
3081
+ readonly code: "PASSWORD_TOO_LONG";
3082
+ message: string;
3083
+ };
3084
+ USER_ALREADY_EXISTS: {
3085
+ readonly code: "USER_ALREADY_EXISTS";
3086
+ message: string;
3087
+ };
3088
+ USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: {
3089
+ readonly code: "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL";
3090
+ message: string;
3091
+ };
3092
+ EMAIL_CAN_NOT_BE_UPDATED: {
3093
+ readonly code: "EMAIL_CAN_NOT_BE_UPDATED";
3094
+ message: string;
3095
+ };
3096
+ CHANGE_EMAIL_DISABLED: {
3097
+ readonly code: "CHANGE_EMAIL_DISABLED";
3098
+ message: string;
3099
+ };
3100
+ CREDENTIAL_ACCOUNT_NOT_FOUND: {
3101
+ readonly code: "CREDENTIAL_ACCOUNT_NOT_FOUND";
3102
+ message: string;
3103
+ };
3104
+ ACCOUNT_NOT_FOUND: {
3105
+ readonly code: "ACCOUNT_NOT_FOUND";
3106
+ message: string;
3107
+ };
3108
+ SESSION_EXPIRED: {
3109
+ readonly code: "SESSION_EXPIRED";
3110
+ message: string;
3111
+ };
3112
+ FAILED_TO_UNLINK_LAST_ACCOUNT: {
3113
+ readonly code: "FAILED_TO_UNLINK_LAST_ACCOUNT";
3114
+ message: string;
3115
+ };
3116
+ USER_ALREADY_HAS_PASSWORD: {
3117
+ readonly code: "USER_ALREADY_HAS_PASSWORD";
3118
+ message: string;
3119
+ };
3120
+ CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: {
3121
+ readonly code: "CROSS_SITE_NAVIGATION_LOGIN_BLOCKED";
3122
+ message: string;
3123
+ };
3124
+ VERIFICATION_EMAIL_NOT_ENABLED: {
3125
+ readonly code: "VERIFICATION_EMAIL_NOT_ENABLED";
3126
+ message: string;
3127
+ };
3128
+ EMAIL_ALREADY_VERIFIED: {
3129
+ readonly code: "EMAIL_ALREADY_VERIFIED";
3130
+ message: string;
3131
+ };
3132
+ EMAIL_MISMATCH: {
3133
+ readonly code: "EMAIL_MISMATCH";
3134
+ message: string;
3135
+ };
3136
+ SESSION_NOT_FRESH: {
3137
+ readonly code: "SESSION_NOT_FRESH";
3138
+ message: string;
3139
+ };
3140
+ LINKED_ACCOUNT_ALREADY_EXISTS: {
3141
+ readonly code: "LINKED_ACCOUNT_ALREADY_EXISTS";
3142
+ message: string;
3143
+ };
3144
+ INVALID_ORIGIN: {
3145
+ readonly code: "INVALID_ORIGIN";
3146
+ message: string;
3147
+ };
3148
+ INVALID_CALLBACK_URL: {
3149
+ readonly code: "INVALID_CALLBACK_URL";
3150
+ message: string;
3151
+ };
3152
+ INVALID_REDIRECT_URL: {
3153
+ readonly code: "INVALID_REDIRECT_URL";
3154
+ message: string;
3155
+ };
3156
+ INVALID_ERROR_CALLBACK_URL: {
3157
+ readonly code: "INVALID_ERROR_CALLBACK_URL";
3158
+ message: string;
3159
+ };
3160
+ INVALID_NEW_USER_CALLBACK_URL: {
3161
+ readonly code: "INVALID_NEW_USER_CALLBACK_URL";
3162
+ message: string;
3163
+ };
3164
+ MISSING_OR_NULL_ORIGIN: {
3165
+ readonly code: "MISSING_OR_NULL_ORIGIN";
3166
+ message: string;
3167
+ };
3168
+ CALLBACK_URL_REQUIRED: {
3169
+ readonly code: "CALLBACK_URL_REQUIRED";
3170
+ message: string;
3171
+ };
3172
+ FAILED_TO_CREATE_VERIFICATION: {
3173
+ readonly code: "FAILED_TO_CREATE_VERIFICATION";
3174
+ message: string;
3175
+ };
3176
+ FIELD_NOT_ALLOWED: {
3177
+ readonly code: "FIELD_NOT_ALLOWED";
3178
+ message: string;
3179
+ };
3180
+ ASYNC_VALIDATION_NOT_SUPPORTED: {
3181
+ readonly code: "ASYNC_VALIDATION_NOT_SUPPORTED";
3182
+ message: string;
3183
+ };
3184
+ VALIDATION_ERROR: {
3185
+ readonly code: "VALIDATION_ERROR";
3186
+ message: string;
3187
+ };
3188
+ MISSING_FIELD: {
3189
+ readonly code: "MISSING_FIELD";
3190
+ message: string;
3191
+ };
3192
+ METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: {
3193
+ readonly code: "METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED";
3194
+ message: string;
3195
+ };
3196
+ BODY_MUST_BE_AN_OBJECT: {
3197
+ readonly code: "BODY_MUST_BE_AN_OBJECT";
3198
+ message: string;
3199
+ };
3200
+ PASSWORD_ALREADY_SET: {
3201
+ readonly code: "PASSWORD_ALREADY_SET";
3202
+ message: string;
3203
+ };
3204
+ };
3205
+ };
3206
+ type Sa2kitAuthClient = ReturnType<typeof buildSa2kitAuthClient>;
3207
+ declare function createSa2kitAuthClient(options: Sa2kitAuthClientOptions): Sa2kitAuthClient;
3208
+
3209
+ export { type Sa2kitAuthClient, type Sa2kitAuthClientOptions, createSa2kitAuthClient };