@withwiz/toolkit 0.6.5 → 0.7.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/README.md +99 -57
- package/dist/{chunk-FDFPNSKY.js → chunk-2D3YM34R.js} +1 -1
- package/dist/{chunk-2O72OV5X.js → chunk-2JGSS4RM.js} +2 -2
- package/dist/{chunk-XY3ZVORI.js → chunk-2MYD2BFJ.js} +9 -9
- package/dist/{chunk-7IY3RQQL.js → chunk-2P4N4OK2.js} +9 -10
- package/dist/{chunk-3GAY2T2A.js → chunk-2PFSRVVD.js} +10 -3
- package/dist/{chunk-OFSPZUQD.js → chunk-2QVDB6UO.js} +3 -3
- package/dist/{chunk-C4TSQUFA.js → chunk-2SIBG5BG.js} +1 -1
- package/dist/{chunk-K3OYTLXU.js → chunk-33RIHX7O.js} +9 -3
- package/dist/{chunk-A6FKWYO2.js → chunk-3KYSGBVF.js} +8 -11
- package/dist/{chunk-EUQATJLI.js → chunk-4ETAGZIT.js} +1 -1
- package/dist/{chunk-RJUVBBZG.js → chunk-4IQWQSEV.js} +2 -2
- package/dist/{chunk-LG6GH4V7.js → chunk-4K27YLAE.js} +2 -2
- package/dist/{chunk-62FLBG6B.js → chunk-4K76HG4V.js} +1 -1
- package/dist/{chunk-LRRQ54YJ.js → chunk-4KJZRI74.js} +2 -2
- package/dist/{chunk-YX3XMDDI.js → chunk-4YDBQZ5M.js} +31 -14
- package/dist/{chunk-WSXOKK6N.js → chunk-5BBVV2EX.js} +2 -2
- package/dist/{chunk-AIH3F7JV.js → chunk-5GWGARXI.js} +1 -1
- package/dist/{chunk-7VTBRP5M.js → chunk-5S7M2AJL.js} +3 -3
- package/dist/{chunk-TLZJQR26.js → chunk-65HVR74O.js} +2 -2
- package/dist/chunk-6HQ5JHL4.js +14 -0
- package/dist/{chunk-K25ICPU4.js → chunk-6J2EJVND.js} +1 -1
- package/dist/{chunk-G26T2PRQ.js → chunk-6JXHXIEH.js} +2 -2
- package/dist/{chunk-ZTN4X5FN.js → chunk-7EXSMZ2O.js} +1 -1
- package/dist/{chunk-MEFZZE4M.js → chunk-7VXRBTRF.js} +6 -6
- package/dist/{chunk-JNJALNRR.js → chunk-7WG7XPXC.js} +3 -3
- package/dist/{chunk-KY7JZ54O.js → chunk-7X2N4VZM.js} +1 -1
- package/dist/{chunk-WJWCTCWZ.js → chunk-7ZO5UNTJ.js} +3 -3
- package/dist/{chunk-QYXI45KH.js → chunk-A74POWYY.js} +3 -3
- package/dist/{chunk-AKD4YMJU.js → chunk-AMZWDLJ4.js} +1 -1
- package/dist/{chunk-N6TMHITU.js → chunk-AQZPGOEZ.js} +3 -3
- package/dist/{chunk-SVHD6WCJ.js → chunk-ARXUKGZI.js} +4 -4
- package/dist/{chunk-EOEMOXNT.js → chunk-ATAQRXTH.js} +2 -2
- package/dist/{chunk-545Q34YU.js → chunk-AV7ELXHG.js} +3 -3
- package/dist/{chunk-ENETIGKL.js → chunk-AWIORJAI.js} +3 -3
- package/dist/{chunk-I6Q3WUDT.js → chunk-B5OH43PR.js} +1 -1
- package/dist/{chunk-VWPSQQ7E.js → chunk-B5VRZ2VJ.js} +4 -4
- package/dist/{chunk-Q26CQW7T.js → chunk-BBE4RXR7.js} +4 -4
- package/dist/{chunk-2KG2G35D.js → chunk-BL6QHL5L.js} +6 -6
- package/dist/{chunk-L25BNU3E.js → chunk-BW4QO7T6.js} +2 -2
- package/dist/{chunk-CDLCZB6F.js → chunk-C5CBJC6V.js} +3 -3
- package/dist/{chunk-BJSEYZBH.js → chunk-C6WH7RF5.js} +5 -15
- package/dist/{chunk-AHDPGRXS.js → chunk-CCNZFZW6.js} +1 -1
- package/dist/{chunk-LHIVUV7Q.js → chunk-CRJUFA73.js} +3 -3
- package/dist/{chunk-GDWEDUHO.js → chunk-D73ZJQMX.js} +1 -1
- package/dist/{chunk-7UQZH2OH.js → chunk-DUIQUAHR.js} +4 -4
- package/dist/{chunk-DEEJBDJE.js → chunk-E27YZK7O.js} +2 -2
- package/dist/{chunk-MRJE6OX5.js → chunk-EK4TL7VW.js} +2 -2
- package/dist/{chunk-57W32BFZ.js → chunk-ERFD6YAW.js} +1 -1
- package/dist/{chunk-2QH66EVQ.js → chunk-F3R3UYBF.js} +1 -1
- package/dist/{chunk-RVL5ROWQ.js → chunk-GF3DKZIW.js} +2 -2
- package/dist/{chunk-G2CKET5G.js → chunk-GH3U4WRE.js} +1 -1
- package/dist/{chunk-NW3JIRFK.js → chunk-GJO2MPC3.js} +2 -2
- package/dist/{chunk-LGAV5UU2.js → chunk-GJYHMHTU.js} +3 -3
- package/dist/{chunk-WDUFQFDP.js → chunk-GPOSTBDQ.js} +2 -2
- package/dist/{chunk-VB64KFBD.js → chunk-GSSHHVHF.js} +23 -11
- package/dist/{chunk-N54KGJPU.js → chunk-GSUCBWML.js} +1 -1
- package/dist/{chunk-LNV2E4I6.js → chunk-GTCCVI45.js} +1 -1
- package/dist/{chunk-QOKDGW3F.js → chunk-H5KYXSYZ.js} +2 -2
- package/dist/{chunk-GBLNXNEH.js → chunk-HIZ7USIF.js} +2 -2
- package/dist/{chunk-PT4FA7U4.js → chunk-HKW4JA45.js} +10 -10
- package/dist/{chunk-CVFVL5FL.js → chunk-I4NT6G2T.js} +3 -3
- package/dist/{chunk-LMQSV5UK.js → chunk-IKZB26SK.js} +3 -3
- package/dist/{chunk-TFZOOP3V.js → chunk-IMAFMUZ7.js} +3 -3
- package/dist/{chunk-IJEZ7G7S.js → chunk-IRUFNC4L.js} +2 -2
- package/dist/{chunk-YJWLWUFK.js → chunk-J2MAXMIP.js} +2 -2
- package/dist/{chunk-ZG2XGO44.js → chunk-J5NLAZV2.js} +3 -3
- package/dist/chunk-JLRMET4V.js +49 -0
- package/dist/{chunk-XHZ5L4FO.js → chunk-K2PNAQI4.js} +1 -1
- package/dist/{chunk-A7TN46LC.js → chunk-KCDJIW2F.js} +7 -7
- package/dist/{chunk-NOAU2JG7.js → chunk-KG65BFPK.js} +2 -2
- package/dist/{chunk-KMCJIL57.js → chunk-KXYDTC4A.js} +1 -1
- package/dist/{chunk-XRRPEBKB.js → chunk-LG3KM5V3.js} +1 -1
- package/dist/{chunk-FRY3TNJ6.js → chunk-LON5THYQ.js} +2 -2
- package/dist/{chunk-SOQOAFB2.js → chunk-LUIYCIF7.js} +3 -3
- package/dist/{chunk-B7QWZ5SW.js → chunk-M5ZYAQBB.js} +8 -8
- package/dist/{chunk-WVDYHSHD.js → chunk-MFMQO6IS.js} +3 -3
- package/dist/{chunk-IHXRF3BH.js → chunk-MNYVAEXK.js} +1 -1
- package/dist/{chunk-VSGKVZB4.js → chunk-MRNRC45L.js} +2 -2
- package/dist/{chunk-WC2IYFGC.js → chunk-N5VOFGF3.js} +3 -3
- package/dist/{chunk-CRMXLNLC.js → chunk-NIWVKN6A.js} +4 -4
- package/dist/{chunk-SS56XFLI.js → chunk-O4L6RI5S.js} +1 -1
- package/dist/{chunk-3X7D3NV4.js → chunk-OO2XOASJ.js} +13 -13
- package/dist/{chunk-3LVCK2NQ.js → chunk-P2VPYAJZ.js} +7 -7
- package/dist/{chunk-TBMRGMRP.js → chunk-P4CZVRSG.js} +5 -5
- package/dist/{chunk-F6LCSFSU.js → chunk-PBQGXOVX.js} +2 -2
- package/dist/{chunk-YUBXS7YI.js → chunk-PBVP7CFZ.js} +1 -1
- package/dist/{chunk-UQM35MAO.js → chunk-PRWWB4QY.js} +3 -3
- package/dist/{chunk-WPW4HXW4.js → chunk-PX535BHW.js} +3 -3
- package/dist/{chunk-NQUYNPSD.js → chunk-Q4XDPK5B.js} +6 -6
- package/dist/{chunk-AUDUYK5B.js → chunk-Q5ERE4M3.js} +4 -4
- package/dist/{chunk-TLBY3DUK.js → chunk-Q66VOVGN.js} +2 -2
- package/dist/{chunk-FDRQUDFH.js → chunk-R463CTX4.js} +3 -3
- package/dist/{chunk-UCYQNHST.js → chunk-STMAKLLG.js} +2 -2
- package/dist/{chunk-MGBNIDTP.js → chunk-T4643SEW.js} +10 -5
- package/dist/{chunk-JP7FDGGL.js → chunk-TF5RJ5Q2.js} +8 -8
- package/dist/{chunk-2TO7WUKK.js → chunk-THUQVCTI.js} +1 -1
- package/dist/{chunk-WBWDJUF5.js → chunk-TMTN7H46.js} +37 -13
- package/dist/{chunk-ZRDPJORV.js → chunk-TN75NAPU.js} +1 -1
- package/dist/{chunk-2NCTRLVH.js → chunk-TQ3XHHZK.js} +11 -11
- package/dist/{chunk-F3NGZYL2.js → chunk-TUA5XW5Z.js} +2 -2
- package/dist/{chunk-JXACXHRL.js → chunk-UKPMQBU2.js} +6 -6
- package/dist/{chunk-YTXCKIWE.js → chunk-UMRKMF3E.js} +2 -2
- package/dist/{chunk-HT7HEGH3.js → chunk-UP3VFIVQ.js} +2 -2
- package/dist/{chunk-57HPJEZB.js → chunk-V3GEYUBG.js} +11 -11
- package/dist/{chunk-WMJ5M45N.js → chunk-V6YD53NH.js} +2 -2
- package/dist/{chunk-62Q7DN5G.js → chunk-VC2E6KYQ.js} +2 -2
- package/dist/{chunk-WLXAEHKK.js → chunk-VDRLJU6C.js} +9 -9
- package/dist/{chunk-D6MIC5AU.js → chunk-VJE4HA2C.js} +3 -3
- package/dist/{chunk-34IDAA7V.js → chunk-VNDL2E44.js} +3 -3
- package/dist/{chunk-ON4ENPUS.js → chunk-VUYS3SU7.js} +1 -1
- package/dist/{chunk-EZC6ETFW.js → chunk-WP233RH2.js} +2 -2
- package/dist/{chunk-TRBKJ7JT.js → chunk-WWOYFWFB.js} +1 -1
- package/dist/{chunk-34WAGUT5.js → chunk-X7FGBUA4.js} +2 -2
- package/dist/{chunk-SNTLJ646.js → chunk-XQIAXMRY.js} +1 -1
- package/dist/{chunk-X2UP5PNN.js → chunk-YSPIFSDI.js} +8 -8
- package/dist/{chunk-QXPMO2CO.js → chunk-ZFNIHVVA.js} +7 -7
- package/dist/{chunk-UKE7WA3U.js → chunk-ZLYBY3R4.js} +3 -3
- package/dist/{chunk-QXIQB6OF.js → chunk-ZOWEW4GY.js} +3 -3
- package/dist/{chunk-7DMKTJHU.js → chunk-ZTRASVGZ.js} +16 -7
- package/dist/{chunk-GDX3YQGK.js → chunk-ZVGEGDYF.js} +15 -5
- package/dist/core/auth/config.js +14 -0
- package/dist/{auth → core/auth}/email/index.d.ts +1 -0
- package/dist/core/auth/email/index.js +11 -0
- package/dist/core/auth/email/sender.js +7 -0
- package/dist/{auth/core → core/auth}/email/token-generator.js +1 -1
- package/dist/{auth → core/auth}/errors/index.js +2 -2
- package/dist/{auth → core/auth}/index.d.ts +7 -7
- package/dist/{auth → core/auth}/index.js +24 -23
- package/dist/{auth/core → core/auth}/jwt/client.js +1 -1
- package/dist/{auth/core → core/auth}/jwt/cookie.d.ts +1 -1
- package/dist/core/auth/jwt/cookie.js +13 -0
- package/dist/{auth/core → core/auth}/jwt/index.d.ts +1 -1
- package/dist/core/auth/jwt/index.js +20 -0
- package/dist/{auth/core → core/auth}/jwt/types.d.ts +1 -1
- package/dist/{auth/core → core/auth}/jwt/types.js +1 -1
- package/dist/{auth/core → core/auth}/oauth/index.d.ts +5 -3
- package/dist/core/auth/oauth/index.js +45 -0
- package/dist/{auth/core → core/auth}/oauth/providers/github.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/github.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/google.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/google.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/index.js +11 -11
- package/dist/{auth/core → core/auth}/oauth/providers/kakao.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/kakao.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/meta.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/meta.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/microsoft.d.ts +6 -6
- package/dist/{auth/core → core/auth}/oauth/providers/microsoft.js +2 -2
- package/dist/core/auth/oauth/state-cookie.d.ts +28 -0
- package/dist/core/auth/oauth/state-cookie.js +15 -0
- package/dist/{auth/core → core/auth}/password/client-helper.d.ts +3 -3
- package/dist/{auth/core → core/auth}/password/client-helper.js +3 -3
- package/dist/{auth/core → core/auth}/password/index.d.ts +3 -3
- package/dist/{auth/core → core/auth}/password/index.js +2 -2
- package/dist/core/auth/services/email-verification.service.js +10 -0
- package/dist/core/auth/services/index.js +36 -0
- package/dist/core/auth/services/login.service.js +14 -0
- package/dist/core/auth/services/oauth-callback.service.js +14 -0
- package/dist/core/auth/services/password-reset.service.js +10 -0
- package/dist/core/auth/services/register.service.js +10 -0
- package/dist/core/auth/services/token-refresh.service.js +14 -0
- package/dist/{auth → core/auth}/types/index.js +2 -2
- package/dist/core/cache/cache-config.js +15 -0
- package/dist/{cache → core/cache}/cache-defaults.js +2 -2
- package/dist/{cache → core/cache}/cache-env.d.ts +3 -3
- package/dist/{cache → core/cache}/cache-env.js +7 -7
- package/dist/{cache → core/cache}/cache-factory.d.ts +1 -1
- package/dist/core/cache/cache-factory.js +33 -0
- package/dist/{cache → core/cache}/cache-invalidation.d.ts +3 -3
- package/dist/core/cache/cache-invalidation.js +29 -0
- package/dist/{cache → core/cache}/cache-redis.js +10 -10
- package/dist/{cache → core/cache}/cache-types.js +2 -2
- package/dist/core/cache/cache-wrapper.js +27 -0
- package/dist/{cache → core/cache}/cache.d.ts +1 -1
- package/dist/{cache → core/cache}/cache.js +26 -26
- package/dist/{cache → core/cache}/config.d.ts +5 -0
- package/dist/core/cache/config.js +15 -0
- package/dist/core/cache/hybrid-cache-manager.js +18 -0
- package/dist/{cache → core/cache}/index.js +26 -26
- package/dist/core/cache/inmemory-cache-manager.js +12 -0
- package/dist/core/cache/noop-cache-manager.js +14 -0
- package/dist/core/cache/redis-cache-manager.js +16 -0
- package/dist/core/config/common.js +13 -0
- package/dist/core/config/errors.js +7 -0
- package/dist/{config → core/config}/registry.d.ts +1 -1
- package/dist/{config → core/config}/registry.js +2 -2
- package/dist/core/config/warn.js +7 -0
- package/dist/{constants → core/constants}/error-codes.js +2 -2
- package/dist/{constants → core/constants}/index.js +14 -14
- package/dist/{constants → core/constants}/messages.js +2 -2
- package/dist/{constants → core/constants}/pagination.js +2 -2
- package/dist/{constants → core/constants}/security.js +2 -2
- package/dist/{constants → core/constants}/validation.js +2 -2
- package/dist/core/cors/index.js +13 -0
- package/dist/{error → core/error}/app-error.d.ts +2 -2
- package/dist/core/error/app-error.js +10 -0
- package/dist/core/error/extract-error-info.d.ts +11 -0
- package/dist/core/error/extract-error-info.js +7 -0
- package/dist/core/error/friendly-messages-v2.js +15 -0
- package/dist/{error → core/error}/friendly-messages.js +3 -3
- package/dist/core/error/index.d.ts +12 -0
- package/dist/core/error/index.js +59 -0
- package/dist/core/error/messages/en.js +7 -0
- package/dist/{error → core/error}/messages/index.js +4 -4
- package/dist/core/error/messages/ko.js +7 -0
- package/dist/{geolocation → core/geolocation}/batch-processor.d.ts +1 -1
- package/dist/core/geolocation/batch-processor.js +13 -0
- package/dist/{geolocation → core/geolocation}/config.js +4 -4
- package/dist/{geolocation → core/geolocation}/index.d.ts +3 -3
- package/dist/core/geolocation/index.js +40 -0
- package/dist/{geolocation → core/geolocation}/providers/base-provider.d.ts +2 -2
- package/dist/{geolocation → core/geolocation}/providers/base-provider.js +2 -2
- package/dist/{geolocation → core/geolocation}/providers/index.d.ts +1 -1
- package/dist/core/geolocation/providers/index.js +32 -0
- package/dist/{geolocation → core/geolocation}/providers/ip-api-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ip-api-provider.js +8 -0
- package/dist/{geolocation → core/geolocation}/providers/ipapi-co-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ipapi-co-provider.js +8 -0
- package/dist/{geolocation → core/geolocation}/providers/ipgeolocation-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ipgeolocation-provider.js +11 -0
- package/dist/{geolocation → core/geolocation}/providers/maxmind-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/maxmind-provider.js +11 -0
- package/dist/core/logger/config.js +13 -0
- package/dist/{logger → core/logger}/logger.js +5 -5
- package/dist/core/storage/config.js +13 -0
- package/dist/{storage → core/storage}/r2-storage.js +7 -7
- package/dist/core/system/cpu.js +12 -0
- package/dist/core/system/disk.js +12 -0
- package/dist/core/system/environment.js +18 -0
- package/dist/{system → core/system}/health-check.d.ts +1 -1
- package/dist/core/system/health-check.js +15 -0
- package/dist/{system → core/system}/index.js +20 -20
- package/dist/core/system/memory.js +12 -0
- package/dist/core/system/network.js +12 -0
- package/dist/{system → core/system}/utils.js +6 -6
- package/dist/{types → core/types}/env.d.ts +7 -7
- package/dist/{types → core/types}/qr-code.js +2 -2
- package/dist/{utils → core/utils}/error-message-formatter.js +2 -2
- package/dist/{utils → core/utils}/format-number.js +2 -2
- package/dist/core/utils/index.d.ts +9 -0
- package/dist/core/utils/index.js +71 -0
- package/dist/{utils → core/utils}/input-validation.js +2 -2
- package/dist/{utils → core/utils}/ip-utils.js +2 -2
- package/dist/{utils → core/utils}/optimistic-lock.js +4 -4
- package/dist/{utils → core/utils}/sanitizer.js +2 -2
- package/dist/{utils → core/utils}/short-code-generator.js +2 -2
- package/dist/{utils → core/utils}/timezone.js +2 -2
- package/dist/{utils → core/utils}/type-guards.js +2 -2
- package/dist/{utils → core/utils}/url-normalizer.js +2 -2
- package/dist/{validators → core/validators}/index.js +2 -2
- package/dist/{validators → core/validators}/password-validator.js +2 -2
- package/dist/initialize.d.ts +10 -10
- package/dist/initialize.js +15 -15
- package/dist/{auth/handlers → next/auth-handlers}/forgot-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/forgot-password.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/index.d.ts +1 -1
- package/dist/{auth/handlers → next/auth-handlers}/index.js +43 -42
- package/dist/{auth/handlers → next/auth-handlers}/login.handler.d.ts +1 -1
- package/dist/next/auth-handlers/login.handler.js +14 -0
- package/dist/{auth/handlers → next/auth-handlers}/logout.handler.d.ts +1 -1
- package/dist/next/auth-handlers/logout.handler.js +12 -0
- package/dist/{auth/handlers → next/auth-handlers}/me.handler.d.ts +1 -1
- package/dist/next/auth-handlers/me.handler.js +14 -0
- package/dist/{auth/handlers → next/auth-handlers}/oauth-authorize.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-authorize.handler.js +17 -0
- package/dist/{auth/handlers → next/auth-handlers}/oauth-callback.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-callback.handler.js +24 -0
- package/dist/{auth/handlers → next/auth-handlers}/refresh.handler.d.ts +1 -1
- package/dist/next/auth-handlers/refresh.handler.js +15 -0
- package/dist/{auth/handlers → next/auth-handlers}/register.handler.d.ts +1 -1
- package/dist/next/auth-handlers/register.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/reset-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/reset-password.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/verify-email.handler.d.ts +1 -1
- package/dist/next/auth-handlers/verify-email.handler.js +11 -0
- package/dist/{auth/types → next/auth-types}/handler-types.d.ts +1 -1
- package/dist/next/auth-types/handler-types.js +1 -0
- package/dist/next/auth-types/index.d.ts +7 -0
- package/dist/next/auth-types/index.js +1 -0
- package/dist/next/error/error-handler.js +24 -0
- package/dist/next/error/index.d.ts +9 -0
- package/dist/{error → next/error}/index.js +19 -74
- package/dist/{error/core → next/error}/locale-detector.d.ts +1 -1
- package/dist/{error/core → next/error}/locale-detector.js +1 -1
- package/dist/{middleware → next/middleware}/auth.d.ts +2 -2
- package/dist/next/middleware/auth.js +28 -0
- package/dist/{middleware → next/middleware}/cors.d.ts +1 -1
- package/dist/next/middleware/cors.js +16 -0
- package/dist/next/middleware/error-handler.js +18 -0
- package/dist/{middleware → next/middleware}/index.js +29 -29
- package/dist/next/middleware/init-request.js +8 -0
- package/dist/next/middleware/middleware-chain.js +11 -0
- package/dist/{middleware → next/middleware}/rate-limit.d.ts +1 -1
- package/dist/next/middleware/rate-limit.js +17 -0
- package/dist/next/middleware/response-logger.js +11 -0
- package/dist/next/middleware/security.js +15 -0
- package/dist/{middleware → next/middleware}/types.d.ts +1 -1
- package/dist/next/middleware/wrappers.js +40 -0
- package/dist/{utils → next/utils}/api-helpers.js +3 -3
- package/dist/{utils → next/utils}/cors.js +6 -6
- package/dist/{utils → next/utils}/csv-export.js +6 -6
- package/dist/{utils → next/utils}/error-processor.d.ts +1 -1
- package/dist/{utils → next/utils}/error-processor.js +8 -8
- package/dist/{utils → next/utils}/index.d.ts +2 -5
- package/dist/{utils → next/utils}/index.js +13 -81
- package/dist/{auth/adapters/prisma → prisma/auth-adapter}/index.d.ts +1 -1
- package/dist/{auth/adapters/prisma → prisma/auth-adapter}/index.js +2 -2
- package/dist/react/components/ui/Alert.js +10 -0
- package/dist/react/components/ui/Badge.js +8 -0
- package/dist/react/components/ui/Button.js +8 -0
- package/dist/react/components/ui/DataTable.js +22 -0
- package/dist/{components → react/components}/ui/DomainDisplay.js +2 -2
- package/dist/react/components/ui/Input.js +8 -0
- package/dist/react/components/ui/Label.js +8 -0
- package/dist/{components → react/components}/ui/Pagination.js +3 -3
- package/dist/{components → react/components}/ui/Select.js +3 -3
- package/dist/react/components/ui/Skeleton.js +8 -0
- package/dist/{components → react/components}/ui/TimezoneDisplay.js +7 -7
- package/dist/{components → react/components}/ui/Tooltip.js +3 -3
- package/dist/react/components/ui/data-table/DataTable.js +22 -0
- package/dist/react/components/ui/data-table/DataTableBody.js +10 -0
- package/dist/react/components/ui/data-table/DataTableBulkActions.js +12 -0
- package/dist/react/components/ui/data-table/DataTableFilters.js +13 -0
- package/dist/react/components/ui/data-table/DataTablePagination.js +11 -0
- package/dist/react/components/ui/data-table/DataTableSearch.js +12 -0
- package/dist/react/components/ui/data-table/index.js +42 -0
- package/dist/{components → react/components}/ui/data-table/types.d.ts +5 -0
- package/dist/{components → react/components}/ui/data-table/types.js +2 -2
- package/dist/{components → react/components}/ui/loading-bar.js +3 -3
- package/dist/{error → react/error}/error-display.d.ts +2 -9
- package/dist/{error → react/error}/error-display.js +11 -9
- package/dist/react/error/index.d.ts +6 -0
- package/dist/react/error/index.js +30 -0
- package/dist/{hooks → react/hooks}/useDataTable.js +3 -3
- package/dist/react/hooks/useDebounce.js +7 -0
- package/dist/{hooks → react/hooks}/useExitIntent.js +2 -2
- package/dist/{hooks → react/hooks}/useTimezone.js +3 -3
- package/dist/{utils/client → react/utils}/client-utils.js +1 -1
- package/dist/{utils/client → react/utils}/qr-code.d.ts +1 -1
- package/dist/{utils/client → react/utils}/qr-code.js +1 -1
- package/package.json +146 -95
- package/dist/auth/config.js +0 -14
- package/dist/auth/core/jwt/cookie.js +0 -13
- package/dist/auth/core/jwt/index.js +0 -20
- package/dist/auth/core/oauth/index.js +0 -33
- package/dist/auth/email/index.js +0 -7
- package/dist/auth/email/sender.js +0 -7
- package/dist/auth/handlers/forgot-password.handler.js +0 -11
- package/dist/auth/handlers/login.handler.js +0 -14
- package/dist/auth/handlers/logout.handler.js +0 -12
- package/dist/auth/handlers/me.handler.js +0 -14
- package/dist/auth/handlers/oauth-authorize.handler.js +0 -16
- package/dist/auth/handlers/oauth-callback.handler.js +0 -23
- package/dist/auth/handlers/refresh.handler.js +0 -15
- package/dist/auth/handlers/register.handler.js +0 -11
- package/dist/auth/handlers/reset-password.handler.js +0 -11
- package/dist/auth/handlers/verify-email.handler.js +0 -11
- package/dist/auth/services/email-verification.service.js +0 -10
- package/dist/auth/services/index.js +0 -36
- package/dist/auth/services/login.service.js +0 -14
- package/dist/auth/services/oauth-callback.service.js +0 -14
- package/dist/auth/services/password-reset.service.js +0 -10
- package/dist/auth/services/register.service.js +0 -10
- package/dist/auth/services/token-refresh.service.js +0 -14
- package/dist/cache/cache-config.js +0 -15
- package/dist/cache/cache-factory.js +0 -33
- package/dist/cache/cache-invalidation.js +0 -29
- package/dist/cache/cache-wrapper.js +0 -27
- package/dist/cache/config.js +0 -13
- package/dist/cache/hybrid-cache-manager.js +0 -18
- package/dist/cache/inmemory-cache-manager.js +0 -12
- package/dist/cache/noop-cache-manager.js +0 -14
- package/dist/cache/redis-cache-manager.js +0 -16
- package/dist/components/ui/Alert.js +0 -10
- package/dist/components/ui/Badge.js +0 -8
- package/dist/components/ui/Button.js +0 -8
- package/dist/components/ui/DataTable.js +0 -22
- package/dist/components/ui/Input.js +0 -8
- package/dist/components/ui/Label.js +0 -8
- package/dist/components/ui/Skeleton.js +0 -8
- package/dist/components/ui/WorldMapChart.d.ts +0 -17
- package/dist/components/ui/WorldMapChart.js +0 -250
- package/dist/components/ui/data-table/DataTable.js +0 -22
- package/dist/components/ui/data-table/DataTableBody.js +0 -10
- package/dist/components/ui/data-table/DataTableBulkActions.js +0 -12
- package/dist/components/ui/data-table/DataTableFilters.js +0 -13
- package/dist/components/ui/data-table/DataTablePagination.js +0 -11
- package/dist/components/ui/data-table/DataTableSearch.js +0 -12
- package/dist/components/ui/data-table/index.js +0 -42
- package/dist/config/common.js +0 -13
- package/dist/config/errors.js +0 -7
- package/dist/config/warn.js +0 -7
- package/dist/error/app-error.js +0 -10
- package/dist/error/error-handler.js +0 -24
- package/dist/error/friendly-messages-v2.js +0 -15
- package/dist/error/index.d.ts +0 -22
- package/dist/error/messages/en.js +0 -7
- package/dist/error/messages/ko.js +0 -7
- package/dist/geolocation/batch-processor.js +0 -13
- package/dist/geolocation/index.js +0 -40
- package/dist/geolocation/providers/index.js +0 -32
- package/dist/geolocation/providers/ip-api-provider.js +0 -8
- package/dist/geolocation/providers/ipapi-co-provider.js +0 -8
- package/dist/geolocation/providers/ipgeolocation-provider.js +0 -11
- package/dist/geolocation/providers/maxmind-provider.js +0 -11
- package/dist/hooks/useDebounce.js +0 -7
- package/dist/logger/config.js +0 -13
- package/dist/middleware/auth.js +0 -28
- package/dist/middleware/cors-config.js +0 -13
- package/dist/middleware/cors.js +0 -16
- package/dist/middleware/error-handler.js +0 -18
- package/dist/middleware/init-request.js +0 -8
- package/dist/middleware/middleware-chain.js +0 -11
- package/dist/middleware/rate-limit.js +0 -17
- package/dist/middleware/response-logger.js +0 -11
- package/dist/middleware/security.js +0 -15
- package/dist/middleware/wrappers.js +0 -40
- package/dist/storage/config.js +0 -13
- package/dist/system/cpu.js +0 -12
- package/dist/system/disk.js +0 -12
- package/dist/system/environment.js +0 -18
- package/dist/system/health-check.js +0 -15
- package/dist/system/memory.js +0 -12
- package/dist/system/network.js +0 -12
- package/dist/world_countries-C2WUL2CQ.js +0 -279
- /package/dist/{auth/types/handler-types.js → chunk-7PEVOMBO.js} +0 -0
- /package/dist/{chunk-6CLQRZC2.js → chunk-CDALZTPN.js} +0 -0
- /package/dist/{chunk-EBUEBEJX.js → chunk-HH4ZKZHD.js} +0 -0
- /package/dist/{chunk-R4SXQYIT.js → chunk-M22Z2NO6.js} +0 -0
- /package/dist/{auth → core/auth}/config.d.ts +0 -0
- /package/dist/{auth → core/auth}/email/sender.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/email/token-generator.d.ts +0 -0
- /package/dist/{auth → core/auth}/errors/index.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/jwt/client.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/oauth/providers/index.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/email-verification.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/index.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/login.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/oauth-callback.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/password-reset.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/register.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/token-refresh.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/types/index.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-config.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-defaults.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-redis.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-types.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-wrapper.d.ts +0 -0
- /package/dist/{cache → core/cache}/hybrid-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/index.d.ts +0 -0
- /package/dist/{cache → core/cache}/inmemory-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/noop-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/redis-cache-manager.d.ts +0 -0
- /package/dist/{config → core/config}/common.d.ts +0 -0
- /package/dist/{config → core/config}/errors.d.ts +0 -0
- /package/dist/{config → core/config}/warn.d.ts +0 -0
- /package/dist/{constants → core/constants}/error-codes.d.ts +0 -0
- /package/dist/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/{constants → core/constants}/messages.d.ts +0 -0
- /package/dist/{constants → core/constants}/pagination.d.ts +0 -0
- /package/dist/{constants → core/constants}/security.d.ts +0 -0
- /package/dist/{constants → core/constants}/validation.d.ts +0 -0
- /package/dist/{middleware/cors-config.d.ts → core/cors/index.d.ts} +0 -0
- /package/dist/{error → core/error}/friendly-messages-v2.d.ts +0 -0
- /package/dist/{error → core/error}/friendly-messages.d.ts +0 -0
- /package/dist/{error → core/error}/messages/en.d.ts +0 -0
- /package/dist/{error → core/error}/messages/index.d.ts +0 -0
- /package/dist/{error → core/error}/messages/ko.d.ts +0 -0
- /package/dist/{error → core/error}/messages/types.d.ts +0 -0
- /package/dist/{error → core/error}/messages/types.js +0 -0
- /package/dist/{geolocation → core/geolocation}/config.d.ts +0 -0
- /package/dist/{logger → core/logger}/config.d.ts +0 -0
- /package/dist/{logger → core/logger}/logger.d.ts +0 -0
- /package/dist/{storage → core/storage}/config.d.ts +0 -0
- /package/dist/{storage → core/storage}/r2-storage.d.ts +0 -0
- /package/dist/{system → core/system}/cpu.d.ts +0 -0
- /package/dist/{system → core/system}/disk.d.ts +0 -0
- /package/dist/{system → core/system}/environment.d.ts +0 -0
- /package/dist/{system → core/system}/index.d.ts +0 -0
- /package/dist/{system → core/system}/memory.d.ts +0 -0
- /package/dist/{system → core/system}/network.d.ts +0 -0
- /package/dist/{system → core/system}/types.d.ts +0 -0
- /package/dist/{middleware → core/system}/types.js +0 -0
- /package/dist/{system → core/system}/utils.d.ts +0 -0
- /package/dist/{types → core/types}/api.d.ts +0 -0
- /package/dist/{types → core/types}/api.js +0 -0
- /package/dist/{types → core/types}/database.d.ts +0 -0
- /package/dist/{types → core/types}/database.js +0 -0
- /package/dist/{types → core/types}/env.js +0 -0
- /package/dist/{types → core/types}/geoip.d.ts +0 -0
- /package/dist/{types → core/types}/geoip.js +0 -0
- /package/dist/{types → core/types}/i18n.d.ts +0 -0
- /package/dist/{types → core/types}/i18n.js +0 -0
- /package/dist/{types → core/types}/qr-code.d.ts +0 -0
- /package/dist/{types → core/types}/user.d.ts +0 -0
- /package/dist/{types → core/types}/user.js +0 -0
- /package/dist/{utils → core/utils}/error-message-formatter.d.ts +0 -0
- /package/dist/{utils → core/utils}/format-number.d.ts +0 -0
- /package/dist/{utils → core/utils}/input-validation.d.ts +0 -0
- /package/dist/{utils → core/utils}/ip-utils.d.ts +0 -0
- /package/dist/{utils → core/utils}/optimistic-lock.d.ts +0 -0
- /package/dist/{utils → core/utils}/sanitizer.d.ts +0 -0
- /package/dist/{utils → core/utils}/short-code-generator.d.ts +0 -0
- /package/dist/{utils → core/utils}/timezone.d.ts +0 -0
- /package/dist/{utils → core/utils}/type-guards.d.ts +0 -0
- /package/dist/{utils → core/utils}/url-normalizer.d.ts +0 -0
- /package/dist/{validators → core/validators}/index.d.ts +0 -0
- /package/dist/{validators → core/validators}/password-validator.d.ts +0 -0
- /package/dist/{error → next/error}/ErrorBoundary.d.ts +0 -0
- /package/dist/{error → next/error}/error-handler.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/error-handler.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/index.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/init-request.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/middleware-chain.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/response-logger.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/security.d.ts +0 -0
- /package/dist/{system → next/middleware}/types.js +0 -0
- /package/dist/{middleware → next/middleware}/wrappers.d.ts +0 -0
- /package/dist/{utils → next/utils}/api-helpers.d.ts +0 -0
- /package/dist/{utils → next/utils}/cors.d.ts +0 -0
- /package/dist/{utils → next/utils}/csv-export.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Alert.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Badge.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Button.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DataTable.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DomainDisplay.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Input.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Label.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Pagination.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Select.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Skeleton.d.ts +0 -0
- /package/dist/{components → react/components}/ui/TimezoneDisplay.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Tooltip.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTable.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableBody.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableBulkActions.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableFilters.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTablePagination.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableSearch.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/loading-bar.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDataTable.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDebounce.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useExitIntent.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useTimezone.d.ts +0 -0
- /package/dist/{utils/client → react/utils}/client-utils.d.ts +0 -0
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createLogoutHandler
|
|
3
|
-
} from "../../chunk-HT7HEGH3.js";
|
|
4
|
-
import {
|
|
5
|
-
createMeHandler
|
|
6
|
-
} from "../../chunk-UKE7WA3U.js";
|
|
7
|
-
import {
|
|
8
|
-
createOAuthAuthorizeHandler
|
|
9
|
-
} from "../../chunk-GDX3YQGK.js";
|
|
10
|
-
import {
|
|
11
|
-
createOAuthCallbackHandler
|
|
12
|
-
} from "../../chunk-WBWDJUF5.js";
|
|
13
|
-
import "../../chunk-Q26CQW7T.js";
|
|
14
|
-
import {
|
|
15
|
-
createRefreshHandler
|
|
16
|
-
} from "../../chunk-AUDUYK5B.js";
|
|
17
|
-
import "../../chunk-SVHD6WCJ.js";
|
|
18
1
|
import {
|
|
19
2
|
createRegisterHandler
|
|
20
|
-
} from "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-VJE4HA2C.js";
|
|
4
|
+
import "../../chunk-LUIYCIF7.js";
|
|
22
5
|
import {
|
|
23
6
|
createResetPasswordHandler
|
|
24
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-IMAFMUZ7.js";
|
|
25
8
|
import {
|
|
26
9
|
createVerifyEmailHandler
|
|
27
|
-
} from "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-A74POWYY.js";
|
|
11
|
+
import "../../chunk-AQZPGOEZ.js";
|
|
29
12
|
import {
|
|
30
13
|
createForgotPasswordHandler
|
|
31
|
-
} from "../../chunk-
|
|
32
|
-
import "../../chunk-
|
|
14
|
+
} from "../../chunk-LON5THYQ.js";
|
|
15
|
+
import "../../chunk-N5VOFGF3.js";
|
|
33
16
|
import {
|
|
34
17
|
createLoginHandler
|
|
35
|
-
} from "../../chunk-
|
|
36
|
-
import
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
import
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
import
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import "../../chunk-
|
|
49
|
-
import
|
|
50
|
-
|
|
51
|
-
|
|
18
|
+
} from "../../chunk-P4CZVRSG.js";
|
|
19
|
+
import {
|
|
20
|
+
createLogoutHandler
|
|
21
|
+
} from "../../chunk-UP3VFIVQ.js";
|
|
22
|
+
import {
|
|
23
|
+
createMeHandler
|
|
24
|
+
} from "../../chunk-ZLYBY3R4.js";
|
|
25
|
+
import {
|
|
26
|
+
createOAuthAuthorizeHandler
|
|
27
|
+
} from "../../chunk-ZVGEGDYF.js";
|
|
28
|
+
import {
|
|
29
|
+
createOAuthCallbackHandler
|
|
30
|
+
} from "../../chunk-TMTN7H46.js";
|
|
31
|
+
import "../../chunk-BBE4RXR7.js";
|
|
32
|
+
import {
|
|
33
|
+
createRefreshHandler
|
|
34
|
+
} from "../../chunk-Q5ERE4M3.js";
|
|
35
|
+
import "../../chunk-ARXUKGZI.js";
|
|
36
|
+
import "../../chunk-D73ZJQMX.js";
|
|
37
|
+
import "../../chunk-V3GEYUBG.js";
|
|
38
|
+
import "../../chunk-CDALZTPN.js";
|
|
39
|
+
import "../../chunk-HIZ7USIF.js";
|
|
40
|
+
import "../../chunk-GF3DKZIW.js";
|
|
41
|
+
import "../../chunk-65HVR74O.js";
|
|
42
|
+
import "../../chunk-33RIHX7O.js";
|
|
43
|
+
import "../../chunk-GSSHHVHF.js";
|
|
44
|
+
import "../../chunk-JLRMET4V.js";
|
|
45
|
+
import "../../chunk-GH3U4WRE.js";
|
|
46
|
+
import "../../chunk-2PFSRVVD.js";
|
|
47
|
+
import "../../chunk-2JGSS4RM.js";
|
|
48
|
+
import "../../chunk-5GWGARXI.js";
|
|
49
|
+
import "../../chunk-UKPMQBU2.js";
|
|
50
|
+
import "../../chunk-6J2EJVND.js";
|
|
51
|
+
import "../../chunk-F3R3UYBF.js";
|
|
52
|
+
import "../../chunk-2SIBG5BG.js";
|
|
52
53
|
import "../../chunk-ORMEWXMH.js";
|
|
53
54
|
|
|
54
|
-
// src/auth
|
|
55
|
+
// src/next/auth-handlers/index.ts
|
|
55
56
|
function createAuthHandlers(options) {
|
|
56
57
|
return {
|
|
57
58
|
login: createLoginHandler(options),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createLoginHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLoginHandler
|
|
3
|
+
} from "../../chunk-P4CZVRSG.js";
|
|
4
|
+
import "../../chunk-2PFSRVVD.js";
|
|
5
|
+
import "../../chunk-2JGSS4RM.js";
|
|
6
|
+
import "../../chunk-5GWGARXI.js";
|
|
7
|
+
import "../../chunk-UKPMQBU2.js";
|
|
8
|
+
import "../../chunk-6J2EJVND.js";
|
|
9
|
+
import "../../chunk-F3R3UYBF.js";
|
|
10
|
+
import "../../chunk-2SIBG5BG.js";
|
|
11
|
+
import "../../chunk-ORMEWXMH.js";
|
|
12
|
+
export {
|
|
13
|
+
createLoginHandler
|
|
14
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createLogoutHandler(_options: AuthHandlerOptions): (_request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLogoutHandler
|
|
3
|
+
} from "../../chunk-UP3VFIVQ.js";
|
|
4
|
+
import "../../chunk-2JGSS4RM.js";
|
|
5
|
+
import "../../chunk-UKPMQBU2.js";
|
|
6
|
+
import "../../chunk-6J2EJVND.js";
|
|
7
|
+
import "../../chunk-F3R3UYBF.js";
|
|
8
|
+
import "../../chunk-2SIBG5BG.js";
|
|
9
|
+
import "../../chunk-ORMEWXMH.js";
|
|
10
|
+
export {
|
|
11
|
+
createLogoutHandler
|
|
12
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createMeHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createMeHandler
|
|
3
|
+
} from "../../chunk-ZLYBY3R4.js";
|
|
4
|
+
import "../../chunk-2PFSRVVD.js";
|
|
5
|
+
import "../../chunk-2JGSS4RM.js";
|
|
6
|
+
import "../../chunk-5GWGARXI.js";
|
|
7
|
+
import "../../chunk-UKPMQBU2.js";
|
|
8
|
+
import "../../chunk-6J2EJVND.js";
|
|
9
|
+
import "../../chunk-F3R3UYBF.js";
|
|
10
|
+
import "../../chunk-2SIBG5BG.js";
|
|
11
|
+
import "../../chunk-ORMEWXMH.js";
|
|
12
|
+
export {
|
|
13
|
+
createMeHandler
|
|
14
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createOAuthAuthorizeHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createOAuthAuthorizeHandler
|
|
3
|
+
} from "../../chunk-ZVGEGDYF.js";
|
|
4
|
+
import "../../chunk-V3GEYUBG.js";
|
|
5
|
+
import "../../chunk-CDALZTPN.js";
|
|
6
|
+
import "../../chunk-HIZ7USIF.js";
|
|
7
|
+
import "../../chunk-GF3DKZIW.js";
|
|
8
|
+
import "../../chunk-65HVR74O.js";
|
|
9
|
+
import "../../chunk-33RIHX7O.js";
|
|
10
|
+
import "../../chunk-GSSHHVHF.js";
|
|
11
|
+
import "../../chunk-JLRMET4V.js";
|
|
12
|
+
import "../../chunk-GH3U4WRE.js";
|
|
13
|
+
import "../../chunk-5GWGARXI.js";
|
|
14
|
+
import "../../chunk-ORMEWXMH.js";
|
|
15
|
+
export {
|
|
16
|
+
createOAuthAuthorizeHandler
|
|
17
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createOAuthCallbackHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createOAuthCallbackHandler
|
|
3
|
+
} from "../../chunk-TMTN7H46.js";
|
|
4
|
+
import "../../chunk-BBE4RXR7.js";
|
|
5
|
+
import "../../chunk-V3GEYUBG.js";
|
|
6
|
+
import "../../chunk-CDALZTPN.js";
|
|
7
|
+
import "../../chunk-HIZ7USIF.js";
|
|
8
|
+
import "../../chunk-GF3DKZIW.js";
|
|
9
|
+
import "../../chunk-65HVR74O.js";
|
|
10
|
+
import "../../chunk-33RIHX7O.js";
|
|
11
|
+
import "../../chunk-GSSHHVHF.js";
|
|
12
|
+
import "../../chunk-JLRMET4V.js";
|
|
13
|
+
import "../../chunk-GH3U4WRE.js";
|
|
14
|
+
import "../../chunk-2PFSRVVD.js";
|
|
15
|
+
import "../../chunk-2JGSS4RM.js";
|
|
16
|
+
import "../../chunk-5GWGARXI.js";
|
|
17
|
+
import "../../chunk-UKPMQBU2.js";
|
|
18
|
+
import "../../chunk-6J2EJVND.js";
|
|
19
|
+
import "../../chunk-F3R3UYBF.js";
|
|
20
|
+
import "../../chunk-2SIBG5BG.js";
|
|
21
|
+
import "../../chunk-ORMEWXMH.js";
|
|
22
|
+
export {
|
|
23
|
+
createOAuthCallbackHandler
|
|
24
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createRefreshHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createRefreshHandler
|
|
3
|
+
} from "../../chunk-Q5ERE4M3.js";
|
|
4
|
+
import "../../chunk-ARXUKGZI.js";
|
|
5
|
+
import "../../chunk-2PFSRVVD.js";
|
|
6
|
+
import "../../chunk-2JGSS4RM.js";
|
|
7
|
+
import "../../chunk-5GWGARXI.js";
|
|
8
|
+
import "../../chunk-UKPMQBU2.js";
|
|
9
|
+
import "../../chunk-6J2EJVND.js";
|
|
10
|
+
import "../../chunk-F3R3UYBF.js";
|
|
11
|
+
import "../../chunk-2SIBG5BG.js";
|
|
12
|
+
import "../../chunk-ORMEWXMH.js";
|
|
13
|
+
export {
|
|
14
|
+
createRefreshHandler
|
|
15
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createRegisterHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createRegisterHandler
|
|
3
|
+
} from "../../chunk-VJE4HA2C.js";
|
|
4
|
+
import "../../chunk-LUIYCIF7.js";
|
|
5
|
+
import "../../chunk-D73ZJQMX.js";
|
|
6
|
+
import "../../chunk-GH3U4WRE.js";
|
|
7
|
+
import "../../chunk-5GWGARXI.js";
|
|
8
|
+
import "../../chunk-ORMEWXMH.js";
|
|
9
|
+
export {
|
|
10
|
+
createRegisterHandler
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createResetPasswordHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createResetPasswordHandler
|
|
3
|
+
} from "../../chunk-IMAFMUZ7.js";
|
|
4
|
+
import "../../chunk-N5VOFGF3.js";
|
|
5
|
+
import "../../chunk-D73ZJQMX.js";
|
|
6
|
+
import "../../chunk-GH3U4WRE.js";
|
|
7
|
+
import "../../chunk-5GWGARXI.js";
|
|
8
|
+
import "../../chunk-ORMEWXMH.js";
|
|
9
|
+
export {
|
|
10
|
+
createResetPasswordHandler
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { AuthHandlerOptions } from '../types/handler-types';
|
|
2
|
+
import type { AuthHandlerOptions } from '../auth-types/handler-types';
|
|
3
3
|
export declare function createVerifyEmailHandler(options: AuthHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createVerifyEmailHandler
|
|
3
|
+
} from "../../chunk-A74POWYY.js";
|
|
4
|
+
import "../../chunk-AQZPGOEZ.js";
|
|
5
|
+
import "../../chunk-D73ZJQMX.js";
|
|
6
|
+
import "../../chunk-GH3U4WRE.js";
|
|
7
|
+
import "../../chunk-5GWGARXI.js";
|
|
8
|
+
import "../../chunk-ORMEWXMH.js";
|
|
9
|
+
export {
|
|
10
|
+
createVerifyEmailHandler
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NextRequest } from 'next/server';
|
|
2
|
-
import type { BaseUser, OAuthProviderName, UserRepository, OAuthAccountRepository, EmailTokenRepository, EmailSender, Logger } from '
|
|
2
|
+
import type { BaseUser, OAuthProviderName, UserRepository, OAuthAccountRepository, EmailTokenRepository, EmailSender, Logger } from '@withwiz/core/auth/types';
|
|
3
3
|
export interface AuthHandlerDependencies {
|
|
4
4
|
userRepository: UserRepository;
|
|
5
5
|
oauthAccountRepository: OAuthAccountRepository;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../chunk-M22Z2NO6.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../chunk-M22Z2NO6.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUTH_ERROR_CODE_MAP,
|
|
3
|
+
ErrorResponse,
|
|
4
|
+
errorToResponse,
|
|
5
|
+
error_handler_default,
|
|
6
|
+
processError,
|
|
7
|
+
withErrorHandler
|
|
8
|
+
} from "../../chunk-2MYD2BFJ.js";
|
|
9
|
+
import "../../chunk-ATAQRXTH.js";
|
|
10
|
+
import "../../chunk-KG65BFPK.js";
|
|
11
|
+
import "../../chunk-IKZB26SK.js";
|
|
12
|
+
import "../../chunk-5GWGARXI.js";
|
|
13
|
+
import "../../chunk-6J2EJVND.js";
|
|
14
|
+
import "../../chunk-F3R3UYBF.js";
|
|
15
|
+
import "../../chunk-XQIAXMRY.js";
|
|
16
|
+
import "../../chunk-ORMEWXMH.js";
|
|
17
|
+
export {
|
|
18
|
+
AUTH_ERROR_CODE_MAP,
|
|
19
|
+
ErrorResponse,
|
|
20
|
+
error_handler_default as default,
|
|
21
|
+
errorToResponse,
|
|
22
|
+
processError,
|
|
23
|
+
withErrorHandler
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 에러 처리 — Next.js 의존 항목
|
|
3
|
+
*
|
|
4
|
+
* NextResponse/NextRequest 변환, ErrorBoundary(next/link), 로케일 감지.
|
|
5
|
+
* 프레임워크 독립 항목은 @withwiz/toolkit/core/error 참조.
|
|
6
|
+
*/
|
|
7
|
+
export * from "./error-handler";
|
|
8
|
+
export { LocaleDetector } from "./locale-detector";
|
|
9
|
+
export * from "./ErrorBoundary";
|
|
@@ -1,60 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LocaleDetector
|
|
3
|
-
} from "../chunk-XHZ5L4FO.js";
|
|
4
|
-
import {
|
|
5
|
-
extractErrorInfo,
|
|
6
|
-
formatInlineError,
|
|
7
|
-
getDefaultErrorCode,
|
|
8
|
-
getErrorIcon,
|
|
9
|
-
handleApiResponse,
|
|
10
|
-
showFriendlyError
|
|
11
|
-
} from "../chunk-BJSEYZBH.js";
|
|
12
1
|
import {
|
|
13
2
|
AUTH_ERROR_CODE_MAP,
|
|
14
3
|
ErrorResponse,
|
|
15
4
|
errorToResponse,
|
|
16
5
|
processError,
|
|
17
6
|
withErrorHandler
|
|
18
|
-
} from "
|
|
7
|
+
} from "../../chunk-2MYD2BFJ.js";
|
|
19
8
|
import {
|
|
20
|
-
|
|
21
|
-
} from "
|
|
22
|
-
import
|
|
23
|
-
formatFriendlyError,
|
|
24
|
-
getErrorDisplayInfo,
|
|
25
|
-
getFriendlyMessage
|
|
26
|
-
} from "../chunk-7VTBRP5M.js";
|
|
9
|
+
LocaleDetector
|
|
10
|
+
} from "../../chunk-K2PNAQI4.js";
|
|
11
|
+
import "../../chunk-ATAQRXTH.js";
|
|
27
12
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
hasMessage,
|
|
31
|
-
isLocaleSupported,
|
|
32
|
-
supportedLocales
|
|
33
|
-
} from "../chunk-JNJALNRR.js";
|
|
34
|
-
import "../chunk-AKD4YMJU.js";
|
|
35
|
-
import "../chunk-ON4ENPUS.js";
|
|
13
|
+
extractErrorInfo
|
|
14
|
+
} from "../../chunk-6HQ5JHL4.js";
|
|
36
15
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "../chunk-SNTLJ646.js";
|
|
50
|
-
import "../chunk-AIH3F7JV.js";
|
|
51
|
-
import "../chunk-NOAU2JG7.js";
|
|
52
|
-
import "../chunk-LMQSV5UK.js";
|
|
53
|
-
import "../chunk-K25ICPU4.js";
|
|
54
|
-
import "../chunk-2QH66EVQ.js";
|
|
55
|
-
import "../chunk-ORMEWXMH.js";
|
|
16
|
+
getErrorDisplayInfo
|
|
17
|
+
} from "../../chunk-5S7M2AJL.js";
|
|
18
|
+
import "../../chunk-7WG7XPXC.js";
|
|
19
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
20
|
+
import "../../chunk-VUYS3SU7.js";
|
|
21
|
+
import "../../chunk-KG65BFPK.js";
|
|
22
|
+
import "../../chunk-IKZB26SK.js";
|
|
23
|
+
import "../../chunk-5GWGARXI.js";
|
|
24
|
+
import "../../chunk-6J2EJVND.js";
|
|
25
|
+
import "../../chunk-F3R3UYBF.js";
|
|
26
|
+
import "../../chunk-XQIAXMRY.js";
|
|
27
|
+
import "../../chunk-ORMEWXMH.js";
|
|
56
28
|
|
|
57
|
-
// src/error/ErrorBoundary.tsx
|
|
29
|
+
// src/next/error/ErrorBoundary.tsx
|
|
58
30
|
import { Component } from "react";
|
|
59
31
|
import { AlertCircle, RefreshCw, Home, HelpCircle } from "lucide-react";
|
|
60
32
|
import Link from "next/link";
|
|
@@ -188,39 +160,12 @@ function InlineError({
|
|
|
188
160
|
}
|
|
189
161
|
export {
|
|
190
162
|
AUTH_ERROR_CODE_MAP,
|
|
191
|
-
AppError,
|
|
192
|
-
ERROR_CODES,
|
|
193
163
|
ErrorBoundary,
|
|
194
164
|
ErrorCard,
|
|
195
165
|
ErrorResponse,
|
|
196
|
-
HTTP_STATUS,
|
|
197
166
|
InlineError,
|
|
198
167
|
LocaleDetector,
|
|
199
|
-
classifyError,
|
|
200
168
|
errorToResponse,
|
|
201
|
-
extractErrorInfo,
|
|
202
|
-
formatErrorMessage,
|
|
203
|
-
formatFriendlyError,
|
|
204
|
-
formatInlineError,
|
|
205
|
-
getAllErrorCodes,
|
|
206
|
-
getAllMessages,
|
|
207
|
-
getDefaultErrorCode,
|
|
208
|
-
getDefaultErrorMessage,
|
|
209
|
-
getErrorByCode,
|
|
210
|
-
getErrorCategory,
|
|
211
|
-
getErrorCodesByCategory,
|
|
212
|
-
getErrorDisplayInfo,
|
|
213
|
-
getErrorIcon,
|
|
214
|
-
getErrorInfo,
|
|
215
|
-
getErrorMessage,
|
|
216
|
-
getFriendlyMessage,
|
|
217
|
-
getHttpStatus,
|
|
218
|
-
getLogLevel,
|
|
219
|
-
handleApiResponse,
|
|
220
|
-
hasMessage,
|
|
221
|
-
isLocaleSupported,
|
|
222
169
|
processError,
|
|
223
|
-
showFriendlyError,
|
|
224
|
-
supportedLocales,
|
|
225
170
|
withErrorHandler
|
|
226
171
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 인증 실패 시 401 에러
|
|
8
8
|
*
|
|
9
9
|
* 완전 독립적 패키지:
|
|
10
|
-
* @withwiz/auth/
|
|
10
|
+
* @withwiz/core/auth/jwt를 사용하여 비즈니스 로직에 의존하지 않음
|
|
11
11
|
*/
|
|
12
12
|
import type { TApiMiddleware } from "./types";
|
|
13
13
|
/**
|
|
@@ -35,7 +35,7 @@ export declare function setAccessTokenBlacklistChecker(checker: IAccessTokenBlac
|
|
|
35
35
|
* @example
|
|
36
36
|
* ```typescript
|
|
37
37
|
* // instrumentation.ts
|
|
38
|
-
* import { initializeAuthMiddleware } from '@withwiz/middleware/auth';
|
|
38
|
+
* import { initializeAuthMiddleware } from '@withwiz/next/middleware/auth';
|
|
39
39
|
*
|
|
40
40
|
* export async function register() {
|
|
41
41
|
* initializeAuthMiddleware();
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
adminMiddleware,
|
|
3
|
+
authMiddleware,
|
|
4
|
+
createRoleMiddleware,
|
|
5
|
+
initializeAuthMiddleware,
|
|
6
|
+
optionalAuthMiddleware,
|
|
7
|
+
setAccessTokenBlacklistChecker
|
|
8
|
+
} from "../../chunk-M5ZYAQBB.js";
|
|
9
|
+
import "../../chunk-ATAQRXTH.js";
|
|
10
|
+
import "../../chunk-KG65BFPK.js";
|
|
11
|
+
import "../../chunk-IKZB26SK.js";
|
|
12
|
+
import "../../chunk-2PFSRVVD.js";
|
|
13
|
+
import "../../chunk-2JGSS4RM.js";
|
|
14
|
+
import "../../chunk-5GWGARXI.js";
|
|
15
|
+
import "../../chunk-UKPMQBU2.js";
|
|
16
|
+
import "../../chunk-6J2EJVND.js";
|
|
17
|
+
import "../../chunk-F3R3UYBF.js";
|
|
18
|
+
import "../../chunk-XQIAXMRY.js";
|
|
19
|
+
import "../../chunk-2SIBG5BG.js";
|
|
20
|
+
import "../../chunk-ORMEWXMH.js";
|
|
21
|
+
export {
|
|
22
|
+
adminMiddleware,
|
|
23
|
+
authMiddleware,
|
|
24
|
+
createRoleMiddleware,
|
|
25
|
+
initializeAuthMiddleware,
|
|
26
|
+
optionalAuthMiddleware,
|
|
27
|
+
setAccessTokenBlacklistChecker
|
|
28
|
+
};
|
|
@@ -51,7 +51,7 @@ export declare const corsMiddleware: TApiMiddleware;
|
|
|
51
51
|
* @example
|
|
52
52
|
* ```typescript
|
|
53
53
|
* // instrumentation.ts
|
|
54
|
-
* import { validateCorsConfiguration } from '@withwiz/middleware/cors';
|
|
54
|
+
* import { validateCorsConfiguration } from '@withwiz/next/middleware/cors';
|
|
55
55
|
*
|
|
56
56
|
* export async function register() {
|
|
57
57
|
* validateCorsConfiguration({
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
corsMiddleware,
|
|
3
|
+
createCorsMiddleware,
|
|
4
|
+
validateCorsConfiguration
|
|
5
|
+
} from "../../chunk-3KYSGBVF.js";
|
|
6
|
+
import "../../chunk-KG65BFPK.js";
|
|
7
|
+
import "../../chunk-7ZO5UNTJ.js";
|
|
8
|
+
import "../../chunk-IKZB26SK.js";
|
|
9
|
+
import "../../chunk-6J2EJVND.js";
|
|
10
|
+
import "../../chunk-F3R3UYBF.js";
|
|
11
|
+
import "../../chunk-ORMEWXMH.js";
|
|
12
|
+
export {
|
|
13
|
+
corsMiddleware,
|
|
14
|
+
createCorsMiddleware,
|
|
15
|
+
validateCorsConfiguration
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
errorHandlerMiddleware
|
|
3
|
+
} from "../../chunk-HKW4JA45.js";
|
|
4
|
+
import "../../chunk-2MYD2BFJ.js";
|
|
5
|
+
import "../../chunk-ATAQRXTH.js";
|
|
6
|
+
import "../../chunk-7WG7XPXC.js";
|
|
7
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
8
|
+
import "../../chunk-VUYS3SU7.js";
|
|
9
|
+
import "../../chunk-KG65BFPK.js";
|
|
10
|
+
import "../../chunk-IKZB26SK.js";
|
|
11
|
+
import "../../chunk-5GWGARXI.js";
|
|
12
|
+
import "../../chunk-6J2EJVND.js";
|
|
13
|
+
import "../../chunk-F3R3UYBF.js";
|
|
14
|
+
import "../../chunk-XQIAXMRY.js";
|
|
15
|
+
import "../../chunk-ORMEWXMH.js";
|
|
16
|
+
export {
|
|
17
|
+
errorHandlerMiddleware
|
|
18
|
+
};
|