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