@baseplate-dev/plugin-auth 0.6.3 → 0.6.5
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 +48 -0
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +2 -3
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.js +6 -2
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +1 -0
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/migrations.d.ts +3 -0
- package/dist/auth/core/schema/migrations.d.ts.map +1 -0
- package/dist/auth/core/schema/migrations.js +54 -0
- package/dist/auth/core/schema/migrations.js.map +1 -0
- package/dist/auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +4 -0
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/constants.js +9 -0
- package/dist/auth/core/schema/roles/constants.js.map +1 -1
- package/dist/auth/core/schema/roles/schema.d.ts +8 -0
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/schema.js +1 -0
- package/dist/auth/core/schema/roles/schema.js.map +1 -1
- package/dist/better-auth/admin/common.d.ts +5 -0
- package/dist/better-auth/admin/common.d.ts.map +1 -0
- package/dist/better-auth/admin/common.js +29 -0
- package/dist/better-auth/admin/common.js.map +1 -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.d.ts.map +1 -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/admin-crud-manage-roles-action.generator.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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/admin-crud-reset-password-action.generator.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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/admin-crud-roles-column.generator.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
- package/dist/better-auth/admin/node.d.ts +5 -0
- package/dist/better-auth/admin/node.d.ts.map +1 -0
- package/dist/better-auth/admin/node.js +57 -0
- package/dist/better-auth/admin/node.js.map +1 -0
- package/dist/better-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/manage-role-action.d.ts.map +1 -0
- package/dist/better-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/better-auth/admin/schema/manage-role-action.js.map +1 -0
- package/dist/better-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/reset-password-action.d.ts.map +1 -0
- package/dist/better-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/better-auth/admin/schema/reset-password-action.js.map +1 -0
- package/dist/better-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/better-auth/admin/schema/roles-column.d.ts.map +1 -0
- package/dist/better-auth/admin/schema/roles-column.js +6 -0
- package/dist/better-auth/admin/schema/roles-column.js.map +1 -0
- package/dist/better-auth/admin/web.d.ts +5 -0
- package/dist/better-auth/admin/web.d.ts.map +1 -0
- package/dist/better-auth/admin/web.js +39 -0
- package/dist/better-auth/admin/web.js.map +1 -0
- package/dist/better-auth/core/common.d.ts.map +1 -1
- package/dist/better-auth/core/common.js +5 -2
- package/dist/better-auth/core/common.js.map +1 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.js +17 -5
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -1
- package/dist/better-auth/core/node.d.ts.map +1 -1
- package/dist/better-auth/core/node.js +21 -4
- package/dist/better-auth/core/node.js.map +1 -1
- package/dist/better-auth/core/schema/models.d.ts +1 -1
- package/dist/better-auth/core/schema/models.d.ts.map +1 -1
- package/dist/better-auth/core/schema/models.js +25 -10
- package/dist/better-auth/core/schema/models.js.map +1 -1
- package/dist/better-auth/core/schema/plugin-definition.d.ts +4 -1
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/better-auth/core/schema/plugin-definition.js +7 -2
- package/dist/better-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts.map +1 -0
- package/dist/better-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/better-auth/core/schema/schema-issue-checker.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +72 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts.map +1 -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/better-auth-admin-module.generator.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +109 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +55 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +46 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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 +43 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts.map +1 -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/better-auth-email-templates.generator.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +96 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +41 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +60 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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 +26 -4
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +14 -3
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +42 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +20 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +4 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +22 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +7 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +25 -1
- package/dist/better-auth/generators/fastify/index.d.ts +3 -0
- package/dist/better-auth/generators/fastify/index.d.ts.map +1 -1
- package/dist/better-auth/generators/fastify/index.js +3 -0
- package/dist/better-auth/generators/fastify/index.js.map +1 -1
- 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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js +2 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +60 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js.map +1 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +63 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +12 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +771 -3
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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-paths.js.map +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +12 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +1543 -29
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +49 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -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 +24 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +12 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +12 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +12 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -1
- 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 +24 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +12 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
- 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.js.map +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 +24 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +12 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
- 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.js.map +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 +12 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/node.js +1 -1
- package/dist/local-auth/admin/node.js.map +1 -1
- package/dist/local-auth/core/common.d.ts.map +1 -1
- package/dist/local-auth/core/common.js +5 -2
- package/dist/local-auth/core/common.js.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js +9 -5
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
- 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/auth-email-password.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -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.js.map +1 -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/user-password.service.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +4 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +6 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +1 -1
- 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.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +11 -4
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +16 -2
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +37 -4
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +78 -10
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +12 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +120 -17
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +3 -10
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +6 -10
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -2
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +12 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -2
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -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.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.js +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -1
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +12 -5
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts +1 -1
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +25 -10
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.js +2 -5
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts.map +1 -0
- package/dist/local-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/local-auth/core/schema/schema-issue-checker.js.map +1 -0
- package/dist/local-auth/plugin.json +6 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +17 -2
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-NPAy2Xu2.js +85 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-NPAy2Xu2.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-BL_U7yuj.js → __federation_expose_authCoreWeb-D0AlXNml.js} +29 -9
- package/dist/web/assets/__federation_expose_authCoreWeb-D0AlXNml.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Bp8fb_BT.js +63 -0
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Bp8fb_BT.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Dggf6fZk.js +41 -0
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Dggf6fZk.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D3bQgHWh.js +54 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D3bQgHWh.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-4VA_40fu.js +157 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-4VA_40fu.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-LIsARRNU.js → __federation_expose_local-authAdminCommon-Bp8fb_BT.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-LIsARRNU.js.map → __federation_expose_local-authAdminCommon-Bp8fb_BT.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-DyYUDLm9.js → __federation_expose_local-authAdminWeb-BDyZDL1a.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-DyYUDLm9.js.map → __federation_expose_local-authAdminWeb-BDyZDL1a.js.map} +1 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C3UyEu-M.js +54 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C3UyEu-M.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BYkl2IGk.js +167 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BYkl2IGk.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js → __federation_expose_placeholder-authCoreCommon-Bq0ln8n5.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js.map → __federation_expose_placeholder-authCoreCommon-Bq0ln8n5.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CZAKokTb.js → __federation_expose_placeholder-authCoreWeb-BNGIcu0Y.js} +22 -7
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BNGIcu0Y.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-3DENgil8.js → __federation_fn_import-DybuDj1g.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-3DENgil8.js.map → __federation_fn_import-DybuDj1g.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-B5bdbzFj.js → web-CAuxM6sN.js} +16 -14
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-CAuxM6sN.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-DCA3vO4J.js → project-builder-lib-DkaXS95C.js} +11341 -10287
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DkaXS95C.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BvL7RO9S.js → ui-components-DX4jbl4M.js} +219 -53
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DX4jbl4M.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-0-N5BG4T.js → utils-B-MiuXg4.js} +49 -16
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-B-MiuXg4.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DSniiJ6U.js → react-router-DyqK0P1G.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DSniiJ6U.js.map → react-router-DyqK0P1G.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-DHcbFujw.js → get-auth-plugin-definition-BigT75An.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-DHcbFujw.js.map → get-auth-plugin-definition-BigT75An.js.map} +1 -1
- package/dist/web/assets/{index-DQKNnI1w.js → index-BwviOVwi.js} +3 -5
- package/dist/web/assets/{index-DQKNnI1w.js.map → index-BwviOVwi.js.map} +1 -1
- package/dist/web/assets/{index.esm-Dpqxgpya.js → index.esm-Db6zPKK9.js} +2 -2
- package/dist/web/assets/{index.esm-Dpqxgpya.js.map → index.esm-Db6zPKK9.js.map} +1 -1
- package/dist/web/assets/model-names-D7UT0B8x.js +10 -0
- package/dist/web/assets/model-names-D7UT0B8x.js.map +1 -0
- package/dist/web/assets/{model-utils-BFX3c3dn.js → model-utils-D0sDtkf1.js} +165 -19
- package/dist/web/assets/model-utils-D0sDtkf1.js.map +1 -0
- package/dist/web/assets/plugin-definition-BQN6LXOW.js +304 -0
- package/dist/web/assets/plugin-definition-BQN6LXOW.js.map +1 -0
- package/dist/web/assets/{plugin-definition-KEpaSB6p.js → plugin-definition-Cg8Gij5x.js} +2 -2
- package/dist/web/assets/{plugin-definition-KEpaSB6p.js.map → plugin-definition-Cg8Gij5x.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-B86WQ7Ni.js → plugin-definition-ChoxTjiw.js} +20 -6
- package/dist/web/assets/plugin-definition-ChoxTjiw.js.map +1 -0
- package/dist/web/assets/{__federation_expose_better-authCoreWeb-CXHL-Ghf.js → plugin-definition-D9-5sSEf.js} +43 -130
- package/dist/web/assets/plugin-definition-D9-5sSEf.js.map +1 -0
- package/dist/web/assets/{react-hu8Hx0R4.js → react-CcDhDxl8.js} +2 -2
- package/dist/web/assets/{react-hu8Hx0R4.js.map → react-CcDhDxl8.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +16 -10
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/{styles-CpKtlIgU.js → styles-Otn_yxD1.js} +3 -3
- package/dist/web/assets/{styles-CpKtlIgU.js.map → styles-Otn_yxD1.js.map} +1 -1
- package/package.json +15 -15
- 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/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.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.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-authCoreWeb-CZAKokTb.js.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/web/assets/model-utils-BFX3c3dn.js.map +0 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @baseplate-dev/plugin-auth
|
|
2
2
|
|
|
3
|
+
## 0.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#834](https://github.com/halfdomelabs/baseplate/pull/834) [`37b6d8f`](https://github.com/halfdomelabs/baseplate/commit/37b6d8fd76086dab2953e12e48543334c5056f15) Thanks [@kingston](https://github.com/kingston)! - Add `accountsFeatureRef` field to auth plugin, separating user data models (User, UserAccount, UserRole, UserSession, AuthVerification) from auth infrastructure code. Defaults to a new `accounts` feature alongside the existing `auth` feature. Includes schema migration 029 to backfill existing projects.
|
|
8
|
+
|
|
9
|
+
- [#863](https://github.com/halfdomelabs/baseplate/pull/863) [`eec498b`](https://github.com/halfdomelabs/baseplate/commit/eec498b152c79402b7370dda990d01602c9a5fee) Thanks [@kingston](https://github.com/kingston)! - Add authorization rules to the User model's email field in both Better Auth and Placeholder Auth plugins, restricting email visibility to admins and the user themselves (via a new "self" instance role)
|
|
10
|
+
|
|
11
|
+
- [#869](https://github.com/halfdomelabs/baseplate/pull/869) [`860b82d`](https://github.com/halfdomelabs/baseplate/commit/860b82da0466386ad11128c619595179ee76d0a4) Thanks [@kingston](https://github.com/kingston)! - Use UUIDv4 (gen_random_uuid) instead of UUIDv7 for AuthVerification/Verification model IDs, since these are short-lived security tokens where timestamp leakage is undesirable and sortability provides no benefit
|
|
12
|
+
|
|
13
|
+
- [#844](https://github.com/halfdomelabs/baseplate/pull/844) [`06f5173`](https://github.com/halfdomelabs/baseplate/commit/06f517371c4904482873a4e30fe9b23b4fd2e36d) Thanks [@kingston](https://github.com/kingston)! - Improve better-auth feature parity with local-auth by adding password/email flows, admin mutations, frontend auth pages, seed user generator, and admin role. Also updates role flags, refines admin role handling, enhances auth UI, and adds project migration.
|
|
14
|
+
|
|
15
|
+
- [#851](https://github.com/halfdomelabs/baseplate/pull/851) [`53b8635`](https://github.com/halfdomelabs/baseplate/commit/53b86354ee6bc4b46d1966f657e3d6c942cf1eb1) Thanks [@kingston](https://github.com/kingston)! - Add plugin dependency support: plugins can declare `pluginDependencies` in plugin.json to require other plugins. Includes circular dependency detection via toposort, definition issue checking that blocks save for unmet dependencies, UI gating that prompts users to enable/configure dependencies before enabling a plugin, and implementation plugin validation. Added dependency declarations to local-auth (email, queue, rate-limit), email (queue), and storage (queue).
|
|
16
|
+
|
|
17
|
+
- [#834](https://github.com/halfdomelabs/baseplate/pull/834) [`37b6d8f`](https://github.com/halfdomelabs/baseplate/commit/37b6d8fd76086dab2953e12e48543334c5056f15) Thanks [@kingston](https://github.com/kingston)! - Register definition issue checkers for plugin schema validation so model drift errors surface globally in the issues panel, not just on plugin settings pages
|
|
18
|
+
|
|
19
|
+
- [#865](https://github.com/halfdomelabs/baseplate/pull/865) [`c7131f5`](https://github.com/halfdomelabs/baseplate/commit/c7131f5caebda203ece99d30fcf2d58ead3abdb8) Thanks [@kingston](https://github.com/kingston)! - Update plugin model definitions to use `defaultGeneration: 'uuidv7'` for UUID primary key fields
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`37b6d8f`](https://github.com/halfdomelabs/baseplate/commit/37b6d8fd76086dab2953e12e48543334c5056f15), [`860b82d`](https://github.com/halfdomelabs/baseplate/commit/860b82da0466386ad11128c619595179ee76d0a4), [`9708637`](https://github.com/halfdomelabs/baseplate/commit/97086370718861d2c3170ec6d83af84793fbd09e), [`9708637`](https://github.com/halfdomelabs/baseplate/commit/97086370718861d2c3170ec6d83af84793fbd09e), [`8dcf7b3`](https://github.com/halfdomelabs/baseplate/commit/8dcf7b3c909672487bad61b7a4465d1860092363), [`90ef6d5`](https://github.com/halfdomelabs/baseplate/commit/90ef6d51e0076834dd437d6854f90d391ccba3fb), [`06f5173`](https://github.com/halfdomelabs/baseplate/commit/06f517371c4904482873a4e30fe9b23b4fd2e36d), [`6c32220`](https://github.com/halfdomelabs/baseplate/commit/6c3222084aed198e3ab9ac2169443b3eb0e15359), [`c24a24a`](https://github.com/halfdomelabs/baseplate/commit/c24a24ac9d2b66623acb0fda9c6ff2b3b80c0a6d), [`9688ca3`](https://github.com/halfdomelabs/baseplate/commit/9688ca348fd995a228bff597069f58644d7e9459), [`71146cd`](https://github.com/halfdomelabs/baseplate/commit/71146cd1ab784f45e4409fef7e6e447750047e48), [`fc8f158`](https://github.com/halfdomelabs/baseplate/commit/fc8f1582f1702d2d6f6eaa60607da7bb777750b5), [`5e182c3`](https://github.com/halfdomelabs/baseplate/commit/5e182c308c51b8d6f735b213ae12ba475c34dbd2), [`0ba6744`](https://github.com/halfdomelabs/baseplate/commit/0ba67445708689622341f3031502b3308f71f68e), [`53b8635`](https://github.com/halfdomelabs/baseplate/commit/53b86354ee6bc4b46d1966f657e3d6c942cf1eb1), [`37b6d8f`](https://github.com/halfdomelabs/baseplate/commit/37b6d8fd76086dab2953e12e48543334c5056f15), [`85d957d`](https://github.com/halfdomelabs/baseplate/commit/85d957d4a2ab4b3a55a96c8dbba9a79d2f72511c), [`8d30c14`](https://github.com/halfdomelabs/baseplate/commit/8d30c145ce5d72dcfc038ff076ed0746d2d763cc), [`ed5d250`](https://github.com/halfdomelabs/baseplate/commit/ed5d250146f0b48386a8208741150f9011892a35), [`efcf233`](https://github.com/halfdomelabs/baseplate/commit/efcf2338c018ad46b08e8fef3994630dea511723), [`2a514a6`](https://github.com/halfdomelabs/baseplate/commit/2a514a63e741e1b16b3b1b168b84a60965141887), [`497904a`](https://github.com/halfdomelabs/baseplate/commit/497904a9b5088171f95c5e16bcda542fb5e98610), [`87a2218`](https://github.com/halfdomelabs/baseplate/commit/87a2218266f957bb4beacd6b13cb3d610fd15a41), [`c7131f5`](https://github.com/halfdomelabs/baseplate/commit/c7131f5caebda203ece99d30fcf2d58ead3abdb8), [`adc5f55`](https://github.com/halfdomelabs/baseplate/commit/adc5f55dbf3a1451f4402cd6bd126e15f60b8ed8), [`c7131f5`](https://github.com/halfdomelabs/baseplate/commit/c7131f5caebda203ece99d30fcf2d58ead3abdb8), [`c7131f5`](https://github.com/halfdomelabs/baseplate/commit/c7131f5caebda203ece99d30fcf2d58ead3abdb8)]:
|
|
22
|
+
- @baseplate-dev/project-builder-lib@0.6.5
|
|
23
|
+
- @baseplate-dev/fastify-generators@0.6.5
|
|
24
|
+
- @baseplate-dev/utils@0.6.5
|
|
25
|
+
- @baseplate-dev/plugin-email@0.6.5
|
|
26
|
+
- @baseplate-dev/react-generators@0.6.5
|
|
27
|
+
- @baseplate-dev/ui-components@0.6.5
|
|
28
|
+
- @baseplate-dev/plugin-rate-limit@0.6.5
|
|
29
|
+
- @baseplate-dev/core-generators@0.6.5
|
|
30
|
+
- @baseplate-dev/plugin-queue@0.6.5
|
|
31
|
+
- @baseplate-dev/sync@0.6.5
|
|
32
|
+
|
|
33
|
+
## 0.6.4
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#836](https://github.com/halfdomelabs/baseplate/pull/836) [`9369fd4`](https://github.com/halfdomelabs/baseplate/commit/9369fd4e38f2eaf370ac37b8bca8f552845d0f9c) Thanks [@kingston](https://github.com/kingston)! - Add `requireNameOnRegistration` option to local auth plugin. When enabled, the registration form collects and requires a name field from users.
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [[`ba315aa`](https://github.com/halfdomelabs/baseplate/commit/ba315aaaec0e8842ec7fadb765b1fed5e3abda5a), [`ba315aa`](https://github.com/halfdomelabs/baseplate/commit/ba315aaaec0e8842ec7fadb765b1fed5e3abda5a), [`ba315aa`](https://github.com/halfdomelabs/baseplate/commit/ba315aaaec0e8842ec7fadb765b1fed5e3abda5a)]:
|
|
40
|
+
- @baseplate-dev/ui-components@0.6.4
|
|
41
|
+
- @baseplate-dev/project-builder-lib@0.6.4
|
|
42
|
+
- @baseplate-dev/plugin-rate-limit@0.6.4
|
|
43
|
+
- @baseplate-dev/plugin-email@0.6.4
|
|
44
|
+
- @baseplate-dev/plugin-queue@0.6.4
|
|
45
|
+
- @baseplate-dev/core-generators@0.6.4
|
|
46
|
+
- @baseplate-dev/fastify-generators@0.6.4
|
|
47
|
+
- @baseplate-dev/react-generators@0.6.4
|
|
48
|
+
- @baseplate-dev/sync@0.6.4
|
|
49
|
+
- @baseplate-dev/utils@0.6.4
|
|
50
|
+
|
|
3
51
|
## 0.6.3
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":";;;AAYA,wBAoBG"}
|
package/dist/auth/core/common.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { authConfigSpec, createPluginModule, pluginConfigSpec, PluginUtils, } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { AUTH_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';
|
|
2
3
|
import { createAuthPluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
3
4
|
export default createPluginModule({
|
|
4
5
|
name: 'common',
|
|
@@ -8,14 +9,12 @@ export default createPluginModule({
|
|
|
8
9
|
},
|
|
9
10
|
initialize: ({ authConfig, pluginConfig }, { pluginKey }) => {
|
|
10
11
|
pluginConfig.schemas.set(pluginKey, createAuthPluginDefinitionSchema);
|
|
12
|
+
pluginConfig.migrations.set(pluginKey, AUTH_PLUGIN_CONFIG_MIGRATIONS);
|
|
11
13
|
authConfig.pluginKey.set(pluginKey);
|
|
12
14
|
authConfig.getAuthConfig.set((definition) => {
|
|
13
15
|
const pluginConfig = PluginUtils.configByKeyOrThrow(definition, pluginKey);
|
|
14
16
|
return {
|
|
15
17
|
roles: pluginConfig.roles,
|
|
16
|
-
modelNames: {
|
|
17
|
-
user: pluginConfig.authFeatureRef,
|
|
18
|
-
},
|
|
19
18
|
};
|
|
20
19
|
});
|
|
21
20
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3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AkB,CACjD,UAAU,EACV,SAAS,CACc,CAAC;YAC1B,OAAO;gBACL,KAAK,EAAE,YAAY,CAAC,KAAK;aAC1B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-definition-editor.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/components/auth-definition-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuC/B,OAAO,iBAAiB,CAAC;AAEzB,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EAAE,cAAc,EAC1B,QAAQ,EACR,MAAM,GACP,EAAE,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"auth-definition-editor.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/components/auth-definition-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuC/B,OAAO,iBAAiB,CAAC;AAEzB,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EAAE,cAAc,EAC1B,QAAQ,EACR,MAAM,GACP,EAAE,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgNpC"}
|
|
@@ -20,10 +20,12 @@ export function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onS
|
|
|
20
20
|
if (pluginMetadata?.config) {
|
|
21
21
|
return pluginMetadata.config;
|
|
22
22
|
}
|
|
23
|
-
const defaultAuthFeatureRef = FeatureUtils.getFeatureIdByNameOrDefault(definition, 'auth');
|
|
23
|
+
const defaultAuthFeatureRef = FeatureUtils.getFeatureIdByNameOrDefault(definition, 'accounts/auth');
|
|
24
|
+
const defaultAccountsFeatureRef = FeatureUtils.getFeatureIdByNameOrDefault(definition, 'accounts/users');
|
|
24
25
|
return {
|
|
25
26
|
implementationPluginKey: defaultImplementation.key,
|
|
26
27
|
authFeatureRef: defaultAuthFeatureRef,
|
|
28
|
+
accountsFeatureRef: defaultAccountsFeatureRef,
|
|
27
29
|
roles: createDefaultAuthRoles(),
|
|
28
30
|
};
|
|
29
31
|
}, [definition, pluginMetadata?.config, defaultImplementation]);
|
|
@@ -45,9 +47,11 @@ export function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onS
|
|
|
45
47
|
const navigate = useNavigate();
|
|
46
48
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
47
49
|
const featureRef = FeatureUtils.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
|
|
50
|
+
const accountsFeatureRef = FeatureUtils.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
|
|
48
51
|
PluginUtils.setPluginConfig(draftConfig, metadata, {
|
|
49
52
|
...data,
|
|
50
53
|
authFeatureRef: featureRef,
|
|
54
|
+
accountsFeatureRef,
|
|
51
55
|
}, definitionContainer);
|
|
52
56
|
// Make sure we disable other plugins that are not the selected implementation
|
|
53
57
|
const otherPlugins = availableImplementations.filter((i) => i.key !== implementationPluginKey);
|
|
@@ -70,6 +74,6 @@ export function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onS
|
|
|
70
74
|
'--action-bar-height': '52px',
|
|
71
75
|
}, children: _jsxs("form", { onSubmit: onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [_jsxs("div", { className: "auth:pb-16", children: [!isSelectedImplementationActive &&
|
|
72
76
|
selectedPlugin &&
|
|
73
|
-
!hasSelectedImplementationChanged && (_jsxs(Alert, { variant: "warning", children: [_jsx(AlertTitle, { children: "Implementation Provider Not Active" }), _jsx(AlertDescription, { children: _jsxs("p", { children: ["The selected implementation provider is not active. Please make sure", ' ', _jsx(Link, { to: selectedImplementationUrl, className: "auth:inline-block auth:font-medium", children: "configure the provider" }), ' ', "before syncing."] }) })] })), _jsxs(SectionList, { children: [_jsxs(SectionListSection, { children: [_jsxs(SectionListSectionHeader, { children: [_jsx(SectionListSectionTitle, { children: "General Settings" }), _jsx(SectionListSectionDescription, { children: "Configure the general settings for the auth plugin." })] }), _jsxs(SectionListSectionContent, { className: "auth:space-y-6", children: [_jsx(FeatureComboboxFieldController, { label: "Auth Feature Path", name: "authFeatureRef", control: control, canCreate: true, description: "Specify the feature path where auth
|
|
77
|
+
!hasSelectedImplementationChanged && (_jsxs(Alert, { variant: "warning", children: [_jsx(AlertTitle, { children: "Implementation Provider Not Active" }), _jsx(AlertDescription, { children: _jsxs("p", { children: ["The selected implementation provider is not active. Please make sure", ' ', _jsx(Link, { to: selectedImplementationUrl, className: "auth:inline-block auth:font-medium", children: "configure the provider" }), ' ', "before syncing."] }) })] })), _jsxs(SectionList, { children: [_jsxs(SectionListSection, { children: [_jsxs(SectionListSectionHeader, { children: [_jsx(SectionListSectionTitle, { children: "General Settings" }), _jsx(SectionListSectionDescription, { children: "Configure the general settings for the auth plugin." })] }), _jsxs(SectionListSectionContent, { className: "auth:space-y-6", children: [_jsx(FeatureComboboxFieldController, { label: "Auth Feature Path", name: "authFeatureRef", control: control, canCreate: true, description: "Specify the feature path where auth infrastructure will be generated" }), _jsx(FeatureComboboxFieldController, { label: "Accounts Feature Path", name: "accountsFeatureRef", control: control, canCreate: true, description: "Specify the feature path where user account models will be generated" }), _jsx(SelectFieldController, { label: "Authentication Provider", name: "implementationPluginKey", control: control, options: availableImplementations, renderItemLabel: (item) => (_jsxs("div", { className: "auth:flex auth:flex-col auth:gap-2", children: [_jsx("div", { className: "auth:text-sm auth:font-medium", children: item.displayName }), _jsx("div", { className: "auth:text-sm auth:text-muted-foreground", children: item.description })] })), getOptionLabel: (item) => item.displayName, getOptionValue: (item) => item.key, description: "The authentication provider to use for your project" })] })] }), _jsx(RoleEditorForm, { control: control })] })] }), _jsx(FormActionBar, { form: form, allowSaveWithoutDirty: !pluginMetadata })] }) })] }));
|
|
74
78
|
}
|
|
75
79
|
//# sourceMappingURL=auth-definition-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-definition-editor.js","sourceRoot":"","sources":["../../../../src/auth/core/components/auth-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAI5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,iBAAiB,CAAC;AAEzB,MAAM,UAAU,oBAAoB,CAAC,EACnC,UAAU,EAAE,cAAc,EAC1B,QAAQ,EACR,MAAM,GACS;IACf,MAAM,EACJ,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,GAC3B,GAAG,oBAAoB,EAAE,CAAC;IAE3B,MAAM,0BAA0B,GAAG,mBAAmB,CACpD,gCAAgC,CACjC,CAAC;IAEF,MAAM,wBAAwB,GAAG,0BAA0B,CACzD,mBAAmB,CAAC,WAAW,EAC/B,QAAQ,CAAC,GAAG,CACb,CAAC;IACF,4BAA4B;IAC5B,MAAM,qBAAqB,GACzB,wBAAwB,CAAC,IAAI,CAC3B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,KAAK,uCAAuC,CACxE,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAEnC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QACjC,IAAI,cAAc,EAAE,MAAM,EAAE,CAAC;YAC3B,OAAO,cAAc,CAAC,MAAmC,CAAC;QAC5D,CAAC;QAED,MAAM,qBAAqB,GAAG,YAAY,CAAC,2BAA2B,CACpE,UAAU,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"auth-definition-editor.js","sourceRoot":"","sources":["../../../../src/auth/core/components/auth-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAI5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,sBAA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1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AAuBA,wBAkDG"}
|
package/dist/auth/core/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AAIzC,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,4BAA4B;QAC5B,WAAW,CAAC,SAAS,CAAC,IAAI,CACxB;YACE,SAAS;YACT,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC9C,MAAM,IAAI,GAAG,WAAW,CAAC,kBAAkB,CACzC,iBAAiB,EACjB,SAAS,CACc,CAAC;gBAE1B,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE;oBACpD,WAAW,EAAE,oBAAoB,CAAC,EAAE,CAAC;oBACrC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBACnC,SAAS,EAAE,kBAAkB,CAAC;wBAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC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,CAAC,IAAI;4BACZ,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,YAAY,EAAE,CAAC,CAAC,YAAY;yBAC7B,CAAC,CAAC;qBACJ,CAAC;oBACF,gBAAgB,EAAE,yBAAyB,CAAC,EAAE,CAAC;iBAChD,CAAC,CAAC;gBAEH,WAAW,CAAC,eAAe,CAAC;oBAC1B,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBACnC,eAAe,EAAE,8BAA8B,CAAC,EAAE,CAAC;oBACnD,gBAAgB,EAAE,+BAA+B,CAAC,EAAE,CAAC;iBACtD,CAAC,CAAC;YACL,CAAC;SACF,EACD;YACE,SAAS;YACT,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC3B,WAAW,CAAC,eAAe,CAAC;oBAC1B,YAAY,EAAE,qBAAqB,CAAC,EAAE,CAAC;oBACvC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;SACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/schema/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAIhF,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EA4EhE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { featureEntityType } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
export const AUTH_PLUGIN_CONFIG_MIGRATIONS = [
|
|
3
|
+
{
|
|
4
|
+
name: 'add-accounts-feature-ref',
|
|
5
|
+
version: 1,
|
|
6
|
+
// Plugin migrations run on raw serialized JSON where withRef fields store
|
|
7
|
+
// feature NAME PATHS (e.g. "accounts/auth"), not IDs. Values must be set to
|
|
8
|
+
// names so deserialization can resolve them to feature IDs.
|
|
9
|
+
migrate: (config, projectDefinition) => {
|
|
10
|
+
const typedConfig = config;
|
|
11
|
+
const def = projectDefinition;
|
|
12
|
+
const features = def.features ?? [];
|
|
13
|
+
// Find or plan to create the three features needed for the new hierarchy:
|
|
14
|
+
// accounts (parent, no code)
|
|
15
|
+
// accounts/auth (auth infrastructure)
|
|
16
|
+
// accounts/users (user models)
|
|
17
|
+
const accountsFeature = features.find((f) => f.name === 'accounts' && !f.parentRef);
|
|
18
|
+
const accountsId = accountsFeature?.id ?? featureEntityType.generateNewId();
|
|
19
|
+
const accountsAuthFeature = features.find((f) => f.name === 'accounts/auth');
|
|
20
|
+
const accountsAuthId = accountsAuthFeature?.id ?? featureEntityType.generateNewId();
|
|
21
|
+
const accountsUsersFeature = features.find((f) => f.name === 'accounts/users');
|
|
22
|
+
const accountsUsersId = accountsUsersFeature?.id ?? featureEntityType.generateNewId();
|
|
23
|
+
return {
|
|
24
|
+
updatedConfig: {
|
|
25
|
+
...typedConfig,
|
|
26
|
+
authFeatureRef: 'accounts/auth',
|
|
27
|
+
accountsFeatureRef: 'accounts/users',
|
|
28
|
+
},
|
|
29
|
+
updateProjectDefinition: (draft) => {
|
|
30
|
+
const draftDef = draft;
|
|
31
|
+
draftDef.features ??= [];
|
|
32
|
+
if (!accountsFeature) {
|
|
33
|
+
draftDef.features.push({ id: accountsId, name: 'accounts' });
|
|
34
|
+
}
|
|
35
|
+
if (!accountsAuthFeature) {
|
|
36
|
+
draftDef.features.push({
|
|
37
|
+
id: accountsAuthId,
|
|
38
|
+
name: 'accounts/auth',
|
|
39
|
+
parentRef: 'accounts',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (!accountsUsersFeature) {
|
|
43
|
+
draftDef.features.push({
|
|
44
|
+
id: accountsUsersId,
|
|
45
|
+
name: 'accounts/users',
|
|
46
|
+
parentRef: 'accounts',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
//# sourceMappingURL=migrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../../src/auth/core/schema/migrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,MAAM,CAAC,MAAM,6BAA6B,GAA4B;IACpE;QACE,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,CAAC;QACV,0EAA0E;QAC1E,4EAA4E;QAC5E,4DAA4D;QAC5D,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,EAAE;YACrC,MAAM,WAAW,GAAG,MAInB,CAAC;YAEF,MAAM,GAAG,GAAG,iBAEX,CAAC;YAEF,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;YAEpC,0EAA0E;YAC1E,sCAAsC;YACtC,0CAA0C;YAC1C,kCAAkC;YAClC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CACnC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,CAAC,SAAS,CAC7C,CAAC;YAEF,MAAM,UAAU,GACd,eAAe,EAAE,EAAE,IAAI,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAE3D,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CACvC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,eAAe,CAClC,CAAC;YACF,MAAM,cAAc,GAClB,mBAAmB,EAAE,EAAE,IAAI,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAE/D,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CACxC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,gBAAgB,CACnC,CAAC;YACF,MAAM,eAAe,GACnB,oBAAoB,EAAE,EAAE,IAAI,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAEhE,OAAO;gBACL,aAAa,EAAE;oBACb,GAAG,WAAW;oBACd,cAAc,EAAE,eAAe;oBAC/B,kBAAkB,EAAE,gBAAgB;iBACrC;gBACD,uBAAuB,EAAE,CAAC,KAAc,EAAE,EAAE;oBAC1C,MAAM,QAAQ,GAAG,KAEhB,CAAC;oBACF,QAAQ,CAAC,QAAQ,KAAK,EAAE,CAAC;oBAEzB,IAAI,CAAC,eAAe,EAAE,CAAC;wBACrB,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;oBAC/D,CAAC;oBACD,IAAI,CAAC,mBAAmB,EAAE,CAAC;wBACzB,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;4BACrB,EAAE,EAAE,cAAc;4BAClB,IAAI,EAAE,eAAe;4BACrB,SAAS,EAAE,UAAU;yBACtB,CAAC,CAAC;oBACL,CAAC;oBACD,IAAI,CAAC,oBAAoB,EAAE,CAAC;wBAC1B,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;4BACrB,EAAE,EAAE,eAAe;4BACnB,IAAI,EAAE,gBAAgB;4BACtB,SAAS,EAAE,UAAU;yBACtB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;aACF,CAAC;QACJ,CAAC;KACF;CACF,CAAC"}
|
|
@@ -3,26 +3,31 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const createAuthPluginDefinitionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
4
|
implementationPluginKey: z.ZodString;
|
|
5
5
|
authFeatureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
6
|
+
accountsFeatureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
6
7
|
roles: z.ZodArray<z.ZodType<{
|
|
7
8
|
id: string;
|
|
8
9
|
name: string;
|
|
9
10
|
comment: string;
|
|
10
11
|
builtIn: boolean;
|
|
12
|
+
autoAssigned: boolean;
|
|
11
13
|
}, {
|
|
12
14
|
id: string;
|
|
13
15
|
name: string;
|
|
14
16
|
comment: string;
|
|
15
17
|
builtIn?: boolean | undefined;
|
|
18
|
+
autoAssigned?: boolean | undefined;
|
|
16
19
|
}, z.core.$ZodTypeInternals<{
|
|
17
20
|
id: string;
|
|
18
21
|
name: string;
|
|
19
22
|
comment: string;
|
|
20
23
|
builtIn: boolean;
|
|
24
|
+
autoAssigned: boolean;
|
|
21
25
|
}, {
|
|
22
26
|
id: string;
|
|
23
27
|
name: string;
|
|
24
28
|
comment: string;
|
|
25
29
|
builtIn?: boolean | undefined;
|
|
30
|
+
autoAssigned?: boolean | undefined;
|
|
26
31
|
}>>>;
|
|
27
32
|
}, z.core.$strip>;
|
|
28
33
|
export type AuthPluginDefinition = def.InferOutput<typeof createAuthPluginDefinitionSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe5C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,WAAW,CAChD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,UAAU,CACpD,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export const createAuthPluginDefinitionSchema = definitionSchema((ctx) => z.obje
|
|
|
9
9
|
type: featureEntityType,
|
|
10
10
|
onDelete: 'RESTRICT',
|
|
11
11
|
}),
|
|
12
|
+
accountsFeatureRef: ctx.withRef({
|
|
13
|
+
type: featureEntityType,
|
|
14
|
+
onDelete: 'RESTRICT',
|
|
15
|
+
}),
|
|
12
16
|
roles: createAuthRolesSchema(ctx),
|
|
13
17
|
}));
|
|
14
18
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,CAAC,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE,CACvE,CAAC,CAAC,MAAM,CAAC;IACP,uBAAuB,EAAE,CAAC;SACvB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,6CAA6C,CAAC;IACxD,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC;QAC1B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,KAAK,EAAE,qBAAqB,CAAC,GAAG,CAAC;CAClC,CAAC,CACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,CAAC,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE,CACvE,CAAC,CAAC,MAAM,CAAC;IACP,uBAAuB,EAAE,CAAC;SACvB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,6CAA6C,CAAC;IACxD,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC;QAC1B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,kBAAkB,EAAE,GAAG,CAAC,OAAO,CAAC;QAC9B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,KAAK,EAAE,qBAAqB,CAAC,GAAG,CAAC;CAClC,CAAC,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,EAyB9D,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,kBAAkB,EAAE,CAK7D"}
|
|
@@ -4,16 +4,25 @@ export const AUTH_DEFAULT_ROLES = [
|
|
|
4
4
|
name: 'public',
|
|
5
5
|
comment: 'All users (including unauthenticated and authenticated users)',
|
|
6
6
|
builtIn: true,
|
|
7
|
+
autoAssigned: true,
|
|
7
8
|
},
|
|
8
9
|
{
|
|
9
10
|
name: 'user',
|
|
10
11
|
comment: 'All authenticated users',
|
|
11
12
|
builtIn: true,
|
|
13
|
+
autoAssigned: true,
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
name: 'system',
|
|
15
17
|
comment: 'System processes without a user context, e.g. background jobs',
|
|
16
18
|
builtIn: true,
|
|
19
|
+
autoAssigned: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'admin',
|
|
23
|
+
comment: 'Administrator with full access',
|
|
24
|
+
builtIn: true,
|
|
25
|
+
autoAssigned: false,
|
|
17
26
|
},
|
|
18
27
|
];
|
|
19
28
|
export function createDefaultAuthRoles() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,+DAA+D;QACxE,OAAO,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,+DAA+D;QACxE,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,+DAA+D;QACxE,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,gCAAgC;QACzC,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,KAAK;KACpB;CACF,CAAC;AAEF,MAAM,UAAU,sBAAsB;IACpC,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvC,GAAG,IAAI;QACP,EAAE,EAAE,kBAAkB,CAAC,aAAa,EAAE;KACvC,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -5,21 +5,25 @@ export declare const createAuthRoleSchema: (context: import("@baseplate-dev/proj
|
|
|
5
5
|
name: string;
|
|
6
6
|
comment: string;
|
|
7
7
|
builtIn: boolean;
|
|
8
|
+
autoAssigned: boolean;
|
|
8
9
|
}, {
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
11
12
|
comment: string;
|
|
12
13
|
builtIn?: boolean | undefined;
|
|
14
|
+
autoAssigned?: boolean | undefined;
|
|
13
15
|
}, z.core.$ZodTypeInternals<{
|
|
14
16
|
id: string;
|
|
15
17
|
name: string;
|
|
16
18
|
comment: string;
|
|
17
19
|
builtIn: boolean;
|
|
20
|
+
autoAssigned: boolean;
|
|
18
21
|
}, {
|
|
19
22
|
id: string;
|
|
20
23
|
name: string;
|
|
21
24
|
comment: string;
|
|
22
25
|
builtIn?: boolean | undefined;
|
|
26
|
+
autoAssigned?: boolean | undefined;
|
|
23
27
|
}>>;
|
|
24
28
|
/**
|
|
25
29
|
* Defines the schema for a role.
|
|
@@ -35,20 +39,24 @@ export declare const createAuthRolesSchema: (context: import("@baseplate-dev/pro
|
|
|
35
39
|
name: string;
|
|
36
40
|
comment: string;
|
|
37
41
|
builtIn: boolean;
|
|
42
|
+
autoAssigned: boolean;
|
|
38
43
|
}, {
|
|
39
44
|
id: string;
|
|
40
45
|
name: string;
|
|
41
46
|
comment: string;
|
|
42
47
|
builtIn?: boolean | undefined;
|
|
48
|
+
autoAssigned?: boolean | undefined;
|
|
43
49
|
}, z.core.$ZodTypeInternals<{
|
|
44
50
|
id: string;
|
|
45
51
|
name: string;
|
|
46
52
|
comment: string;
|
|
47
53
|
builtIn: boolean;
|
|
54
|
+
autoAssigned: boolean;
|
|
48
55
|
}, {
|
|
49
56
|
id: string;
|
|
50
57
|
name: string;
|
|
51
58
|
comment: string;
|
|
52
59
|
builtIn?: boolean | undefined;
|
|
60
|
+
autoAssigned?: boolean | undefined;
|
|
53
61
|
}>>>;
|
|
54
62
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;GAWhC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;IAwBjC,CAAC"}
|
|
@@ -6,6 +6,7 @@ export const createAuthRoleSchema = definitionSchema((ctx) => ctx.withEnt(z.obje
|
|
|
6
6
|
name: z.string().min(1),
|
|
7
7
|
comment: z.string().min(1),
|
|
8
8
|
builtIn: z.boolean().default(false),
|
|
9
|
+
autoAssigned: z.boolean().default(false),
|
|
9
10
|
}), { type: authRoleEntityType }));
|
|
10
11
|
/**
|
|
11
12
|
* Defines the schema for an array of roles ensuring that there are no duplicate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3D,GAAG,CAAC,OAAO,CACT,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../src/auth/core/schema/roles/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE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I,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;YACjE,GAAG,CAAC,QAAQ,CAAC;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0BAA0B,WAAW,CAAC,IAAI,EAAE;aACtD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/better-auth/admin/common.ts"],"names":[],"mappings":";;;AAYA,wBA+BG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { adminCrudActionSpec, adminCrudColumnSpec, createAdminCrudActionType, createAdminCrudColumnType, createPluginModule, } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { createAdminCrudManageRolesActionSchema } from './schema/manage-role-action.js';
|
|
3
|
+
import { createAdminCrudResetPasswordActionSchema } from './schema/reset-password-action.js';
|
|
4
|
+
import { createAdminCrudRolesColumnSchema } from './schema/roles-column.js';
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'common',
|
|
7
|
+
dependencies: {
|
|
8
|
+
adminCrudAction: adminCrudActionSpec,
|
|
9
|
+
adminCrudColumn: adminCrudColumnSpec,
|
|
10
|
+
},
|
|
11
|
+
initialize: ({ adminCrudAction, adminCrudColumn }) => {
|
|
12
|
+
// Register the manage-roles action type
|
|
13
|
+
adminCrudAction.actions.add(createAdminCrudActionType({
|
|
14
|
+
name: 'manage-roles',
|
|
15
|
+
createSchema: createAdminCrudManageRolesActionSchema,
|
|
16
|
+
}));
|
|
17
|
+
// Register the reset-password action type
|
|
18
|
+
adminCrudAction.actions.add(createAdminCrudActionType({
|
|
19
|
+
name: 'reset-password',
|
|
20
|
+
createSchema: createAdminCrudResetPasswordActionSchema,
|
|
21
|
+
}));
|
|
22
|
+
// Register the roles column type
|
|
23
|
+
adminCrudColumn.columns.add(createAdminCrudColumnType({
|
|
24
|
+
name: 'roles',
|
|
25
|
+
createSchema: createAdminCrudRolesColumnSchema,
|
|
26
|
+
}));
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/better-auth/admin/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,wCAAwC,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAE5E,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,eAAe,EAAE,mBAAmB;QACpC,eAAe,EAAE,mBAAmB;KACrC;IACD,UAAU,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,EAAE;QACnD,wCAAwC;QACxC,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE,sCAAsC;SACrD,CAAC,CACH,CAAC;QAEF,0CAA0C;QAC1C,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,gBAAgB;YACtB,YAAY,EAAE,wCAAwC;SACvD,CAAC,CACH,CAAC;QAEF,iCAAiC;QACjC,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|