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.
- package/dist/{UniversalFileService-GsP6D3Rc.d.ts → UniversalFileService-CC4d3wkc.d.ts} +2 -2
- package/dist/{UniversalFileService-BpvbZitV.d.mts → UniversalFileService-CzAE_G4V.d.mts} +2 -2
- package/dist/ai/llm/ui/miniapp/index.d.mts +2 -2
- package/dist/ai/llm/ui/miniapp/index.d.ts +2 -2
- package/dist/ai/llm/ui/rn/index.d.mts +2 -2
- package/dist/ai/llm/ui/rn/index.d.ts +2 -2
- package/dist/ai/llm/ui/web/index.d.mts +3 -3
- package/dist/ai/llm/ui/web/index.d.ts +3 -3
- package/dist/analytics/index.d.mts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/business/index.d.mts +1 -5
- package/dist/business/index.d.ts +1 -5
- package/dist/business/index.js +34 -1135
- package/dist/business/index.js.map +1 -1
- package/dist/business/index.mjs +5 -1105
- package/dist/business/index.mjs.map +1 -1
- package/dist/calendar/routes/index.d.mts +74 -1
- package/dist/calendar/routes/index.d.ts +74 -1
- package/dist/calendar/routes/index.js +186 -97
- package/dist/calendar/routes/index.js.map +1 -1
- package/dist/calendar/routes/index.mjs +178 -99
- package/dist/calendar/routes/index.mjs.map +1 -1
- package/dist/{chunk-RJP2BRJD.mjs → chunk-4OOANEJV.mjs} +2 -2
- package/dist/{chunk-RJP2BRJD.mjs.map → chunk-4OOANEJV.mjs.map} +1 -1
- package/dist/chunk-5FUAQLGC.mjs +14 -0
- package/dist/chunk-5FUAQLGC.mjs.map +1 -0
- package/dist/{chunk-IIVNHQEI.mjs → chunk-5GBDDXYL.mjs} +4 -3
- package/dist/chunk-5GBDDXYL.mjs.map +1 -0
- package/dist/{chunk-S732H246.js → chunk-6PMXAK7F.js} +2 -2
- package/dist/{chunk-S732H246.js.map → chunk-6PMXAK7F.js.map} +1 -1
- package/dist/chunk-6YLCRWKM.mjs +8 -0
- package/dist/chunk-6YLCRWKM.mjs.map +1 -0
- package/dist/chunk-CAYOQDBR.js +78 -0
- package/dist/chunk-CAYOQDBR.js.map +1 -0
- package/dist/{chunk-PTMSDNGO.mjs → chunk-CX2GHCAI.mjs} +4 -75
- package/dist/chunk-CX2GHCAI.mjs.map +1 -0
- package/dist/chunk-EBHPTFG6.mjs +82 -0
- package/dist/chunk-EBHPTFG6.mjs.map +1 -0
- package/dist/chunk-HQLKOXG7.js +16 -0
- package/dist/chunk-HQLKOXG7.js.map +1 -0
- package/dist/chunk-IS7O4LPI.js +146 -0
- package/dist/chunk-IS7O4LPI.js.map +1 -0
- package/dist/chunk-LGHUCQIU.js +93 -0
- package/dist/chunk-LGHUCQIU.js.map +1 -0
- package/dist/chunk-LKBIVQBT.mjs +34 -0
- package/dist/chunk-LKBIVQBT.mjs.map +1 -0
- package/dist/chunk-MIDXG6LS.js +32 -0
- package/dist/chunk-MIDXG6LS.js.map +1 -0
- package/dist/chunk-NDGHXVGS.js +25 -0
- package/dist/chunk-NDGHXVGS.js.map +1 -0
- package/dist/chunk-PA4ELVGI.js +20 -0
- package/dist/chunk-PA4ELVGI.js.map +1 -0
- package/dist/chunk-Q5VFBPMG.mjs +76 -0
- package/dist/chunk-Q5VFBPMG.mjs.map +1 -0
- package/dist/{chunk-WZDTNDYR.js → chunk-QSKLQX6H.js} +11 -11
- package/dist/{chunk-WZDTNDYR.js.map → chunk-QSKLQX6H.js.map} +1 -1
- package/dist/{chunk-QQ2WFYOD.js → chunk-S6YSGVWD.js} +4 -76
- package/dist/chunk-S6YSGVWD.js.map +1 -0
- package/dist/chunk-TNJ6LYX7.mjs +18 -0
- package/dist/chunk-TNJ6LYX7.mjs.map +1 -0
- package/dist/chunk-TTYCVBIQ.mjs +144 -0
- package/dist/chunk-TTYCVBIQ.mjs.map +1 -0
- package/dist/chunk-VJNDOYEC.js +41 -0
- package/dist/chunk-VJNDOYEC.js.map +1 -0
- package/dist/{chunk-J77KR2EV.mjs → chunk-WJ7IMUEJ.mjs} +3 -3
- package/dist/{chunk-J77KR2EV.mjs.map → chunk-WJ7IMUEJ.mjs.map} +1 -1
- package/dist/chunk-YTGUIRRH.js +10 -0
- package/dist/chunk-YTGUIRRH.js.map +1 -0
- package/dist/chunk-ZF7DKR5A.mjs +26 -0
- package/dist/chunk-ZF7DKR5A.mjs.map +1 -0
- package/dist/common/auth/client/index.d.mts +3209 -0
- package/dist/common/auth/client/index.d.ts +3209 -0
- package/dist/common/auth/client/index.js +13 -0
- package/dist/common/auth/client/index.mjs +4 -0
- package/dist/common/auth/components/index.d.mts +140 -0
- package/dist/common/auth/components/index.d.ts +140 -0
- package/dist/common/auth/components/index.js +899 -0
- package/dist/common/auth/components/index.js.map +1 -0
- package/dist/common/auth/components/index.mjs +875 -0
- package/dist/common/auth/components/index.mjs.map +1 -0
- package/dist/common/auth/hooks/index.d.mts +48 -0
- package/dist/common/auth/hooks/index.d.ts +48 -0
- package/dist/common/auth/hooks/index.js +19 -0
- package/dist/common/auth/hooks/index.mjs +6 -0
- package/dist/common/auth/index.d.mts +11 -7
- package/dist/common/auth/index.d.ts +11 -7
- package/dist/common/auth/index.js +7 -19
- package/dist/common/auth/index.mjs +3 -3
- package/dist/common/auth/react/index.d.mts +3056 -0
- package/dist/common/auth/react/index.d.ts +3056 -0
- package/dist/common/auth/react/index.js +31 -0
- package/dist/common/auth/react/index.js.map +1 -0
- package/dist/common/auth/react/index.mjs +21 -0
- package/dist/common/auth/react/index.mjs.map +1 -0
- package/dist/common/auth/rn/index.d.mts +3122 -0
- package/dist/common/auth/rn/index.d.ts +3122 -0
- package/dist/common/auth/rn/index.js +316 -0
- package/dist/common/auth/rn/index.js.map +1 -0
- package/dist/common/auth/rn/index.mjs +298 -0
- package/dist/common/auth/rn/index.mjs.map +1 -0
- package/dist/common/auth/schema/index.d.mts +1479 -0
- package/dist/common/auth/schema/index.d.ts +1479 -0
- package/dist/common/auth/schema/index.js +49 -0
- package/dist/common/auth/schema/index.mjs +4 -0
- package/dist/common/auth/server/index.d.mts +81 -25
- package/dist/common/auth/server/index.d.ts +81 -25
- package/dist/common/auth/server/index.js +146 -98
- package/dist/common/auth/server/index.js.map +1 -1
- package/dist/common/auth/server/index.mjs +125 -5
- package/dist/common/auth/server/index.mjs.map +1 -1
- package/dist/common/auth/services/index.d.mts +14 -0
- package/dist/common/auth/services/index.d.ts +14 -0
- package/dist/common/auth/services/index.js +20 -0
- package/dist/common/auth/services/index.js.map +1 -0
- package/dist/common/auth/services/index.mjs +13 -0
- package/dist/common/auth/services/index.mjs.map +1 -0
- package/dist/common/file/server/index.js +32 -32
- package/dist/common/file/server/index.mjs +3 -3
- package/dist/common/index.d.mts +13 -8
- package/dist/common/index.d.ts +13 -8
- package/dist/common/index.js +19 -18
- package/dist/common/index.mjs +8 -7
- package/dist/common/storage/index.js +13 -12
- package/dist/common/storage/index.mjs +3 -2
- package/dist/festivalCard/index.d.mts +3 -3
- package/dist/festivalCard/index.d.ts +3 -3
- package/dist/festivalCard/routes/index.d.mts +1 -1
- package/dist/festivalCard/routes/index.d.ts +1 -1
- package/dist/festivalCard/server/index.d.mts +2 -2
- package/dist/festivalCard/server/index.d.ts +2 -2
- package/dist/{festivalCardService-BFCRhJrq.d.ts → festivalCardService-B3GsnNpV.d.ts} +1 -1
- package/dist/{festivalCardService-GriR2VMc.d.mts → festivalCardService-CWhrLNE9.d.mts} +1 -1
- package/dist/i18n/index.d.mts +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/imageCrop/index.d.mts +3 -3
- package/dist/imageCrop/index.d.ts +3 -3
- package/dist/index-Bd7cKF1j.d.mts +50 -0
- package/dist/{index-CLB80GCP.d.mts → index-D0cqaQEH.d.mts} +5 -5
- package/dist/{index-CLB80GCP.d.ts → index-D0cqaQEH.d.ts} +5 -5
- package/dist/index-DRQxtCDw.d.ts +50 -0
- package/dist/{index-1Ag7IBXN.d.ts → index-DZ5iJtNO.d.mts} +2 -44
- package/dist/{index-DdeZSeTJ.d.mts → index-DZ5iJtNO.d.ts} +2 -44
- package/dist/{index-BxZauNN_.d.ts → index-DoUo8IrU.d.mts} +8 -8
- package/dist/{index-BxZauNN_.d.mts → index-DoUo8IrU.d.ts} +8 -8
- package/dist/index.d.mts +6382 -105
- package/dist/index.d.ts +6382 -105
- package/dist/index.js +1037 -2616
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +976 -2555
- package/dist/index.mjs.map +1 -1
- package/dist/mmd/admin/index.d.mts +1 -1
- package/dist/mmd/admin/index.d.ts +1 -1
- package/dist/mmd/index.d.mts +1 -1
- package/dist/mmd/index.d.ts +1 -1
- package/dist/mmd/server/index.d.mts +3 -3
- package/dist/mmd/server/index.d.ts +3 -3
- package/dist/ossFile/server/index.js +32 -32
- package/dist/ossFile/server/index.mjs +3 -3
- package/dist/storage/index.js +12 -11
- package/dist/storage/index.mjs +2 -1
- package/dist/{types-DyG3ZV9V.d.mts → types-B6B210gX.d.mts} +1 -1
- package/dist/{types-DyG3ZV9V.d.ts → types-B6B210gX.d.ts} +1 -1
- package/dist/{types-BTiaMsBz.d.mts → types-Bdnte5EN.d.mts} +1 -1
- package/dist/{types-tQfupO6d.d.ts → types-Cs0CLvrH.d.mts} +1 -1
- package/dist/{types-tQfupO6d.d.mts → types-Cs0CLvrH.d.ts} +1 -1
- package/dist/{types-ERmJyjx8.d.ts → types-_rFX1atk.d.ts} +1 -1
- package/dist/universalExport/index.d.mts +3 -3
- package/dist/universalExport/index.d.ts +3 -3
- package/dist/universalFile/index.d.mts +5 -5
- package/dist/universalFile/index.d.ts +5 -5
- package/dist/universalFile/server/index.js +62 -62
- package/dist/universalFile/server/index.mjs +2 -2
- package/dist/useAuthActions-7S5dL7Oh.d.mts +77 -0
- package/dist/useAuthActions-7S5dL7Oh.d.ts +77 -0
- package/dist/vocaloidBooth/server/index.d.mts +3 -3
- package/dist/vocaloidBooth/server/index.d.ts +3 -3
- package/package.json +44 -111
- package/dist/auth/client/index.d.mts +0 -32
- package/dist/auth/client/index.d.ts +0 -32
- package/dist/auth/client/index.js +0 -21
- package/dist/auth/client/index.mjs +0 -4
- package/dist/auth/components/index.d.mts +0 -227
- package/dist/auth/components/index.d.ts +0 -227
- package/dist/auth/components/index.js +0 -327
- package/dist/auth/components/index.js.map +0 -1
- package/dist/auth/components/index.mjs +0 -319
- package/dist/auth/components/index.mjs.map +0 -1
- package/dist/auth/hooks/index.d.mts +0 -31
- package/dist/auth/hooks/index.d.ts +0 -31
- package/dist/auth/hooks/index.js +0 -17
- package/dist/auth/hooks/index.mjs +0 -4
- package/dist/auth/index.d.mts +0 -18
- package/dist/auth/index.d.ts +0 -18
- package/dist/auth/index.js +0 -151
- package/dist/auth/index.mjs +0 -10
- package/dist/auth/legacy/core/index.d.mts +0 -42
- package/dist/auth/legacy/core/index.d.ts +0 -42
- package/dist/auth/legacy/core/index.js +0 -242
- package/dist/auth/legacy/core/index.js.map +0 -1
- package/dist/auth/legacy/core/index.mjs +0 -226
- package/dist/auth/legacy/core/index.mjs.map +0 -1
- package/dist/auth/legacy/db/index.d.mts +0 -5
- package/dist/auth/legacy/db/index.d.ts +0 -5
- package/dist/auth/legacy/db/index.js +0 -261
- package/dist/auth/legacy/db/index.js.map +0 -1
- package/dist/auth/legacy/db/index.mjs +0 -250
- package/dist/auth/legacy/db/index.mjs.map +0 -1
- package/dist/auth/legacy/index.d.mts +0 -5
- package/dist/auth/legacy/index.d.ts +0 -5
- package/dist/auth/legacy/index.js +0 -1107
- package/dist/auth/legacy/index.js.map +0 -1
- package/dist/auth/legacy/index.mjs +0 -1086
- package/dist/auth/legacy/index.mjs.map +0 -1
- package/dist/auth/legacy/logic/index.d.mts +0 -9
- package/dist/auth/legacy/logic/index.d.ts +0 -9
- package/dist/auth/legacy/logic/index.js +0 -194
- package/dist/auth/legacy/logic/index.js.map +0 -1
- package/dist/auth/legacy/logic/index.mjs +0 -187
- package/dist/auth/legacy/logic/index.mjs.map +0 -1
- package/dist/auth/legacy/miniapp/index.d.mts +0 -5
- package/dist/auth/legacy/miniapp/index.d.ts +0 -5
- package/dist/auth/legacy/miniapp/index.js +0 -506
- package/dist/auth/legacy/miniapp/index.js.map +0 -1
- package/dist/auth/legacy/miniapp/index.mjs +0 -487
- package/dist/auth/legacy/miniapp/index.mjs.map +0 -1
- package/dist/auth/legacy/routes/index.d.mts +0 -53
- package/dist/auth/legacy/routes/index.d.ts +0 -53
- package/dist/auth/legacy/routes/index.js +0 -278
- package/dist/auth/legacy/routes/index.js.map +0 -1
- package/dist/auth/legacy/routes/index.mjs +0 -271
- package/dist/auth/legacy/routes/index.mjs.map +0 -1
- package/dist/auth/legacy/schema/index.d.mts +0 -401
- package/dist/auth/legacy/schema/index.d.ts +0 -401
- package/dist/auth/legacy/schema/index.js +0 -50
- package/dist/auth/legacy/schema/index.js.map +0 -1
- package/dist/auth/legacy/schema/index.mjs +0 -44
- package/dist/auth/legacy/schema/index.mjs.map +0 -1
- package/dist/auth/legacy/server/index.d.mts +0 -13
- package/dist/auth/legacy/server/index.d.ts +0 -13
- package/dist/auth/legacy/server/index.js +0 -21
- package/dist/auth/legacy/server/index.js.map +0 -1
- package/dist/auth/legacy/server/index.mjs +0 -19
- package/dist/auth/legacy/server/index.mjs.map +0 -1
- package/dist/auth/legacy/services/index.d.mts +0 -40
- package/dist/auth/legacy/services/index.d.ts +0 -40
- package/dist/auth/legacy/services/index.js +0 -258
- package/dist/auth/legacy/services/index.js.map +0 -1
- package/dist/auth/legacy/services/index.mjs +0 -252
- package/dist/auth/legacy/services/index.mjs.map +0 -1
- package/dist/auth/legacy/ui/miniapp/index.d.mts +0 -10
- package/dist/auth/legacy/ui/miniapp/index.d.ts +0 -10
- package/dist/auth/legacy/ui/miniapp/index.js +0 -298
- package/dist/auth/legacy/ui/miniapp/index.js.map +0 -1
- package/dist/auth/legacy/ui/miniapp/index.mjs +0 -290
- package/dist/auth/legacy/ui/miniapp/index.mjs.map +0 -1
- package/dist/auth/legacy/ui/web/index.d.mts +0 -22
- package/dist/auth/legacy/ui/web/index.d.ts +0 -22
- package/dist/auth/legacy/ui/web/index.js +0 -899
- package/dist/auth/legacy/ui/web/index.js.map +0 -1
- package/dist/auth/legacy/ui/web/index.mjs +0 -889
- package/dist/auth/legacy/ui/web/index.mjs.map +0 -1
- package/dist/auth/legacy/web/index.d.mts +0 -5
- package/dist/auth/legacy/web/index.d.ts +0 -5
- package/dist/auth/legacy/web/index.js +0 -1107
- package/dist/auth/legacy/web/index.js.map +0 -1
- package/dist/auth/legacy/web/index.mjs +0 -1086
- package/dist/auth/legacy/web/index.mjs.map +0 -1
- package/dist/auth/middleware/index.d.mts +0 -75
- package/dist/auth/middleware/index.d.ts +0 -75
- package/dist/auth/middleware/index.js +0 -15
- package/dist/auth/middleware/index.js.map +0 -1
- package/dist/auth/middleware/index.mjs +0 -6
- package/dist/auth/middleware/index.mjs.map +0 -1
- package/dist/auth/rn/index.d.mts +0 -64
- package/dist/auth/rn/index.d.ts +0 -64
- package/dist/auth/rn/index.js +0 -765
- package/dist/auth/rn/index.js.map +0 -1
- package/dist/auth/rn/index.mjs +0 -754
- package/dist/auth/rn/index.mjs.map +0 -1
- package/dist/auth/routes/index.d.mts +0 -261
- package/dist/auth/routes/index.d.ts +0 -261
- package/dist/auth/routes/index.js +0 -59
- package/dist/auth/routes/index.js.map +0 -1
- package/dist/auth/routes/index.mjs +0 -6
- package/dist/auth/routes/index.mjs.map +0 -1
- package/dist/auth/schema/index.d.mts +0 -789
- package/dist/auth/schema/index.d.ts +0 -789
- package/dist/auth/schema/index.js +0 -41
- package/dist/auth/schema/index.js.map +0 -1
- package/dist/auth/schema/index.mjs +0 -4
- package/dist/auth/schema/index.mjs.map +0 -1
- package/dist/auth/services/index.d.mts +0 -48
- package/dist/auth/services/index.d.ts +0 -48
- package/dist/auth/services/index.js +0 -34
- package/dist/auth/services/index.js.map +0 -1
- package/dist/auth/services/index.mjs +0 -5
- package/dist/auth/services/index.mjs.map +0 -1
- package/dist/base-api-client-ACKKt13v.d.mts +0 -277
- package/dist/base-api-client-ACKKt13v.d.ts +0 -277
- package/dist/base-api-client-B3wZZoaH.d.ts +0 -103
- package/dist/base-api-client-DrL35Ea2.d.mts +0 -103
- package/dist/chunk-37HYTHEC.mjs +0 -90
- package/dist/chunk-37HYTHEC.mjs.map +0 -1
- package/dist/chunk-5WV35FPV.js +0 -131
- package/dist/chunk-5WV35FPV.js.map +0 -1
- package/dist/chunk-DCRD5CZB.js +0 -573
- package/dist/chunk-DCRD5CZB.js.map +0 -1
- package/dist/chunk-DDX4JKFS.js +0 -19
- package/dist/chunk-DDX4JKFS.js.map +0 -1
- package/dist/chunk-DV6M7MFP.js +0 -283
- package/dist/chunk-DV6M7MFP.js.map +0 -1
- package/dist/chunk-HBF4HPRK.js +0 -186
- package/dist/chunk-HBF4HPRK.js.map +0 -1
- package/dist/chunk-HCI6JQOU.mjs +0 -183
- package/dist/chunk-HCI6JQOU.mjs.map +0 -1
- package/dist/chunk-I44HXJ3X.mjs +0 -17
- package/dist/chunk-I44HXJ3X.mjs.map +0 -1
- package/dist/chunk-IIVNHQEI.mjs.map +0 -1
- package/dist/chunk-IJ4YYWE3.mjs +0 -122
- package/dist/chunk-IJ4YYWE3.mjs.map +0 -1
- package/dist/chunk-J4BEIZUC.js +0 -92
- package/dist/chunk-J4BEIZUC.js.map +0 -1
- package/dist/chunk-OKPWFVXC.js +0 -24
- package/dist/chunk-OKPWFVXC.js.map +0 -1
- package/dist/chunk-PNOTQAYK.mjs +0 -560
- package/dist/chunk-PNOTQAYK.mjs.map +0 -1
- package/dist/chunk-PTMSDNGO.mjs.map +0 -1
- package/dist/chunk-Q2IAL7YV.js +0 -36
- package/dist/chunk-Q2IAL7YV.js.map +0 -1
- package/dist/chunk-QQ2WFYOD.js.map +0 -1
- package/dist/chunk-VQ54PUQV.js +0 -216
- package/dist/chunk-VQ54PUQV.js.map +0 -1
- package/dist/chunk-W5JEGA76.mjs +0 -33
- package/dist/chunk-W5JEGA76.mjs.map +0 -1
- package/dist/chunk-YGI7UU2D.mjs +0 -212
- package/dist/chunk-YGI7UU2D.mjs.map +0 -1
- package/dist/chunk-ZCLQSI5F.mjs +0 -271
- package/dist/chunk-ZCLQSI5F.mjs.map +0 -1
- package/dist/drizzle-auth-service-D-pljzCD.d.mts +0 -145
- package/dist/drizzle-auth-service-D3qryE_I.d.ts +0 -145
- package/dist/index-Bnh6VqFv.d.ts +0 -35
- package/dist/index-DNKZ7-R_.d.mts +0 -184
- package/dist/index-DNKZ7-R_.d.ts +0 -184
- package/dist/index-DPYkrKZf.d.mts +0 -35
- package/dist/types-C5vUWf9u.d.ts +0 -70
- package/dist/types-C_W_CoUD.d.ts +0 -99
- package/dist/types-DCRvasyH.d.mts +0 -99
- package/dist/types-IYCqCk2g.d.mts +0 -70
- /package/dist/{auth → common/auth}/client/index.js.map +0 -0
- /package/dist/{auth → common/auth}/client/index.mjs.map +0 -0
- /package/dist/{auth → common/auth}/hooks/index.js.map +0 -0
- /package/dist/{auth → common/auth}/hooks/index.mjs.map +0 -0
- /package/dist/{auth → common/auth/schema}/index.js.map +0 -0
- /package/dist/{auth → common/auth/schema}/index.mjs.map +0 -0
|
@@ -1,8 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export { createAuthMiddleware } from '../../../chunk-37HYTHEC.mjs';
|
|
4
|
-
export { DrizzleAuthService, generateToken, getTokenFromRequest, hashPassword, verifyJwtToken, verifyPassword } from '../../../chunk-ZCLQSI5F.mjs';
|
|
5
|
-
export { account, accountRelations, session, sessionRelations, user, userRelations, userRole, verifications } from '../../../chunk-IJ4YYWE3.mjs';
|
|
1
|
+
import { authDrizzleSchema } from '../../../chunk-EBHPTFG6.mjs';
|
|
2
|
+
export { account, accountRelations, authDrizzleSchema, session, sessionRelations, user, userRelations, userRole, verification, verifications } from '../../../chunk-EBHPTFG6.mjs';
|
|
6
3
|
import '../../../chunk-MAI35PU6.mjs';
|
|
4
|
+
import { betterAuth } from 'better-auth';
|
|
5
|
+
import { drizzleAdapter } from '@better-auth/drizzle-adapter';
|
|
6
|
+
import { bearer, emailOTP, phoneNumber } from 'better-auth/plugins';
|
|
7
|
+
import { toNextJsHandler } from 'better-auth/next-js';
|
|
8
|
+
|
|
9
|
+
// src/common/auth/server/plugins/dev-otp.ts
|
|
10
|
+
function createDevOtpLogger(enabled) {
|
|
11
|
+
if (!enabled || process.env.NODE_ENV === "production") {
|
|
12
|
+
return void 0;
|
|
13
|
+
}
|
|
14
|
+
return (channel, target, code) => {
|
|
15
|
+
console.info(`[sa2kit/auth][dev-otp][${channel}] ${target} => ${code}`);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
var defaultPhoneValidator = (phoneNumber2) => /^1\d{10}$/.test(phoneNumber2);
|
|
19
|
+
var defaultTempEmailFromPhone = (phoneNumber2) => `${phoneNumber2.replace(/\D/g, "")}@phone.sa2kit.local`;
|
|
20
|
+
|
|
21
|
+
// src/common/auth/server/create-auth.ts
|
|
22
|
+
function createSa2kitAuth(config) {
|
|
23
|
+
if (!config.secret || config.secret.length < 32) {
|
|
24
|
+
throw new Error("createSa2kitAuth: secret \u81F3\u5C11 32 \u5B57\u7B26");
|
|
25
|
+
}
|
|
26
|
+
const devLog = createDevOtpLogger(config.logOtpInDev ?? process.env.NODE_ENV !== "production");
|
|
27
|
+
const phoneValidator = config.phoneNumberValidator ?? defaultPhoneValidator;
|
|
28
|
+
const auth = betterAuth({
|
|
29
|
+
appName: "sa2kit",
|
|
30
|
+
baseURL: config.baseURL,
|
|
31
|
+
basePath: config.basePath ?? "/api/auth",
|
|
32
|
+
secret: config.secret,
|
|
33
|
+
trustedOrigins: config.trustedOrigins,
|
|
34
|
+
database: drizzleAdapter(config.db, {
|
|
35
|
+
provider: "pg",
|
|
36
|
+
schema: authDrizzleSchema
|
|
37
|
+
}),
|
|
38
|
+
emailAndPassword: {
|
|
39
|
+
enabled: true
|
|
40
|
+
},
|
|
41
|
+
user: {
|
|
42
|
+
additionalFields: {
|
|
43
|
+
role: {
|
|
44
|
+
type: "string",
|
|
45
|
+
required: false,
|
|
46
|
+
defaultValue: "USER",
|
|
47
|
+
input: false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
bearer(),
|
|
53
|
+
emailOTP({
|
|
54
|
+
async sendVerificationOTP({ email, otp, type }) {
|
|
55
|
+
devLog?.("email", `${email} (${type})`, otp);
|
|
56
|
+
if (config.email?.sendVerificationOTP) {
|
|
57
|
+
await config.email.sendVerificationOTP(email, otp, type);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
phoneNumber({
|
|
62
|
+
allowedAttempts: 5,
|
|
63
|
+
phoneNumberValidator: phoneValidator,
|
|
64
|
+
async sendOTP({ phoneNumber: phone, code }) {
|
|
65
|
+
devLog?.("sms", phone, code);
|
|
66
|
+
if (config.sms?.sendOTP) {
|
|
67
|
+
void config.sms.sendOTP(phone, code);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
signUpOnVerification: {
|
|
71
|
+
getTempEmail: defaultTempEmailFromPhone,
|
|
72
|
+
getTempName: (phone) => phone
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
return auth;
|
|
78
|
+
}
|
|
79
|
+
function mountNextAuthHandler(auth) {
|
|
80
|
+
return toNextJsHandler(auth);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// src/common/auth/server/handler/hono.ts
|
|
84
|
+
function mountAuthHandler(auth) {
|
|
85
|
+
return (request) => auth.handler(request);
|
|
86
|
+
}
|
|
87
|
+
function createAuthRouteHandlers(auth) {
|
|
88
|
+
const handler = mountAuthHandler(auth);
|
|
89
|
+
return {
|
|
90
|
+
GET: handler,
|
|
91
|
+
POST: handler,
|
|
92
|
+
PUT: handler,
|
|
93
|
+
PATCH: handler,
|
|
94
|
+
DELETE: handler
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// src/common/auth/server/session.ts
|
|
99
|
+
async function getSessionUser(auth, request) {
|
|
100
|
+
const session2 = await auth.api.getSession({ headers: request.headers });
|
|
101
|
+
if (!session2?.user) return null;
|
|
102
|
+
const user2 = session2.user;
|
|
103
|
+
return {
|
|
104
|
+
id: user2.id,
|
|
105
|
+
email: user2.email,
|
|
106
|
+
name: user2.name,
|
|
107
|
+
role: user2.role,
|
|
108
|
+
phoneNumber: user2.phoneNumber ?? null
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
async function getSessionUserNumeric(auth, request) {
|
|
112
|
+
const user2 = await getSessionUser(auth, request);
|
|
113
|
+
if (!user2) return null;
|
|
114
|
+
const numericId = Number.parseInt(user2.id, 10);
|
|
115
|
+
if (Number.isNaN(numericId)) return null;
|
|
116
|
+
const { id: _id, ...rest } = user2;
|
|
117
|
+
return { ...rest, id: numericId };
|
|
118
|
+
}
|
|
119
|
+
function createSessionValidator(auth) {
|
|
120
|
+
return {
|
|
121
|
+
getSessionUser: (request) => getSessionUser(auth, request),
|
|
122
|
+
getSessionUserNumeric: (request) => getSessionUserNumeric(auth, request)
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export { createAuthRouteHandlers, createSa2kitAuth, createSessionValidator, defaultPhoneValidator, defaultTempEmailFromPhone, getSessionUser, getSessionUserNumeric, mountAuthHandler, mountNextAuthHandler };
|
|
7
127
|
//# sourceMappingURL=index.mjs.map
|
|
8
128
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/common/auth/server/plugins/dev-otp.ts","../../../../src/common/auth/server/create-auth.ts","../../../../src/common/auth/server/handler/next.ts","../../../../src/common/auth/server/handler/hono.ts","../../../../src/common/auth/server/session.ts"],"names":["phoneNumber","session","user"],"mappings":"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","file":"index.mjs","sourcesContent":["/**\n * 开发 / 测试环境 OTP 输出(禁止生产依赖)\n */\nexport function createDevOtpLogger(enabled: boolean) {\n if (!enabled || process.env.NODE_ENV === 'production') {\n return undefined;\n }\n return (channel: 'sms' | 'email', target: string, code: string) => {\n console.info(`[sa2kit/auth][dev-otp][${channel}] ${target} => ${code}`);\n };\n}\n\nexport const defaultPhoneValidator = (phoneNumber: string) => /^1\\d{10}$/.test(phoneNumber);\n\nexport const defaultTempEmailFromPhone = (phoneNumber: string) =>\n `${phoneNumber.replace(/\\D/g, '')}@phone.sa2kit.local`;\n","/**\n * Better Auth 服务端工厂(sa2kit 3.0 SSOT)\n */\nimport { betterAuth } from 'better-auth';\nimport { drizzleAdapter } from '@better-auth/drizzle-adapter';\nimport { emailOTP } from 'better-auth/plugins';\nimport { phoneNumber } from 'better-auth/plugins';\nimport { bearer } from 'better-auth/plugins';\nimport { authDrizzleSchema } from '../schema';\nimport type { Sa2kitAuthConfig, Sa2kitAuthInstance } from './types';\nimport {\n createDevOtpLogger,\n defaultPhoneValidator,\n defaultTempEmailFromPhone,\n} from './plugins/dev-otp';\n\nexport type { Sa2kitAuthInstance } from './types';\n\nexport function createSa2kitAuth(config: Sa2kitAuthConfig): Sa2kitAuthInstance {\n if (!config.secret || config.secret.length < 32) {\n throw new Error('createSa2kitAuth: secret 至少 32 字符');\n }\n\n const devLog = createDevOtpLogger(config.logOtpInDev ?? process.env.NODE_ENV !== 'production');\n const phoneValidator = config.phoneNumberValidator ?? defaultPhoneValidator;\n\n const auth = betterAuth({\n appName: 'sa2kit',\n baseURL: config.baseURL,\n basePath: config.basePath ?? '/api/auth',\n secret: config.secret,\n trustedOrigins: config.trustedOrigins,\n database: drizzleAdapter(config.db as never, {\n provider: 'pg',\n schema: authDrizzleSchema,\n }),\n emailAndPassword: {\n enabled: true,\n },\n user: {\n additionalFields: {\n role: {\n type: 'string',\n required: false,\n defaultValue: 'USER',\n input: false,\n },\n },\n },\n plugins: [\n bearer(),\n emailOTP({\n async sendVerificationOTP({ email, otp, type }) {\n devLog?.('email', `${email} (${type})`, otp);\n if (config.email?.sendVerificationOTP) {\n await config.email.sendVerificationOTP(email, otp, type);\n }\n },\n }),\n phoneNumber({\n allowedAttempts: 5,\n phoneNumberValidator: phoneValidator,\n async sendOTP({ phoneNumber: phone, code }) {\n devLog?.('sms', phone, code);\n if (config.sms?.sendOTP) {\n void config.sms.sendOTP(phone, code);\n }\n },\n signUpOnVerification: {\n getTempEmail: defaultTempEmailFromPhone,\n getTempName: (phone) => phone,\n },\n }),\n ],\n }) as unknown as Sa2kitAuthInstance;\n\n return auth;\n}\n","/**\n * Next.js App Router handler 挂载\n */\nimport { toNextJsHandler } from 'better-auth/next-js';\nimport type { Sa2kitAuthInstance } from '../create-auth';\n\nexport function mountNextAuthHandler(auth: Sa2kitAuthInstance) {\n return toNextJsHandler(auth);\n}\n","/**\n * Hono / 通用 fetch handler\n */\nimport type { Sa2kitAuthInstance } from '../create-auth';\n\nexport function mountAuthHandler(auth: Sa2kitAuthInstance) {\n return (request: Request) => auth.handler(request);\n}\n\nexport function createAuthRouteHandlers(auth: Sa2kitAuthInstance) {\n const handler = mountAuthHandler(auth);\n return {\n GET: handler,\n POST: handler,\n PUT: handler,\n PATCH: handler,\n DELETE: handler,\n };\n}\n","/**\n * 从 Request 解析 Better Auth session(替代自研 JWT validateApiAuth)\n */\nimport type { Sa2kitAuthInstance } from './types';\n\nexport type SessionUser = {\n id: string;\n email: string;\n name: string;\n role?: string;\n phoneNumber?: string | null;\n};\n\nexport async function getSessionUser(\n auth: Sa2kitAuthInstance,\n request: Request,\n): Promise<SessionUser | null> {\n const session = await auth.api.getSession({ headers: request.headers });\n if (!session?.user) return null;\n\n const user = session.user as SessionUser & { role?: string };\n return {\n id: user.id,\n email: user.email,\n name: user.name,\n role: user.role,\n phoneNumber: (user as { phoneNumber?: string | null }).phoneNumber ?? null,\n };\n}\n\nexport type SessionUserNumeric = Omit<SessionUser, 'id'> & { id: number };\n\n/** 兼容 numeric id 消费方(legacy calendar 等) */\nexport async function getSessionUserNumeric(\n auth: Sa2kitAuthInstance,\n request: Request,\n): Promise<SessionUserNumeric | null> {\n const user = await getSessionUser(auth, request);\n if (!user) return null;\n const numericId = Number.parseInt(user.id, 10);\n if (Number.isNaN(numericId)) return null;\n const { id: _id, ...rest } = user;\n return { ...rest, id: numericId };\n}\n\nexport function createSessionValidator(auth: Sa2kitAuthInstance) {\n return {\n getSessionUser: (request: Request) => getSessionUser(auth, request),\n getSessionUserNumeric: (request: Request) => getSessionUserNumeric(auth, request),\n };\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth Services - Password Utilities
|
|
3
|
+
* 密码哈希相关工具函数
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 哈希密码
|
|
7
|
+
*/
|
|
8
|
+
declare function hashPassword(password: string, saltRounds?: number): Promise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* 验证密码
|
|
11
|
+
*/
|
|
12
|
+
declare function verifyPassword(password: string, hashedPassword: string): Promise<boolean>;
|
|
13
|
+
|
|
14
|
+
export { hashPassword, verifyPassword };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth Services - Password Utilities
|
|
3
|
+
* 密码哈希相关工具函数
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 哈希密码
|
|
7
|
+
*/
|
|
8
|
+
declare function hashPassword(password: string, saltRounds?: number): Promise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* 验证密码
|
|
11
|
+
*/
|
|
12
|
+
declare function verifyPassword(password: string, hashedPassword: string): Promise<boolean>;
|
|
13
|
+
|
|
14
|
+
export { hashPassword, verifyPassword };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../chunk-NSBPE2FW.js');
|
|
4
|
+
var bcrypt = require('bcryptjs');
|
|
5
|
+
|
|
6
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var bcrypt__default = /*#__PURE__*/_interopDefault(bcrypt);
|
|
9
|
+
|
|
10
|
+
async function hashPassword(password, saltRounds = 12) {
|
|
11
|
+
return bcrypt__default.default.hash(password, saltRounds);
|
|
12
|
+
}
|
|
13
|
+
async function verifyPassword(password, hashedPassword) {
|
|
14
|
+
return bcrypt__default.default.compare(password, hashedPassword);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.hashPassword = hashPassword;
|
|
18
|
+
exports.verifyPassword = verifyPassword;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/common/auth/services/password-utils.ts"],"names":["bcrypt"],"mappings":";;;;;;;;;AAUA,eAAsB,YAAA,CAAa,QAAA,EAAkB,UAAA,GAAqB,EAAA,EAAqB;AAC7F,EAAA,OAAOA,uBAAA,CAAO,IAAA,CAAK,QAAA,EAAU,UAAU,CAAA;AACzC;AAKA,eAAsB,cAAA,CAAe,UAAkB,cAAA,EAA0C;AAC/F,EAAA,OAAOA,uBAAA,CAAO,OAAA,CAAQ,QAAA,EAAU,cAAc,CAAA;AAChD","file":"index.js","sourcesContent":["/**\n * Auth Services - Password Utilities\n * 密码哈希相关工具函数\n */\n\nimport bcrypt from 'bcryptjs';\n\n/**\n * 哈希密码\n */\nexport async function hashPassword(password: string, saltRounds: number = 12): Promise<string> {\n return bcrypt.hash(password, saltRounds);\n}\n\n/**\n * 验证密码\n */\nexport async function verifyPassword(password: string, hashedPassword: string): Promise<boolean> {\n return bcrypt.compare(password, hashedPassword);\n}\n\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../../chunk-MAI35PU6.mjs';
|
|
2
|
+
import bcrypt from 'bcryptjs';
|
|
3
|
+
|
|
4
|
+
async function hashPassword(password, saltRounds = 12) {
|
|
5
|
+
return bcrypt.hash(password, saltRounds);
|
|
6
|
+
}
|
|
7
|
+
async function verifyPassword(password, hashedPassword) {
|
|
8
|
+
return bcrypt.compare(password, hashedPassword);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { hashPassword, verifyPassword };
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/common/auth/services/password-utils.ts"],"names":[],"mappings":";;;AAUA,eAAsB,YAAA,CAAa,QAAA,EAAkB,UAAA,GAAqB,EAAA,EAAqB;AAC7F,EAAA,OAAO,MAAA,CAAO,IAAA,CAAK,QAAA,EAAU,UAAU,CAAA;AACzC;AAKA,eAAsB,cAAA,CAAe,UAAkB,cAAA,EAA0C;AAC/F,EAAA,OAAO,MAAA,CAAO,OAAA,CAAQ,QAAA,EAAU,cAAc,CAAA;AAChD","file":"index.mjs","sourcesContent":["/**\n * Auth Services - Password Utilities\n * 密码哈希相关工具函数\n */\n\nimport bcrypt from 'bcryptjs';\n\n/**\n * 哈希密码\n */\nexport async function hashPassword(password: string, saltRounds: number = 12): Promise<string> {\n return bcrypt.hash(password, saltRounds);\n}\n\n/**\n * 验证密码\n */\nexport async function verifyPassword(password: string, hashedPassword: string): Promise<boolean> {\n return bcrypt.compare(password, hashedPassword);\n}\n\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunkHJ6MH7J7_js = require('../../../chunk-HJ6MH7J7.js');
|
|
3
|
+
var chunkQSKLQX6H_js = require('../../../chunk-QSKLQX6H.js');
|
|
4
|
+
var chunk6PMXAK7F_js = require('../../../chunk-6PMXAK7F.js');
|
|
6
5
|
require('../../../chunk-Q5EDCKQA.js');
|
|
6
|
+
var chunkHJ6MH7J7_js = require('../../../chunk-HJ6MH7J7.js');
|
|
7
7
|
require('../../../chunk-KH6RQ4J5.js');
|
|
8
8
|
require('../../../chunk-ZRAW3HXA.js');
|
|
9
9
|
var chunkATUCZXJY_js = require('../../../chunk-ATUCZXJY.js');
|
|
@@ -15,119 +15,119 @@ require('../../../chunk-NSBPE2FW.js');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "createFileUrlResolver", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkQSKLQX6H_js.createFileUrlResolver; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "createOssFileBootstrap", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkQSKLQX6H_js.createOssFileBootstrap; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "createOssFileConfigManager", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkQSKLQX6H_js.createOssFileConfigManager; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "createOssFileConfigManagerFromEnv", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkQSKLQX6H_js.createOssFileConfigManagerFromEnv; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createOssFileService", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkQSKLQX6H_js.createOssFileService; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "createOssFileServiceWithDrizzlePersistence", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkQSKLQX6H_js.createOssFileServiceWithDrizzlePersistence; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createUniversalFileServiceFromConfigManager", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkQSKLQX6H_js.createUniversalFileServiceFromConfigManager; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "getFileUrlByFileId", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkQSKLQX6H_js.getFileUrlByFileId; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "getOssStorageModeLabel", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkQSKLQX6H_js.getOssStorageModeLabel; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "isOssEnabledInConfig", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkQSKLQX6H_js.isOssEnabledInConfig; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "resolveFileUrlMap", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkQSKLQX6H_js.resolveFileUrlMap; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "resolveUploadAccessUrl", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkQSKLQX6H_js.resolveUploadAccessUrl; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "uploadFileAndResolveAccessUrl", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkQSKLQX6H_js.uploadFileAndResolveAccessUrl; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "ApiErrorFactory", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk6PMXAK7F_js.ApiErrorFactory; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "ApiResponseHelper", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk6PMXAK7F_js.ApiResponseHelper; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "CacheManager", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk6PMXAK7F_js.CacheManager; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "FileDbService", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk6PMXAK7F_js.FileDbService; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "PerformanceMonitor", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk6PMXAK7F_js.PerformanceMonitor; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "QueryOptimizer", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk6PMXAK7F_js.QueryOptimizer; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "UniversalFileService", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk6PMXAK7F_js.UniversalFileService; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "ValidationHelper", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk6PMXAK7F_js.ValidationHelper; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "cacheManager", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk6PMXAK7F_js.cacheManager; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "createDrizzleFileRepository", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk6PMXAK7F_js.createDrizzleFileRepository; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "createFileServiceWithFactory", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk6PMXAK7F_js.createFileServiceWithFactory; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "createUniversalFileServiceWithConfigManager", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk6PMXAK7F_js.createUniversalFileServiceWithConfigManager; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "loadConfigFromEnv", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk6PMXAK7F_js.loadConfigFromEnv; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "loadOSSConfigFromEnv", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk6PMXAK7F_js.loadOSSConfigFromEnv; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "performanceMonitor", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk6PMXAK7F_js.performanceMonitor; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "queryOptimizer", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk6PMXAK7F_js.queryOptimizer; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "AliyunOSSProvider", {
|
|
133
133
|
enumerable: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createFileUrlResolver, createOssFileBootstrap, createOssFileConfigManager, createOssFileConfigManagerFromEnv, createOssFileService, createOssFileServiceWithDrizzlePersistence, createUniversalFileServiceFromConfigManager, getFileUrlByFileId, getOssStorageModeLabel, isOssEnabledInConfig, resolveFileUrlMap, resolveUploadAccessUrl, uploadFileAndResolveAccessUrl } from '../../../chunk-
|
|
2
|
-
export { ApiErrorFactory, ApiResponseHelper, CacheManager, FileDbService, PerformanceMonitor, QueryOptimizer, UniversalFileService, ValidationHelper, cacheManager, createDrizzleFileRepository, createFileServiceWithFactory, createUniversalFileServiceWithConfigManager, loadConfigFromEnv, loadOSSConfigFromEnv, performanceMonitor, queryOptimizer } from '../../../chunk-
|
|
3
|
-
export { AliyunOSSProvider } from '../../../chunk-HDMIOOZY.mjs';
|
|
1
|
+
export { createFileUrlResolver, createOssFileBootstrap, createOssFileConfigManager, createOssFileConfigManagerFromEnv, createOssFileService, createOssFileServiceWithDrizzlePersistence, createUniversalFileServiceFromConfigManager, getFileUrlByFileId, getOssStorageModeLabel, isOssEnabledInConfig, resolveFileUrlMap, resolveUploadAccessUrl, uploadFileAndResolveAccessUrl } from '../../../chunk-WJ7IMUEJ.mjs';
|
|
2
|
+
export { ApiErrorFactory, ApiResponseHelper, CacheManager, FileDbService, PerformanceMonitor, QueryOptimizer, UniversalFileService, ValidationHelper, cacheManager, createDrizzleFileRepository, createFileServiceWithFactory, createUniversalFileServiceWithConfigManager, loadConfigFromEnv, loadOSSConfigFromEnv, performanceMonitor, queryOptimizer } from '../../../chunk-4OOANEJV.mjs';
|
|
4
3
|
import '../../../chunk-YOTQG4NP.mjs';
|
|
4
|
+
export { AliyunOSSProvider } from '../../../chunk-HDMIOOZY.mjs';
|
|
5
5
|
import '../../../chunk-ZGVB35L2.mjs';
|
|
6
6
|
import '../../../chunk-CIVO4R6N.mjs';
|
|
7
7
|
export { STANDARD_ALIYUN_OSS_KEYS, buildModuleUploadPath, parseAliyunOssConfigFromMap } from '../../../chunk-DIF5VRL3.mjs';
|
package/dist/common/index.d.mts
CHANGED
|
@@ -4,10 +4,10 @@ export { i as storage } from '../index-DLnfKN-a.mjs';
|
|
|
4
4
|
export { i as request } from '../index-Bjem5rWn.mjs';
|
|
5
5
|
export { i as file } from '../index-CYuUB8aF.mjs';
|
|
6
6
|
export { i as dataExport } from '../index-qcOvRVuN.mjs';
|
|
7
|
-
export { i as auth } from '../index-
|
|
7
|
+
export { i as auth } from '../index-Bd7cKF1j.mjs';
|
|
8
8
|
export { i as platform } from '../index-DgWOO9I3.mjs';
|
|
9
|
-
export { i as i18n } from '../index-
|
|
10
|
-
export { i as analytics } from '../index-
|
|
9
|
+
export { i as i18n } from '../index-D0cqaQEH.mjs';
|
|
10
|
+
export { i as analytics } from '../index-DoUo8IrU.mjs';
|
|
11
11
|
export { i as config } from '../index-CIRO-7ub.mjs';
|
|
12
12
|
export { i as api } from '../index-CDqhODgC.mjs';
|
|
13
13
|
export { U as UniversalFileClient, a as UniversalFileClientConfig, c as createFileClient, u as universalFileClient } from '../client-jTaR5LGF.mjs';
|
|
@@ -24,11 +24,16 @@ import '../request/index.mjs';
|
|
|
24
24
|
import '../types-3ujSNAXb.mjs';
|
|
25
25
|
import '../universalExport/index.mjs';
|
|
26
26
|
import 'react';
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
27
|
+
import './auth/client/index.mjs';
|
|
28
|
+
import 'zod/v4/core';
|
|
29
|
+
import 'zod';
|
|
30
|
+
import 'better-auth/plugins/email-otp';
|
|
31
|
+
import 'better-auth/plugins/phone-number';
|
|
32
|
+
import 'better-auth/client';
|
|
33
|
+
import 'better-auth';
|
|
34
|
+
import './auth/hooks/index.mjs';
|
|
35
|
+
import './auth/react/index.mjs';
|
|
36
|
+
import '../useAuthActions-7S5dL7Oh.mjs';
|
|
29
37
|
import '../enums-Dume-V5Y.mjs';
|
|
30
38
|
import 'drizzle-orm/pg-core';
|
|
31
|
-
import '../base-api-client-DrL35Ea2.mjs';
|
|
32
|
-
import '../auth/client/index.mjs';
|
|
33
|
-
import '../types-IYCqCk2g.mjs';
|
|
34
39
|
import '../types-BFn0BeTp.mjs';
|
package/dist/common/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export { i as storage } from '../index-C5U-2hJq.js';
|
|
|
4
4
|
export { i as request } from '../index-CifSBBP2.js';
|
|
5
5
|
export { i as file } from '../index-WrR57hKT.js';
|
|
6
6
|
export { i as dataExport } from '../index-2G9Dxjvt.js';
|
|
7
|
-
export { i as auth } from '../index-
|
|
7
|
+
export { i as auth } from '../index-DRQxtCDw.js';
|
|
8
8
|
export { i as platform } from '../index-DoZVZBrN.js';
|
|
9
|
-
export { i as i18n } from '../index-
|
|
10
|
-
export { i as analytics } from '../index-
|
|
9
|
+
export { i as i18n } from '../index-D0cqaQEH.js';
|
|
10
|
+
export { i as analytics } from '../index-DoUo8IrU.js';
|
|
11
11
|
export { i as config } from '../index-CIRO-7ub.js';
|
|
12
12
|
export { i as api } from '../index-BoZL0QD6.js';
|
|
13
13
|
export { U as UniversalFileClient, a as UniversalFileClientConfig, c as createFileClient, u as universalFileClient } from '../client-BPQS6bKB.js';
|
|
@@ -24,11 +24,16 @@ import '../request/index.js';
|
|
|
24
24
|
import '../types-3ujSNAXb.js';
|
|
25
25
|
import '../universalExport/index.js';
|
|
26
26
|
import 'react';
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
27
|
+
import './auth/client/index.js';
|
|
28
|
+
import 'zod/v4/core';
|
|
29
|
+
import 'zod';
|
|
30
|
+
import 'better-auth/plugins/email-otp';
|
|
31
|
+
import 'better-auth/plugins/phone-number';
|
|
32
|
+
import 'better-auth/client';
|
|
33
|
+
import 'better-auth';
|
|
34
|
+
import './auth/hooks/index.js';
|
|
35
|
+
import './auth/react/index.js';
|
|
36
|
+
import '../useAuthActions-7S5dL7Oh.js';
|
|
29
37
|
import '../enums-Dume-V5Y.js';
|
|
30
38
|
import 'drizzle-orm/pg-core';
|
|
31
|
-
import '../base-api-client-B3wZZoaH.js';
|
|
32
|
-
import '../auth/client/index.js';
|
|
33
|
-
import '../types-C5vUWf9u.js';
|
|
34
39
|
import '../types-BAyMVqnL.js';
|
package/dist/common/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkKQ643L7Z_js = require('../chunk-KQ643L7Z.js');
|
|
4
|
-
var chunkAQPU2AXH_js = require('../chunk-AQPU2AXH.js');
|
|
5
3
|
var chunkBCE6RUZV_js = require('../chunk-BCE6RUZV.js');
|
|
4
|
+
var chunkKQ643L7Z_js = require('../chunk-KQ643L7Z.js');
|
|
6
5
|
var chunkSLKOEYFH_js = require('../chunk-SLKOEYFH.js');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-VQ54PUQV.js');
|
|
9
|
-
require('../chunk-HBF4HPRK.js');
|
|
6
|
+
var chunkAQPU2AXH_js = require('../chunk-AQPU2AXH.js');
|
|
10
7
|
var chunkZM2SZJTZ_js = require('../chunk-ZM2SZJTZ.js');
|
|
11
8
|
var chunkFHLTPXAR_js = require('../chunk-FHLTPXAR.js');
|
|
12
9
|
require('../chunk-VMTEDX5H.js');
|
|
13
10
|
require('../chunk-UIYKZ73N.js');
|
|
11
|
+
var chunkHQLKOXG7_js = require('../chunk-HQLKOXG7.js');
|
|
12
|
+
require('../chunk-YTGUIRRH.js');
|
|
13
|
+
require('../chunk-PA4ELVGI.js');
|
|
14
14
|
var chunkFCEBAWN6_js = require('../chunk-FCEBAWN6.js');
|
|
15
15
|
var chunk4FDUURSD_js = require('../chunk-4FDUURSD.js');
|
|
16
16
|
require('../chunk-ZWQJSZEY.js');
|
|
17
|
-
var
|
|
18
|
-
require('../chunk-
|
|
17
|
+
var chunkNDGHXVGS_js = require('../chunk-NDGHXVGS.js');
|
|
18
|
+
require('../chunk-S6YSGVWD.js');
|
|
19
|
+
require('../chunk-CAYOQDBR.js');
|
|
19
20
|
require('../chunk-UCOE6SET.js');
|
|
20
21
|
require('../chunk-XJ7ZAGC5.js');
|
|
21
22
|
var chunk3CSCIRQY_js = require('../chunk-3CSCIRQY.js');
|
|
@@ -30,25 +31,21 @@ require('../chunk-NSBPE2FW.js');
|
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
Object.defineProperty(exports, "config", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunkKQ643L7Z_js.config_exports; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "i18n", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunkAQPU2AXH_js.i18n_exports; }
|
|
40
|
-
});
|
|
41
34
|
Object.defineProperty(exports, "analytics", {
|
|
42
35
|
enumerable: true,
|
|
43
36
|
get: function () { return chunkBCE6RUZV_js.analytics_exports; }
|
|
44
37
|
});
|
|
38
|
+
Object.defineProperty(exports, "config", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkKQ643L7Z_js.config_exports; }
|
|
41
|
+
});
|
|
45
42
|
Object.defineProperty(exports, "api", {
|
|
46
43
|
enumerable: true,
|
|
47
44
|
get: function () { return chunkSLKOEYFH_js.api_exports; }
|
|
48
45
|
});
|
|
49
|
-
Object.defineProperty(exports, "
|
|
46
|
+
Object.defineProperty(exports, "i18n", {
|
|
50
47
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkAQPU2AXH_js.i18n_exports; }
|
|
52
49
|
});
|
|
53
50
|
Object.defineProperty(exports, "platform", {
|
|
54
51
|
enumerable: true,
|
|
@@ -58,6 +55,10 @@ Object.defineProperty(exports, "dataExport", {
|
|
|
58
55
|
enumerable: true,
|
|
59
56
|
get: function () { return chunkFHLTPXAR_js.export_exports; }
|
|
60
57
|
});
|
|
58
|
+
Object.defineProperty(exports, "auth", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkHQLKOXG7_js.auth_exports; }
|
|
61
|
+
});
|
|
61
62
|
Object.defineProperty(exports, "logger", {
|
|
62
63
|
enumerable: true,
|
|
63
64
|
get: function () { return chunkFCEBAWN6_js.logger_exports; }
|
|
@@ -68,7 +69,7 @@ Object.defineProperty(exports, "utils", {
|
|
|
68
69
|
});
|
|
69
70
|
Object.defineProperty(exports, "storage", {
|
|
70
71
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkNDGHXVGS_js.storage_exports; }
|
|
72
73
|
});
|
|
73
74
|
Object.defineProperty(exports, "request", {
|
|
74
75
|
enumerable: true,
|
package/dist/common/index.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export { config_exports as config } from '../chunk-QXAOXBVB.mjs';
|
|
2
|
-
export { i18n_exports as i18n } from '../chunk-I5ZPEDNR.mjs';
|
|
3
1
|
export { analytics_exports as analytics } from '../chunk-BIHYZA67.mjs';
|
|
2
|
+
export { config_exports as config } from '../chunk-QXAOXBVB.mjs';
|
|
4
3
|
export { api_exports as api } from '../chunk-FIUBFREP.mjs';
|
|
5
|
-
export {
|
|
6
|
-
import '../chunk-YGI7UU2D.mjs';
|
|
7
|
-
import '../chunk-HCI6JQOU.mjs';
|
|
4
|
+
export { i18n_exports as i18n } from '../chunk-I5ZPEDNR.mjs';
|
|
8
5
|
export { platform_exports as platform } from '../chunk-C6KV7VTZ.mjs';
|
|
9
6
|
export { export_exports as dataExport } from '../chunk-3Z43XGA4.mjs';
|
|
10
7
|
import '../chunk-GWNBVGDT.mjs';
|
|
11
8
|
import '../chunk-LFB5EIIM.mjs';
|
|
9
|
+
export { auth_exports as auth } from '../chunk-5FUAQLGC.mjs';
|
|
10
|
+
import '../chunk-6YLCRWKM.mjs';
|
|
11
|
+
import '../chunk-TNJ6LYX7.mjs';
|
|
12
12
|
export { logger_exports as logger } from '../chunk-RTD2WHQQ.mjs';
|
|
13
13
|
export { utils_exports as utils } from '../chunk-VXFUXZN5.mjs';
|
|
14
14
|
import '../chunk-3NHAT7D4.mjs';
|
|
15
|
-
export { storage_exports as storage } from '../chunk-
|
|
16
|
-
import '../chunk-
|
|
15
|
+
export { storage_exports as storage } from '../chunk-5GBDDXYL.mjs';
|
|
16
|
+
import '../chunk-CX2GHCAI.mjs';
|
|
17
|
+
import '../chunk-Q5VFBPMG.mjs';
|
|
17
18
|
import '../chunk-HJZHQW5R.mjs';
|
|
18
19
|
import '../chunk-WEEXCPSE.mjs';
|
|
19
20
|
export { request_exports as request } from '../chunk-7B5SI4OF.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../chunk-
|
|
4
|
-
var
|
|
3
|
+
require('../../chunk-NDGHXVGS.js');
|
|
4
|
+
var chunkS6YSGVWD_js = require('../../chunk-S6YSGVWD.js');
|
|
5
|
+
var chunkCAYOQDBR_js = require('../../chunk-CAYOQDBR.js');
|
|
5
6
|
var chunkUCOE6SET_js = require('../../chunk-UCOE6SET.js');
|
|
6
7
|
var chunkXJ7ZAGC5_js = require('../../chunk-XJ7ZAGC5.js');
|
|
7
8
|
require('../../chunk-NSBPE2FW.js');
|
|
@@ -10,31 +11,31 @@ require('../../chunk-NSBPE2FW.js');
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "MiniAppStorageAdapter", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "ReactNativeStorageAdapter", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkQQ2WFYOD_js.ReactNativeStorageAdapter; }
|
|
14
|
+
get: function () { return chunkS6YSGVWD_js.MiniAppStorageAdapter; }
|
|
18
15
|
});
|
|
19
16
|
Object.defineProperty(exports, "useAsyncStorage", {
|
|
20
17
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkS6YSGVWD_js.useAsyncStorage; }
|
|
22
19
|
});
|
|
23
20
|
Object.defineProperty(exports, "useElectronStorage", {
|
|
24
21
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkS6YSGVWD_js.useElectronStorage; }
|
|
26
23
|
});
|
|
27
24
|
Object.defineProperty(exports, "useLocalStorage", {
|
|
28
25
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkS6YSGVWD_js.useLocalStorage; }
|
|
30
27
|
});
|
|
31
28
|
Object.defineProperty(exports, "useStorage", {
|
|
32
29
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkS6YSGVWD_js.useStorage; }
|
|
34
31
|
});
|
|
35
32
|
Object.defineProperty(exports, "useTaroStorage", {
|
|
36
33
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkS6YSGVWD_js.useTaroStorage; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ReactNativeStorageAdapter", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkCAYOQDBR_js.ReactNativeStorageAdapter; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "ElectronStorageAdapter", {
|
|
40
41
|
enumerable: true,
|