sa2kit 2.0.3 → 3.0.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 (348) hide show
  1. package/README.md +1 -1
  2. package/dist/{UniversalFileService-GsP6D3Rc.d.ts → UniversalFileService-CC4d3wkc.d.ts} +2 -2
  3. package/dist/{UniversalFileService-BpvbZitV.d.mts → UniversalFileService-CzAE_G4V.d.mts} +2 -2
  4. package/dist/auth/client/index.d.mts +8 -27
  5. package/dist/auth/client/index.d.ts +8 -27
  6. package/dist/auth/client/index.js +9 -4
  7. package/dist/auth/client/index.mjs +2 -1
  8. package/dist/auth/components/index.d.mts +8 -225
  9. package/dist/auth/components/index.d.ts +8 -225
  10. package/dist/auth/components/index.js +62 -319
  11. package/dist/auth/components/index.js.map +1 -1
  12. package/dist/auth/components/index.mjs +6 -316
  13. package/dist/auth/components/index.mjs.map +1 -1
  14. package/dist/auth/hooks/index.d.mts +11 -29
  15. package/dist/auth/hooks/index.d.ts +11 -29
  16. package/dist/auth/hooks/index.js +14 -3
  17. package/dist/auth/hooks/index.mjs +4 -1
  18. package/dist/auth/index.d.mts +17 -14
  19. package/dist/auth/index.d.ts +17 -14
  20. package/dist/auth/index.js +51 -90
  21. package/dist/auth/index.mjs +8 -7
  22. package/dist/auth/rn/index.d.mts +3087 -18
  23. package/dist/auth/rn/index.d.ts +3087 -18
  24. package/dist/auth/rn/index.js +396 -477
  25. package/dist/auth/rn/index.js.map +1 -1
  26. package/dist/auth/rn/index.mjs +384 -475
  27. package/dist/auth/rn/index.mjs.map +1 -1
  28. package/dist/auth/schema/index.d.mts +3 -788
  29. package/dist/auth/schema/index.d.ts +3 -788
  30. package/dist/auth/schema/index.js +17 -9
  31. package/dist/auth/schema/index.mjs +1 -1
  32. package/dist/auth/services/index.d.mts +1 -48
  33. package/dist/auth/services/index.d.ts +1 -48
  34. package/dist/auth/services/index.js +3 -20
  35. package/dist/auth/services/index.mjs +1 -2
  36. package/dist/{base-api-client-B3wZZoaH.d.ts → base-api-client-BpmcQt4Q.d.ts} +1 -1
  37. package/dist/{base-api-client-ACKKt13v.d.mts → base-api-client-CFIhZK4C.d.mts} +1 -1
  38. package/dist/{base-api-client-ACKKt13v.d.ts → base-api-client-CFIhZK4C.d.ts} +1 -1
  39. package/dist/{base-api-client-DrL35Ea2.d.mts → base-api-client-DXLsq2yz.d.mts} +1 -1
  40. package/dist/business/index.d.mts +1 -5
  41. package/dist/business/index.d.ts +1 -5
  42. package/dist/business/index.js +34 -1135
  43. package/dist/business/index.js.map +1 -1
  44. package/dist/business/index.mjs +5 -1105
  45. package/dist/business/index.mjs.map +1 -1
  46. package/dist/calendar/routes/index.d.mts +74 -1
  47. package/dist/calendar/routes/index.d.ts +74 -1
  48. package/dist/calendar/routes/index.js +186 -97
  49. package/dist/calendar/routes/index.js.map +1 -1
  50. package/dist/calendar/routes/index.mjs +178 -99
  51. package/dist/calendar/routes/index.mjs.map +1 -1
  52. package/dist/{chunk-IIVNHQEI.mjs → chunk-5GBDDXYL.mjs} +4 -3
  53. package/dist/chunk-5GBDDXYL.mjs.map +1 -0
  54. package/dist/chunk-7E3J7VAD.mjs +3 -0
  55. package/dist/chunk-7E3J7VAD.mjs.map +1 -0
  56. package/dist/chunk-B3CZ3HXJ.mjs +126 -0
  57. package/dist/chunk-B3CZ3HXJ.mjs.map +1 -0
  58. package/dist/chunk-CAYOQDBR.js +78 -0
  59. package/dist/chunk-CAYOQDBR.js.map +1 -0
  60. package/dist/{chunk-PTMSDNGO.mjs → chunk-CX2GHCAI.mjs} +4 -75
  61. package/dist/chunk-CX2GHCAI.mjs.map +1 -0
  62. package/dist/chunk-EBHPTFG6.mjs +82 -0
  63. package/dist/chunk-EBHPTFG6.mjs.map +1 -0
  64. package/dist/chunk-FOQEQWX5.js +4 -0
  65. package/dist/chunk-FOQEQWX5.js.map +1 -0
  66. package/dist/{chunk-YGI7UU2D.mjs → chunk-G4NFB2QA.mjs} +2 -2
  67. package/dist/chunk-G4NFB2QA.mjs.map +1 -0
  68. package/dist/chunk-G5HJGXGC.mjs +39 -0
  69. package/dist/chunk-G5HJGXGC.mjs.map +1 -0
  70. package/dist/{chunk-GSNGCENJ.js → chunk-GQZHGSRR.js} +2 -39
  71. package/dist/chunk-GQZHGSRR.js.map +1 -0
  72. package/dist/chunk-GS7XLKET.js +41 -0
  73. package/dist/chunk-GS7XLKET.js.map +1 -0
  74. package/dist/{chunk-7B5SI4OF.mjs → chunk-IBWDBBX5.mjs} +4 -3
  75. package/dist/chunk-IBWDBBX5.mjs.map +1 -0
  76. package/dist/chunk-IS7O4LPI.js +146 -0
  77. package/dist/chunk-IS7O4LPI.js.map +1 -0
  78. package/dist/chunk-LGHUCQIU.js +93 -0
  79. package/dist/chunk-LGHUCQIU.js.map +1 -0
  80. package/dist/chunk-LHJKLUM7.mjs +18 -0
  81. package/dist/chunk-LHJKLUM7.mjs.map +1 -0
  82. package/dist/chunk-LKBIVQBT.mjs +34 -0
  83. package/dist/chunk-LKBIVQBT.mjs.map +1 -0
  84. package/dist/chunk-MIDXG6LS.js +32 -0
  85. package/dist/chunk-MIDXG6LS.js.map +1 -0
  86. package/dist/chunk-MWSAH7ZG.mjs +42 -0
  87. package/dist/chunk-MWSAH7ZG.mjs.map +1 -0
  88. package/dist/{chunk-HCI6JQOU.mjs → chunk-MZOGYD4N.mjs} +7 -4
  89. package/dist/chunk-MZOGYD4N.mjs.map +1 -0
  90. package/dist/chunk-NDGHXVGS.js +25 -0
  91. package/dist/chunk-NDGHXVGS.js.map +1 -0
  92. package/dist/chunk-Q5VFBPMG.mjs +76 -0
  93. package/dist/chunk-Q5VFBPMG.mjs.map +1 -0
  94. package/dist/chunk-QDUBO567.js +1148 -0
  95. package/dist/chunk-QDUBO567.js.map +1 -0
  96. package/dist/{chunk-3CSCIRQY.js → chunk-QP5N3ER6.js} +6 -5
  97. package/dist/chunk-QP5N3ER6.js.map +1 -0
  98. package/dist/chunk-RWCD2CAD.mjs +1132 -0
  99. package/dist/chunk-RWCD2CAD.mjs.map +1 -0
  100. package/dist/{chunk-VQ54PUQV.js → chunk-S37OK2QG.js} +2 -2
  101. package/dist/chunk-S37OK2QG.js.map +1 -0
  102. package/dist/chunk-S3PUP7N4.js +20 -0
  103. package/dist/chunk-S3PUP7N4.js.map +1 -0
  104. package/dist/{chunk-QQ2WFYOD.js → chunk-S6YSGVWD.js} +4 -76
  105. package/dist/chunk-S6YSGVWD.js.map +1 -0
  106. package/dist/chunk-SFDJNKWC.js +22 -0
  107. package/dist/chunk-SFDJNKWC.js.map +1 -0
  108. package/dist/chunk-TTYCVBIQ.mjs +144 -0
  109. package/dist/chunk-TTYCVBIQ.mjs.map +1 -0
  110. package/dist/{chunk-HBF4HPRK.js → chunk-TXMX6PZR.js} +7 -3
  111. package/dist/chunk-TXMX6PZR.js.map +1 -0
  112. package/dist/chunk-VHN7PF5I.js +20 -0
  113. package/dist/chunk-VHN7PF5I.js.map +1 -0
  114. package/dist/chunk-VJNDOYEC.js +41 -0
  115. package/dist/chunk-VJNDOYEC.js.map +1 -0
  116. package/dist/chunk-XBZIS3MV.mjs +13 -0
  117. package/dist/chunk-XBZIS3MV.mjs.map +1 -0
  118. package/dist/chunk-XFOZ56FB.mjs +20 -0
  119. package/dist/chunk-XFOZ56FB.mjs.map +1 -0
  120. package/dist/chunk-Z23HAXHL.js +136 -0
  121. package/dist/chunk-Z23HAXHL.js.map +1 -0
  122. package/dist/chunk-ZF7DKR5A.mjs +26 -0
  123. package/dist/chunk-ZF7DKR5A.mjs.map +1 -0
  124. package/dist/common/auth/client/index.d.mts +3239 -0
  125. package/dist/common/auth/client/index.d.ts +3239 -0
  126. package/dist/common/auth/client/index.js +26 -0
  127. package/dist/common/auth/client/index.mjs +5 -0
  128. package/dist/common/auth/components/index.d.mts +374 -0
  129. package/dist/common/auth/components/index.d.ts +374 -0
  130. package/dist/common/auth/components/index.js +70 -0
  131. package/dist/common/auth/components/index.mjs +9 -0
  132. package/dist/common/auth/hooks/index.d.mts +75 -0
  133. package/dist/common/auth/hooks/index.d.ts +75 -0
  134. package/dist/common/auth/hooks/index.js +28 -0
  135. package/dist/common/auth/hooks/index.js.map +1 -0
  136. package/dist/common/auth/hooks/index.mjs +7 -0
  137. package/dist/common/auth/hooks/index.mjs.map +1 -0
  138. package/dist/common/auth/index.d.mts +14 -6
  139. package/dist/common/auth/index.d.ts +14 -6
  140. package/dist/common/auth/index.js +17 -8
  141. package/dist/common/auth/index.mjs +4 -3
  142. package/dist/common/auth/react/index.d.mts +3056 -0
  143. package/dist/common/auth/react/index.d.ts +3056 -0
  144. package/dist/common/auth/react/index.js +31 -0
  145. package/dist/common/auth/react/index.js.map +1 -0
  146. package/dist/common/auth/react/index.mjs +21 -0
  147. package/dist/common/auth/react/index.mjs.map +1 -0
  148. package/dist/common/auth/rn/index.d.mts +3138 -0
  149. package/dist/common/auth/rn/index.d.ts +3138 -0
  150. package/dist/common/auth/rn/index.js +348 -0
  151. package/dist/common/auth/rn/index.js.map +1 -0
  152. package/dist/common/auth/rn/index.mjs +327 -0
  153. package/dist/common/auth/rn/index.mjs.map +1 -0
  154. package/dist/common/auth/schema/index.d.mts +1479 -0
  155. package/dist/common/auth/schema/index.d.ts +1479 -0
  156. package/dist/common/auth/schema/index.js +49 -0
  157. package/dist/common/auth/schema/index.js.map +1 -0
  158. package/dist/common/auth/schema/index.mjs +4 -0
  159. package/dist/common/auth/schema/index.mjs.map +1 -0
  160. package/dist/common/auth/server/index.d.mts +7 -30
  161. package/dist/common/auth/server/index.d.ts +7 -30
  162. package/dist/common/auth/server/index.js +36 -79
  163. package/dist/common/auth/server/index.mjs +2 -5
  164. package/dist/common/auth/services/index.d.mts +14 -0
  165. package/dist/common/auth/services/index.d.ts +14 -0
  166. package/dist/common/auth/services/index.js +17 -0
  167. package/dist/common/auth/services/index.js.map +1 -0
  168. package/dist/common/auth/services/index.mjs +4 -0
  169. package/dist/common/auth/services/index.mjs.map +1 -0
  170. package/dist/common/index.d.mts +13 -5
  171. package/dist/common/index.d.ts +13 -5
  172. package/dist/common/index.js +19 -16
  173. package/dist/common/index.mjs +11 -8
  174. package/dist/common/request/index.js +5 -4
  175. package/dist/common/request/index.mjs +3 -2
  176. package/dist/common/storage/index.js +13 -12
  177. package/dist/common/storage/index.mjs +3 -2
  178. package/dist/festivalCard/index.d.mts +3 -3
  179. package/dist/festivalCard/index.d.ts +3 -3
  180. package/dist/festivalCard/routes/index.d.mts +1 -1
  181. package/dist/festivalCard/routes/index.d.ts +1 -1
  182. package/dist/festivalCard/server/index.d.mts +2 -2
  183. package/dist/festivalCard/server/index.d.ts +2 -2
  184. package/dist/{festivalCardService-BFCRhJrq.d.ts → festivalCardService-B3GsnNpV.d.ts} +1 -1
  185. package/dist/{festivalCardService-GriR2VMc.d.mts → festivalCardService-CWhrLNE9.d.mts} +1 -1
  186. package/dist/{index-DPYkrKZf.d.mts → index-BcjDRcKp.d.mts} +11 -6
  187. package/dist/{index-Bnh6VqFv.d.ts → index-BlpXrrTy.d.ts} +11 -6
  188. package/dist/{index-1Ag7IBXN.d.ts → index-DZ5iJtNO.d.mts} +2 -44
  189. package/dist/{index-DdeZSeTJ.d.mts → index-DZ5iJtNO.d.ts} +2 -44
  190. package/dist/index.d.mts +6296 -40
  191. package/dist/index.d.ts +6296 -40
  192. package/dist/index.js +1378 -2508
  193. package/dist/index.js.map +1 -1
  194. package/dist/index.mjs +1073 -2203
  195. package/dist/index.mjs.map +1 -1
  196. package/dist/mmd/admin/index.d.mts +1 -1
  197. package/dist/mmd/admin/index.d.ts +1 -1
  198. package/dist/mmd/index.d.mts +1 -1
  199. package/dist/mmd/index.d.ts +1 -1
  200. package/dist/mmd/server/index.d.mts +3 -3
  201. package/dist/mmd/server/index.d.ts +3 -3
  202. package/dist/request/index.js +4 -3
  203. package/dist/request/index.mjs +2 -1
  204. package/dist/session-BCXvGCnm.d.mts +81 -0
  205. package/dist/session-BCXvGCnm.d.ts +81 -0
  206. package/dist/storage/index.js +12 -11
  207. package/dist/storage/index.mjs +2 -1
  208. package/dist/{types-DyG3ZV9V.d.mts → types-B6B210gX.d.mts} +1 -1
  209. package/dist/{types-DyG3ZV9V.d.ts → types-B6B210gX.d.ts} +1 -1
  210. package/dist/{types-BTiaMsBz.d.mts → types-Bdnte5EN.d.mts} +1 -1
  211. package/dist/{types-tQfupO6d.d.mts → types-Cs0CLvrH.d.mts} +1 -1
  212. package/dist/{types-tQfupO6d.d.ts → types-Cs0CLvrH.d.ts} +1 -1
  213. package/dist/{types-ERmJyjx8.d.ts → types-_rFX1atk.d.ts} +1 -1
  214. package/dist/types.legacy-J-j-_ig_.d.mts +25 -0
  215. package/dist/types.legacy-J-j-_ig_.d.ts +25 -0
  216. package/dist/useAuthActions-7S5dL7Oh.d.mts +77 -0
  217. package/dist/useAuthActions-7S5dL7Oh.d.ts +77 -0
  218. package/dist/vocaloidBooth/server/index.d.mts +3 -3
  219. package/dist/vocaloidBooth/server/index.d.ts +3 -3
  220. package/package.json +59 -76
  221. package/dist/auth/legacy/core/index.d.mts +0 -42
  222. package/dist/auth/legacy/core/index.d.ts +0 -42
  223. package/dist/auth/legacy/core/index.js +0 -242
  224. package/dist/auth/legacy/core/index.js.map +0 -1
  225. package/dist/auth/legacy/core/index.mjs +0 -226
  226. package/dist/auth/legacy/core/index.mjs.map +0 -1
  227. package/dist/auth/legacy/db/index.d.mts +0 -5
  228. package/dist/auth/legacy/db/index.d.ts +0 -5
  229. package/dist/auth/legacy/db/index.js +0 -261
  230. package/dist/auth/legacy/db/index.js.map +0 -1
  231. package/dist/auth/legacy/db/index.mjs +0 -250
  232. package/dist/auth/legacy/db/index.mjs.map +0 -1
  233. package/dist/auth/legacy/index.d.mts +0 -5
  234. package/dist/auth/legacy/index.d.ts +0 -5
  235. package/dist/auth/legacy/index.js +0 -1107
  236. package/dist/auth/legacy/index.js.map +0 -1
  237. package/dist/auth/legacy/index.mjs +0 -1086
  238. package/dist/auth/legacy/index.mjs.map +0 -1
  239. package/dist/auth/legacy/logic/index.d.mts +0 -9
  240. package/dist/auth/legacy/logic/index.d.ts +0 -9
  241. package/dist/auth/legacy/logic/index.js +0 -194
  242. package/dist/auth/legacy/logic/index.js.map +0 -1
  243. package/dist/auth/legacy/logic/index.mjs +0 -187
  244. package/dist/auth/legacy/logic/index.mjs.map +0 -1
  245. package/dist/auth/legacy/miniapp/index.d.mts +0 -5
  246. package/dist/auth/legacy/miniapp/index.d.ts +0 -5
  247. package/dist/auth/legacy/miniapp/index.js +0 -506
  248. package/dist/auth/legacy/miniapp/index.js.map +0 -1
  249. package/dist/auth/legacy/miniapp/index.mjs +0 -487
  250. package/dist/auth/legacy/miniapp/index.mjs.map +0 -1
  251. package/dist/auth/legacy/routes/index.d.mts +0 -53
  252. package/dist/auth/legacy/routes/index.d.ts +0 -53
  253. package/dist/auth/legacy/routes/index.js +0 -278
  254. package/dist/auth/legacy/routes/index.js.map +0 -1
  255. package/dist/auth/legacy/routes/index.mjs +0 -271
  256. package/dist/auth/legacy/routes/index.mjs.map +0 -1
  257. package/dist/auth/legacy/schema/index.d.mts +0 -401
  258. package/dist/auth/legacy/schema/index.d.ts +0 -401
  259. package/dist/auth/legacy/schema/index.js +0 -50
  260. package/dist/auth/legacy/schema/index.js.map +0 -1
  261. package/dist/auth/legacy/schema/index.mjs +0 -44
  262. package/dist/auth/legacy/schema/index.mjs.map +0 -1
  263. package/dist/auth/legacy/server/index.d.mts +0 -13
  264. package/dist/auth/legacy/server/index.d.ts +0 -13
  265. package/dist/auth/legacy/server/index.js +0 -21
  266. package/dist/auth/legacy/server/index.js.map +0 -1
  267. package/dist/auth/legacy/server/index.mjs +0 -19
  268. package/dist/auth/legacy/server/index.mjs.map +0 -1
  269. package/dist/auth/legacy/services/index.d.mts +0 -40
  270. package/dist/auth/legacy/services/index.d.ts +0 -40
  271. package/dist/auth/legacy/services/index.js +0 -258
  272. package/dist/auth/legacy/services/index.js.map +0 -1
  273. package/dist/auth/legacy/services/index.mjs +0 -252
  274. package/dist/auth/legacy/services/index.mjs.map +0 -1
  275. package/dist/auth/legacy/ui/miniapp/index.d.mts +0 -10
  276. package/dist/auth/legacy/ui/miniapp/index.d.ts +0 -10
  277. package/dist/auth/legacy/ui/miniapp/index.js +0 -298
  278. package/dist/auth/legacy/ui/miniapp/index.js.map +0 -1
  279. package/dist/auth/legacy/ui/miniapp/index.mjs +0 -290
  280. package/dist/auth/legacy/ui/miniapp/index.mjs.map +0 -1
  281. package/dist/auth/legacy/ui/web/index.d.mts +0 -22
  282. package/dist/auth/legacy/ui/web/index.d.ts +0 -22
  283. package/dist/auth/legacy/ui/web/index.js +0 -899
  284. package/dist/auth/legacy/ui/web/index.js.map +0 -1
  285. package/dist/auth/legacy/ui/web/index.mjs +0 -889
  286. package/dist/auth/legacy/ui/web/index.mjs.map +0 -1
  287. package/dist/auth/legacy/web/index.d.mts +0 -5
  288. package/dist/auth/legacy/web/index.d.ts +0 -5
  289. package/dist/auth/legacy/web/index.js +0 -1107
  290. package/dist/auth/legacy/web/index.js.map +0 -1
  291. package/dist/auth/legacy/web/index.mjs +0 -1086
  292. package/dist/auth/legacy/web/index.mjs.map +0 -1
  293. package/dist/auth/middleware/index.d.mts +0 -75
  294. package/dist/auth/middleware/index.d.ts +0 -75
  295. package/dist/auth/middleware/index.js +0 -15
  296. package/dist/auth/middleware/index.mjs +0 -6
  297. package/dist/auth/routes/index.d.mts +0 -261
  298. package/dist/auth/routes/index.d.ts +0 -261
  299. package/dist/auth/routes/index.js +0 -59
  300. package/dist/auth/routes/index.mjs +0 -6
  301. package/dist/chunk-37HYTHEC.mjs +0 -90
  302. package/dist/chunk-37HYTHEC.mjs.map +0 -1
  303. package/dist/chunk-3CSCIRQY.js.map +0 -1
  304. package/dist/chunk-5WV35FPV.js +0 -131
  305. package/dist/chunk-5WV35FPV.js.map +0 -1
  306. package/dist/chunk-7B5SI4OF.mjs.map +0 -1
  307. package/dist/chunk-DCRD5CZB.js +0 -573
  308. package/dist/chunk-DCRD5CZB.js.map +0 -1
  309. package/dist/chunk-DDX4JKFS.js +0 -19
  310. package/dist/chunk-DDX4JKFS.js.map +0 -1
  311. package/dist/chunk-DV6M7MFP.js +0 -283
  312. package/dist/chunk-DV6M7MFP.js.map +0 -1
  313. package/dist/chunk-EQXPL7TN.mjs +0 -78
  314. package/dist/chunk-EQXPL7TN.mjs.map +0 -1
  315. package/dist/chunk-GSNGCENJ.js.map +0 -1
  316. package/dist/chunk-HBF4HPRK.js.map +0 -1
  317. package/dist/chunk-HCI6JQOU.mjs.map +0 -1
  318. package/dist/chunk-I44HXJ3X.mjs +0 -17
  319. package/dist/chunk-I44HXJ3X.mjs.map +0 -1
  320. package/dist/chunk-IIVNHQEI.mjs.map +0 -1
  321. package/dist/chunk-IJ4YYWE3.mjs +0 -122
  322. package/dist/chunk-IJ4YYWE3.mjs.map +0 -1
  323. package/dist/chunk-J4BEIZUC.js +0 -92
  324. package/dist/chunk-J4BEIZUC.js.map +0 -1
  325. package/dist/chunk-OKPWFVXC.js +0 -24
  326. package/dist/chunk-OKPWFVXC.js.map +0 -1
  327. package/dist/chunk-PNOTQAYK.mjs +0 -560
  328. package/dist/chunk-PNOTQAYK.mjs.map +0 -1
  329. package/dist/chunk-PTMSDNGO.mjs.map +0 -1
  330. package/dist/chunk-Q2IAL7YV.js +0 -36
  331. package/dist/chunk-Q2IAL7YV.js.map +0 -1
  332. package/dist/chunk-QQ2WFYOD.js.map +0 -1
  333. package/dist/chunk-VQ54PUQV.js.map +0 -1
  334. package/dist/chunk-W5JEGA76.mjs +0 -33
  335. package/dist/chunk-W5JEGA76.mjs.map +0 -1
  336. package/dist/chunk-YGI7UU2D.mjs.map +0 -1
  337. package/dist/chunk-ZCLQSI5F.mjs +0 -271
  338. package/dist/chunk-ZCLQSI5F.mjs.map +0 -1
  339. package/dist/drizzle-auth-service-D-pljzCD.d.mts +0 -145
  340. package/dist/drizzle-auth-service-D3qryE_I.d.ts +0 -145
  341. package/dist/index-DNKZ7-R_.d.mts +0 -184
  342. package/dist/index-DNKZ7-R_.d.ts +0 -184
  343. package/dist/types-C5vUWf9u.d.ts +0 -70
  344. package/dist/types-IYCqCk2g.d.mts +0 -70
  345. /package/dist/{auth/middleware → common/auth/client}/index.js.map +0 -0
  346. /package/dist/{auth/middleware → common/auth/client}/index.mjs.map +0 -0
  347. /package/dist/{auth/routes → common/auth/components}/index.js.map +0 -0
  348. /package/dist/{auth/routes → common/auth/components}/index.mjs.map +0 -0
@@ -0,0 +1,374 @@
1
+ import React__default from 'react';
2
+ import { L as LoginFormState, R as RegisterFormState } from '../../../types.legacy-J-j-_ig_.js';
3
+ import { I as IAuthClient, U as User } from '../../../types-C_W_CoUD.js';
4
+ import { A as AuthActionsClient } from '../../../useAuthActions-7S5dL7Oh.js';
5
+ import { B as BaseApiClient } from '../../../base-api-client-BpmcQt4Q.js';
6
+ import '../../../enums-Dume-V5Y.js';
7
+ import 'drizzle-orm/pg-core';
8
+ import '../../../types-BaZccpvk.js';
9
+ import '../../../types-CbTsi9CZ.js';
10
+
11
+ type SignInMode = 'email-password' | 'phone-password' | 'phone-otp' | 'email-otp';
12
+ type OtpChannel = 'phone' | 'email';
13
+ interface SignInFormState {
14
+ mode: SignInMode;
15
+ step: 'credentials' | 'otp';
16
+ email: string;
17
+ phone: string;
18
+ password: string;
19
+ otp: string;
20
+ loading: boolean;
21
+ error: string | null;
22
+ setMode: (mode: SignInMode) => void;
23
+ setEmail: (value: string) => void;
24
+ setPhone: (value: string) => void;
25
+ setPassword: (value: string) => void;
26
+ setOtp: (value: string) => void;
27
+ sendOtp: () => Promise<void>;
28
+ handleSubmit: (e?: React.FormEvent) => Promise<void>;
29
+ }
30
+ interface RegisterFormHeadlessState {
31
+ channel: 'email' | 'phone';
32
+ step: 'credentials' | 'otp';
33
+ email: string;
34
+ phone: string;
35
+ password: string;
36
+ confirmPassword: string;
37
+ name: string;
38
+ otp: string;
39
+ loading: boolean;
40
+ error: string | null;
41
+ setChannel: (channel: 'email' | 'phone') => void;
42
+ setEmail: (value: string) => void;
43
+ setPhone: (value: string) => void;
44
+ setPassword: (value: string) => void;
45
+ setConfirmPassword: (value: string) => void;
46
+ setName: (value: string) => void;
47
+ setOtp: (value: string) => void;
48
+ sendOtp: () => Promise<void>;
49
+ handleSubmit: (e?: React.FormEvent) => Promise<void>;
50
+ }
51
+ interface VerifyOtpFormState {
52
+ channel: OtpChannel;
53
+ target: string;
54
+ otp: string;
55
+ loading: boolean;
56
+ error: string | null;
57
+ setOtp: (value: string) => void;
58
+ resendOtp: () => Promise<void>;
59
+ handleSubmit: (e?: React.FormEvent) => Promise<void>;
60
+ }
61
+ interface HeadlessSignInFormProps {
62
+ authClient: AuthActionsClient;
63
+ initialMode?: SignInMode;
64
+ onSuccess?: () => void;
65
+ onError?: (error: string) => void;
66
+ children: (state: SignInFormState) => React.ReactNode;
67
+ }
68
+ interface HeadlessRegisterFormProps {
69
+ authClient: AuthActionsClient;
70
+ initialChannel?: 'email' | 'phone';
71
+ onSuccess?: () => void;
72
+ onError?: (error: string) => void;
73
+ children: (state: RegisterFormHeadlessState) => React.ReactNode;
74
+ }
75
+ interface HeadlessVerifyOtpFormProps {
76
+ authClient: AuthActionsClient;
77
+ channel: OtpChannel;
78
+ target: string;
79
+ onSuccess?: () => void;
80
+ onError?: (error: string) => void;
81
+ children: (state: VerifyOtpFormState) => React.ReactNode;
82
+ }
83
+ /** @deprecated 2.x */
84
+ interface BaseFormProps {
85
+ apiClient: IAuthClient;
86
+ onSuccess?: (user: unknown) => void;
87
+ onError?: (error: string) => void;
88
+ }
89
+ /** @deprecated 使用 HeadlessSignInFormProps */
90
+ interface HeadlessLoginFormProps extends BaseFormProps {
91
+ children: (state: LoginFormState) => React.ReactNode;
92
+ }
93
+ /** @deprecated */
94
+ interface HeadlessRegisterFormPropsLegacy extends BaseFormProps {
95
+ children: (state: RegisterFormState) => React.ReactNode;
96
+ }
97
+
98
+ interface LoginModalProps {
99
+ isOpen: boolean;
100
+ onClose: () => void;
101
+ onSuccess?: () => void;
102
+ onSwitchToRegister?: () => void;
103
+ defaultMode?: SignInMode;
104
+ }
105
+ interface RegisterModalProps {
106
+ isOpen: boolean;
107
+ onClose: () => void;
108
+ onSuccess?: () => void;
109
+ onSwitchToLogin?: () => void;
110
+ }
111
+ interface ForgotPasswordModalProps {
112
+ isOpen: boolean;
113
+ onClose: () => void;
114
+ onSuccess?: () => void;
115
+ }
116
+ interface AuthGuardProps {
117
+ children: React.ReactNode;
118
+ fallback?: React.ReactNode;
119
+ requireAuth?: boolean;
120
+ }
121
+ interface UserMenuProps {
122
+ customMenuItems?: Array<{
123
+ id: string;
124
+ label: string;
125
+ icon?: React.ComponentType<{
126
+ size?: number;
127
+ }>;
128
+ onClick: () => void;
129
+ requireAuth?: boolean;
130
+ }>;
131
+ className?: string;
132
+ }
133
+
134
+ declare function SignInForm({ authClient, initialMode, onSuccess, onError, children, }: HeadlessSignInFormProps): React__default.JSX.Element;
135
+
136
+ declare function RegisterFormHeadless({ authClient, initialChannel, onSuccess, onError, children, }: HeadlessRegisterFormProps): React__default.JSX.Element;
137
+
138
+ declare function VerifyOtpForm({ authClient, channel, target, onSuccess, onError, children, }: HeadlessVerifyOtpFormProps): React__default.JSX.Element;
139
+
140
+ declare function LoginModal({ isOpen, onClose, onSuccess, onSwitchToRegister, defaultMode, }: LoginModalProps): React__default.JSX.Element | null;
141
+
142
+ declare function RegisterModal({ isOpen, onClose, onSuccess, onSwitchToLogin }: RegisterModalProps): React__default.JSX.Element | null;
143
+
144
+ declare function ForgotPasswordModal({ isOpen, onClose, onSuccess }: ForgotPasswordModalProps): React__default.JSX.Element | null;
145
+
146
+ declare function AuthGuard({ children, fallback, requireAuth }: AuthGuardProps): React__default.JSX.Element;
147
+
148
+ declare function UserMenu({ customMenuItems, className }: UserMenuProps): React__default.JSX.Element;
149
+
150
+ /**
151
+ * Auth Components - LoginForm (Headless)
152
+ * 无样式的登录表单组件
153
+ */
154
+
155
+ /**
156
+ * Headless 登录表单组件
157
+ *
158
+ * 提供登录逻辑但不包含任何 UI 样式,
159
+ * 使用 render props 模式让用户完全控制 UI
160
+ *
161
+ * @example
162
+ * ```tsx
163
+ * <LoginForm apiClient={apiClient}>
164
+ * {({ email, password, loading, error, handleEmailChange, handlePasswordChange, handleSubmit }) => (
165
+ * <form onSubmit={handleSubmit}>
166
+ * <input
167
+ * value={email}
168
+ * onChange={(e) => handleEmailChange(e.target.value)}
169
+ * />
170
+ * <input
171
+ * type="password"
172
+ * value={password}
173
+ * onChange={(e) => handlePasswordChange(e.target.value)}
174
+ * />
175
+ * {error && <div>{error}</div>}
176
+ * <button disabled={loading}>
177
+ * {loading ? '登录中...' : '登录'}
178
+ * </button>
179
+ * </form>
180
+ * )}
181
+ * </LoginForm>
182
+ * ```
183
+ */
184
+ declare function LoginForm({ apiClient, onSuccess, onError, children }: HeadlessLoginFormProps): React__default.JSX.Element;
185
+
186
+ /**
187
+ * Auth Components - RegisterForm (Headless)
188
+ * 无样式的注册表单组件
189
+ */
190
+
191
+ /**
192
+ * Headless 注册表单组件
193
+ *
194
+ * 提供注册逻辑但不包含任何 UI 样式,
195
+ * 使用 render props 模式让用户完全控制 UI
196
+ *
197
+ * @example
198
+ * ```tsx
199
+ * <RegisterForm apiClient={apiClient}>
200
+ * {({ email, password, username, loading, error, handleEmailChange, handlePasswordChange, handleUsernameChange, handleSubmit }) => (
201
+ * <form onSubmit={handleSubmit}>
202
+ * <input
203
+ * value={email}
204
+ * onChange={(e) => handleEmailChange(e.target.value)}
205
+ * />
206
+ * <input
207
+ * value={username}
208
+ * onChange={(e) => handleUsernameChange(e.target.value)}
209
+ * />
210
+ * <input
211
+ * type="password"
212
+ * value={password}
213
+ * onChange={(e) => handlePasswordChange(e.target.value)}
214
+ * />
215
+ * {error && <div>{error}</div>}
216
+ * <button disabled={loading}>
217
+ * {loading ? '注册中...' : '注册'}
218
+ * </button>
219
+ * </form>
220
+ * )}
221
+ * </RegisterForm>
222
+ * ```
223
+ */
224
+ declare function RegisterForm({ apiClient, onSuccess, onError, children, }: HeadlessRegisterFormPropsLegacy): React__default.JSX.Element;
225
+
226
+ /**
227
+ * Admin Login Page Component
228
+ * 完整的管理后台登录页面组件
229
+ *
230
+ * 功能:
231
+ * - 邮箱密码登录
232
+ * - 开发环境测试账户自动填充
233
+ * - Analytics 埋点集成
234
+ * - 角色权限检查
235
+ * - 响应式设计
236
+ */
237
+
238
+ interface AdminLoginPageProps {
239
+ /**
240
+ * API 客户端实例
241
+ */
242
+ apiClient: BaseApiClient;
243
+ /**
244
+ * 登录成功后的回调
245
+ */
246
+ onLoginSuccess?: (user: User) => void;
247
+ /**
248
+ * 登录失败的回调
249
+ */
250
+ onLoginError?: (error: string) => void;
251
+ /**
252
+ * 权限检查函数(可选)
253
+ * 返回 true 表示有权限,false 表示无权限
254
+ */
255
+ checkPermission?: (user: User) => boolean;
256
+ /**
257
+ * 权限不足时的错误消息
258
+ */
259
+ permissionDeniedMessage?: string;
260
+ /**
261
+ * 开发环境配置
262
+ */
263
+ devConfig?: {
264
+ /**
265
+ * 是否启用开发模式功能(自动填充等)
266
+ */
267
+ enabled?: boolean;
268
+ /**
269
+ * 测试账户邮箱
270
+ */
271
+ testEmail?: string;
272
+ /**
273
+ * 测试账户密码
274
+ */
275
+ testPassword?: string;
276
+ /**
277
+ * 自动填充延迟(毫秒)
278
+ */
279
+ autoFillDelay?: number;
280
+ };
281
+ /**
282
+ * 页面文本配置
283
+ */
284
+ texts?: {
285
+ appName?: string;
286
+ appDescription?: string;
287
+ pageTitle?: string;
288
+ pageSubtitle?: string;
289
+ emailLabel?: string;
290
+ emailPlaceholder?: string;
291
+ passwordLabel?: string;
292
+ passwordPlaceholder?: string;
293
+ loginButton?: string;
294
+ loggingInButton?: string;
295
+ fillTestAccount?: string;
296
+ copyCredentials?: string;
297
+ devModeLabel?: string;
298
+ testAccountInfo?: string;
299
+ testAccountFilled?: string;
300
+ footer?: string;
301
+ };
302
+ /**
303
+ * Analytics 集成(可选)
304
+ */
305
+ analytics?: {
306
+ /**
307
+ * 页面访问埋点
308
+ */
309
+ trackPageView?: (data: Record<string, any>) => void;
310
+ /**
311
+ * 登录成功埋点
312
+ */
313
+ trackLoginSuccess?: (user: User) => void;
314
+ /**
315
+ * 登录失败埋点
316
+ */
317
+ trackLoginFailed?: (error: string, email: string) => void;
318
+ /**
319
+ * 权限拒绝埋点
320
+ */
321
+ trackPermissionDenied?: (user: User) => void;
322
+ /**
323
+ * 设置用户信息
324
+ */
325
+ setUser?: (user: {
326
+ userId: string;
327
+ email: string;
328
+ role: string;
329
+ }) => void;
330
+ };
331
+ /**
332
+ * UI 组件(可选,用于自定义样式)
333
+ */
334
+ components?: {
335
+ Container?: React__default.ComponentType<{
336
+ children: React__default.ReactNode;
337
+ }>;
338
+ Card?: React__default.ComponentType<{
339
+ children: React__default.ReactNode;
340
+ }>;
341
+ Input?: React__default.ComponentType<any>;
342
+ Button?: React__default.ComponentType<any>;
343
+ Alert?: React__default.ComponentType<{
344
+ children: React__default.ReactNode;
345
+ }>;
346
+ Badge?: React__default.ComponentType<{
347
+ children: React__default.ReactNode;
348
+ variant?: string;
349
+ }>;
350
+ };
351
+ /**
352
+ * className 配置(用于 Tailwind CSS)
353
+ */
354
+ classNames?: {
355
+ container?: string;
356
+ card?: string;
357
+ header?: string;
358
+ form?: string;
359
+ input?: string;
360
+ button?: string;
361
+ alert?: string;
362
+ };
363
+ }
364
+ declare function AdminLoginPage(props: AdminLoginPageProps): React__default.JSX.Element;
365
+
366
+ /** 中国大陆手机号 */
367
+ declare function validatePhoneNumber(phone: string): boolean;
368
+ declare function validatePassword(password: string): {
369
+ valid: boolean;
370
+ message?: string;
371
+ };
372
+ declare function validateEmail(email: string): boolean;
373
+
374
+ export { AdminLoginPage, type AdminLoginPageProps, AuthGuard, type AuthGuardProps, type BaseFormProps, ForgotPasswordModal, type ForgotPasswordModalProps, type HeadlessLoginFormProps, type HeadlessRegisterFormProps, type HeadlessRegisterFormPropsLegacy, type HeadlessSignInFormProps, type HeadlessVerifyOtpFormProps, LoginForm, LoginFormState, LoginModal, type LoginModalProps, type OtpChannel, RegisterForm, RegisterFormHeadless, type RegisterFormHeadlessState, RegisterFormState, RegisterModal, type RegisterModalProps, SignInForm, type SignInFormState, type SignInMode, UserMenu, type UserMenuProps, VerifyOtpForm, type VerifyOtpFormState, validateEmail, validatePassword, validatePhoneNumber };
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var chunkQDUBO567_js = require('../../../chunk-QDUBO567.js');
4
+ require('../../../chunk-FOQEQWX5.js');
5
+ require('../../../chunk-VJNDOYEC.js');
6
+ require('../../../chunk-IS7O4LPI.js');
7
+ var chunkMIDXG6LS_js = require('../../../chunk-MIDXG6LS.js');
8
+ require('../../../chunk-TXMX6PZR.js');
9
+ require('../../../chunk-NSBPE2FW.js');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "AdminLoginPage", {
14
+ enumerable: true,
15
+ get: function () { return chunkQDUBO567_js.AdminLoginPage; }
16
+ });
17
+ Object.defineProperty(exports, "AuthGuard", {
18
+ enumerable: true,
19
+ get: function () { return chunkQDUBO567_js.AuthGuard; }
20
+ });
21
+ Object.defineProperty(exports, "ForgotPasswordModal", {
22
+ enumerable: true,
23
+ get: function () { return chunkQDUBO567_js.ForgotPasswordModal; }
24
+ });
25
+ Object.defineProperty(exports, "LoginForm", {
26
+ enumerable: true,
27
+ get: function () { return chunkQDUBO567_js.LoginForm; }
28
+ });
29
+ Object.defineProperty(exports, "LoginModal", {
30
+ enumerable: true,
31
+ get: function () { return chunkQDUBO567_js.LoginModal; }
32
+ });
33
+ Object.defineProperty(exports, "RegisterForm", {
34
+ enumerable: true,
35
+ get: function () { return chunkQDUBO567_js.RegisterForm; }
36
+ });
37
+ Object.defineProperty(exports, "RegisterFormHeadless", {
38
+ enumerable: true,
39
+ get: function () { return chunkQDUBO567_js.RegisterFormHeadless; }
40
+ });
41
+ Object.defineProperty(exports, "RegisterModal", {
42
+ enumerable: true,
43
+ get: function () { return chunkQDUBO567_js.RegisterModal; }
44
+ });
45
+ Object.defineProperty(exports, "SignInForm", {
46
+ enumerable: true,
47
+ get: function () { return chunkQDUBO567_js.SignInForm; }
48
+ });
49
+ Object.defineProperty(exports, "UserMenu", {
50
+ enumerable: true,
51
+ get: function () { return chunkQDUBO567_js.UserMenu; }
52
+ });
53
+ Object.defineProperty(exports, "VerifyOtpForm", {
54
+ enumerable: true,
55
+ get: function () { return chunkQDUBO567_js.VerifyOtpForm; }
56
+ });
57
+ Object.defineProperty(exports, "validateEmail", {
58
+ enumerable: true,
59
+ get: function () { return chunkMIDXG6LS_js.validateEmail; }
60
+ });
61
+ Object.defineProperty(exports, "validatePassword", {
62
+ enumerable: true,
63
+ get: function () { return chunkMIDXG6LS_js.validatePassword; }
64
+ });
65
+ Object.defineProperty(exports, "validatePhoneNumber", {
66
+ enumerable: true,
67
+ get: function () { return chunkMIDXG6LS_js.validatePhoneNumber; }
68
+ });
69
+ //# sourceMappingURL=index.js.map
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,9 @@
1
+ export { AdminLoginPage, AuthGuard, ForgotPasswordModal, LoginForm, LoginModal, RegisterForm, RegisterFormHeadless, RegisterModal, SignInForm, UserMenu, VerifyOtpForm } from '../../../chunk-RWCD2CAD.mjs';
2
+ import '../../../chunk-7E3J7VAD.mjs';
3
+ import '../../../chunk-LKBIVQBT.mjs';
4
+ import '../../../chunk-TTYCVBIQ.mjs';
5
+ export { validateEmail, validatePassword, validatePhoneNumber } from '../../../chunk-ZF7DKR5A.mjs';
6
+ import '../../../chunk-MZOGYD4N.mjs';
7
+ import '../../../chunk-MAI35PU6.mjs';
8
+ //# sourceMappingURL=index.mjs.map
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,75 @@
1
+ import * as React from 'react';
2
+ import { I as IAuthClient, a as UseAuthReturn } from '../../../types-DCRvasyH.mjs';
3
+ import * as better_auth_client from 'better-auth/client';
4
+ import * as better_auth from 'better-auth';
5
+ import { Sa2kitAuthClient } from '../react/index.mjs';
6
+ export { U as UseAuthActionsReturn, u as useAuthActions } from '../../../useAuthActions-7S5dL7Oh.mjs';
7
+ import '../../../enums-Dume-V5Y.mjs';
8
+ import 'drizzle-orm/pg-core';
9
+ import 'zod/v4/core';
10
+ import 'zod';
11
+ import 'better-auth/plugins/email-otp';
12
+ import 'better-auth/plugins/phone-number';
13
+
14
+ /**
15
+ * 薄封装 Better Auth React `useSession`
16
+ */
17
+ declare function useSession(authClient: Sa2kitAuthClient): {
18
+ data: {
19
+ user: better_auth.StripEmptyObjects<{
20
+ id: string;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ email: string;
24
+ emailVerified: boolean;
25
+ name: string;
26
+ image?: string | null | undefined;
27
+ } & {} & {
28
+ phoneNumber?: string | null | undefined;
29
+ phoneNumberVerified?: boolean | null | undefined;
30
+ }>;
31
+ session: better_auth.StripEmptyObjects<{
32
+ id: string;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ userId: string;
36
+ expiresAt: Date;
37
+ token: string;
38
+ ipAddress?: string | null | undefined;
39
+ userAgent?: string | null | undefined;
40
+ }>;
41
+ } | null;
42
+ isPending: boolean;
43
+ isRefetching: boolean;
44
+ error: better_auth_client.BetterFetchError | null;
45
+ refetch: (queryParams?: {
46
+ query?: better_auth.SessionQueryParams;
47
+ } | undefined) => Promise<void>;
48
+ };
49
+ type UseSessionReturn = ReturnType<typeof useSession>;
50
+
51
+ declare function useAuth(apiClient: IAuthClient): UseAuthReturn;
52
+ /**
53
+ * 表单验证 Hook
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * const { values, errors, handleChange, handleBlur, validate } = useAuthForm({
58
+ * email: '',
59
+ * password: ''
60
+ * })
61
+ * ```
62
+ */
63
+ declare function useAuthForm<T extends Record<string, any>>(initialValues: T): {
64
+ values: T;
65
+ errors: Partial<Record<keyof T, string>>;
66
+ touched: Partial<Record<keyof T, boolean>>;
67
+ handleChange: (field: keyof T, value: any) => void;
68
+ handleBlur: (field: keyof T) => void;
69
+ validate: (validationRules: Partial<Record<keyof T, (value: any) => string | undefined>>) => boolean;
70
+ reset: () => void;
71
+ setValues: React.Dispatch<React.SetStateAction<T>>;
72
+ setErrors: React.Dispatch<React.SetStateAction<Partial<Record<keyof T, string>>>>;
73
+ };
74
+
75
+ export { type UseSessionReturn, useAuth, useAuthForm, useSession };
@@ -0,0 +1,75 @@
1
+ import * as React from 'react';
2
+ import { I as IAuthClient, a as UseAuthReturn } from '../../../types-C_W_CoUD.js';
3
+ import * as better_auth_client from 'better-auth/client';
4
+ import * as better_auth from 'better-auth';
5
+ import { Sa2kitAuthClient } from '../react/index.js';
6
+ export { U as UseAuthActionsReturn, u as useAuthActions } from '../../../useAuthActions-7S5dL7Oh.js';
7
+ import '../../../enums-Dume-V5Y.js';
8
+ import 'drizzle-orm/pg-core';
9
+ import 'zod/v4/core';
10
+ import 'zod';
11
+ import 'better-auth/plugins/email-otp';
12
+ import 'better-auth/plugins/phone-number';
13
+
14
+ /**
15
+ * 薄封装 Better Auth React `useSession`
16
+ */
17
+ declare function useSession(authClient: Sa2kitAuthClient): {
18
+ data: {
19
+ user: better_auth.StripEmptyObjects<{
20
+ id: string;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ email: string;
24
+ emailVerified: boolean;
25
+ name: string;
26
+ image?: string | null | undefined;
27
+ } & {} & {
28
+ phoneNumber?: string | null | undefined;
29
+ phoneNumberVerified?: boolean | null | undefined;
30
+ }>;
31
+ session: better_auth.StripEmptyObjects<{
32
+ id: string;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ userId: string;
36
+ expiresAt: Date;
37
+ token: string;
38
+ ipAddress?: string | null | undefined;
39
+ userAgent?: string | null | undefined;
40
+ }>;
41
+ } | null;
42
+ isPending: boolean;
43
+ isRefetching: boolean;
44
+ error: better_auth_client.BetterFetchError | null;
45
+ refetch: (queryParams?: {
46
+ query?: better_auth.SessionQueryParams;
47
+ } | undefined) => Promise<void>;
48
+ };
49
+ type UseSessionReturn = ReturnType<typeof useSession>;
50
+
51
+ declare function useAuth(apiClient: IAuthClient): UseAuthReturn;
52
+ /**
53
+ * 表单验证 Hook
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * const { values, errors, handleChange, handleBlur, validate } = useAuthForm({
58
+ * email: '',
59
+ * password: ''
60
+ * })
61
+ * ```
62
+ */
63
+ declare function useAuthForm<T extends Record<string, any>>(initialValues: T): {
64
+ values: T;
65
+ errors: Partial<Record<keyof T, string>>;
66
+ touched: Partial<Record<keyof T, boolean>>;
67
+ handleChange: (field: keyof T, value: any) => void;
68
+ handleBlur: (field: keyof T) => void;
69
+ validate: (validationRules: Partial<Record<keyof T, (value: any) => string | undefined>>) => boolean;
70
+ reset: () => void;
71
+ setValues: React.Dispatch<React.SetStateAction<T>>;
72
+ setErrors: React.Dispatch<React.SetStateAction<Partial<Record<keyof T, string>>>>;
73
+ };
74
+
75
+ export { type UseSessionReturn, useAuth, useAuthForm, useSession };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ require('../../../chunk-FOQEQWX5.js');
4
+ var chunkIS7O4LPI_js = require('../../../chunk-IS7O4LPI.js');
5
+ require('../../../chunk-MIDXG6LS.js');
6
+ var chunkTXMX6PZR_js = require('../../../chunk-TXMX6PZR.js');
7
+ require('../../../chunk-NSBPE2FW.js');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "useAuthActions", {
12
+ enumerable: true,
13
+ get: function () { return chunkIS7O4LPI_js.useAuthActions; }
14
+ });
15
+ Object.defineProperty(exports, "useAuth", {
16
+ enumerable: true,
17
+ get: function () { return chunkTXMX6PZR_js.useAuth; }
18
+ });
19
+ Object.defineProperty(exports, "useAuthForm", {
20
+ enumerable: true,
21
+ get: function () { return chunkTXMX6PZR_js.useAuthForm; }
22
+ });
23
+ Object.defineProperty(exports, "useSession", {
24
+ enumerable: true,
25
+ get: function () { return chunkTXMX6PZR_js.useSession; }
26
+ });
27
+ //# sourceMappingURL=index.js.map
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,7 @@
1
+ import '../../../chunk-7E3J7VAD.mjs';
2
+ export { useAuthActions } from '../../../chunk-TTYCVBIQ.mjs';
3
+ import '../../../chunk-ZF7DKR5A.mjs';
4
+ export { useAuth, useAuthForm, useSession } from '../../../chunk-MZOGYD4N.mjs';
5
+ import '../../../chunk-MAI35PU6.mjs';
6
+ //# sourceMappingURL=index.mjs.map
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -1,10 +1,18 @@
1
- export { useAuth, useAuthForm } from '../../auth/hooks/index.mjs';
2
- export { B as BaseApiClient } from '../../base-api-client-DrL35Ea2.mjs';
3
- export { API_ROUTES, STORAGE_KEYS } from '../../auth/client/index.mjs';
4
- export { L as LoginFormState, R as RegisterFormState } from '../../types-IYCqCk2g.mjs';
1
+ export { API_ROUTES, STORAGE_KEYS, Sa2kitAuthClient, Sa2kitAuthClientOptions, createSa2kitAuthClient } from './client/index.mjs';
2
+ export { B as BaseApiClient } from '../../base-api-client-DXLsq2yz.mjs';
3
+ export { UseSessionReturn, useAuth, useAuthForm, useSession } from './hooks/index.mjs';
4
+ export { L as LoginFormState, R as RegisterFormState } from '../../types.legacy-J-j-_ig_.mjs';
5
5
  export { b as ApiResponse, c as AuthResponse, A as AuthResult, B as BaseUser, I as IAuthClient, L as LoginForm, R as RegisterForm, a as UseAuthReturn, U as User } from '../../types-DCRvasyH.mjs';
6
6
  export { U as UserRole } from '../../enums-Dume-V5Y.mjs';
7
- import 'react';
8
- import 'drizzle-orm/pg-core';
7
+ import 'zod/v4/core';
8
+ import 'zod';
9
+ import 'better-auth/plugins/email-otp';
10
+ import 'better-auth/plugins/phone-number';
11
+ import 'better-auth/client';
12
+ import 'better-auth';
9
13
  import '../../types-BaZccpvk.mjs';
10
14
  import '../../types-CbTsi9CZ.mjs';
15
+ import 'drizzle-orm/pg-core';
16
+ import 'react';
17
+ import './react/index.mjs';
18
+ import '../../useAuthActions-7S5dL7Oh.mjs';