@baseplate-dev/plugin-auth 0.6.11 → 0.6.13
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/CHANGELOG.md +40 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +43 -6
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +21 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +46 -10
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +18 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +24 -6
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -4
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +10 -5
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +7 -4
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +76 -59
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +58 -46
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +29 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +2 -8
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +37 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +5 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +8 -4
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +4 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +9 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +62 -8
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +21 -11
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +152 -10
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +52 -2
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +14 -4
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -3
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -3
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +102 -8
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +19 -5
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +0 -4
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +2 -15
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +2 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +4 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -2
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +52 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +77 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +2 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.d.ts → placeholder-auth-module.generator.d.ts} +20 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.js → placeholder-auth-module.generator.js} +16 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DEljr3MS.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DxRuC5lD.js} +89 -73
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-B6a7L2-k.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Dbjihoi-.js} +50 -13
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-JKpdJ1L0.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-CpEOtTmq.js} +50 -14
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js} +6932 -6106
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js} +72 -151
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js} +30 -247
- package/dist/web/assets/auth-gRzmaSZc.js +1 -0
- package/dist/web/assets/{common-CTWnBc6I.js → common-B4cD6OfF.js} +6 -6
- package/dist/web/assets/{common-g_Gn0v5J.js → common-B9LNVIXT.js} +4 -4
- package/dist/web/assets/{common-kfSP8YQO.js → common-B9sZoKR5.js} +6 -6
- package/dist/web/assets/{common-CzNLnT_1.js → common-DF9FD3lJ.js} +4 -4
- package/dist/web/assets/{common-zfktVQvk.js → common-S36tY-P3.js} +3 -3
- package/dist/web/assets/{common-B3OG-gju.js → common-sMUs9FmV.js} +3 -3
- package/dist/web/assets/{dist-C6kDPCTC.js → dist-CtqdAorB.js} +376 -256
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bt9-dftr.js → dist-SBfmsOB2.js} +43 -359
- package/dist/web/assets/{get-auth-plugin-definition-2vFJROjB.js → get-auth-plugin-definition-Bs9C6JrS.js} +2 -2
- package/dist/web/assets/hostInit-BtfjN9sB.js +99 -0
- package/dist/web/assets/{index-Cr47LBtj.js → index-DVCa_MuH.js} +2 -2
- package/dist/web/assets/{mf-entry-bootstrap-0-13480d2a.js → mf-entry-bootstrap-0-31a63adb.js} +5 -2
- package/dist/web/assets/{model-utils-ZF_FVZ_o.js → model-utils-BDM6ILfO.js} +43 -15
- package/dist/web/assets/{models-DPPMgQz_.js → models-1c2urnle.js} +3 -3
- package/dist/web/assets/{models-CORL4i-6.js → models-DGhhwO8Q.js} +3 -3
- package/dist/web/assets/{plugin-definition-UAfMRa7u.js → plugin-definition-B-HRncfN.js} +3 -3
- package/dist/web/assets/{plugin-definition-mNNM2hOB.js → plugin-definition-Dluw2inU.js} +3 -3
- package/dist/web/assets/{styles-DNVWarsT.js → styles-BTmSBHAy.js} +15 -12
- package/dist/web/assets/{virtualExposes-CZsMFYa2.js → virtualExposes-C1o-SyCQ.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bs76by83.js +259 -0
- package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DC8YPV1Z.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-B5SkIaaz.js} +13 -13
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-CmilMd0E.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DotA2McS.js} +50 -15
- package/dist/web/assets/{web-CNMEeTj-.js → web-B2REeIGU.js} +3 -3
- package/dist/web/assets/{web-BldKZtQd.js → web-BEOhczx1.js} +16 -16
- package/dist/web/assets/{web-y8E7eNgy.js → web-Bh_3N1sv.js} +17 -17
- package/dist/web/assets/{web-DiGj_0d0.js → web-CiuxQhgn.js} +20 -20
- package/dist/web/assets/{web-OntIhIfe.js → web-DGv5-Arz.js} +35 -35
- package/dist/web/assets/{web-BbqWFVPH.js → web-jcCkQISW.js} +31 -18
- package/dist/web/assets/{web-CnsQCdFE.js → web-wBaHshVG.js} +3 -3
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +1 -1
- package/package.json +26 -26
- package/dist/web/assets/auth-YjeUffyx.js +0 -1
- package/dist/web/assets/hostInit-35H-qR11.js +0 -119
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @baseplate-dev/plugin-auth
|
|
2
2
|
|
|
3
|
+
## 0.6.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#950](https://github.com/halfdomelabs/baseplate/pull/950) [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3) Thanks [@kingston](https://github.com/kingston)! - Generated backends now build a single app runtime composition root (`createAppRuntime()`) that constructs every application-scoped service — Redis, email, queues, storage, Stripe, pubsub, notifications, and auth sessions — once and disposes them together on shutdown, replacing the previous module-level singletons. Code reaches them through `ctx.services`, feature modules declare themselves with `defineAppModule()`, and `ServiceContext` splits into `ExecutionContext` (auth state) and `ServiceContext` (adds `services`), with `ServiceContextWith<K>`/`RequestServiceContextWith<K>` for narrowing a dependency to the services it actually uses. `createAppRuntime()` accepts an `overrides` map for supplying test doubles and a `backgroundServices` flag (default `false`) controlling whether the process runs queue supervision and scheduling, and `withScriptContext()` builds and safely disposes a runtime for one-off scripts and seeds.
|
|
8
|
+
|
|
9
|
+
- [#950](https://github.com/halfdomelabs/baseplate/pull/950) [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3) Thanks [@kingston](https://github.com/kingston)! - Refined the ESLint config for generated apps, and brought the internal monorepo configs in line with it. `eslint-plugin-unicorn` now uses its `unopinionated` preset while retaining `consistent-function-scoping`, `filename-case`, and `no-for-loop`, with `filename-case` applying to all generated apps rather than only React ones; `@typescript-eslint/switch-exhaustiveness-check` catches new union members silently falling into a generic `default` case; `react/prop-types` is disabled as redundant with TypeScript prop typing; `@typescript-eslint/explicit-function-return-type` no longer applies to React components (it remains load-bearing elsewhere) and `@typescript-eslint/prefer-destructuring` was removed. Unused ESLint disable directives and inline configs are now reported.
|
|
10
|
+
|
|
11
|
+
- [#919](https://github.com/halfdomelabs/baseplate/pull/919) [`9548f2d`](https://github.com/halfdomelabs/baseplate/commit/9548f2d12af830e28187efed4b5a27d42020b289) Thanks [@kingston](https://github.com/kingston)! - Upgrade insecure dependencies flagged by pnpm audit. Generated projects now use axios 1.18.1 (was 1.16.1) and better-auth 1.6.23 (was 1.6.11), addressing multiple axios advisories (prototype pollution, DoS, proxy handling) and a stored XSS advisory in better-auth. Transitive dependencies (js-yaml, brace-expansion, protobufjs, esbuild, body-parser) were also updated to patched versions in the monorepo and example lockfiles.
|
|
12
|
+
|
|
13
|
+
- [#927](https://github.com/halfdomelabs/baseplate/pull/927) [`0d3cd21`](https://github.com/halfdomelabs/baseplate/commit/0d3cd21bec022599977539f65fb2431d28574c83) Thanks [@kingston](https://github.com/kingston)! - Upgraded generated projects to TypeScript 6.0.3 (from 5.9.3), with typescript-eslint 8.65.0, `@vitest/eslint-plugin` 1.6.23, `eslint-plugin-perfectionist` 5.10.0, and `vitest-mock-extended` 3.1.1 for compatibility. Generated React apps now set `"types": ["node"]` in `tsconfig.app.json` and generated backends set `rootDir`/`types` in their `tsconfig.json`, since TypeScript 6 no longer implicitly includes `@types/node` globals for composite builds. Note that `@module-federation/vite` is pinned at exactly 1.17.0 — 1.17.1+ breaks the module federation shared-scope singleton for `zod`/`@baseplate-dev/project-builder-lib`, which left entity IDs unassigned when plugin-seeded models were merged into a new project during setup.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`becf3c5`](https://github.com/halfdomelabs/baseplate/commit/becf3c52b87a775c3a988995385b174e42c0b9e4), [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3), [`80c1474`](https://github.com/halfdomelabs/baseplate/commit/80c1474f8903f0609f8d7484b0d0be8b59d4f6c0), [`ed5d784`](https://github.com/halfdomelabs/baseplate/commit/ed5d784a0edb2f794ae723ba3fb46a3768cade4c), [`45886a6`](https://github.com/halfdomelabs/baseplate/commit/45886a6fc3ac02f37bf19a3dae45d38186c9ad8a), [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3), [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3), [`03cc94e`](https://github.com/halfdomelabs/baseplate/commit/03cc94e0308d441404b4e84457e678b4d19c47b8), [`9619580`](https://github.com/halfdomelabs/baseplate/commit/9619580e79c50556f649801bd9f04e4f7b221cc3), [`4819cfa`](https://github.com/halfdomelabs/baseplate/commit/4819cfad49158dec8eec05fc9d9b0025e7a81434), [`f596b4b`](https://github.com/halfdomelabs/baseplate/commit/f596b4b43bd9f0ecb7d5379739b0e36a01c40c70), [`307ed48`](https://github.com/halfdomelabs/baseplate/commit/307ed48144da1dab378c8b21e8cdbbe592fc3c48), [`cd8465e`](https://github.com/halfdomelabs/baseplate/commit/cd8465ec84b69241ee4e9a53d5131cd9bfe0b39f), [`ed5d784`](https://github.com/halfdomelabs/baseplate/commit/ed5d784a0edb2f794ae723ba3fb46a3768cade4c), [`80b7a20`](https://github.com/halfdomelabs/baseplate/commit/80b7a2090a06e5f729a798a7750ea126c8f27a8c), [`d0f8726`](https://github.com/halfdomelabs/baseplate/commit/d0f87265f16bfbde6c1525b0655850e906a7c3ed), [`47765e5`](https://github.com/halfdomelabs/baseplate/commit/47765e58ebd1979f94f0b1889efe539bcfe3e7f1), [`80c1474`](https://github.com/halfdomelabs/baseplate/commit/80c1474f8903f0609f8d7484b0d0be8b59d4f6c0), [`9548f2d`](https://github.com/halfdomelabs/baseplate/commit/9548f2d12af830e28187efed4b5a27d42020b289), [`e89c814`](https://github.com/halfdomelabs/baseplate/commit/e89c8143a7a4ea45817a45544fba6bf0ba6fe758), [`9030d45`](https://github.com/halfdomelabs/baseplate/commit/9030d45cd00ff8e3b9ea20744499457e25b0fbf4), [`0d3cd21`](https://github.com/halfdomelabs/baseplate/commit/0d3cd21bec022599977539f65fb2431d28574c83), [`13b78ca`](https://github.com/halfdomelabs/baseplate/commit/13b78caae04ad84441ca48d98a0b9e17135485d9)]:
|
|
16
|
+
- @baseplate-dev/react-generators@0.6.13
|
|
17
|
+
- @baseplate-dev/fastify-generators@0.6.13
|
|
18
|
+
- @baseplate-dev/plugin-email@0.6.13
|
|
19
|
+
- @baseplate-dev/plugin-queue@0.6.13
|
|
20
|
+
- @baseplate-dev/utils@0.6.13
|
|
21
|
+
- @baseplate-dev/core-generators@0.6.13
|
|
22
|
+
- @baseplate-dev/project-builder-lib@0.6.13
|
|
23
|
+
- @baseplate-dev/ui-components@0.6.13
|
|
24
|
+
- @baseplate-dev/plugin-rate-limit@0.6.13
|
|
25
|
+
- @baseplate-dev/sync@0.6.13
|
|
26
|
+
|
|
27
|
+
## 0.6.12
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`0620a2b`](https://github.com/halfdomelabs/baseplate/commit/0620a2b2a59a4b401a9d9268f596776f4da09a9b), [`0620a2b`](https://github.com/halfdomelabs/baseplate/commit/0620a2b2a59a4b401a9d9268f596776f4da09a9b), [`0620a2b`](https://github.com/halfdomelabs/baseplate/commit/0620a2b2a59a4b401a9d9268f596776f4da09a9b), [`3f925ff`](https://github.com/halfdomelabs/baseplate/commit/3f925ff4e22fde6c76f7c8b471fac044ed0a82b3), [`0620a2b`](https://github.com/halfdomelabs/baseplate/commit/0620a2b2a59a4b401a9d9268f596776f4da09a9b), [`0620a2b`](https://github.com/halfdomelabs/baseplate/commit/0620a2b2a59a4b401a9d9268f596776f4da09a9b), [`65a1b96`](https://github.com/halfdomelabs/baseplate/commit/65a1b969e7900b935800d111c23b3af70a660514)]:
|
|
32
|
+
- @baseplate-dev/fastify-generators@0.6.12
|
|
33
|
+
- @baseplate-dev/core-generators@0.6.12
|
|
34
|
+
- @baseplate-dev/react-generators@0.6.12
|
|
35
|
+
- @baseplate-dev/project-builder-lib@0.6.12
|
|
36
|
+
- @baseplate-dev/plugin-email@0.6.12
|
|
37
|
+
- @baseplate-dev/plugin-queue@0.6.12
|
|
38
|
+
- @baseplate-dev/plugin-rate-limit@0.6.12
|
|
39
|
+
- @baseplate-dev/sync@0.6.12
|
|
40
|
+
- @baseplate-dev/ui-components@0.6.12
|
|
41
|
+
- @baseplate-dev/utils@0.6.12
|
|
42
|
+
|
|
3
43
|
## 0.6.11
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -111,6 +111,13 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
111
111
|
DropdownMenuSubContent: {};
|
|
112
112
|
DropdownMenuSubTrigger: {};
|
|
113
113
|
DropdownMenuTrigger: {};
|
|
114
|
+
Empty: {};
|
|
115
|
+
EmptyContent: {};
|
|
116
|
+
EmptyDescription: {};
|
|
117
|
+
EmptyHeader: {};
|
|
118
|
+
EmptyMedia: {};
|
|
119
|
+
emptyMediaVariants: {};
|
|
120
|
+
EmptyTitle: {};
|
|
114
121
|
ErrorableLoader: {};
|
|
115
122
|
ErrorDisplay: {};
|
|
116
123
|
Field: {};
|
|
@@ -349,6 +356,13 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
349
356
|
DropdownMenuSubContent: {};
|
|
350
357
|
DropdownMenuSubTrigger: {};
|
|
351
358
|
DropdownMenuTrigger: {};
|
|
359
|
+
Empty: {};
|
|
360
|
+
EmptyContent: {};
|
|
361
|
+
EmptyDescription: {};
|
|
362
|
+
EmptyHeader: {};
|
|
363
|
+
EmptyMedia: {};
|
|
364
|
+
emptyMediaVariants: {};
|
|
365
|
+
EmptyTitle: {};
|
|
352
366
|
ErrorableLoader: {};
|
|
353
367
|
ErrorDisplay: {};
|
|
354
368
|
Field: {};
|
package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts
CHANGED
|
@@ -109,6 +109,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
109
109
|
DropdownMenuSubContent: {};
|
|
110
110
|
DropdownMenuSubTrigger: {};
|
|
111
111
|
DropdownMenuTrigger: {};
|
|
112
|
+
Empty: {};
|
|
113
|
+
EmptyContent: {};
|
|
114
|
+
EmptyDescription: {};
|
|
115
|
+
EmptyHeader: {};
|
|
116
|
+
EmptyMedia: {};
|
|
117
|
+
emptyMediaVariants: {};
|
|
118
|
+
EmptyTitle: {};
|
|
112
119
|
ErrorableLoader: {};
|
|
113
120
|
ErrorDisplay: {};
|
|
114
121
|
Field: {};
|
|
@@ -358,6 +365,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
358
365
|
DropdownMenuSubContent: {};
|
|
359
366
|
DropdownMenuSubTrigger: {};
|
|
360
367
|
DropdownMenuTrigger: {};
|
|
368
|
+
Empty: {};
|
|
369
|
+
EmptyContent: {};
|
|
370
|
+
EmptyDescription: {};
|
|
371
|
+
EmptyHeader: {};
|
|
372
|
+
EmptyMedia: {};
|
|
373
|
+
emptyMediaVariants: {};
|
|
374
|
+
EmptyTitle: {};
|
|
361
375
|
ErrorableLoader: {};
|
|
362
376
|
ErrorDisplay: {};
|
|
363
377
|
Field: {};
|
|
@@ -108,6 +108,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
108
108
|
DropdownMenuSubContent: {};
|
|
109
109
|
DropdownMenuSubTrigger: {};
|
|
110
110
|
DropdownMenuTrigger: {};
|
|
111
|
+
Empty: {};
|
|
112
|
+
EmptyContent: {};
|
|
113
|
+
EmptyDescription: {};
|
|
114
|
+
EmptyHeader: {};
|
|
115
|
+
EmptyMedia: {};
|
|
116
|
+
emptyMediaVariants: {};
|
|
117
|
+
EmptyTitle: {};
|
|
111
118
|
ErrorableLoader: {};
|
|
112
119
|
ErrorDisplay: {};
|
|
113
120
|
Field: {};
|
|
@@ -98,6 +98,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
98
98
|
DropdownMenuSubContent: {};
|
|
99
99
|
DropdownMenuSubTrigger: {};
|
|
100
100
|
DropdownMenuTrigger: {};
|
|
101
|
+
Empty: {};
|
|
102
|
+
EmptyContent: {};
|
|
103
|
+
EmptyDescription: {};
|
|
104
|
+
EmptyHeader: {};
|
|
105
|
+
EmptyMedia: {};
|
|
106
|
+
emptyMediaVariants: {};
|
|
107
|
+
EmptyTitle: {};
|
|
101
108
|
ErrorableLoader: {};
|
|
102
109
|
ErrorDisplay: {};
|
|
103
110
|
Field: {};
|
|
@@ -110,6 +110,13 @@ export declare const adminCrudResetPasswordActionGenerator: import("@baseplate-d
|
|
|
110
110
|
DropdownMenuSubContent: {};
|
|
111
111
|
DropdownMenuSubTrigger: {};
|
|
112
112
|
DropdownMenuTrigger: {};
|
|
113
|
+
Empty: {};
|
|
114
|
+
EmptyContent: {};
|
|
115
|
+
EmptyDescription: {};
|
|
116
|
+
EmptyHeader: {};
|
|
117
|
+
EmptyMedia: {};
|
|
118
|
+
emptyMediaVariants: {};
|
|
119
|
+
EmptyTitle: {};
|
|
113
120
|
ErrorableLoader: {};
|
|
114
121
|
ErrorDisplay: {};
|
|
115
122
|
Field: {};
|
|
@@ -348,6 +355,13 @@ export declare const adminCrudResetPasswordActionGenerator: import("@baseplate-d
|
|
|
348
355
|
DropdownMenuSubContent: {};
|
|
349
356
|
DropdownMenuSubTrigger: {};
|
|
350
357
|
DropdownMenuTrigger: {};
|
|
358
|
+
Empty: {};
|
|
359
|
+
EmptyContent: {};
|
|
360
|
+
EmptyDescription: {};
|
|
361
|
+
EmptyHeader: {};
|
|
362
|
+
EmptyMedia: {};
|
|
363
|
+
emptyMediaVariants: {};
|
|
364
|
+
EmptyTitle: {};
|
|
351
365
|
ErrorableLoader: {};
|
|
352
366
|
ErrorDisplay: {};
|
|
353
367
|
Field: {};
|
package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts
CHANGED
|
@@ -109,6 +109,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
|
|
|
109
109
|
DropdownMenuSubContent: {};
|
|
110
110
|
DropdownMenuSubTrigger: {};
|
|
111
111
|
DropdownMenuTrigger: {};
|
|
112
|
+
Empty: {};
|
|
113
|
+
EmptyContent: {};
|
|
114
|
+
EmptyDescription: {};
|
|
115
|
+
EmptyHeader: {};
|
|
116
|
+
EmptyMedia: {};
|
|
117
|
+
emptyMediaVariants: {};
|
|
118
|
+
EmptyTitle: {};
|
|
112
119
|
ErrorableLoader: {};
|
|
113
120
|
ErrorDisplay: {};
|
|
114
121
|
Field: {};
|
|
@@ -357,6 +364,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
|
|
|
357
364
|
DropdownMenuSubContent: {};
|
|
358
365
|
DropdownMenuSubTrigger: {};
|
|
359
366
|
DropdownMenuTrigger: {};
|
|
367
|
+
Empty: {};
|
|
368
|
+
EmptyContent: {};
|
|
369
|
+
EmptyDescription: {};
|
|
370
|
+
EmptyHeader: {};
|
|
371
|
+
EmptyMedia: {};
|
|
372
|
+
emptyMediaVariants: {};
|
|
373
|
+
EmptyTitle: {};
|
|
360
374
|
ErrorableLoader: {};
|
|
361
375
|
ErrorDisplay: {};
|
|
362
376
|
Field: {};
|
|
@@ -108,6 +108,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
|
|
|
108
108
|
DropdownMenuSubContent: {};
|
|
109
109
|
DropdownMenuSubTrigger: {};
|
|
110
110
|
DropdownMenuTrigger: {};
|
|
111
|
+
Empty: {};
|
|
112
|
+
EmptyContent: {};
|
|
113
|
+
EmptyDescription: {};
|
|
114
|
+
EmptyHeader: {};
|
|
115
|
+
EmptyMedia: {};
|
|
116
|
+
emptyMediaVariants: {};
|
|
117
|
+
EmptyTitle: {};
|
|
111
118
|
ErrorableLoader: {};
|
|
112
119
|
ErrorDisplay: {};
|
|
113
120
|
Field: {};
|
|
@@ -96,6 +96,13 @@ export declare const mainGroup: {
|
|
|
96
96
|
DropdownMenuSubContent: {};
|
|
97
97
|
DropdownMenuSubTrigger: {};
|
|
98
98
|
DropdownMenuTrigger: {};
|
|
99
|
+
Empty: {};
|
|
100
|
+
EmptyContent: {};
|
|
101
|
+
EmptyDescription: {};
|
|
102
|
+
EmptyHeader: {};
|
|
103
|
+
EmptyMedia: {};
|
|
104
|
+
emptyMediaVariants: {};
|
|
105
|
+
EmptyTitle: {};
|
|
99
106
|
ErrorableLoader: {};
|
|
100
107
|
ErrorDisplay: {};
|
|
101
108
|
Field: {};
|
|
@@ -343,6 +350,13 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
|
|
|
343
350
|
DropdownMenuSubContent: {};
|
|
344
351
|
DropdownMenuSubTrigger: {};
|
|
345
352
|
DropdownMenuTrigger: {};
|
|
353
|
+
Empty: {};
|
|
354
|
+
EmptyContent: {};
|
|
355
|
+
EmptyDescription: {};
|
|
356
|
+
EmptyHeader: {};
|
|
357
|
+
EmptyMedia: {};
|
|
358
|
+
emptyMediaVariants: {};
|
|
359
|
+
EmptyTitle: {};
|
|
346
360
|
ErrorableLoader: {};
|
|
347
361
|
ErrorDisplay: {};
|
|
348
362
|
Field: {};
|
|
@@ -93,6 +93,13 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
|
|
|
93
93
|
DropdownMenuSubContent: {};
|
|
94
94
|
DropdownMenuSubTrigger: {};
|
|
95
95
|
DropdownMenuTrigger: {};
|
|
96
|
+
Empty: {};
|
|
97
|
+
EmptyContent: {};
|
|
98
|
+
EmptyDescription: {};
|
|
99
|
+
EmptyHeader: {};
|
|
100
|
+
EmptyMedia: {};
|
|
101
|
+
emptyMediaVariants: {};
|
|
102
|
+
EmptyTitle: {};
|
|
96
103
|
ErrorableLoader: {};
|
|
97
104
|
ErrorDisplay: {};
|
|
98
105
|
Field: {};
|
|
@@ -41,6 +41,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_ADMIN_MODULE_GENERATED: {
|
|
|
41
41
|
InternalServerError: {};
|
|
42
42
|
logError: {};
|
|
43
43
|
NotFoundError: {};
|
|
44
|
+
throwIfPrismaNotFound: {};
|
|
44
45
|
TooManyRequestsError: {};
|
|
45
46
|
UnauthorizedError: {};
|
|
46
47
|
}>>;
|
|
@@ -91,6 +92,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_ADMIN_MODULE_GENERATED: {
|
|
|
91
92
|
InternalServerError: {};
|
|
92
93
|
logError: {};
|
|
93
94
|
NotFoundError: {};
|
|
95
|
+
throwIfPrismaNotFound: {};
|
|
94
96
|
TooManyRequestsError: {};
|
|
95
97
|
UnauthorizedError: {};
|
|
96
98
|
}>>;
|
package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_GENERATED: {
|
|
|
25
25
|
};
|
|
26
26
|
EmailLayout: {};
|
|
27
27
|
Heading: {};
|
|
28
|
+
Link: {};
|
|
28
29
|
renderEmail: {};
|
|
29
30
|
Section: {};
|
|
30
31
|
Text: {};
|
|
@@ -47,6 +48,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_GENERATED: {
|
|
|
47
48
|
};
|
|
48
49
|
EmailLayout: {};
|
|
49
50
|
Heading: {};
|
|
51
|
+
Link: {};
|
|
50
52
|
renderEmail: {};
|
|
51
53
|
Section: {};
|
|
52
54
|
Text: {};
|
|
@@ -66,6 +68,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_GENERATED: {
|
|
|
66
68
|
};
|
|
67
69
|
EmailLayout: {};
|
|
68
70
|
Heading: {};
|
|
71
|
+
Link: {};
|
|
69
72
|
renderEmail: {};
|
|
70
73
|
Section: {};
|
|
71
74
|
Text: {};
|
|
@@ -85,6 +88,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_GENERATED: {
|
|
|
85
88
|
};
|
|
86
89
|
EmailLayout: {};
|
|
87
90
|
Heading: {};
|
|
91
|
+
Link: {};
|
|
88
92
|
renderEmail: {};
|
|
89
93
|
Section: {};
|
|
90
94
|
Text: {};
|
|
@@ -12,6 +12,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_TEMPLATES: {
|
|
|
12
12
|
};
|
|
13
13
|
EmailLayout: {};
|
|
14
14
|
Heading: {};
|
|
15
|
+
Link: {};
|
|
15
16
|
renderEmail: {};
|
|
16
17
|
Section: {};
|
|
17
18
|
Text: {};
|
|
@@ -31,6 +32,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_TEMPLATES: {
|
|
|
31
32
|
};
|
|
32
33
|
EmailLayout: {};
|
|
33
34
|
Heading: {};
|
|
35
|
+
Link: {};
|
|
34
36
|
renderEmail: {};
|
|
35
37
|
Section: {};
|
|
36
38
|
Text: {};
|
|
@@ -50,6 +52,7 @@ export declare const BETTER_AUTH_BETTER_AUTH_EMAIL_TEMPLATES_TEMPLATES: {
|
|
|
50
52
|
};
|
|
51
53
|
EmailLayout: {};
|
|
52
54
|
Heading: {};
|
|
55
|
+
Link: {};
|
|
53
56
|
renderEmail: {};
|
|
54
57
|
Section: {};
|
|
55
58
|
Text: {};
|
package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts
CHANGED
|
@@ -10,20 +10,33 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
|
|
|
10
10
|
}, undefined>;
|
|
11
11
|
imports: import("@baseplate-dev/sync").GeneratorTask<{
|
|
12
12
|
betterAuthModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
13
|
-
|
|
13
|
+
Auth: {
|
|
14
|
+
isTypeOnly: true;
|
|
15
|
+
};
|
|
16
|
+
AuthServiceDeps: {
|
|
17
|
+
isTypeOnly: true;
|
|
18
|
+
};
|
|
14
19
|
betterAuthPlugin: {};
|
|
20
|
+
buildAuth: {};
|
|
15
21
|
cookiePrefix: {};
|
|
22
|
+
createBetterAuthUserSessionService: {};
|
|
16
23
|
toWebHeaders: {};
|
|
17
24
|
}>>;
|
|
18
|
-
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
19
|
-
userSessionService: {};
|
|
20
|
-
}>>;
|
|
21
25
|
}, {
|
|
22
26
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").BetterAuthBetterAuthModulePaths>;
|
|
23
27
|
}, undefined>;
|
|
24
28
|
renderers: import("@baseplate-dev/sync").GeneratorTask<{
|
|
25
29
|
betterAuthBetterAuthModuleRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").BetterAuthBetterAuthModuleRenderers>;
|
|
26
30
|
}, {
|
|
31
|
+
appRuntimeImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
32
|
+
AppRuntime: {
|
|
33
|
+
isTypeOnly: true;
|
|
34
|
+
};
|
|
35
|
+
AppServices: {
|
|
36
|
+
isTypeOnly: true;
|
|
37
|
+
};
|
|
38
|
+
createAppRuntime: {};
|
|
39
|
+
}>>;
|
|
27
40
|
authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
28
41
|
AuthContext: {
|
|
29
42
|
isTypeOnly: true;
|
|
@@ -54,6 +67,8 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
|
|
|
54
67
|
config: {};
|
|
55
68
|
}>>;
|
|
56
69
|
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
70
|
+
createEmailService: {};
|
|
71
|
+
createEmailTransport: {};
|
|
57
72
|
EmailAdapter: {
|
|
58
73
|
isTypeOnly: true;
|
|
59
74
|
};
|
|
@@ -66,9 +81,14 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
|
|
|
66
81
|
EmailSendOptions: {
|
|
67
82
|
isTypeOnly: true;
|
|
68
83
|
};
|
|
69
|
-
|
|
84
|
+
EmailService: {
|
|
85
|
+
isTypeOnly: true;
|
|
86
|
+
};
|
|
87
|
+
EmailTransport: {
|
|
88
|
+
isTypeOnly: true;
|
|
89
|
+
};
|
|
70
90
|
sendEmailQueue: {};
|
|
71
|
-
|
|
91
|
+
sendEmailWorker: {};
|
|
72
92
|
TransformedEmailMessage: {
|
|
73
93
|
isTypeOnly: true;
|
|
74
94
|
};
|
|
@@ -102,6 +122,23 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
|
|
|
102
122
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").BetterAuthBetterAuthModulePaths>;
|
|
103
123
|
transactionalLibConfig: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/plugin-email").TransactionalLibConfigProvider>;
|
|
104
124
|
}, any>;
|
|
125
|
+
appRuntimeConfig: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
126
|
+
appRuntimeConfig: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
|
|
127
|
+
services: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/core-generators").TsCodeFragment>;
|
|
128
|
+
construction: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators").AppRuntimeConstructionEntry>;
|
|
129
|
+
flattenedModuleFields: import("@baseplate-dev/utils").MapContainer<string, string>;
|
|
130
|
+
usesBackgroundServices: import("@baseplate-dev/utils").ScalarContainer<boolean | undefined>;
|
|
131
|
+
}>, "getValues">>;
|
|
132
|
+
userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
133
|
+
UserSessionPayload: {
|
|
134
|
+
isTypeOnly: true;
|
|
135
|
+
};
|
|
136
|
+
UserSessionService: {
|
|
137
|
+
isTypeOnly: true;
|
|
138
|
+
};
|
|
139
|
+
}>>;
|
|
140
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").BetterAuthBetterAuthModulePaths>;
|
|
141
|
+
}, any>;
|
|
105
142
|
nodePackages: import("@baseplate-dev/sync").AnyGeneratorTask;
|
|
106
143
|
}>;
|
|
107
144
|
//# sourceMappingURL=better-auth-module.generator.d.ts.map
|
package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createNodePackagesTask, extractPackageVersions, tsCodeFragment, TsCodeUtils, tsImportBuilder, } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { appModuleProvider, configServiceProvider, prismaOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
1
|
+
import { createNodePackagesTask, extractPackageVersions, tsCodeFragment, TsCodeUtils, tsImportBuilder, tsTypeImportBuilder, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { appModuleProvider, appRuntimeConfigProvider, configServiceProvider, prismaOutputProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
3
|
import { transactionalLibConfigProvider } from '@baseplate-dev/plugin-email';
|
|
4
4
|
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -78,6 +78,25 @@ export const betterAuthModuleGenerator = createGenerator({
|
|
|
78
78
|
};
|
|
79
79
|
},
|
|
80
80
|
}),
|
|
81
|
+
appRuntimeConfig: createGeneratorTask({
|
|
82
|
+
dependencies: {
|
|
83
|
+
appRuntimeConfig: appRuntimeConfigProvider,
|
|
84
|
+
userSessionTypesImports: userSessionTypesImportsProvider,
|
|
85
|
+
paths: BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED.paths.provider,
|
|
86
|
+
},
|
|
87
|
+
run({ appRuntimeConfig, userSessionTypesImports, paths }) {
|
|
88
|
+
appRuntimeConfig.services.set('betterAuth', tsCodeFragment('Auth', tsTypeImportBuilder(['Auth']).from(paths.auth)));
|
|
89
|
+
appRuntimeConfig.services.set('userSession', userSessionTypesImports.UserSessionService.typeFragment());
|
|
90
|
+
appRuntimeConfig.construction.set('betterAuth', {
|
|
91
|
+
dependencies: ['email'],
|
|
92
|
+
fragment: TsCodeUtils.template `${TsCodeUtils.importFragment('buildAuth', paths.auth)}({ email })`,
|
|
93
|
+
});
|
|
94
|
+
appRuntimeConfig.construction.set('userSession', {
|
|
95
|
+
dependencies: ['betterAuth'],
|
|
96
|
+
fragment: TsCodeUtils.template `${TsCodeUtils.importFragment('createBetterAuthUserSessionService', paths.userSessionService)}(betterAuth)`,
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
81
100
|
nodePackages: createNodePackagesTask({
|
|
82
101
|
prod: extractPackageVersions(BETTER_AUTH_PACKAGES, ['better-auth']),
|
|
83
102
|
}),
|
|
@@ -2,14 +2,18 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
2
2
|
imports: {
|
|
3
3
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
4
|
betterAuthModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
|
-
|
|
5
|
+
Auth: {
|
|
6
|
+
isTypeOnly: true;
|
|
7
|
+
};
|
|
8
|
+
AuthServiceDeps: {
|
|
9
|
+
isTypeOnly: true;
|
|
10
|
+
};
|
|
6
11
|
betterAuthPlugin: {};
|
|
12
|
+
buildAuth: {};
|
|
7
13
|
cookiePrefix: {};
|
|
14
|
+
createBetterAuthUserSessionService: {};
|
|
8
15
|
toWebHeaders: {};
|
|
9
16
|
}>>;
|
|
10
|
-
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
11
|
-
userSessionService: {};
|
|
12
|
-
}>>;
|
|
13
17
|
}, {
|
|
14
18
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").BetterAuthBetterAuthModulePaths>;
|
|
15
19
|
}, undefined>;
|
|
@@ -27,6 +31,15 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
27
31
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
28
32
|
betterAuthBetterAuthModuleRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").BetterAuthBetterAuthModuleRenderers>;
|
|
29
33
|
}, {
|
|
34
|
+
appRuntimeImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
35
|
+
AppRuntime: {
|
|
36
|
+
isTypeOnly: true;
|
|
37
|
+
};
|
|
38
|
+
AppServices: {
|
|
39
|
+
isTypeOnly: true;
|
|
40
|
+
};
|
|
41
|
+
createAppRuntime: {};
|
|
42
|
+
}>>;
|
|
30
43
|
authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
31
44
|
AuthContext: {
|
|
32
45
|
isTypeOnly: true;
|
|
@@ -57,6 +70,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
57
70
|
config: {};
|
|
58
71
|
}>>;
|
|
59
72
|
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
73
|
+
createEmailService: {};
|
|
74
|
+
createEmailTransport: {};
|
|
60
75
|
EmailAdapter: {
|
|
61
76
|
isTypeOnly: true;
|
|
62
77
|
};
|
|
@@ -69,9 +84,14 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
69
84
|
EmailSendOptions: {
|
|
70
85
|
isTypeOnly: true;
|
|
71
86
|
};
|
|
72
|
-
|
|
87
|
+
EmailService: {
|
|
88
|
+
isTypeOnly: true;
|
|
89
|
+
};
|
|
90
|
+
EmailTransport: {
|
|
91
|
+
isTypeOnly: true;
|
|
92
|
+
};
|
|
73
93
|
sendEmailQueue: {};
|
|
74
|
-
|
|
94
|
+
sendEmailWorker: {};
|
|
75
95
|
TransformedEmailMessage: {
|
|
76
96
|
isTypeOnly: true;
|
|
77
97
|
};
|
|
@@ -115,6 +135,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
115
135
|
config: {};
|
|
116
136
|
}>>;
|
|
117
137
|
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
138
|
+
createEmailService: {};
|
|
139
|
+
createEmailTransport: {};
|
|
118
140
|
EmailAdapter: {
|
|
119
141
|
isTypeOnly: true;
|
|
120
142
|
};
|
|
@@ -127,9 +149,14 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
127
149
|
EmailSendOptions: {
|
|
128
150
|
isTypeOnly: true;
|
|
129
151
|
};
|
|
130
|
-
|
|
152
|
+
EmailService: {
|
|
153
|
+
isTypeOnly: true;
|
|
154
|
+
};
|
|
155
|
+
EmailTransport: {
|
|
156
|
+
isTypeOnly: true;
|
|
157
|
+
};
|
|
131
158
|
sendEmailQueue: {};
|
|
132
|
-
|
|
159
|
+
sendEmailWorker: {};
|
|
133
160
|
TransformedEmailMessage: {
|
|
134
161
|
isTypeOnly: true;
|
|
135
162
|
};
|
|
@@ -138,8 +165,17 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
|
|
|
138
165
|
prisma: {};
|
|
139
166
|
}>>;
|
|
140
167
|
}, Record<never, Record<never, never>>>;
|
|
141
|
-
betterAuthPlugin: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
142
|
-
|
|
168
|
+
betterAuthPlugin: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
169
|
+
appRuntimeImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
170
|
+
AppRuntime: {
|
|
171
|
+
isTypeOnly: true;
|
|
172
|
+
};
|
|
173
|
+
AppServices: {
|
|
174
|
+
isTypeOnly: true;
|
|
175
|
+
};
|
|
176
|
+
createAppRuntime: {};
|
|
177
|
+
}>>;
|
|
178
|
+
}, {
|
|
143
179
|
headersUtils: {};
|
|
144
180
|
}>;
|
|
145
181
|
headersUtils: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|