sa2kit 2.0.4 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/{UniversalFileService-GsP6D3Rc.d.ts → UniversalFileService-CC4d3wkc.d.ts} +2 -2
  2. package/dist/{UniversalFileService-BpvbZitV.d.mts → UniversalFileService-CzAE_G4V.d.mts} +2 -2
  3. package/dist/ai/llm/ui/miniapp/index.d.mts +2 -2
  4. package/dist/ai/llm/ui/miniapp/index.d.ts +2 -2
  5. package/dist/ai/llm/ui/rn/index.d.mts +2 -2
  6. package/dist/ai/llm/ui/rn/index.d.ts +2 -2
  7. package/dist/ai/llm/ui/web/index.d.mts +3 -3
  8. package/dist/ai/llm/ui/web/index.d.ts +3 -3
  9. package/dist/analytics/index.d.mts +1 -1
  10. package/dist/analytics/index.d.ts +1 -1
  11. package/dist/business/index.d.mts +1 -5
  12. package/dist/business/index.d.ts +1 -5
  13. package/dist/business/index.js +34 -1135
  14. package/dist/business/index.js.map +1 -1
  15. package/dist/business/index.mjs +5 -1105
  16. package/dist/business/index.mjs.map +1 -1
  17. package/dist/calendar/routes/index.d.mts +74 -1
  18. package/dist/calendar/routes/index.d.ts +74 -1
  19. package/dist/calendar/routes/index.js +186 -97
  20. package/dist/calendar/routes/index.js.map +1 -1
  21. package/dist/calendar/routes/index.mjs +178 -99
  22. package/dist/calendar/routes/index.mjs.map +1 -1
  23. package/dist/{chunk-RJP2BRJD.mjs → chunk-4OOANEJV.mjs} +2 -2
  24. package/dist/{chunk-RJP2BRJD.mjs.map → chunk-4OOANEJV.mjs.map} +1 -1
  25. package/dist/chunk-5FUAQLGC.mjs +14 -0
  26. package/dist/chunk-5FUAQLGC.mjs.map +1 -0
  27. package/dist/{chunk-IIVNHQEI.mjs → chunk-5GBDDXYL.mjs} +4 -3
  28. package/dist/chunk-5GBDDXYL.mjs.map +1 -0
  29. package/dist/{chunk-S732H246.js → chunk-6PMXAK7F.js} +2 -2
  30. package/dist/{chunk-S732H246.js.map → chunk-6PMXAK7F.js.map} +1 -1
  31. package/dist/chunk-6YLCRWKM.mjs +8 -0
  32. package/dist/chunk-6YLCRWKM.mjs.map +1 -0
  33. package/dist/chunk-CAYOQDBR.js +78 -0
  34. package/dist/chunk-CAYOQDBR.js.map +1 -0
  35. package/dist/{chunk-PTMSDNGO.mjs → chunk-CX2GHCAI.mjs} +4 -75
  36. package/dist/chunk-CX2GHCAI.mjs.map +1 -0
  37. package/dist/chunk-EBHPTFG6.mjs +82 -0
  38. package/dist/chunk-EBHPTFG6.mjs.map +1 -0
  39. package/dist/chunk-HQLKOXG7.js +16 -0
  40. package/dist/chunk-HQLKOXG7.js.map +1 -0
  41. package/dist/chunk-IS7O4LPI.js +146 -0
  42. package/dist/chunk-IS7O4LPI.js.map +1 -0
  43. package/dist/chunk-LGHUCQIU.js +93 -0
  44. package/dist/chunk-LGHUCQIU.js.map +1 -0
  45. package/dist/chunk-LKBIVQBT.mjs +34 -0
  46. package/dist/chunk-LKBIVQBT.mjs.map +1 -0
  47. package/dist/chunk-MIDXG6LS.js +32 -0
  48. package/dist/chunk-MIDXG6LS.js.map +1 -0
  49. package/dist/chunk-NDGHXVGS.js +25 -0
  50. package/dist/chunk-NDGHXVGS.js.map +1 -0
  51. package/dist/chunk-PA4ELVGI.js +20 -0
  52. package/dist/chunk-PA4ELVGI.js.map +1 -0
  53. package/dist/chunk-Q5VFBPMG.mjs +76 -0
  54. package/dist/chunk-Q5VFBPMG.mjs.map +1 -0
  55. package/dist/{chunk-WZDTNDYR.js → chunk-QSKLQX6H.js} +11 -11
  56. package/dist/{chunk-WZDTNDYR.js.map → chunk-QSKLQX6H.js.map} +1 -1
  57. package/dist/{chunk-QQ2WFYOD.js → chunk-S6YSGVWD.js} +4 -76
  58. package/dist/chunk-S6YSGVWD.js.map +1 -0
  59. package/dist/chunk-TNJ6LYX7.mjs +18 -0
  60. package/dist/chunk-TNJ6LYX7.mjs.map +1 -0
  61. package/dist/chunk-TTYCVBIQ.mjs +144 -0
  62. package/dist/chunk-TTYCVBIQ.mjs.map +1 -0
  63. package/dist/chunk-VJNDOYEC.js +41 -0
  64. package/dist/chunk-VJNDOYEC.js.map +1 -0
  65. package/dist/{chunk-J77KR2EV.mjs → chunk-WJ7IMUEJ.mjs} +3 -3
  66. package/dist/{chunk-J77KR2EV.mjs.map → chunk-WJ7IMUEJ.mjs.map} +1 -1
  67. package/dist/chunk-YTGUIRRH.js +10 -0
  68. package/dist/chunk-YTGUIRRH.js.map +1 -0
  69. package/dist/chunk-ZF7DKR5A.mjs +26 -0
  70. package/dist/chunk-ZF7DKR5A.mjs.map +1 -0
  71. package/dist/common/auth/client/index.d.mts +3209 -0
  72. package/dist/common/auth/client/index.d.ts +3209 -0
  73. package/dist/common/auth/client/index.js +13 -0
  74. package/dist/common/auth/client/index.mjs +4 -0
  75. package/dist/common/auth/components/index.d.mts +140 -0
  76. package/dist/common/auth/components/index.d.ts +140 -0
  77. package/dist/common/auth/components/index.js +899 -0
  78. package/dist/common/auth/components/index.js.map +1 -0
  79. package/dist/common/auth/components/index.mjs +875 -0
  80. package/dist/common/auth/components/index.mjs.map +1 -0
  81. package/dist/common/auth/hooks/index.d.mts +48 -0
  82. package/dist/common/auth/hooks/index.d.ts +48 -0
  83. package/dist/common/auth/hooks/index.js +19 -0
  84. package/dist/common/auth/hooks/index.mjs +6 -0
  85. package/dist/common/auth/index.d.mts +11 -7
  86. package/dist/common/auth/index.d.ts +11 -7
  87. package/dist/common/auth/index.js +7 -19
  88. package/dist/common/auth/index.mjs +3 -3
  89. package/dist/common/auth/react/index.d.mts +3056 -0
  90. package/dist/common/auth/react/index.d.ts +3056 -0
  91. package/dist/common/auth/react/index.js +31 -0
  92. package/dist/common/auth/react/index.js.map +1 -0
  93. package/dist/common/auth/react/index.mjs +21 -0
  94. package/dist/common/auth/react/index.mjs.map +1 -0
  95. package/dist/common/auth/rn/index.d.mts +3122 -0
  96. package/dist/common/auth/rn/index.d.ts +3122 -0
  97. package/dist/common/auth/rn/index.js +316 -0
  98. package/dist/common/auth/rn/index.js.map +1 -0
  99. package/dist/common/auth/rn/index.mjs +298 -0
  100. package/dist/common/auth/rn/index.mjs.map +1 -0
  101. package/dist/common/auth/schema/index.d.mts +1479 -0
  102. package/dist/common/auth/schema/index.d.ts +1479 -0
  103. package/dist/common/auth/schema/index.js +49 -0
  104. package/dist/common/auth/schema/index.mjs +4 -0
  105. package/dist/common/auth/server/index.d.mts +81 -25
  106. package/dist/common/auth/server/index.d.ts +81 -25
  107. package/dist/common/auth/server/index.js +146 -98
  108. package/dist/common/auth/server/index.js.map +1 -1
  109. package/dist/common/auth/server/index.mjs +125 -5
  110. package/dist/common/auth/server/index.mjs.map +1 -1
  111. package/dist/common/auth/services/index.d.mts +14 -0
  112. package/dist/common/auth/services/index.d.ts +14 -0
  113. package/dist/common/auth/services/index.js +20 -0
  114. package/dist/common/auth/services/index.js.map +1 -0
  115. package/dist/common/auth/services/index.mjs +13 -0
  116. package/dist/common/auth/services/index.mjs.map +1 -0
  117. package/dist/common/file/server/index.js +32 -32
  118. package/dist/common/file/server/index.mjs +3 -3
  119. package/dist/common/index.d.mts +13 -8
  120. package/dist/common/index.d.ts +13 -8
  121. package/dist/common/index.js +19 -18
  122. package/dist/common/index.mjs +8 -7
  123. package/dist/common/storage/index.js +13 -12
  124. package/dist/common/storage/index.mjs +3 -2
  125. package/dist/festivalCard/index.d.mts +3 -3
  126. package/dist/festivalCard/index.d.ts +3 -3
  127. package/dist/festivalCard/routes/index.d.mts +1 -1
  128. package/dist/festivalCard/routes/index.d.ts +1 -1
  129. package/dist/festivalCard/server/index.d.mts +2 -2
  130. package/dist/festivalCard/server/index.d.ts +2 -2
  131. package/dist/{festivalCardService-BFCRhJrq.d.ts → festivalCardService-B3GsnNpV.d.ts} +1 -1
  132. package/dist/{festivalCardService-GriR2VMc.d.mts → festivalCardService-CWhrLNE9.d.mts} +1 -1
  133. package/dist/i18n/index.d.mts +1 -1
  134. package/dist/i18n/index.d.ts +1 -1
  135. package/dist/imageCrop/index.d.mts +3 -3
  136. package/dist/imageCrop/index.d.ts +3 -3
  137. package/dist/index-Bd7cKF1j.d.mts +50 -0
  138. package/dist/{index-CLB80GCP.d.mts → index-D0cqaQEH.d.mts} +5 -5
  139. package/dist/{index-CLB80GCP.d.ts → index-D0cqaQEH.d.ts} +5 -5
  140. package/dist/index-DRQxtCDw.d.ts +50 -0
  141. package/dist/{index-1Ag7IBXN.d.ts → index-DZ5iJtNO.d.mts} +2 -44
  142. package/dist/{index-DdeZSeTJ.d.mts → index-DZ5iJtNO.d.ts} +2 -44
  143. package/dist/{index-BxZauNN_.d.ts → index-DoUo8IrU.d.mts} +8 -8
  144. package/dist/{index-BxZauNN_.d.mts → index-DoUo8IrU.d.ts} +8 -8
  145. package/dist/index.d.mts +6382 -105
  146. package/dist/index.d.ts +6382 -105
  147. package/dist/index.js +1037 -2616
  148. package/dist/index.js.map +1 -1
  149. package/dist/index.mjs +976 -2555
  150. package/dist/index.mjs.map +1 -1
  151. package/dist/mmd/admin/index.d.mts +1 -1
  152. package/dist/mmd/admin/index.d.ts +1 -1
  153. package/dist/mmd/index.d.mts +1 -1
  154. package/dist/mmd/index.d.ts +1 -1
  155. package/dist/mmd/server/index.d.mts +3 -3
  156. package/dist/mmd/server/index.d.ts +3 -3
  157. package/dist/ossFile/server/index.js +32 -32
  158. package/dist/ossFile/server/index.mjs +3 -3
  159. package/dist/storage/index.js +12 -11
  160. package/dist/storage/index.mjs +2 -1
  161. package/dist/{types-DyG3ZV9V.d.mts → types-B6B210gX.d.mts} +1 -1
  162. package/dist/{types-DyG3ZV9V.d.ts → types-B6B210gX.d.ts} +1 -1
  163. package/dist/{types-BTiaMsBz.d.mts → types-Bdnte5EN.d.mts} +1 -1
  164. package/dist/{types-tQfupO6d.d.ts → types-Cs0CLvrH.d.mts} +1 -1
  165. package/dist/{types-tQfupO6d.d.mts → types-Cs0CLvrH.d.ts} +1 -1
  166. package/dist/{types-ERmJyjx8.d.ts → types-_rFX1atk.d.ts} +1 -1
  167. package/dist/universalExport/index.d.mts +3 -3
  168. package/dist/universalExport/index.d.ts +3 -3
  169. package/dist/universalFile/index.d.mts +5 -5
  170. package/dist/universalFile/index.d.ts +5 -5
  171. package/dist/universalFile/server/index.js +62 -62
  172. package/dist/universalFile/server/index.mjs +2 -2
  173. package/dist/useAuthActions-7S5dL7Oh.d.mts +77 -0
  174. package/dist/useAuthActions-7S5dL7Oh.d.ts +77 -0
  175. package/dist/vocaloidBooth/server/index.d.mts +3 -3
  176. package/dist/vocaloidBooth/server/index.d.ts +3 -3
  177. package/package.json +44 -111
  178. package/dist/auth/client/index.d.mts +0 -32
  179. package/dist/auth/client/index.d.ts +0 -32
  180. package/dist/auth/client/index.js +0 -21
  181. package/dist/auth/client/index.mjs +0 -4
  182. package/dist/auth/components/index.d.mts +0 -227
  183. package/dist/auth/components/index.d.ts +0 -227
  184. package/dist/auth/components/index.js +0 -327
  185. package/dist/auth/components/index.js.map +0 -1
  186. package/dist/auth/components/index.mjs +0 -319
  187. package/dist/auth/components/index.mjs.map +0 -1
  188. package/dist/auth/hooks/index.d.mts +0 -31
  189. package/dist/auth/hooks/index.d.ts +0 -31
  190. package/dist/auth/hooks/index.js +0 -17
  191. package/dist/auth/hooks/index.mjs +0 -4
  192. package/dist/auth/index.d.mts +0 -18
  193. package/dist/auth/index.d.ts +0 -18
  194. package/dist/auth/index.js +0 -151
  195. package/dist/auth/index.mjs +0 -10
  196. package/dist/auth/legacy/core/index.d.mts +0 -42
  197. package/dist/auth/legacy/core/index.d.ts +0 -42
  198. package/dist/auth/legacy/core/index.js +0 -242
  199. package/dist/auth/legacy/core/index.js.map +0 -1
  200. package/dist/auth/legacy/core/index.mjs +0 -226
  201. package/dist/auth/legacy/core/index.mjs.map +0 -1
  202. package/dist/auth/legacy/db/index.d.mts +0 -5
  203. package/dist/auth/legacy/db/index.d.ts +0 -5
  204. package/dist/auth/legacy/db/index.js +0 -261
  205. package/dist/auth/legacy/db/index.js.map +0 -1
  206. package/dist/auth/legacy/db/index.mjs +0 -250
  207. package/dist/auth/legacy/db/index.mjs.map +0 -1
  208. package/dist/auth/legacy/index.d.mts +0 -5
  209. package/dist/auth/legacy/index.d.ts +0 -5
  210. package/dist/auth/legacy/index.js +0 -1107
  211. package/dist/auth/legacy/index.js.map +0 -1
  212. package/dist/auth/legacy/index.mjs +0 -1086
  213. package/dist/auth/legacy/index.mjs.map +0 -1
  214. package/dist/auth/legacy/logic/index.d.mts +0 -9
  215. package/dist/auth/legacy/logic/index.d.ts +0 -9
  216. package/dist/auth/legacy/logic/index.js +0 -194
  217. package/dist/auth/legacy/logic/index.js.map +0 -1
  218. package/dist/auth/legacy/logic/index.mjs +0 -187
  219. package/dist/auth/legacy/logic/index.mjs.map +0 -1
  220. package/dist/auth/legacy/miniapp/index.d.mts +0 -5
  221. package/dist/auth/legacy/miniapp/index.d.ts +0 -5
  222. package/dist/auth/legacy/miniapp/index.js +0 -506
  223. package/dist/auth/legacy/miniapp/index.js.map +0 -1
  224. package/dist/auth/legacy/miniapp/index.mjs +0 -487
  225. package/dist/auth/legacy/miniapp/index.mjs.map +0 -1
  226. package/dist/auth/legacy/routes/index.d.mts +0 -53
  227. package/dist/auth/legacy/routes/index.d.ts +0 -53
  228. package/dist/auth/legacy/routes/index.js +0 -278
  229. package/dist/auth/legacy/routes/index.js.map +0 -1
  230. package/dist/auth/legacy/routes/index.mjs +0 -271
  231. package/dist/auth/legacy/routes/index.mjs.map +0 -1
  232. package/dist/auth/legacy/schema/index.d.mts +0 -401
  233. package/dist/auth/legacy/schema/index.d.ts +0 -401
  234. package/dist/auth/legacy/schema/index.js +0 -50
  235. package/dist/auth/legacy/schema/index.js.map +0 -1
  236. package/dist/auth/legacy/schema/index.mjs +0 -44
  237. package/dist/auth/legacy/schema/index.mjs.map +0 -1
  238. package/dist/auth/legacy/server/index.d.mts +0 -13
  239. package/dist/auth/legacy/server/index.d.ts +0 -13
  240. package/dist/auth/legacy/server/index.js +0 -21
  241. package/dist/auth/legacy/server/index.js.map +0 -1
  242. package/dist/auth/legacy/server/index.mjs +0 -19
  243. package/dist/auth/legacy/server/index.mjs.map +0 -1
  244. package/dist/auth/legacy/services/index.d.mts +0 -40
  245. package/dist/auth/legacy/services/index.d.ts +0 -40
  246. package/dist/auth/legacy/services/index.js +0 -258
  247. package/dist/auth/legacy/services/index.js.map +0 -1
  248. package/dist/auth/legacy/services/index.mjs +0 -252
  249. package/dist/auth/legacy/services/index.mjs.map +0 -1
  250. package/dist/auth/legacy/ui/miniapp/index.d.mts +0 -10
  251. package/dist/auth/legacy/ui/miniapp/index.d.ts +0 -10
  252. package/dist/auth/legacy/ui/miniapp/index.js +0 -298
  253. package/dist/auth/legacy/ui/miniapp/index.js.map +0 -1
  254. package/dist/auth/legacy/ui/miniapp/index.mjs +0 -290
  255. package/dist/auth/legacy/ui/miniapp/index.mjs.map +0 -1
  256. package/dist/auth/legacy/ui/web/index.d.mts +0 -22
  257. package/dist/auth/legacy/ui/web/index.d.ts +0 -22
  258. package/dist/auth/legacy/ui/web/index.js +0 -899
  259. package/dist/auth/legacy/ui/web/index.js.map +0 -1
  260. package/dist/auth/legacy/ui/web/index.mjs +0 -889
  261. package/dist/auth/legacy/ui/web/index.mjs.map +0 -1
  262. package/dist/auth/legacy/web/index.d.mts +0 -5
  263. package/dist/auth/legacy/web/index.d.ts +0 -5
  264. package/dist/auth/legacy/web/index.js +0 -1107
  265. package/dist/auth/legacy/web/index.js.map +0 -1
  266. package/dist/auth/legacy/web/index.mjs +0 -1086
  267. package/dist/auth/legacy/web/index.mjs.map +0 -1
  268. package/dist/auth/middleware/index.d.mts +0 -75
  269. package/dist/auth/middleware/index.d.ts +0 -75
  270. package/dist/auth/middleware/index.js +0 -15
  271. package/dist/auth/middleware/index.js.map +0 -1
  272. package/dist/auth/middleware/index.mjs +0 -6
  273. package/dist/auth/middleware/index.mjs.map +0 -1
  274. package/dist/auth/rn/index.d.mts +0 -64
  275. package/dist/auth/rn/index.d.ts +0 -64
  276. package/dist/auth/rn/index.js +0 -765
  277. package/dist/auth/rn/index.js.map +0 -1
  278. package/dist/auth/rn/index.mjs +0 -754
  279. package/dist/auth/rn/index.mjs.map +0 -1
  280. package/dist/auth/routes/index.d.mts +0 -261
  281. package/dist/auth/routes/index.d.ts +0 -261
  282. package/dist/auth/routes/index.js +0 -59
  283. package/dist/auth/routes/index.js.map +0 -1
  284. package/dist/auth/routes/index.mjs +0 -6
  285. package/dist/auth/routes/index.mjs.map +0 -1
  286. package/dist/auth/schema/index.d.mts +0 -789
  287. package/dist/auth/schema/index.d.ts +0 -789
  288. package/dist/auth/schema/index.js +0 -41
  289. package/dist/auth/schema/index.js.map +0 -1
  290. package/dist/auth/schema/index.mjs +0 -4
  291. package/dist/auth/schema/index.mjs.map +0 -1
  292. package/dist/auth/services/index.d.mts +0 -48
  293. package/dist/auth/services/index.d.ts +0 -48
  294. package/dist/auth/services/index.js +0 -34
  295. package/dist/auth/services/index.js.map +0 -1
  296. package/dist/auth/services/index.mjs +0 -5
  297. package/dist/auth/services/index.mjs.map +0 -1
  298. package/dist/base-api-client-ACKKt13v.d.mts +0 -277
  299. package/dist/base-api-client-ACKKt13v.d.ts +0 -277
  300. package/dist/base-api-client-B3wZZoaH.d.ts +0 -103
  301. package/dist/base-api-client-DrL35Ea2.d.mts +0 -103
  302. package/dist/chunk-37HYTHEC.mjs +0 -90
  303. package/dist/chunk-37HYTHEC.mjs.map +0 -1
  304. package/dist/chunk-5WV35FPV.js +0 -131
  305. package/dist/chunk-5WV35FPV.js.map +0 -1
  306. package/dist/chunk-DCRD5CZB.js +0 -573
  307. package/dist/chunk-DCRD5CZB.js.map +0 -1
  308. package/dist/chunk-DDX4JKFS.js +0 -19
  309. package/dist/chunk-DDX4JKFS.js.map +0 -1
  310. package/dist/chunk-DV6M7MFP.js +0 -283
  311. package/dist/chunk-DV6M7MFP.js.map +0 -1
  312. package/dist/chunk-HBF4HPRK.js +0 -186
  313. package/dist/chunk-HBF4HPRK.js.map +0 -1
  314. package/dist/chunk-HCI6JQOU.mjs +0 -183
  315. package/dist/chunk-HCI6JQOU.mjs.map +0 -1
  316. package/dist/chunk-I44HXJ3X.mjs +0 -17
  317. package/dist/chunk-I44HXJ3X.mjs.map +0 -1
  318. package/dist/chunk-IIVNHQEI.mjs.map +0 -1
  319. package/dist/chunk-IJ4YYWE3.mjs +0 -122
  320. package/dist/chunk-IJ4YYWE3.mjs.map +0 -1
  321. package/dist/chunk-J4BEIZUC.js +0 -92
  322. package/dist/chunk-J4BEIZUC.js.map +0 -1
  323. package/dist/chunk-OKPWFVXC.js +0 -24
  324. package/dist/chunk-OKPWFVXC.js.map +0 -1
  325. package/dist/chunk-PNOTQAYK.mjs +0 -560
  326. package/dist/chunk-PNOTQAYK.mjs.map +0 -1
  327. package/dist/chunk-PTMSDNGO.mjs.map +0 -1
  328. package/dist/chunk-Q2IAL7YV.js +0 -36
  329. package/dist/chunk-Q2IAL7YV.js.map +0 -1
  330. package/dist/chunk-QQ2WFYOD.js.map +0 -1
  331. package/dist/chunk-VQ54PUQV.js +0 -216
  332. package/dist/chunk-VQ54PUQV.js.map +0 -1
  333. package/dist/chunk-W5JEGA76.mjs +0 -33
  334. package/dist/chunk-W5JEGA76.mjs.map +0 -1
  335. package/dist/chunk-YGI7UU2D.mjs +0 -212
  336. package/dist/chunk-YGI7UU2D.mjs.map +0 -1
  337. package/dist/chunk-ZCLQSI5F.mjs +0 -271
  338. package/dist/chunk-ZCLQSI5F.mjs.map +0 -1
  339. package/dist/drizzle-auth-service-D-pljzCD.d.mts +0 -145
  340. package/dist/drizzle-auth-service-D3qryE_I.d.ts +0 -145
  341. package/dist/index-Bnh6VqFv.d.ts +0 -35
  342. package/dist/index-DNKZ7-R_.d.mts +0 -184
  343. package/dist/index-DNKZ7-R_.d.ts +0 -184
  344. package/dist/index-DPYkrKZf.d.mts +0 -35
  345. package/dist/types-C5vUWf9u.d.ts +0 -70
  346. package/dist/types-C_W_CoUD.d.ts +0 -99
  347. package/dist/types-DCRvasyH.d.mts +0 -99
  348. package/dist/types-IYCqCk2g.d.mts +0 -70
  349. /package/dist/{auth → common/auth}/client/index.js.map +0 -0
  350. /package/dist/{auth → common/auth}/client/index.mjs.map +0 -0
  351. /package/dist/{auth → common/auth}/hooks/index.js.map +0 -0
  352. /package/dist/{auth → common/auth}/hooks/index.mjs.map +0 -0
  353. /package/dist/{auth → common/auth/schema}/index.js.map +0 -0
  354. /package/dist/{auth → common/auth/schema}/index.mjs.map +0 -0
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkS732H246_js = require('../../chunk-S732H246.js');
4
- var chunkHJ6MH7J7_js = require('../../chunk-HJ6MH7J7.js');
3
+ var chunk6PMXAK7F_js = require('../../chunk-6PMXAK7F.js');
5
4
  var chunkQ5EDCKQA_js = require('../../chunk-Q5EDCKQA.js');
5
+ var chunkHJ6MH7J7_js = require('../../chunk-HJ6MH7J7.js');
6
6
  require('../../chunk-KH6RQ4J5.js');
7
7
  require('../../chunk-ZRAW3HXA.js');
8
8
  require('../../chunk-25OFOKNF.js');
@@ -13,236 +13,236 @@ require('../../chunk-NSBPE2FW.js');
13
13
 
14
14
  Object.defineProperty(exports, "AliyunCDNProvider", {
15
15
  enumerable: true,
16
- get: function () { return chunkS732H246_js.AliyunCDNProvider; }
16
+ get: function () { return chunk6PMXAK7F_js.AliyunCDNProvider; }
17
17
  });
18
18
  Object.defineProperty(exports, "ApiError", {
19
19
  enumerable: true,
20
- get: function () { return chunkS732H246_js.ApiError; }
20
+ get: function () { return chunk6PMXAK7F_js.ApiError; }
21
21
  });
22
22
  Object.defineProperty(exports, "ApiErrorCode", {
23
23
  enumerable: true,
24
- get: function () { return chunkS732H246_js.ApiErrorCode; }
24
+ get: function () { return chunk6PMXAK7F_js.ApiErrorCode; }
25
25
  });
26
26
  Object.defineProperty(exports, "ApiErrorFactory", {
27
27
  enumerable: true,
28
- get: function () { return chunkS732H246_js.ApiErrorFactory; }
28
+ get: function () { return chunk6PMXAK7F_js.ApiErrorFactory; }
29
29
  });
30
30
  Object.defineProperty(exports, "ApiResponseHelper", {
31
31
  enumerable: true,
32
- get: function () { return chunkS732H246_js.ApiResponseHelper; }
32
+ get: function () { return chunk6PMXAK7F_js.ApiResponseHelper; }
33
33
  });
34
34
  Object.defineProperty(exports, "AudioProcessor", {
35
35
  enumerable: true,
36
- get: function () { return chunkS732H246_js.AudioProcessor; }
36
+ get: function () { return chunk6PMXAK7F_js.AudioProcessor; }
37
37
  });
38
38
  Object.defineProperty(exports, "CacheManager", {
39
39
  enumerable: true,
40
- get: function () { return chunkS732H246_js.CacheManager; }
40
+ get: function () { return chunk6PMXAK7F_js.CacheManager; }
41
41
  });
42
42
  Object.defineProperty(exports, "CacheStrategyType", {
43
43
  enumerable: true,
44
- get: function () { return chunkS732H246_js.CacheStrategyType; }
44
+ get: function () { return chunk6PMXAK7F_js.CacheStrategyType; }
45
45
  });
46
46
  Object.defineProperty(exports, "CdnCacheStrategy", {
47
47
  enumerable: true,
48
- get: function () { return chunkS732H246_js.CdnCacheStrategy; }
48
+ get: function () { return chunk6PMXAK7F_js.CdnCacheStrategy; }
49
49
  });
50
50
  Object.defineProperty(exports, "ConfigValidationError", {
51
51
  enumerable: true,
52
- get: function () { return chunkS732H246_js.ConfigValidationError; }
52
+ get: function () { return chunk6PMXAK7F_js.ConfigValidationError; }
53
53
  });
54
54
  Object.defineProperty(exports, "DEFAULT_ALLOWED_MIME_TYPES", {
55
55
  enumerable: true,
56
- get: function () { return chunkS732H246_js.DEFAULT_ALLOWED_MIME_TYPES; }
56
+ get: function () { return chunk6PMXAK7F_js.DEFAULT_ALLOWED_MIME_TYPES; }
57
57
  });
58
58
  Object.defineProperty(exports, "DEFAULT_CACHE_CONFIG", {
59
59
  enumerable: true,
60
- get: function () { return chunkS732H246_js.DEFAULT_CACHE_CONFIG; }
60
+ get: function () { return chunk6PMXAK7F_js.DEFAULT_CACHE_CONFIG; }
61
61
  });
62
62
  Object.defineProperty(exports, "DEFAULT_FILE_SERVICE_CONFIG", {
63
63
  enumerable: true,
64
- get: function () { return chunkS732H246_js.DEFAULT_FILE_SERVICE_CONFIG; }
64
+ get: function () { return chunk6PMXAK7F_js.DEFAULT_FILE_SERVICE_CONFIG; }
65
65
  });
66
66
  Object.defineProperty(exports, "DEFAULT_MAX_FILE_SIZE", {
67
67
  enumerable: true,
68
- get: function () { return chunkS732H246_js.DEFAULT_MAX_FILE_SIZE; }
68
+ get: function () { return chunk6PMXAK7F_js.DEFAULT_MAX_FILE_SIZE; }
69
69
  });
70
70
  Object.defineProperty(exports, "DEFAULT_OSS_CONFIG_KEYS", {
71
71
  enumerable: true,
72
- get: function () { return chunkS732H246_js.DEFAULT_OSS_CONFIG_KEYS; }
72
+ get: function () { return chunk6PMXAK7F_js.DEFAULT_OSS_CONFIG_KEYS; }
73
73
  });
74
74
  Object.defineProperty(exports, "ErrorHttpStatusMap", {
75
75
  enumerable: true,
76
- get: function () { return chunkS732H246_js.ErrorHttpStatusMap; }
76
+ get: function () { return chunk6PMXAK7F_js.ErrorHttpStatusMap; }
77
77
  });
78
78
  Object.defineProperty(exports, "ErrorMessages", {
79
79
  enumerable: true,
80
- get: function () { return chunkS732H246_js.ErrorMessages; }
80
+ get: function () { return chunk6PMXAK7F_js.ErrorMessages; }
81
81
  });
82
82
  Object.defineProperty(exports, "FileDbService", {
83
83
  enumerable: true,
84
- get: function () { return chunkS732H246_js.FileDbService; }
84
+ get: function () { return chunk6PMXAK7F_js.FileDbService; }
85
85
  });
86
86
  Object.defineProperty(exports, "FileServiceConfigManager", {
87
87
  enumerable: true,
88
- get: function () { return chunkS732H246_js.FileServiceConfigManager; }
88
+ get: function () { return chunk6PMXAK7F_js.FileServiceConfigManager; }
89
89
  });
90
90
  Object.defineProperty(exports, "ImageProcessor", {
91
91
  enumerable: true,
92
- get: function () { return chunkS732H246_js.ImageProcessor; }
92
+ get: function () { return chunk6PMXAK7F_js.ImageProcessor; }
93
93
  });
94
94
  Object.defineProperty(exports, "PerformanceMonitor", {
95
95
  enumerable: true,
96
- get: function () { return chunkS732H246_js.PerformanceMonitor; }
96
+ get: function () { return chunk6PMXAK7F_js.PerformanceMonitor; }
97
97
  });
98
98
  Object.defineProperty(exports, "ProcessingQueue", {
99
99
  enumerable: true,
100
- get: function () { return chunkS732H246_js.ProcessingQueue; }
100
+ get: function () { return chunk6PMXAK7F_js.ProcessingQueue; }
101
101
  });
102
102
  Object.defineProperty(exports, "QueryOptimizer", {
103
103
  enumerable: true,
104
- get: function () { return chunkS732H246_js.QueryOptimizer; }
104
+ get: function () { return chunk6PMXAK7F_js.QueryOptimizer; }
105
105
  });
106
106
  Object.defineProperty(exports, "UniversalFileService", {
107
107
  enumerable: true,
108
- get: function () { return chunkS732H246_js.UniversalFileService; }
108
+ get: function () { return chunk6PMXAK7F_js.UniversalFileService; }
109
109
  });
110
110
  Object.defineProperty(exports, "ValidationHelper", {
111
111
  enumerable: true,
112
- get: function () { return chunkS732H246_js.ValidationHelper; }
112
+ get: function () { return chunk6PMXAK7F_js.ValidationHelper; }
113
113
  });
114
114
  Object.defineProperty(exports, "VideoProcessor", {
115
115
  enumerable: true,
116
- get: function () { return chunkS732H246_js.VideoProcessor; }
116
+ get: function () { return chunk6PMXAK7F_js.VideoProcessor; }
117
117
  });
118
118
  Object.defineProperty(exports, "cacheManager", {
119
119
  enumerable: true,
120
- get: function () { return chunkS732H246_js.cacheManager; }
120
+ get: function () { return chunk6PMXAK7F_js.cacheManager; }
121
121
  });
122
122
  Object.defineProperty(exports, "cdnCacheStrategy", {
123
123
  enumerable: true,
124
- get: function () { return chunkS732H246_js.cdnCacheStrategy; }
124
+ get: function () { return chunk6PMXAK7F_js.cdnCacheStrategy; }
125
125
  });
126
126
  Object.defineProperty(exports, "createAliyunOSSPreset", {
127
127
  enumerable: true,
128
- get: function () { return chunkS732H246_js.createAliyunOSSPreset; }
128
+ get: function () { return chunk6PMXAK7F_js.createAliyunOSSPreset; }
129
129
  });
130
130
  Object.defineProperty(exports, "createDocumentServicePreset", {
131
131
  enumerable: true,
132
- get: function () { return chunkS732H246_js.createDocumentServicePreset; }
132
+ get: function () { return chunk6PMXAK7F_js.createDocumentServicePreset; }
133
133
  });
134
134
  Object.defineProperty(exports, "createDrizzleFileRepository", {
135
135
  enumerable: true,
136
- get: function () { return chunkS732H246_js.createDrizzleFileRepository; }
136
+ get: function () { return chunk6PMXAK7F_js.createDrizzleFileRepository; }
137
137
  });
138
138
  Object.defineProperty(exports, "createDrizzleRepository", {
139
139
  enumerable: true,
140
- get: function () { return chunkS732H246_js.createDrizzleRepository; }
140
+ get: function () { return chunk6PMXAK7F_js.createDrizzleRepository; }
141
141
  });
142
142
  Object.defineProperty(exports, "createFileServiceConfig", {
143
143
  enumerable: true,
144
- get: function () { return chunkS732H246_js.createFileServiceConfig; }
144
+ get: function () { return chunk6PMXAK7F_js.createFileServiceConfig; }
145
145
  });
146
146
  Object.defineProperty(exports, "createFileServiceConfigWithConfigManager", {
147
147
  enumerable: true,
148
- get: function () { return chunkS732H246_js.createFileServiceConfigWithConfigManager; }
148
+ get: function () { return chunk6PMXAK7F_js.createFileServiceConfigWithConfigManager; }
149
149
  });
150
150
  Object.defineProperty(exports, "createFileServiceFromEnv", {
151
151
  enumerable: true,
152
- get: function () { return chunkS732H246_js.createFileServiceFromEnv; }
152
+ get: function () { return chunk6PMXAK7F_js.createFileServiceFromEnv; }
153
153
  });
154
154
  Object.defineProperty(exports, "createFileServiceWithFactory", {
155
155
  enumerable: true,
156
- get: function () { return chunkS732H246_js.createFileServiceWithFactory; }
156
+ get: function () { return chunk6PMXAK7F_js.createFileServiceWithFactory; }
157
157
  });
158
158
  Object.defineProperty(exports, "createImageServicePreset", {
159
159
  enumerable: true,
160
- get: function () { return chunkS732H246_js.createImageServicePreset; }
160
+ get: function () { return chunk6PMXAK7F_js.createImageServicePreset; }
161
161
  });
162
162
  Object.defineProperty(exports, "createLocalDevPreset", {
163
163
  enumerable: true,
164
- get: function () { return chunkS732H246_js.createLocalDevPreset; }
164
+ get: function () { return chunk6PMXAK7F_js.createLocalDevPreset; }
165
165
  });
166
166
  Object.defineProperty(exports, "createSingleton", {
167
167
  enumerable: true,
168
- get: function () { return chunkS732H246_js.createSingleton; }
168
+ get: function () { return chunk6PMXAK7F_js.createSingleton; }
169
169
  });
170
170
  Object.defineProperty(exports, "createSmartPreset", {
171
171
  enumerable: true,
172
- get: function () { return chunkS732H246_js.createSmartPreset; }
172
+ get: function () { return chunk6PMXAK7F_js.createSmartPreset; }
173
173
  });
174
174
  Object.defineProperty(exports, "createUniversalFileService", {
175
175
  enumerable: true,
176
- get: function () { return chunkS732H246_js.createUniversalFileService; }
176
+ get: function () { return chunk6PMXAK7F_js.createUniversalFileService; }
177
177
  });
178
178
  Object.defineProperty(exports, "createUniversalFileServiceWithConfigManager", {
179
179
  enumerable: true,
180
- get: function () { return chunkS732H246_js.createUniversalFileServiceWithConfigManager; }
180
+ get: function () { return chunk6PMXAK7F_js.createUniversalFileServiceWithConfigManager; }
181
181
  });
182
182
  Object.defineProperty(exports, "createVideoServicePreset", {
183
183
  enumerable: true,
184
- get: function () { return chunkS732H246_js.createVideoServicePreset; }
184
+ get: function () { return chunk6PMXAK7F_js.createVideoServicePreset; }
185
185
  });
186
186
  Object.defineProperty(exports, "getDefaultLocalStorage", {
187
187
  enumerable: true,
188
- get: function () { return chunkS732H246_js.getDefaultLocalStorage; }
188
+ get: function () { return chunk6PMXAK7F_js.getDefaultLocalStorage; }
189
189
  });
190
190
  Object.defineProperty(exports, "getMimeType", {
191
191
  enumerable: true,
192
- get: function () { return chunkS732H246_js.getMimeType; }
192
+ get: function () { return chunk6PMXAK7F_js.getMimeType; }
193
193
  });
194
194
  Object.defineProperty(exports, "getRequiredEnvVars", {
195
195
  enumerable: true,
196
- get: function () { return chunkS732H246_js.getRequiredEnvVars; }
196
+ get: function () { return chunk6PMXAK7F_js.getRequiredEnvVars; }
197
197
  });
198
198
  Object.defineProperty(exports, "loadCDNConfigFromEnv", {
199
199
  enumerable: true,
200
- get: function () { return chunkS732H246_js.loadCDNConfigFromEnv; }
200
+ get: function () { return chunk6PMXAK7F_js.loadCDNConfigFromEnv; }
201
201
  });
202
202
  Object.defineProperty(exports, "loadConfigFromEnv", {
203
203
  enumerable: true,
204
- get: function () { return chunkS732H246_js.loadConfigFromEnv; }
204
+ get: function () { return chunk6PMXAK7F_js.loadConfigFromEnv; }
205
205
  });
206
206
  Object.defineProperty(exports, "loadConfigWithFallback", {
207
207
  enumerable: true,
208
- get: function () { return chunkS732H246_js.loadConfigWithFallback; }
208
+ get: function () { return chunk6PMXAK7F_js.loadConfigWithFallback; }
209
209
  });
210
210
  Object.defineProperty(exports, "loadOSSConfigFromEnv", {
211
211
  enumerable: true,
212
- get: function () { return chunkS732H246_js.loadOSSConfigFromEnv; }
212
+ get: function () { return chunk6PMXAK7F_js.loadOSSConfigFromEnv; }
213
213
  });
214
214
  Object.defineProperty(exports, "loadOSSConfigFromService", {
215
215
  enumerable: true,
216
- get: function () { return chunkS732H246_js.loadOSSConfigFromService; }
216
+ get: function () { return chunk6PMXAK7F_js.loadOSSConfigFromService; }
217
217
  });
218
218
  Object.defineProperty(exports, "performanceMonitor", {
219
219
  enumerable: true,
220
- get: function () { return chunkS732H246_js.performanceMonitor; }
220
+ get: function () { return chunk6PMXAK7F_js.performanceMonitor; }
221
221
  });
222
222
  Object.defineProperty(exports, "queryOptimizer", {
223
223
  enumerable: true,
224
- get: function () { return chunkS732H246_js.queryOptimizer; }
224
+ get: function () { return chunk6PMXAK7F_js.queryOptimizer; }
225
225
  });
226
226
  Object.defineProperty(exports, "validateEnvironment", {
227
227
  enumerable: true,
228
- get: function () { return chunkS732H246_js.validateEnvironment; }
228
+ get: function () { return chunk6PMXAK7F_js.validateEnvironment; }
229
229
  });
230
230
  Object.defineProperty(exports, "validateServiceConfig", {
231
231
  enumerable: true,
232
- get: function () { return chunkS732H246_js.validateServiceConfig; }
232
+ get: function () { return chunk6PMXAK7F_js.validateServiceConfig; }
233
233
  });
234
234
  Object.defineProperty(exports, "validateStorageConfig", {
235
235
  enumerable: true,
236
- get: function () { return chunkS732H246_js.validateStorageConfig; }
237
- });
238
- Object.defineProperty(exports, "AliyunOSSProvider", {
239
- enumerable: true,
240
- get: function () { return chunkHJ6MH7J7_js.AliyunOSSProvider; }
236
+ get: function () { return chunk6PMXAK7F_js.validateStorageConfig; }
241
237
  });
242
238
  Object.defineProperty(exports, "LocalStorageProvider", {
243
239
  enumerable: true,
244
240
  get: function () { return chunkQ5EDCKQA_js.LocalStorageProvider; }
245
241
  });
242
+ Object.defineProperty(exports, "AliyunOSSProvider", {
243
+ enumerable: true,
244
+ get: function () { return chunkHJ6MH7J7_js.AliyunOSSProvider; }
245
+ });
246
246
  Object.defineProperty(exports, "fileAccessLogs", {
247
247
  enumerable: true,
248
248
  get: function () { return chunkV3QWXWHZ_js.fileAccessLogs; }
@@ -1,6 +1,6 @@
1
- export { AliyunCDNProvider, ApiError, ApiErrorCode, ApiErrorFactory, ApiResponseHelper, AudioProcessor, CacheManager, CacheStrategyType, CdnCacheStrategy, ConfigValidationError, DEFAULT_ALLOWED_MIME_TYPES, DEFAULT_CACHE_CONFIG, DEFAULT_FILE_SERVICE_CONFIG, DEFAULT_MAX_FILE_SIZE, DEFAULT_OSS_CONFIG_KEYS, ErrorHttpStatusMap, ErrorMessages, FileDbService, FileServiceConfigManager, ImageProcessor, PerformanceMonitor, ProcessingQueue, QueryOptimizer, UniversalFileService, ValidationHelper, VideoProcessor, cacheManager, cdnCacheStrategy, createAliyunOSSPreset, createDocumentServicePreset, createDrizzleFileRepository, createDrizzleRepository, createFileServiceConfig, createFileServiceConfigWithConfigManager, createFileServiceFromEnv, createFileServiceWithFactory, createImageServicePreset, createLocalDevPreset, createSingleton, createSmartPreset, createUniversalFileService, createUniversalFileServiceWithConfigManager, createVideoServicePreset, getDefaultLocalStorage, getMimeType, getRequiredEnvVars, loadCDNConfigFromEnv, loadConfigFromEnv, loadConfigWithFallback, loadOSSConfigFromEnv, loadOSSConfigFromService, performanceMonitor, queryOptimizer, validateEnvironment, validateServiceConfig, validateStorageConfig } from '../../chunk-RJP2BRJD.mjs';
2
- export { AliyunOSSProvider } from '../../chunk-HDMIOOZY.mjs';
1
+ export { AliyunCDNProvider, ApiError, ApiErrorCode, ApiErrorFactory, ApiResponseHelper, AudioProcessor, CacheManager, CacheStrategyType, CdnCacheStrategy, ConfigValidationError, DEFAULT_ALLOWED_MIME_TYPES, DEFAULT_CACHE_CONFIG, DEFAULT_FILE_SERVICE_CONFIG, DEFAULT_MAX_FILE_SIZE, DEFAULT_OSS_CONFIG_KEYS, ErrorHttpStatusMap, ErrorMessages, FileDbService, FileServiceConfigManager, ImageProcessor, PerformanceMonitor, ProcessingQueue, QueryOptimizer, UniversalFileService, ValidationHelper, VideoProcessor, cacheManager, cdnCacheStrategy, createAliyunOSSPreset, createDocumentServicePreset, createDrizzleFileRepository, createDrizzleRepository, createFileServiceConfig, createFileServiceConfigWithConfigManager, createFileServiceFromEnv, createFileServiceWithFactory, createImageServicePreset, createLocalDevPreset, createSingleton, createSmartPreset, createUniversalFileService, createUniversalFileServiceWithConfigManager, createVideoServicePreset, getDefaultLocalStorage, getMimeType, getRequiredEnvVars, loadCDNConfigFromEnv, loadConfigFromEnv, loadConfigWithFallback, loadOSSConfigFromEnv, loadOSSConfigFromService, performanceMonitor, queryOptimizer, validateEnvironment, validateServiceConfig, validateStorageConfig } from '../../chunk-4OOANEJV.mjs';
3
2
  export { LocalStorageProvider } from '../../chunk-YOTQG4NP.mjs';
3
+ export { AliyunOSSProvider } from '../../chunk-HDMIOOZY.mjs';
4
4
  import '../../chunk-ZGVB35L2.mjs';
5
5
  import '../../chunk-CIVO4R6N.mjs';
6
6
  import '../../chunk-3DXPQ4YV.mjs';
@@ -0,0 +1,77 @@
1
+ /** Better Auth 客户端(vanilla 或 React 均可) */
2
+ type AuthActionsClient = Record<string, unknown>;
3
+ declare function useAuthActions(authClient: AuthActionsClient): {
4
+ signInWithEmail: (email: string, password: string) => Promise<{
5
+ success: false;
6
+ error: string;
7
+ } | {
8
+ success: true;
9
+ error?: undefined;
10
+ }>;
11
+ signInWithPhonePassword: (phoneNumber: string, password: string) => Promise<{
12
+ success: false;
13
+ error: string;
14
+ } | {
15
+ success: true;
16
+ error?: undefined;
17
+ }>;
18
+ signUpWithEmail: (email: string, password: string, name: string) => Promise<{
19
+ success: false;
20
+ error: string;
21
+ } | {
22
+ success: true;
23
+ error?: undefined;
24
+ }>;
25
+ sendPhoneOtp: (phoneNumber: string) => Promise<{
26
+ success: false;
27
+ error: string;
28
+ } | {
29
+ success: true;
30
+ error?: undefined;
31
+ }>;
32
+ verifyPhoneOtp: (phoneNumber: string, code: string) => Promise<{
33
+ success: false;
34
+ error: string;
35
+ } | {
36
+ success: true;
37
+ error?: undefined;
38
+ }>;
39
+ sendEmailOtp: (email: string, type?: "sign-in" | "email-verification" | "forget-password") => Promise<{
40
+ success: false;
41
+ error: string;
42
+ } | {
43
+ success: true;
44
+ error?: undefined;
45
+ }>;
46
+ signInWithEmailOtp: (email: string, otp: string) => Promise<{
47
+ success: false;
48
+ error: string;
49
+ } | {
50
+ success: true;
51
+ error?: undefined;
52
+ }>;
53
+ requestPhonePasswordReset: (phoneNumber: string) => Promise<{
54
+ success: false;
55
+ error: string;
56
+ } | {
57
+ success: true;
58
+ error?: undefined;
59
+ }>;
60
+ resetPhonePassword: (phoneNumber: string, otp: string, newPassword: string) => Promise<{
61
+ success: false;
62
+ error: string;
63
+ } | {
64
+ success: true;
65
+ error?: undefined;
66
+ }>;
67
+ signOut: () => Promise<{
68
+ success: true;
69
+ error?: undefined;
70
+ } | {
71
+ success: false;
72
+ error: string;
73
+ }>;
74
+ };
75
+ type UseAuthActionsReturn = ReturnType<typeof useAuthActions>;
76
+
77
+ export { type AuthActionsClient as A, type UseAuthActionsReturn as U, useAuthActions as u };
@@ -0,0 +1,77 @@
1
+ /** Better Auth 客户端(vanilla 或 React 均可) */
2
+ type AuthActionsClient = Record<string, unknown>;
3
+ declare function useAuthActions(authClient: AuthActionsClient): {
4
+ signInWithEmail: (email: string, password: string) => Promise<{
5
+ success: false;
6
+ error: string;
7
+ } | {
8
+ success: true;
9
+ error?: undefined;
10
+ }>;
11
+ signInWithPhonePassword: (phoneNumber: string, password: string) => Promise<{
12
+ success: false;
13
+ error: string;
14
+ } | {
15
+ success: true;
16
+ error?: undefined;
17
+ }>;
18
+ signUpWithEmail: (email: string, password: string, name: string) => Promise<{
19
+ success: false;
20
+ error: string;
21
+ } | {
22
+ success: true;
23
+ error?: undefined;
24
+ }>;
25
+ sendPhoneOtp: (phoneNumber: string) => Promise<{
26
+ success: false;
27
+ error: string;
28
+ } | {
29
+ success: true;
30
+ error?: undefined;
31
+ }>;
32
+ verifyPhoneOtp: (phoneNumber: string, code: string) => Promise<{
33
+ success: false;
34
+ error: string;
35
+ } | {
36
+ success: true;
37
+ error?: undefined;
38
+ }>;
39
+ sendEmailOtp: (email: string, type?: "sign-in" | "email-verification" | "forget-password") => Promise<{
40
+ success: false;
41
+ error: string;
42
+ } | {
43
+ success: true;
44
+ error?: undefined;
45
+ }>;
46
+ signInWithEmailOtp: (email: string, otp: string) => Promise<{
47
+ success: false;
48
+ error: string;
49
+ } | {
50
+ success: true;
51
+ error?: undefined;
52
+ }>;
53
+ requestPhonePasswordReset: (phoneNumber: string) => Promise<{
54
+ success: false;
55
+ error: string;
56
+ } | {
57
+ success: true;
58
+ error?: undefined;
59
+ }>;
60
+ resetPhonePassword: (phoneNumber: string, otp: string, newPassword: string) => Promise<{
61
+ success: false;
62
+ error: string;
63
+ } | {
64
+ success: true;
65
+ error?: undefined;
66
+ }>;
67
+ signOut: () => Promise<{
68
+ success: true;
69
+ error?: undefined;
70
+ } | {
71
+ success: false;
72
+ error: string;
73
+ }>;
74
+ };
75
+ type UseAuthActionsReturn = ReturnType<typeof useAuthActions>;
76
+
77
+ export { type AuthActionsClient as A, type UseAuthActionsReturn as U, useAuthActions as u };
@@ -1,8 +1,8 @@
1
1
  import { B as BoothVaultStore, a as BoothUploadRecord, b as BoothFileItem, c as BoothFileKind, C as CreateBoothUploadInput, d as BoothVaultService, e as CreateBoothUploadResult, f as BoothAuditEvent } from '../../boothVaultService-Cn4WPhjg.mjs';
2
- import { A as AccessPermission, c as UploadProgress } from '../../types-DyG3ZV9V.mjs';
3
- import { U as UniversalFileService } from '../../UniversalFileService-BpvbZitV.mjs';
2
+ import { A as AccessPermission, a as UploadProgress } from '../../types-B6B210gX.mjs';
3
+ import { U as UniversalFileService } from '../../UniversalFileService-CzAE_G4V.mjs';
4
4
  import 'events';
5
- import '../../types-BTiaMsBz.mjs';
5
+ import '../../types-Bdnte5EN.mjs';
6
6
 
7
7
  declare class InMemoryBoothVaultStore implements BoothVaultStore {
8
8
  private readonly recordsById;
@@ -1,8 +1,8 @@
1
1
  import { B as BoothVaultStore, a as BoothUploadRecord, b as BoothFileItem, c as BoothFileKind, C as CreateBoothUploadInput, d as BoothVaultService, e as CreateBoothUploadResult, f as BoothAuditEvent } from '../../boothVaultService-Cn4WPhjg.js';
2
- import { A as AccessPermission, c as UploadProgress } from '../../types-DyG3ZV9V.js';
3
- import { U as UniversalFileService } from '../../UniversalFileService-GsP6D3Rc.js';
2
+ import { A as AccessPermission, a as UploadProgress } from '../../types-B6B210gX.js';
3
+ import { U as UniversalFileService } from '../../UniversalFileService-CC4d3wkc.js';
4
4
  import 'events';
5
- import '../../types-ERmJyjx8.js';
5
+ import '../../types-_rFX1atk.js';
6
6
 
7
7
  declare class InMemoryBoothVaultStore implements BoothVaultStore {
8
8
  private readonly recordsById;