@baseplate-dev/plugin-auth 1.0.7 → 1.0.8
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 +258 -8
- package/dist/auth/core/common.js +2 -3
- package/dist/auth/core/components/auth-definition-editor.js +9 -2
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +2 -0
- package/dist/auth/core/node.js +1 -0
- package/dist/auth/core/schema/migrations.d.ts +3 -0
- package/dist/auth/core/schema/migrations.js +54 -0
- package/dist/auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/auth/core/schema/plugin-definition.js +4 -0
- package/dist/auth/core/schema/roles/constants.js +9 -0
- package/dist/auth/core/schema/roles/schema.d.ts +8 -0
- package/dist/auth/core/schema/roles/schema.js +1 -0
- package/dist/auth/core/web.js +31 -2
- package/dist/better-auth/admin/common.d.ts +5 -0
- package/dist/better-auth/admin/common.js +29 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +123 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +114 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/better-auth/admin/node.d.ts +5 -0
- package/dist/better-auth/admin/node.js +57 -0
- package/dist/better-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/better-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/better-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/better-auth/admin/schema/roles-column.js +6 -0
- package/dist/better-auth/admin/web.d.ts +5 -0
- package/dist/better-auth/admin/web.js +39 -0
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/core/common.js +5 -2
- package/dist/better-auth/core/components/better-auth-definition-editor.js +17 -5
- package/dist/better-auth/core/node.js +21 -4
- package/dist/better-auth/core/schema/models.d.ts +1 -1
- package/dist/better-auth/core/schema/models.js +25 -10
- package/dist/better-auth/core/schema/plugin-definition.d.ts +4 -1
- package/dist/better-auth/core/schema/plugin-definition.js +7 -2
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/better-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/better-auth/core/web.js +15 -2
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +73 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js +56 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +111 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js +11 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +56 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js +57 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +21 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +30 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +47 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js +33 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/schema/admin-auth.mutations.ts +48 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/services/admin-auth.service.ts +106 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +44 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js +48 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +100 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js +9 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts +14 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js +26 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +42 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js +59 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +63 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js +42 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js +2 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +75 -9
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +38 -4
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +100 -8
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +44 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +9 -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 +48 -3
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +17 -6
- 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 +86 -41
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +58 -46
- package/dist/better-auth/generators/fastify/index.d.ts +3 -0
- package/dist/better-auth/generators/fastify/index.js +3 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts +66 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js +9 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts +38 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js +43 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts +27 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js +18 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js +2 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts +49 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +64 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +64 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +26 -15
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +812 -44
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +3 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +3 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +26 -15
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +1600 -86
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +49 -1
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +133 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +9 -1
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +5 -1
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/reset-password.tsx +177 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/verify-email.tsx +109 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +52 -30
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +26 -15
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +26 -15
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +26 -15
- package/dist/better-auth/plugin.json +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +52 -30
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +52 -30
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +26 -15
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +26 -15
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -3
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +52 -30
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +52 -30
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +26 -15
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +52 -30
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +26 -15
- package/dist/local-auth/admin/node.js +1 -1
- package/dist/local-auth/core/common.js +5 -2
- package/dist/local-auth/core/components/local-auth-definition-editor.js +9 -5
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +10 -24
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +7 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +38 -70
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +9 -24
- 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 +49 -71
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +6 -7
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +2 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +2 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +5 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +5 -1
- 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 +4 -4
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +10 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +4 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +10 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +16 -7
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +11 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +33 -14
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +49 -21
- 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 +71 -9
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +23 -11
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +190 -13
- 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 +61 -3
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +15 -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 +144 -11
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +20 -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-roles.service.js +8 -3
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +11 -4
- 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 +18 -17
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +18 -18
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +6 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +6 -6
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +32 -16
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +37 -4
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +172 -94
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +28 -15
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +260 -143
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +19 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +23 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -11
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +7 -11
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +7 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +13 -4
- 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 +52 -30
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +26 -15
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +52 -30
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +26 -15
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -9
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/index.js +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +2 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -1
- package/dist/local-auth/core/node.js +12 -5
- package/dist/local-auth/core/schema/models.d.ts +1 -1
- package/dist/local-auth/core/schema/models.js +25 -10
- package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
- package/dist/local-auth/core/schema/plugin-definition.js +2 -5
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/local-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/local-auth/core/web.js +15 -2
- package/dist/local-auth/plugin.json +6 -1
- 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} +18 -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/placeholder-auth/core/schema/models.js +17 -2
- package/dist/placeholder-auth/core/web.js +13 -2
- package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DdyPR8Y-.js +242 -0
- 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-BfSk5vRC.js +384 -0
- 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-DZIcwf2B.js +125 -0
- 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-CXGct_48.js +80678 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js +7380 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js +13567 -0
- package/dist/web/assets/arduino-BP2nYunF.js +21 -0
- package/dist/web/assets/auth-8qJtXAgU.js +1 -0
- package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
- package/dist/web/assets/basic-3mvohyEL.js +28 -0
- package/dist/web/assets/c-C7Ey31hW.js +74 -0
- package/dist/web/assets/clike-D9YNFwtw.js +41 -0
- package/dist/web/assets/common-23-wvKrM.js +39 -0
- package/dist/web/assets/common-B-NI9TR-.js +37 -0
- package/dist/web/assets/common-BBriDRRy.js +63 -0
- package/dist/web/assets/common-BvU-7KsV.js +39 -0
- package/dist/web/assets/common-DBBUvtGu.js +37 -0
- package/dist/web/assets/common-eFh2vwGb.js +18 -0
- package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
- package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
- package/dist/web/assets/css-D7TbgetL.js +70 -0
- package/dist/web/assets/diff-CtSa_15w.js +54 -0
- package/dist/web/assets/dist-BjxypexQ.js +18953 -0
- package/dist/web/assets/dist-SBfmsOB2.js +3576 -0
- package/dist/web/assets/get-auth-plugin-definition-x8oAsN1R.js +14 -0
- package/dist/web/assets/go-CzER04EZ.js +36 -0
- package/dist/web/assets/hostInit-oh7k6PLP.js +99 -0
- package/dist/web/assets/index-D-gGyBWJ.js +2 -0
- package/dist/web/assets/ini-CU-wHLTy.js +51 -0
- package/dist/web/assets/java-HAvRESj1.js +116 -0
- package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
- package/dist/web/assets/json-DN8T4yFI.js +38 -0
- package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
- package/dist/web/assets/less-ZXX1tgaG.js +42 -0
- package/dist/web/assets/lua-D9bD4wrb.js +28 -0
- package/dist/web/assets/makefile-CKoRpler.js +40 -0
- package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
- package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
- package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
- package/dist/web/assets/mf-entry-bootstrap-0-f953ebce.js +35 -0
- package/dist/web/assets/model-names-BluImOzu.js +27 -0
- package/dist/web/assets/model-names-CUS5rSei.js +12 -0
- package/dist/web/assets/model-utils-dNFTOjqi.js +1599 -0
- package/dist/web/assets/models-BpslIbU7.js +304 -0
- package/dist/web/assets/models-CKab4MTC.js +285 -0
- package/dist/web/assets/objectivec-DPgB68It.js +25 -0
- package/dist/web/assets/perl-Cul_ma_h.js +92 -0
- package/dist/web/assets/php-JTON0zp9.js +298 -0
- package/dist/web/assets/plugin-definition-8Exesd6T.js +78 -0
- package/dist/web/assets/plugin-definition-ChBrbazJ.js +11 -0
- package/dist/web/assets/python-CURlmZ7M.js +73 -0
- package/dist/web/assets/r-8lr7pbGm.js +30 -0
- package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
- package/dist/web/assets/rolldown-runtime-FZ4Itg2g.js +42 -0
- package/dist/web/assets/ruby-BoFHz67P.js +175 -0
- package/dist/web/assets/rust-CpZXpaj0.js +107 -0
- package/dist/web/assets/sass-DG0YAnL7.js +65 -0
- package/dist/web/assets/scss-BDRIqhak.js +70 -0
- package/dist/web/assets/sql-C-bL8_gT.js +40 -0
- package/dist/web/assets/{style-DiK_rD1L.css → styles-Cc26Bbxc.css} +1 -1
- package/dist/web/assets/styles-Cuq4wgvD.js +176 -0
- package/dist/web/assets/swift-rQ52kfab.js +107 -0
- package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
- package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
- package/dist/web/assets/virtualExposes-BwIds34r.js +2 -0
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-RJNeuwba.js +259 -0
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js +129 -0
- package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js +203 -0
- package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
- package/dist/web/assets/web-BZd3bM0n.js +410 -0
- package/dist/web/assets/web-BgWG7dYl.js +123 -0
- package/dist/web/assets/web-CXHw8SK7.js +118 -0
- package/dist/web/assets/web-CnB-sqCR.js +357 -0
- package/dist/web/assets/web-DHv2aVpi.js +106 -0
- package/dist/web/assets/web-DNrWXjpS.js +46 -0
- package/dist/web/assets/web-D_H-MoGI.js +46 -0
- package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
- package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +2 -0
- package/dist/web/remoteEntry.ssr.js +43 -0
- package/package.json +42 -42
- package/dist/auth/core/common.d.ts.map +0 -1
- package/dist/auth/core/common.js.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/auth/core/node.d.ts.map +0 -1
- package/dist/auth/core/node.js.map +0 -1
- package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/constants.js.map +0 -1
- package/dist/auth/core/schema/roles/index.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/index.js.map +0 -1
- package/dist/auth/core/schema/roles/schema.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/schema.js.map +0 -1
- package/dist/auth/core/web.d.ts.map +0 -1
- package/dist/auth/core/web.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.js.map +0 -1
- package/dist/auth/utils/index.d.ts.map +0 -1
- package/dist/auth/utils/index.js.map +0 -1
- package/dist/better-auth/constants/model-names.d.ts.map +0 -1
- package/dist/better-auth/constants/model-names.js.map +0 -1
- package/dist/better-auth/constants/packages.d.ts.map +0 -1
- package/dist/better-auth/constants/packages.js.map +0 -1
- package/dist/better-auth/core/common.d.ts.map +0 -1
- package/dist/better-auth/core/common.js.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +0 -1
- package/dist/better-auth/core/index.d.ts.map +0 -1
- package/dist/better-auth/core/index.js.map +0 -1
- package/dist/better-auth/core/node.d.ts.map +0 -1
- package/dist/better-auth/core/node.js.map +0 -1
- package/dist/better-auth/core/schema/models.d.ts.map +0 -1
- package/dist/better-auth/core/schema/models.js.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/better-auth/core/web.d.ts.map +0 -1
- package/dist/better-auth/core/web.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/index.js.map +0 -1
- package/dist/better-auth/generators/index.d.ts.map +0 -1
- package/dist/better-auth/generators/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +0 -1
- package/dist/better-auth/generators/react/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +0 -1
- package/dist/better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/index.js.map +0 -1
- package/dist/common/components/auth-config-tabs.d.ts.map +0 -1
- package/dist/common/components/auth-config-tabs.js.map +0 -1
- package/dist/local-auth/admin/common.d.ts.map +0 -1
- package/dist/local-auth/admin/common.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
- package/dist/local-auth/admin/node.d.ts.map +0 -1
- package/dist/local-auth/admin/node.js.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.js.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.js.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.js.map +0 -1
- package/dist/local-auth/admin/web.d.ts.map +0 -1
- package/dist/local-auth/admin/web.js.map +0 -1
- package/dist/local-auth/constants/model-names.d.ts.map +0 -1
- package/dist/local-auth/constants/model-names.js.map +0 -1
- package/dist/local-auth/core/common.d.ts.map +0 -1
- package/dist/local-auth/core/common.js.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +0 -1
- package/dist/local-auth/core/generators/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +0 -18
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +0 -26
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +0 -1
- package/dist/local-auth/core/index.d.ts.map +0 -1
- package/dist/local-auth/core/index.js.map +0 -1
- package/dist/local-auth/core/node.d.ts.map +0 -1
- package/dist/local-auth/core/node.js.map +0 -1
- package/dist/local-auth/core/schema/models.d.ts.map +0 -1
- package/dist/local-auth/core/schema/models.js.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/local-auth/core/web.d.ts.map +0 -1
- package/dist/local-auth/core/web.js.map +0 -1
- package/dist/local-auth/index.d.ts.map +0 -1
- package/dist/local-auth/index.js.map +0 -1
- package/dist/placeholder-auth/constants/model-names.d.ts.map +0 -1
- package/dist/placeholder-auth/constants/model-names.js.map +0 -1
- package/dist/placeholder-auth/core/common.d.ts.map +0 -1
- package/dist/placeholder-auth/core/common.js.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
- package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
- package/dist/placeholder-auth/core/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/index.js.map +0 -1
- package/dist/placeholder-auth/core/node.d.ts.map +0 -1
- package/dist/placeholder-auth/core/node.js.map +0 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/models.js.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/placeholder-auth/core/web.d.ts.map +0 -1
- package/dist/placeholder-auth/core/web.js.map +0 -1
- package/dist/placeholder-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/index.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js +0 -30
- package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js +0 -433
- package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js +0 -20
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js +0 -402
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js +0 -63
- package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js +0 -41
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js +0 -21
- package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js +0 -432
- package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js +0 -23
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js +0 -162
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-3DENgil8.js +0 -421
- package/dist/web/assets/__federation_fn_import-3DENgil8.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js +0 -357
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js +0 -21478
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js +0 -73599
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js +0 -1822
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js +0 -6565
- package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +0 -8
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +0 -251
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +0 -13250
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +0 -1
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +0 -6
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js +0 -13
- package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js.map +0 -1
- package/dist/web/assets/index-DQKNnI1w.js +0 -103
- package/dist/web/assets/index-DQKNnI1w.js.map +0 -1
- package/dist/web/assets/index-DUwCgkeV.js +0 -570
- package/dist/web/assets/index-DUwCgkeV.js.map +0 -1
- package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
- package/dist/web/assets/index.esm-Dpqxgpya.js +0 -2676
- package/dist/web/assets/index.esm-Dpqxgpya.js.map +0 -1
- package/dist/web/assets/isEqual-tnzoadW8.js +0 -242
- package/dist/web/assets/isEqual-tnzoadW8.js.map +0 -1
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +0 -60
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +0 -1
- package/dist/web/assets/mergeWith-VagwCqUi.js +0 -76
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +0 -1
- package/dist/web/assets/model-names-DrcaRxt1.js +0 -25
- package/dist/web/assets/model-names-DrcaRxt1.js.map +0 -1
- package/dist/web/assets/model-utils-BFX3c3dn.js +0 -694
- package/dist/web/assets/model-utils-BFX3c3dn.js.map +0 -1
- package/dist/web/assets/plugin-definition-B86WQ7Ni.js +0 -79
- package/dist/web/assets/plugin-definition-B86WQ7Ni.js.map +0 -1
- package/dist/web/assets/plugin-definition-CEQb6mWV.js +0 -20
- package/dist/web/assets/plugin-definition-CEQb6mWV.js.map +0 -1
- package/dist/web/assets/plugin-definition-DrsKbcJc.js +0 -31
- package/dist/web/assets/plugin-definition-DrsKbcJc.js.map +0 -1
- package/dist/web/assets/plugin-definition-KEpaSB6p.js +0 -16
- package/dist/web/assets/plugin-definition-KEpaSB6p.js.map +0 -1
- package/dist/web/assets/react-hu8Hx0R4.js +0 -47
- package/dist/web/assets/react-hu8Hx0R4.js.map +0 -1
- package/dist/web/assets/registries-Tz_dluz3.js +0 -1119
- package/dist/web/assets/registries-Tz_dluz3.js.map +0 -1
- package/dist/web/assets/remoteEntry.js +0 -78
- package/dist/web/assets/remoteEntry.js.map +0 -1
- package/dist/web/assets/styles-CpKtlIgU.js +0 -69
- package/dist/web/assets/styles-CpKtlIgU.js.map +0 -1
- package/dist/web/assets/with-selector-DTXBONcE.js +0 -201
- package/dist/web/assets/with-selector-DTXBONcE.js.map +0 -1
|
@@ -1,694 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-3DENgil8.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a plugin spec with init and use phases.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const mySpec = createPluginSpec('core/my-spec', {
|
|
9
|
-
* initializer: () => {
|
|
10
|
-
* const items = new Map<string, Item>();
|
|
11
|
-
* return {
|
|
12
|
-
* init: {
|
|
13
|
-
* register: (item: Item) => items.set(item.name, item),
|
|
14
|
-
* },
|
|
15
|
-
* use: () => ({
|
|
16
|
-
* get: (name: string) => items.get(name),
|
|
17
|
-
* getAll: () => [...items.values()],
|
|
18
|
-
* }),
|
|
19
|
-
* };
|
|
20
|
-
* },
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @param name - Unique identifier for the spec (e.g., 'core/my-spec')
|
|
25
|
-
* @param options - Options including the initializer function
|
|
26
|
-
* @returns A plugin spec that can be used with SpecStore
|
|
27
|
-
*/
|
|
28
|
-
function createPluginSpec(name, options) {
|
|
29
|
-
const { initializer } = options;
|
|
30
|
-
return {
|
|
31
|
-
type: 'plugin-spec',
|
|
32
|
-
name,
|
|
33
|
-
initializer,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Plugin context module for tracking the current plugin being initialized.
|
|
39
|
-
*
|
|
40
|
-
* Uses a simple synchronous context that works on both Node and browser platforms.
|
|
41
|
-
* This is safe because plugin initialization is synchronous and single-threaded.
|
|
42
|
-
*/
|
|
43
|
-
// Simple synchronous context - works on both Node and browser
|
|
44
|
-
// Safe because plugin initialization is synchronous and single-threaded
|
|
45
|
-
let currentPluginContext;
|
|
46
|
-
/**
|
|
47
|
-
* Runs a function within a plugin context.
|
|
48
|
-
*
|
|
49
|
-
* This sets the current plugin context for the duration of the function execution,
|
|
50
|
-
* allowing nested functions to access the plugin key via `getPluginContext()`.
|
|
51
|
-
*
|
|
52
|
-
* @param context - The plugin context to set
|
|
53
|
-
* @param fn - The function to run within the context
|
|
54
|
-
* @returns The result of the function
|
|
55
|
-
*/
|
|
56
|
-
function runInPluginContext(context, fn) {
|
|
57
|
-
const prev = currentPluginContext;
|
|
58
|
-
currentPluginContext = context;
|
|
59
|
-
try {
|
|
60
|
-
return fn();
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
currentPluginContext = prev;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Gets the current plugin context if one exists.
|
|
68
|
-
*
|
|
69
|
-
* @returns The current plugin context, or undefined if not in a plugin context
|
|
70
|
-
*/
|
|
71
|
-
function getPluginContext() {
|
|
72
|
-
return currentPluginContext;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const {createFieldMap} = await importShared('@baseplate-dev/utils');
|
|
76
|
-
/**
|
|
77
|
-
* Creates a field map that automatically tracks which plugin registered each value.
|
|
78
|
-
*
|
|
79
|
-
* Similar to `createConfigFieldMap` in the sync package, this utility uses the
|
|
80
|
-
* current plugin context to track the source of registrations. This enables
|
|
81
|
-
* clear error messages when registration conflicts occur.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```typescript
|
|
85
|
-
* const fieldMap = createPluginFieldMap((t) => ({
|
|
86
|
-
* transformers: t.map<string, Transformer>(),
|
|
87
|
-
* }));
|
|
88
|
-
*
|
|
89
|
-
* // When a plugin tries to overwrite a value:
|
|
90
|
-
* // Error: Value for key 'myTransformer' has already been set by plugin-auth
|
|
91
|
-
* // and cannot be overwritten by plugin-storage
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @param schemaBuilder - A function that builds the field map schema
|
|
95
|
-
* @returns A field map with automatic source tracking
|
|
96
|
-
*/
|
|
97
|
-
function createPluginFieldMap(schemaBuilder) {
|
|
98
|
-
return createFieldMap(schemaBuilder, {
|
|
99
|
-
getDynamicSource: () => getPluginContext()?.pluginKey,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Creates a plugin spec backed by a FieldMap for automatic source tracking.
|
|
105
|
-
*
|
|
106
|
-
* @param name - Unique identifier for the spec
|
|
107
|
-
* @param schemaBuilder - Function that builds the field map schema
|
|
108
|
-
* @param options - Optional configuration including custom use interface
|
|
109
|
-
*/
|
|
110
|
-
function createFieldMapSpec(name, schemaBuilder, options) {
|
|
111
|
-
return createPluginSpec(name, {
|
|
112
|
-
initializer: () => {
|
|
113
|
-
const fieldMap = createPluginFieldMap(schemaBuilder);
|
|
114
|
-
return {
|
|
115
|
-
init: fieldMap,
|
|
116
|
-
use: () => {
|
|
117
|
-
const values = fieldMap.getValues();
|
|
118
|
-
if (options?.use) {
|
|
119
|
-
return options.use(values);
|
|
120
|
-
}
|
|
121
|
-
return values;
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
},
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Global registry that stores Baseplate metadata on Zod schema instances.
|
|
130
|
-
*
|
|
131
|
-
* Uses a plain WeakMap to avoid Zod's `$replace<Meta, S>` type substitution
|
|
132
|
-
* which causes "type instantiation excessively deep" errors with complex unions.
|
|
133
|
-
*
|
|
134
|
-
* Stores an array of metadata per schema to support schemas that carry multiple
|
|
135
|
-
* annotations (e.g. a schema that is both an `entity` and a `ref-context`).
|
|
136
|
-
*
|
|
137
|
-
* Used by `withEnt`, `withRef`, `withExpression`, and `refContext` to attach
|
|
138
|
-
* metadata to schema nodes. The parallel schema+data walker reads this registry
|
|
139
|
-
* to extract entity/reference/expression information after validation.
|
|
140
|
-
*/
|
|
141
|
-
const definitionRefRegistry = (() => {
|
|
142
|
-
const map = new WeakMap();
|
|
143
|
-
return {
|
|
144
|
-
add(schema, meta) {
|
|
145
|
-
const existing = map.get(schema);
|
|
146
|
-
if (existing) {
|
|
147
|
-
if ((meta.kind === 'entity' || meta.kind === 'reference') &&
|
|
148
|
-
existing.some((e) => e.kind === meta.kind && e.type === meta.type)) {
|
|
149
|
-
throw new Error(`Duplicate definition ref metadata kind "${meta.kind}" for type "${meta.type.name}" on the same schema instance. ` +
|
|
150
|
-
`This usually means a shared/module-level schema was passed to withEnt/withRef multiple times. ` +
|
|
151
|
-
`Create a fresh schema instance instead.`);
|
|
152
|
-
}
|
|
153
|
-
existing.push(meta);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
map.set(schema, [meta]);
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
getAll(schema) {
|
|
160
|
-
return map.get(schema) ?? [];
|
|
161
|
-
},
|
|
162
|
-
has(schema) {
|
|
163
|
-
return map.has(schema);
|
|
164
|
-
},
|
|
165
|
-
};
|
|
166
|
-
})();
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Creates a new ref context slot for the given entity type.
|
|
170
|
-
* Each call creates a unique slot, even for the same entity type.
|
|
171
|
-
*
|
|
172
|
-
* @param name - A descriptive name for debugging (shows in Symbol description)
|
|
173
|
-
* @param entityType - The entity type this slot will be associated with
|
|
174
|
-
* @returns A new unique RefContextSlot instance
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* const modelSlot = createRefContextSlot('modelSlot', modelEntityType);
|
|
179
|
-
* const anotherModelSlot = createRefContextSlot('anotherModelSlot', modelEntityType);
|
|
180
|
-
*
|
|
181
|
-
* // These are different slots despite same entity type
|
|
182
|
-
* modelSlot.id !== anotherModelSlot.id
|
|
183
|
-
* // modelSlot.id.toString() === 'Symbol(modelSlot)'
|
|
184
|
-
* ```
|
|
185
|
-
*/
|
|
186
|
-
function createRefContextSlot(name, entityType) {
|
|
187
|
-
return {
|
|
188
|
-
entityType,
|
|
189
|
-
id: Symbol(name),
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Creates a RefContextSlotMap from a slot definition.
|
|
194
|
-
* Used internally by ctx.refContext().
|
|
195
|
-
*
|
|
196
|
-
* @param slotDefinition - Map of slot names to entity types
|
|
197
|
-
* @returns Map of slot names to RefContextSlot instances
|
|
198
|
-
*/
|
|
199
|
-
function createRefContextSlotMap(slotDefinition) {
|
|
200
|
-
return Object.fromEntries(Object.entries(slotDefinition).map(([key, entityType]) => [
|
|
201
|
-
key,
|
|
202
|
-
createRefContextSlot(key, entityType),
|
|
203
|
-
]));
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
const {z: z$1} = await importShared('zod');
|
|
207
|
-
/**
|
|
208
|
-
* Creates a string schema annotated as a reference to another entity.
|
|
209
|
-
*
|
|
210
|
-
* Can be used standalone:
|
|
211
|
-
* ```typescript
|
|
212
|
-
* withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
|
|
213
|
-
* ```
|
|
214
|
-
*
|
|
215
|
-
* Or on the parser context:
|
|
216
|
-
* ```typescript
|
|
217
|
-
* ctx.withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
|
|
218
|
-
* ```
|
|
219
|
-
*/
|
|
220
|
-
function withRef(reference) {
|
|
221
|
-
const schema = z$1.string().min(1);
|
|
222
|
-
definitionRefRegistry.add(schema, {
|
|
223
|
-
kind: 'reference',
|
|
224
|
-
type: reference.type,
|
|
225
|
-
onDelete: reference.onDelete,
|
|
226
|
-
parentSlot: reference.parentSlot,
|
|
227
|
-
provides: reference.provides,
|
|
228
|
-
});
|
|
229
|
-
return schema;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Creates a schema decorator that marks a schema as defining an entity.
|
|
233
|
-
*
|
|
234
|
-
* Can be used with `.apply()`:
|
|
235
|
-
* ```typescript
|
|
236
|
-
* schema.apply(withEnt({ type: modelEntityType, provides: modelSlot }))
|
|
237
|
-
* ```
|
|
238
|
-
*
|
|
239
|
-
* Or via the parser context (2-arg legacy form):
|
|
240
|
-
* ```typescript
|
|
241
|
-
* ctx.withEnt(schema, { type: modelEntityType, provides: modelSlot })
|
|
242
|
-
* ```
|
|
243
|
-
*
|
|
244
|
-
* @param entity - The entity definition input
|
|
245
|
-
* @returns A function that decorates a schema with entity metadata
|
|
246
|
-
*/
|
|
247
|
-
function withEnt(entity) {
|
|
248
|
-
return (schema) => {
|
|
249
|
-
const idPath = entity.idPath ?? ['id'];
|
|
250
|
-
definitionRefRegistry.add(schema, {
|
|
251
|
-
kind: 'entity',
|
|
252
|
-
type: entity.type,
|
|
253
|
-
idPath,
|
|
254
|
-
getNameResolver: entity.getNameResolver,
|
|
255
|
-
parentSlot: entity.parentSlot,
|
|
256
|
-
provides: entity.provides,
|
|
257
|
-
});
|
|
258
|
-
return schema;
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Creates ref context slots for use within a schema definition.
|
|
263
|
-
* Slots provide type-safe context for parent-child entity relationships.
|
|
264
|
-
*
|
|
265
|
-
* @example
|
|
266
|
-
* ```typescript
|
|
267
|
-
* ctx.refContext(
|
|
268
|
-
* { modelSlot: modelEntityType },
|
|
269
|
-
* ({ modelSlot }) =>
|
|
270
|
-
* ctx.withEnt(schema, {
|
|
271
|
-
* type: modelEntityType,
|
|
272
|
-
* provides: modelSlot,
|
|
273
|
-
* }),
|
|
274
|
-
* );
|
|
275
|
-
* ```
|
|
276
|
-
*/
|
|
277
|
-
function refContext(slotDefinition, schemaBuilder) {
|
|
278
|
-
const slots = createRefContextSlotMap(slotDefinition);
|
|
279
|
-
const schema = schemaBuilder(slots);
|
|
280
|
-
definitionRefRegistry.add(schema, {
|
|
281
|
-
kind: 'ref-context',
|
|
282
|
-
slots: Object.values(slots),
|
|
283
|
-
});
|
|
284
|
-
return schema;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Wraps a value with a ref expression parser for deferred validation.
|
|
288
|
-
* The parser handles all parsing, validation, and rename handling.
|
|
289
|
-
*
|
|
290
|
-
* If the parser declares required slots (via TRequiredSlots), they must be
|
|
291
|
-
* provided as the second argument. TypeScript enforces this at compile time.
|
|
292
|
-
*
|
|
293
|
-
* The parser's `createSchema()` method is called to get a fresh schema
|
|
294
|
-
* instance per call site, allowing per-call metadata to be registered
|
|
295
|
-
* independently in the Baseplate registry.
|
|
296
|
-
*
|
|
297
|
-
* @example
|
|
298
|
-
* ```typescript
|
|
299
|
-
* // Parser without required slots
|
|
300
|
-
* const expressionSchema = ctx.withExpression(simpleParser);
|
|
301
|
-
*
|
|
302
|
-
* // Parser with required slots (TypeScript enforces the second argument)
|
|
303
|
-
* ctx.refContext(
|
|
304
|
-
* { modelSlot: modelEntityType },
|
|
305
|
-
* ({ modelSlot }) =>
|
|
306
|
-
* z.object({
|
|
307
|
-
* condition: ctx.withExpression(authorizerParser, { model: modelSlot }),
|
|
308
|
-
* })
|
|
309
|
-
* );
|
|
310
|
-
* ```
|
|
311
|
-
*/
|
|
312
|
-
function withExpression(parser, slots) {
|
|
313
|
-
// createSchema() returns a fresh instance per call, allowing per-call
|
|
314
|
-
// metadata to be registered without conflicting across call sites.
|
|
315
|
-
const schema = parser.createSchema();
|
|
316
|
-
definitionRefRegistry.add(schema, {
|
|
317
|
-
kind: 'expression',
|
|
318
|
-
parser,
|
|
319
|
-
slots,
|
|
320
|
-
});
|
|
321
|
-
return schema;
|
|
322
|
-
}
|
|
323
|
-
function extendParserContextWithRefs() {
|
|
324
|
-
return {
|
|
325
|
-
withRef,
|
|
326
|
-
// Legacy 2-arg API that delegates to the standalone withEnt decorator.
|
|
327
|
-
// Uses a cast because the standalone accepts DefinitionEntityInput<unknown, ...>
|
|
328
|
-
// while this 2-arg form infers the full z.output<TType> for type-safe idPath.
|
|
329
|
-
withEnt(schema, entity) {
|
|
330
|
-
return schema.apply(withEnt(entity));
|
|
331
|
-
},
|
|
332
|
-
refContext,
|
|
333
|
-
withExpression,
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Registry that stores default-value metadata on Zod schema instances.
|
|
339
|
-
*
|
|
340
|
-
* Uses a WeakMap to avoid interfering with Zod's type system.
|
|
341
|
-
* Annotated by `withDefault()`; read by `cleanDefaultValues()`.
|
|
342
|
-
*/
|
|
343
|
-
const definitionDefaultRegistry = (() => {
|
|
344
|
-
const map = new WeakMap();
|
|
345
|
-
return {
|
|
346
|
-
set(schema, meta) {
|
|
347
|
-
map.set(schema, meta);
|
|
348
|
-
},
|
|
349
|
-
get(schema) {
|
|
350
|
-
return map.get(schema);
|
|
351
|
-
},
|
|
352
|
-
};
|
|
353
|
-
})();
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Creates a schema decorator that applies a default value.
|
|
357
|
-
*
|
|
358
|
-
* Uses `prefault` to ensure defaults are populated during Zod parse, and
|
|
359
|
-
* registers the default value in the registry so `cleanDefaultValues()` can
|
|
360
|
-
* strip matching values during serialization.
|
|
361
|
-
*
|
|
362
|
-
* Can be used standalone with `.apply()`:
|
|
363
|
-
* ```typescript
|
|
364
|
-
* z.boolean().apply(withDefault(false))
|
|
365
|
-
* ```
|
|
366
|
-
*
|
|
367
|
-
* @param defaultValue - The default value to apply
|
|
368
|
-
* @returns A function that decorates a schema with the default value
|
|
369
|
-
*/
|
|
370
|
-
function withDefault(defaultValue) {
|
|
371
|
-
return (schema) => {
|
|
372
|
-
const result = schema.prefault(defaultValue);
|
|
373
|
-
definitionDefaultRegistry.set(result, { defaultValue });
|
|
374
|
-
return result;
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Extends the parser context with default value handling functionality.
|
|
379
|
-
*
|
|
380
|
-
* @returns An object containing the withDefault method
|
|
381
|
-
*/
|
|
382
|
-
function extendParserContextWithDefaults() {
|
|
383
|
-
return {
|
|
384
|
-
withDefault: (schema, defaultValue) => withDefault(defaultValue)(schema),
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
const contextCache = new WeakMap();
|
|
389
|
-
function createDefinitionSchemaParserContext(options) {
|
|
390
|
-
const cached = contextCache.get(options.plugins);
|
|
391
|
-
if (cached)
|
|
392
|
-
return cached;
|
|
393
|
-
const context = {
|
|
394
|
-
...options,
|
|
395
|
-
...extendParserContextWithRefs(),
|
|
396
|
-
...extendParserContextWithDefaults(),
|
|
397
|
-
};
|
|
398
|
-
contextCache.set(options.plugins, context);
|
|
399
|
-
return context;
|
|
400
|
-
}
|
|
401
|
-
function definitionSchema(creator) {
|
|
402
|
-
const cache = new WeakMap();
|
|
403
|
-
return (context) => {
|
|
404
|
-
const cached = cache.get(context);
|
|
405
|
-
if (cached)
|
|
406
|
-
return cached;
|
|
407
|
-
const result = creator(context);
|
|
408
|
-
cache.set(context, result);
|
|
409
|
-
return result;
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Creates a schema that requires slots to be passed from parent schemas.
|
|
414
|
-
* Used when a schema needs to reference entities from a parent context.
|
|
415
|
-
*
|
|
416
|
-
* @example
|
|
417
|
-
* ```typescript
|
|
418
|
-
* // Child schema requiring modelSlot from parent
|
|
419
|
-
* export const createModelScalarFieldSchema = definitionSchemaWithSlots(
|
|
420
|
-
* { modelSlot: modelEntityType },
|
|
421
|
-
* (ctx, { modelSlot }) =>
|
|
422
|
-
* ctx.withEnt(schema, {
|
|
423
|
-
* type: modelScalarFieldEntityType,
|
|
424
|
-
* parentSlot: modelSlot,
|
|
425
|
-
* }),
|
|
426
|
-
* );
|
|
427
|
-
*
|
|
428
|
-
* // Called from parent:
|
|
429
|
-
* createModelScalarFieldSchema(ctx, { modelSlot: parentModelSlot })
|
|
430
|
-
* ```
|
|
431
|
-
*/
|
|
432
|
-
function definitionSchemaWithSlots(slotDefinition, creator) {
|
|
433
|
-
const creatorWithSlots = (context, slots) => creator(context, slots);
|
|
434
|
-
creatorWithSlots.slotDefinition = slotDefinition;
|
|
435
|
-
return creatorWithSlots;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Wraps a schema creator that requires slots with placeholder slots,
|
|
439
|
-
* producing a simple schema creator that can be used for validation-only
|
|
440
|
-
* contexts (e.g., React Hook Form).
|
|
441
|
-
*
|
|
442
|
-
* The placeholder slots allow the schema to parse without actual parent context,
|
|
443
|
-
* which is useful when you only need schema validation without ref extraction.
|
|
444
|
-
*
|
|
445
|
-
* @example
|
|
446
|
-
* ```typescript
|
|
447
|
-
* // Schema that normally requires modelSlot from parent
|
|
448
|
-
* const createModelScalarFieldSchema = definitionSchemaWithSlots(
|
|
449
|
-
* { modelSlot: modelEntityType },
|
|
450
|
-
* (ctx, { modelSlot }) => ctx.withEnt(schema, { parentSlot: modelSlot }),
|
|
451
|
-
* );
|
|
452
|
-
*
|
|
453
|
-
* // For React Hook Form validation, wrap with placeholder slots
|
|
454
|
-
* const fieldSchema = withPlaceholderSlots(createModelScalarFieldSchema);
|
|
455
|
-
* const zodSchema = fieldSchema(ctx); // No slots needed
|
|
456
|
-
* ```
|
|
457
|
-
*/
|
|
458
|
-
function withPlaceholderSlots(schemaCreator) {
|
|
459
|
-
return (ctx) => {
|
|
460
|
-
const placeholderSlots = createRefContextSlotMap(schemaCreator.slotDefinition);
|
|
461
|
-
return schemaCreator(ctx, placeholderSlots);
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
const {randomKey} = await importShared('@baseplate-dev/utils');
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Definition of an entity type.
|
|
469
|
-
*/
|
|
470
|
-
class DefinitionEntityType {
|
|
471
|
-
prefix;
|
|
472
|
-
name;
|
|
473
|
-
parentType;
|
|
474
|
-
/**
|
|
475
|
-
* Creates a new entity type.
|
|
476
|
-
*
|
|
477
|
-
* @param name - The name of the entity type.
|
|
478
|
-
* @param prefix - The prefix of the entity type to use in the ID, defaults to the name.
|
|
479
|
-
* @param parentType - The type of the parent entity if any
|
|
480
|
-
*/
|
|
481
|
-
constructor(name, prefix, parentType) {
|
|
482
|
-
this.name = name;
|
|
483
|
-
this.parentType = parentType;
|
|
484
|
-
this.prefix = prefix ?? name.split('/').pop() ?? name;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Generates a new ID for the entity type.
|
|
488
|
-
*
|
|
489
|
-
* @returns The new ID.
|
|
490
|
-
*/
|
|
491
|
-
generateNewId() {
|
|
492
|
-
return `${this.prefix}:${randomKey()}`;
|
|
493
|
-
}
|
|
494
|
-
idFromKey(key) {
|
|
495
|
-
if (!key) {
|
|
496
|
-
return undefined;
|
|
497
|
-
}
|
|
498
|
-
return `${this.prefix}:${key}`;
|
|
499
|
-
}
|
|
500
|
-
keyFromId(id) {
|
|
501
|
-
return id.split(':')[1];
|
|
502
|
-
}
|
|
503
|
-
isId(id) {
|
|
504
|
-
return id.startsWith(`${this.prefix}:`);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
function createEntityType(name, options) {
|
|
508
|
-
const { parentType, prefix } = options ?? {};
|
|
509
|
-
return new DefinitionEntityType(name, prefix, parentType);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const {CASE_VALIDATORS} = await importShared('@baseplate-dev/utils');
|
|
513
|
-
|
|
514
|
-
const {z} = await importShared('zod');
|
|
515
|
-
const featureEntityType = createEntityType('feature');
|
|
516
|
-
const featureNameSchema = CASE_VALIDATORS.KEBAB_CASE;
|
|
517
|
-
const createFeatureSchema = definitionSchema((ctx) => ctx.withEnt(z.object({
|
|
518
|
-
id: z.string(),
|
|
519
|
-
name: z
|
|
520
|
-
.string()
|
|
521
|
-
.min(1)
|
|
522
|
-
.refine((name) => name
|
|
523
|
-
.split('/')
|
|
524
|
-
.every((part) => featureNameSchema.safeParse(part).success), {
|
|
525
|
-
message: 'Feature name must be lowercase and contain only letters, numbers, and dashes',
|
|
526
|
-
}),
|
|
527
|
-
parentRef: ctx
|
|
528
|
-
.withRef({
|
|
529
|
-
type: featureEntityType,
|
|
530
|
-
onDelete: 'DELETE_PARENT',
|
|
531
|
-
})
|
|
532
|
-
.optional(),
|
|
533
|
-
}), { type: featureEntityType }));
|
|
534
|
-
const createFeaturesSchema = definitionSchema((ctx) => z.array(createFeatureSchema(ctx)).default([]));
|
|
535
|
-
|
|
536
|
-
function getRootFeatures(projectDefinition) {
|
|
537
|
-
return projectDefinition.features.filter((f) => !f.parentRef);
|
|
538
|
-
}
|
|
539
|
-
function getFeatureById(projectDefinition, featureId) {
|
|
540
|
-
return projectDefinition.features.find((f) => f.id === featureId);
|
|
541
|
-
}
|
|
542
|
-
function getFeatureByIdOrThrow(projectDefinition, featureId) {
|
|
543
|
-
const feature = getFeatureById(projectDefinition, featureId);
|
|
544
|
-
if (!feature) {
|
|
545
|
-
throw new Error(`Could not find feature with ID ${featureId}`);
|
|
546
|
-
}
|
|
547
|
-
return feature;
|
|
548
|
-
}
|
|
549
|
-
function getFeatureChildren(projectDefinition, featureId) {
|
|
550
|
-
return projectDefinition.features.filter((f) => f.parentRef === featureId);
|
|
551
|
-
}
|
|
552
|
-
function getFeatureName(featureConfig) {
|
|
553
|
-
return featureConfig.name.split('/').pop() ?? '';
|
|
554
|
-
}
|
|
555
|
-
function getFeatureNameById(projectDefinition, featureId) {
|
|
556
|
-
const feature = getFeatureByIdOrThrow(projectDefinition, featureId);
|
|
557
|
-
return getFeatureName(feature);
|
|
558
|
-
}
|
|
559
|
-
function getFeaturePathById(projectDefinition, featureId) {
|
|
560
|
-
const feature = getFeatureByIdOrThrow(projectDefinition, featureId);
|
|
561
|
-
return feature.name;
|
|
562
|
-
}
|
|
563
|
-
function validateFeatureName(name) {
|
|
564
|
-
const nameParts = name.split('/');
|
|
565
|
-
return nameParts.every((part) => featureNameSchema.safeParse(part).success);
|
|
566
|
-
}
|
|
567
|
-
function ensureFeatureByNameRecursively(projectDefinition, nameOrId) {
|
|
568
|
-
if (featureEntityType.isId(nameOrId)) {
|
|
569
|
-
return nameOrId;
|
|
570
|
-
}
|
|
571
|
-
const nameParts = nameOrId.split('/');
|
|
572
|
-
let lastName = '';
|
|
573
|
-
let parentRef = undefined;
|
|
574
|
-
for (const part of nameParts) {
|
|
575
|
-
const feature = projectDefinition.features.find((f) => f.name === part && f.parentRef === parentRef);
|
|
576
|
-
const name = [lastName, part].filter(Boolean).join('/');
|
|
577
|
-
if (feature) {
|
|
578
|
-
parentRef = feature.id;
|
|
579
|
-
}
|
|
580
|
-
else {
|
|
581
|
-
const newFeature = {
|
|
582
|
-
id: featureEntityType.generateNewId(),
|
|
583
|
-
name,
|
|
584
|
-
parentRef,
|
|
585
|
-
};
|
|
586
|
-
projectDefinition.features.push(newFeature);
|
|
587
|
-
parentRef = newFeature.id;
|
|
588
|
-
}
|
|
589
|
-
lastName = name;
|
|
590
|
-
}
|
|
591
|
-
if (!parentRef) {
|
|
592
|
-
throw new Error('Failed to create feature');
|
|
593
|
-
}
|
|
594
|
-
return parentRef;
|
|
595
|
-
}
|
|
596
|
-
function getFeatureByName(projectDefinition, name) {
|
|
597
|
-
return projectDefinition.features.find((f) => f.name === name);
|
|
598
|
-
}
|
|
599
|
-
function getFeatureIdByNameOrDefault(projectDefinition, name) {
|
|
600
|
-
return getFeatureByName(projectDefinition, name)?.id ?? name;
|
|
601
|
-
}
|
|
602
|
-
const FeatureUtils = {
|
|
603
|
-
getRootFeatures,
|
|
604
|
-
getFeatureById,
|
|
605
|
-
getFeatureByIdOrThrow,
|
|
606
|
-
getFeatureChildren,
|
|
607
|
-
getFeatureName,
|
|
608
|
-
getFeatureNameById,
|
|
609
|
-
getFeaturePathById,
|
|
610
|
-
validateFeatureName,
|
|
611
|
-
ensureFeatureByNameRecursively,
|
|
612
|
-
getFeatureByName,
|
|
613
|
-
getFeatureIdByNameOrDefault,
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
const {PASCAL_CASE_REGEX} = await importShared('@baseplate-dev/utils');
|
|
617
|
-
|
|
618
|
-
function byId(projectDefinition, id) {
|
|
619
|
-
return projectDefinition.models.find((m) => m.id === id);
|
|
620
|
-
}
|
|
621
|
-
function byIdOrThrow(projectDefinition, id) {
|
|
622
|
-
const model = byId(projectDefinition, id);
|
|
623
|
-
if (!model) {
|
|
624
|
-
throw new Error(`Could not find model with ID ${id}`);
|
|
625
|
-
}
|
|
626
|
-
return model;
|
|
627
|
-
}
|
|
628
|
-
function byName(projectDefinition, name) {
|
|
629
|
-
return projectDefinition.models.find((m) => m.name === name);
|
|
630
|
-
}
|
|
631
|
-
function byNameOrThrow(projectDefinition, name) {
|
|
632
|
-
const model = byName(projectDefinition, name);
|
|
633
|
-
if (!model) {
|
|
634
|
-
throw new Error(`Could not find model with name ${name}`);
|
|
635
|
-
}
|
|
636
|
-
return model;
|
|
637
|
-
}
|
|
638
|
-
function getScalarFieldById(model, id) {
|
|
639
|
-
const field = model.model.fields.find((f) => f.id === id);
|
|
640
|
-
if (!field) {
|
|
641
|
-
throw new Error(`Could not find field with ID ${id}`);
|
|
642
|
-
}
|
|
643
|
-
return field;
|
|
644
|
-
}
|
|
645
|
-
function getRelationsToModel(projectDefinition, modelId) {
|
|
646
|
-
return projectDefinition.models.flatMap((m) => m.model.relations
|
|
647
|
-
.filter((r) => r.modelRef === modelId)
|
|
648
|
-
.map((r) => ({ model: m, relation: r })));
|
|
649
|
-
}
|
|
650
|
-
function getModelsForFeature(projectDefinition, featureId) {
|
|
651
|
-
return projectDefinition.models.filter((m) => m.featureRef === featureId);
|
|
652
|
-
}
|
|
653
|
-
function getModelIdFields(model) {
|
|
654
|
-
return model.model.primaryKeyFieldRefs;
|
|
655
|
-
}
|
|
656
|
-
function hasService(model) {
|
|
657
|
-
return (model.service.create.enabled ||
|
|
658
|
-
model.service.update.enabled ||
|
|
659
|
-
model.service.delete.enabled ||
|
|
660
|
-
model.service.transformers.length > 0);
|
|
661
|
-
}
|
|
662
|
-
function validateModelName(name) {
|
|
663
|
-
return PASCAL_CASE_REGEX.test(name);
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* Returns the ID of a model by name, or the name if no model is found.
|
|
667
|
-
* @param projectDefinition - The project definition.
|
|
668
|
-
* @param name - The name of the model.
|
|
669
|
-
* @returns The ID of the model, or the name if no model is found.
|
|
670
|
-
*/
|
|
671
|
-
function getModelIdByNameOrDefault(projectDefinition, name) {
|
|
672
|
-
return projectDefinition.models.find((m) => m.name === name)?.id ?? name;
|
|
673
|
-
}
|
|
674
|
-
function getPrimaryKeyFields(model) {
|
|
675
|
-
const primaryKeyFields = model.model.primaryKeyFieldRefs;
|
|
676
|
-
return primaryKeyFields.map((id) => getScalarFieldById(model, id));
|
|
677
|
-
}
|
|
678
|
-
const ModelUtils = {
|
|
679
|
-
byId,
|
|
680
|
-
byIdOrThrow,
|
|
681
|
-
byName,
|
|
682
|
-
byNameOrThrow,
|
|
683
|
-
getScalarFieldById,
|
|
684
|
-
getRelationsToModel,
|
|
685
|
-
getModelsForFeature,
|
|
686
|
-
getModelIdFields,
|
|
687
|
-
hasService,
|
|
688
|
-
validateModelName,
|
|
689
|
-
getModelIdByNameOrDefault,
|
|
690
|
-
getPrimaryKeyFields,
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
export { DefinitionEntityType as D, FeatureUtils as F, ModelUtils as M, createEntityType as a, definitionRefRegistry as b, createFieldMapSpec as c, definitionSchemaWithSlots as d, definitionDefaultRegistry as e, definitionSchema as f, featureEntityType as g, createFeaturesSchema as h, createDefinitionSchemaParserContext as i, createFeatureSchema as j, createPluginFieldMap as k, createPluginSpec as l, createRefContextSlot as m, createRefContextSlotMap as n, featureNameSchema as o, getPluginContext as p, withEnt as q, runInPluginContext as r, withPlaceholderSlots as s, withRef as t, withDefault as w };
|
|
694
|
-
//# sourceMappingURL=model-utils-BFX3c3dn.js.map
|