@baseplate-dev/plugin-auth 0.1.3 → 0.6.2
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 +702 -0
- package/README.md +3 -3
- package/dist/auth/core/common.d.ts +2 -5
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +15 -19
- 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 +46 -28
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +14 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.js +29 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +52 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
- package/dist/auth/core/node.d.ts +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +14 -26
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +11 -69
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +9 -24
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/constants.js.map +1 -0
- package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/index.js.map +1 -0
- package/dist/auth/core/schema/roles/schema.d.ts +54 -0
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/schema.js +37 -0
- package/dist/auth/core/schema/roles/schema.js.map +1 -0
- package/dist/auth/core/web.d.ts +3 -3
- package/dist/auth/core/web.d.ts.map +1 -1
- package/dist/auth/core/web.js +5 -6
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/plugin.json +8 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +1 -0
- package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
- package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
- package/dist/auth/utils/index.d.ts +2 -0
- package/dist/auth/utils/index.d.ts.map +1 -0
- package/dist/auth/utils/index.js +2 -0
- package/dist/auth/utils/index.js.map +1 -0
- package/dist/better-auth/constants/model-names.d.ts +8 -0
- package/dist/better-auth/constants/model-names.d.ts.map +1 -0
- package/dist/better-auth/constants/model-names.js +8 -0
- package/dist/better-auth/constants/model-names.js.map +1 -0
- package/dist/better-auth/constants/packages.d.ts +4 -0
- package/dist/better-auth/constants/packages.d.ts.map +1 -0
- package/dist/better-auth/constants/packages.js +4 -0
- package/dist/better-auth/constants/packages.js.map +1 -0
- package/dist/better-auth/core/common.d.ts +6 -0
- package/dist/better-auth/core/common.d.ts.map +1 -0
- package/dist/better-auth/core/common.js +17 -0
- package/dist/better-auth/core/common.js.map +1 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.js +50 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -0
- package/dist/better-auth/core/index.d.ts +2 -0
- package/dist/better-auth/core/index.d.ts.map +1 -0
- package/dist/better-auth/core/index.js +2 -0
- package/dist/better-auth/core/index.js.map +1 -0
- package/dist/better-auth/core/node.d.ts +5 -0
- package/dist/better-auth/core/node.d.ts.map +1 -0
- package/dist/better-auth/core/node.js +47 -0
- package/dist/better-auth/core/node.js.map +1 -0
- package/dist/better-auth/core/schema/models.d.ts +3 -0
- package/dist/better-auth/core/schema/models.d.ts.map +1 -0
- package/dist/better-auth/core/schema/models.js +278 -0
- package/dist/better-auth/core/schema/models.js.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.js +4 -0
- package/dist/better-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/better-auth/core/web.d.ts +6 -0
- package/dist/better-auth/core/web.d.ts.map +1 -0
- package/dist/better-auth/core/web.js +13 -0
- package/dist/better-auth/core/web.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +85 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +75 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +142 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +73 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +84 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +30 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +37 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +65 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +72 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +31 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/schema/user-session.queries.ts +22 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +62 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +72 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
- package/dist/better-auth/generators/fastify/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/index.js +2 -0
- package/dist/better-auth/generators/fastify/index.js.map +1 -0
- package/dist/better-auth/generators/index.d.ts.map +1 -0
- package/dist/better-auth/generators/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +43 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js +37 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +72 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +26 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +18 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +27 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +51 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +48 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +18 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-required-user-id.ts +11 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +30 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +237 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js +26 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +688 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +238 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +895 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +35 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/login.tsx +146 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/register.tsx +162 -0
- package/dist/better-auth/generators/react/index.d.ts +4 -0
- package/dist/better-auth/generators/react/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/index.js +4 -0
- package/dist/better-auth/generators/react/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +491 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +248 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +235 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +268 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +58 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +15 -0
- package/dist/better-auth/index.d.ts +3 -0
- package/dist/better-auth/index.d.ts.map +1 -0
- package/dist/better-auth/index.js +2 -0
- package/dist/better-auth/index.js.map +1 -0
- package/dist/better-auth/plugin.json +9 -0
- package/dist/better-auth/static/icon.svg +10 -0
- package/dist/common/components/auth-config-tabs.d.ts +2 -0
- package/dist/common/components/auth-config-tabs.d.ts.map +1 -0
- package/dist/common/components/auth-config-tabs.js +21 -0
- package/dist/common/components/auth-config-tabs.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/local-auth/admin/common.d.ts +5 -0
- package/dist/local-auth/admin/common.d.ts.map +1 -0
- package/dist/local-auth/admin/common.js +29 -0
- package/dist/local-auth/admin/common.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +474 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +125 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +474 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +242 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +231 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +167 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +473 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +117 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +474 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +242 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +459 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +174 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +221 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
- package/dist/local-auth/admin/node.d.ts +5 -0
- package/dist/local-auth/admin/node.d.ts.map +1 -0
- package/dist/local-auth/admin/node.js +57 -0
- package/dist/local-auth/admin/node.js.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/local-auth/admin/schema/manage-role-action.js.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/local-auth/admin/schema/reset-password-action.js.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.js +6 -0
- package/dist/local-auth/admin/schema/roles-column.js.map +1 -0
- package/dist/local-auth/admin/web.d.ts +5 -0
- package/dist/local-auth/admin/web.d.ts.map +1 -0
- package/dist/local-auth/admin/web.js +39 -0
- package/dist/local-auth/admin/web.js.map +1 -0
- package/dist/local-auth/constants/model-names.d.ts +23 -0
- package/dist/local-auth/constants/model-names.d.ts.map +1 -0
- package/dist/local-auth/constants/model-names.js +23 -0
- package/dist/local-auth/constants/model-names.js.map +1 -0
- package/dist/local-auth/core/common.d.ts +6 -0
- package/dist/local-auth/core/common.d.ts.map +1 -0
- package/dist/local-auth/core/common.js +17 -0
- package/dist/local-auth/core/common.js.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js +59 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js +40 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.js +2 -0
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js +20 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +136 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +76 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +359 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +30 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +110 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +93 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +45 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +46 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +394 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +141 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.js +3 -0
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +17 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +18 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +21 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +72 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +91 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +87 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +140 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +37 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +161 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +235 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +60 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +207 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +330 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +62 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +32 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +108 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +45 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +29 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +37 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +91 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +50 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +30 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +33 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +16 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +117 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +103 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +281 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +36 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +102 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +109 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +30 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +37 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +269 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +192 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.js +3 -0
- package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js +17 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +17 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +21 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js +23 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.ts +26 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +19 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +25 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +36 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +43 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +106 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +146 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +35 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +47 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +43 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +190 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +262 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +38 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +71 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +77 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +11 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +38 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +42 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js +35 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +256 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +32 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1455 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +28 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +257 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +62 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +2143 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +117 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +85 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +168 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +82 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +153 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +150 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +283 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.tsx +17 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
- package/dist/local-auth/core/generators/index.d.ts +10 -0
- package/dist/local-auth/core/generators/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/index.js +10 -0
- package/dist/local-auth/core/generators/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.d.ts +2 -0
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.js +2 -0
- package/dist/local-auth/core/generators/react-auth/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts +9 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js +31 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +532 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +13 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +25 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +264 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +21 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +511 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +35 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.d.ts +4 -0
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.js +3 -0
- package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +283 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +48 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts +7 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +72 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +99 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +58 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +103 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +122 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +99 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +50 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +46 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +18 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +39 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +21 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +58 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
- package/dist/local-auth/core/index.d.ts +2 -0
- package/dist/local-auth/core/index.d.ts.map +1 -0
- package/dist/local-auth/core/index.js +2 -0
- package/dist/local-auth/core/index.js.map +1 -0
- package/dist/local-auth/core/node.d.ts +5 -0
- package/dist/local-auth/core/node.d.ts.map +1 -0
- package/dist/local-auth/core/node.js +69 -0
- package/dist/local-auth/core/node.js.map +1 -0
- package/dist/local-auth/core/schema/models.d.ts +3 -0
- package/dist/local-auth/core/schema/models.d.ts.map +1 -0
- package/dist/local-auth/core/schema/models.js +266 -0
- package/dist/local-auth/core/schema/models.js.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +9 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +13 -0
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/local-auth/core/web.d.ts +6 -0
- package/dist/local-auth/core/web.d.ts.map +1 -0
- package/dist/local-auth/core/web.js +13 -0
- package/dist/local-auth/core/web.js.map +1 -0
- package/dist/local-auth/index.d.ts +2 -0
- package/dist/local-auth/index.d.ts.map +1 -0
- package/dist/local-auth/index.js +2 -0
- package/dist/local-auth/index.js.map +1 -0
- package/dist/local-auth/plugin.json +9 -0
- package/dist/local-auth/static/icon.svg +1 -0
- package/dist/placeholder-auth/constants/model-names.d.ts +4 -0
- package/dist/placeholder-auth/constants/model-names.d.ts.map +1 -0
- package/dist/placeholder-auth/constants/model-names.js +4 -0
- package/dist/placeholder-auth/constants/model-names.js.map +1 -0
- package/dist/placeholder-auth/core/common.d.ts +5 -0
- package/dist/placeholder-auth/core/common.d.ts.map +1 -0
- package/dist/placeholder-auth/core/common.js +17 -0
- package/dist/placeholder-auth/core/common.js.map +1 -0
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts +5 -0
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -0
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +50 -0
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -0
- package/dist/placeholder-auth/core/generators/index.d.ts +4 -0
- package/dist/placeholder-auth/core/generators/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/index.js +4 -0
- package/dist/placeholder-auth/core/generators/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +46 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js +11 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +26 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +18 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +35 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +18 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +27 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +17 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +45 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +37 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +32 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts +5 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js +8 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.ts +8 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +9 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js +8 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +13 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +5 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js +13 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +14 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +47 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js +27 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +79 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js +11 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts +12 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js +24 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +41 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js +41 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +23 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +28 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +20 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +23 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +29 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +41 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +9 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js +31 -0
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +1 -0
- package/dist/placeholder-auth/core/index.d.ts +2 -0
- package/dist/placeholder-auth/core/index.d.ts.map +1 -0
- package/dist/placeholder-auth/core/index.js +2 -0
- package/dist/placeholder-auth/core/index.js.map +1 -0
- package/dist/placeholder-auth/core/node.d.ts +5 -0
- package/dist/placeholder-auth/core/node.d.ts.map +1 -0
- package/dist/placeholder-auth/core/node.js +32 -0
- package/dist/placeholder-auth/core/node.js.map +1 -0
- package/dist/placeholder-auth/core/schema/models.d.ts +3 -0
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -0
- package/dist/placeholder-auth/core/schema/models.js +38 -0
- package/dist/placeholder-auth/core/schema/models.js.map +1 -0
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/placeholder-auth/core/schema/plugin-definition.js +4 -0
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/placeholder-auth/core/web.d.ts +6 -0
- package/dist/placeholder-auth/core/web.d.ts.map +1 -0
- package/dist/placeholder-auth/core/web.js +13 -0
- package/dist/placeholder-auth/core/web.js.map +1 -0
- package/dist/placeholder-auth/index.d.ts +2 -0
- package/dist/placeholder-auth/index.d.ts.map +1 -0
- package/dist/placeholder-auth/index.js +2 -0
- package/dist/placeholder-auth/index.js.map +1 -0
- package/dist/placeholder-auth/plugin.json +10 -0
- package/dist/placeholder-auth/static/icon.svg +1 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-CIVhaGqo.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-CIVhaGqo.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-N-mh42Bs.js +438 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-N-mh42Bs.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js +20 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js +402 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminCommon-DvHe9w29.js +63 -0
- package/dist/web/assets/__federation_expose_local-authAdminCommon-DvHe9w29.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-CLU9aEy9.js +41 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-CLU9aEy9.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-DbuvGG7o.js +21 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-DbuvGG7o.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js +432 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-BJBCuZvU.js +23 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js +162 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map +1 -0
- package/dist/web/assets/__federation_fn_import-BLFDCY-V.js +421 -0
- package/dist/web/assets/__federation_fn_import-BLFDCY-V.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js +357 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js +21193 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js +57231 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js +1821 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CbExBaoL.js +6762 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CbExBaoL.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +251 -0
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +1 -0
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +13250 -0
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/web/assets/get-auth-plugin-definition-BL50g0cJ.js +13 -0
- package/dist/web/assets/get-auth-plugin-definition-BL50g0cJ.js.map +1 -0
- package/dist/web/assets/index-B_A3cgiy.js +103 -0
- package/dist/web/assets/index-B_A3cgiy.js.map +1 -0
- package/dist/web/assets/index-DUwCgkeV.js +570 -0
- package/dist/web/assets/index-DUwCgkeV.js.map +1 -0
- package/dist/web/assets/index.esm-BraHxHLB.js +2676 -0
- package/dist/web/assets/index.esm-BraHxHLB.js.map +1 -0
- package/dist/web/assets/isEqual-tnzoadW8.js +242 -0
- package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
- package/dist/web/assets/model-names-DrcaRxt1.js +25 -0
- package/dist/web/assets/model-names-DrcaRxt1.js.map +1 -0
- package/dist/web/assets/model-utils-BfcjfzCn.js +694 -0
- package/dist/web/assets/model-utils-BfcjfzCn.js.map +1 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js +20 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js.map +1 -0
- package/dist/web/assets/plugin-definition-Ckl5hjD1.js +31 -0
- package/dist/web/assets/plugin-definition-Ckl5hjD1.js.map +1 -0
- package/dist/web/assets/plugin-definition-D26rR8AB.js +16 -0
- package/dist/web/assets/plugin-definition-D26rR8AB.js.map +1 -0
- package/dist/web/assets/plugin-definition-DJzXScRp.js +79 -0
- package/dist/web/assets/plugin-definition-DJzXScRp.js.map +1 -0
- package/dist/web/assets/react-CL9M_wyN.js +47 -0
- package/dist/web/assets/react-CL9M_wyN.js.map +1 -0
- package/dist/web/assets/registries-Tz_dluz3.js +1119 -0
- package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
- package/dist/web/assets/remoteEntry.js +30 -6
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/style-DiK_rD1L.css +120 -0
- package/dist/web/assets/styles-tkrWV-ZE.js +59 -0
- package/dist/web/assets/styles-tkrWV-ZE.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +44 -30
- package/dist/auth/core/components/role-editor-form.d.ts +0 -10
- package/dist/auth/core/components/role-editor-form.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form.js +0 -27
- package/dist/auth/core/components/role-editor-form.js.map +0 -1
- package/dist/auth/core/schema/models.d.ts +0 -9
- package/dist/auth/core/schema/models.d.ts.map +0 -1
- package/dist/auth/core/schema/models.js +0 -198
- package/dist/auth/core/schema/models.js.map +0 -1
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts +0 -65
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.js +0 -62
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.js.map +0 -1
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.d.ts +0 -96
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js +0 -94
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js.map +0 -1
- package/dist/auth/generators/fastify/auth-module/templates/management.ts +0 -22
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session-payload.object-type.ts +0 -23
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.mutations.ts +0 -22
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.queries.ts +0 -20
- package/dist/auth/generators/fastify/auth-module/templates/services/user-session.service.ts +0 -251
- package/dist/auth/generators/fastify/auth-module/templates/user-session.service.ts +0 -101
- package/dist/auth/generators/fastify/auth-module/templates/utils/cookie-signer.ts +0 -71
- package/dist/auth/generators/fastify/auth-module/templates/utils/session-cookie.ts +0 -42
- package/dist/auth/generators/fastify/index.d.ts +0 -2
- package/dist/auth/generators/fastify/index.d.ts.map +0 -1
- package/dist/auth/generators/fastify/index.js +0 -2
- package/dist/auth/generators/fastify/index.js.map +0 -1
- package/dist/auth/generators/index.d.ts +0 -2
- package/dist/auth/generators/index.d.ts.map +0 -1
- package/dist/auth/generators/index.js +0 -2
- package/dist/auth/generators/index.js.map +0 -1
- package/dist/auth/metadata.json +0 -8
- package/dist/auth0/constants/packages.d.ts +0 -6
- package/dist/auth0/constants/packages.d.ts.map +0 -1
- package/dist/auth0/constants/packages.js +0 -6
- package/dist/auth0/constants/packages.js.map +0 -1
- package/dist/auth0/core/common.d.ts +0 -7
- package/dist/auth0/core/common.d.ts.map +0 -1
- package/dist/auth0/core/common.js +0 -28
- package/dist/auth0/core/common.js.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.js +0 -57
- package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth0/core/components/role-dialog.d.ts +0 -14
- package/dist/auth0/core/components/role-dialog.d.ts.map +0 -1
- package/dist/auth0/core/components/role-dialog.js +0 -27
- package/dist/auth0/core/components/role-dialog.js.map +0 -1
- package/dist/auth0/core/components/role-editor-form.d.ts +0 -10
- package/dist/auth0/core/components/role-editor-form.d.ts.map +0 -1
- package/dist/auth0/core/components/role-editor-form.js +0 -52
- package/dist/auth0/core/components/role-editor-form.js.map +0 -1
- package/dist/auth0/core/node.d.ts +0 -5
- package/dist/auth0/core/node.d.ts.map +0 -1
- package/dist/auth0/core/node.js +0 -86
- package/dist/auth0/core/node.js.map +0 -1
- package/dist/auth0/core/schema/migrations.d.ts +0 -3
- package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
- package/dist/auth0/core/schema/migrations.js +0 -17
- package/dist/auth0/core/schema/migrations.js.map +0 -1
- package/dist/auth0/core/schema/models.d.ts +0 -6
- package/dist/auth0/core/schema/models.d.ts.map +0 -1
- package/dist/auth0/core/schema/models.js +0 -39
- package/dist/auth0/core/schema/models.js.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -73
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.js +0 -17
- package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth0/core/web.d.ts +0 -6
- package/dist/auth0/core/web.d.ts.map +0 -1
- package/dist/auth0/core/web.js +0 -14
- package/dist/auth0/core/web.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +0 -67
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -125
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js +0 -12
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.d.ts +0 -43
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.js +0 -25
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/management.ts +0 -22
- package/dist/auth0/generators/fastify/auth0-module/templates/user-session.service.ts +0 -101
- package/dist/auth0/generators/fastify/index.d.ts +0 -2
- package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/index.js +0 -2
- package/dist/auth0/generators/fastify/index.js.map +0 -1
- package/dist/auth0/generators/index.d.ts.map +0 -1
- package/dist/auth0/generators/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts +0 -61
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +0 -59
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts +0 -106
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.js +0 -28
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/templates/auth0-callback.page.tsx +0 -61
- package/dist/auth0/generators/react/auth0-callback/templates/signup.page.tsx +0 -48
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts +0 -53
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js +0 -44
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js +0 -12
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts +0 -45
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js +0 -13
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-components/templates/RequireAuth.tsx +0 -22
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -28
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +0 -65
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts +0 -8
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js +0 -12
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js +0 -16
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts +0 -33
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js +0 -50
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/templates/useCurrentUser.gql +0 -10
- package/dist/auth0/generators/react/auth0-hooks/templates/useCurrentUser.ts +0 -29
- package/dist/auth0/generators/react/auth0-hooks/templates/useLogOut.ts +0 -14
- package/dist/auth0/generators/react/auth0-hooks/templates/useRequiredUserId.ts +0 -11
- package/dist/auth0/generators/react/auth0-hooks/templates/useSession.ts +0 -23
- package/dist/auth0/generators/react/index.d.ts +0 -6
- package/dist/auth0/generators/react/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/index.js +0 -6
- package/dist/auth0/generators/react/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +0 -23
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -64
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
- package/dist/auth0/metadata.json +0 -8
- package/dist/auth0/static/icon.svg +0 -7
- package/dist/index.js.map +0 -1
- package/dist/roles/constants.d.ts.map +0 -1
- package/dist/roles/constants.js.map +0 -1
- package/dist/roles/index.d.ts.map +0 -1
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/schema.d.ts +0 -65
- package/dist/roles/schema.d.ts.map +0 -1
- package/dist/roles/schema.js +0 -43
- package/dist/roles/schema.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js +0 -2
- package/dist/utils/cn.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DCwCR5dZ.js +0 -54
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DCwCR5dZ.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-BlCwYpTq.js +0 -383
- package/dist/web/assets/__federation_expose_auth0CoreWeb-BlCwYpTq.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-dzKjrTzS.js +0 -421
- package/dist/web/assets/__federation_fn_import-dzKjrTzS.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXHJHUXP.js +0 -341
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXHJHUXP.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-GtzVuDsM.js +0 -9901
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-GtzVuDsM.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-ChoqtPkg.js +0 -12723
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-ChoqtPkg.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js +0 -250
- package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
- package/dist/web/assets/__federation_shared_react-uocnGSER.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-BK7IELHt.js +0 -4380
- package/dist/web/assets/__federation_shared_zod-BK7IELHt.js.map +0 -1
- package/dist/web/assets/index-B1hOKVPw.js +0 -574
- package/dist/web/assets/index-B1hOKVPw.js.map +0 -1
- package/dist/web/assets/index-BxDOOHD-.js +0 -95
- package/dist/web/assets/index-BxDOOHD-.js.map +0 -1
- package/dist/web/assets/index.esm-BZEyAv4m.js +0 -2584
- package/dist/web/assets/index.esm-BZEyAv4m.js.map +0 -1
- package/dist/web/assets/model-merger-CdV-7CWE.js +0 -2039
- package/dist/web/assets/model-merger-CdV-7CWE.js.map +0 -1
- package/dist/web/assets/plugin-definition-C9Q-BrBQ.js +0 -78
- package/dist/web/assets/plugin-definition-C9Q-BrBQ.js.map +0 -1
- package/dist/web/assets/react-BfiX28GO.js +0 -47
- package/dist/web/assets/react-BfiX28GO.js.map +0 -1
- package/dist/web/assets/style-BdgwWjAf.css +0 -95
- package/dist/web-export.js.map +0 -1
- package/manifest.json +0 -4
- /package/dist/{roles → auth/core/schema/roles}/constants.d.ts +0 -0
- /package/dist/{roles → auth/core/schema/roles}/constants.js +0 -0
- /package/dist/{roles → auth/core/schema/roles}/index.d.ts +0 -0
- /package/dist/{roles → auth/core/schema/roles}/index.js +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
- /package/dist/{auth/generators/fastify/auth-module/templates → local-auth/core/generators/auth-module/templates/module/constants}/user-session.constants.ts +0 -0
- /package/dist/{auth/generators/fastify/auth-module/templates → local-auth/core/generators/auth-module/templates/module}/utils/verify-request-origin.ts +0 -0
|
@@ -0,0 +1,1119 @@
|
|
|
1
|
+
/** A special constant with type `never` */
|
|
2
|
+
const NEVER = Object.freeze({
|
|
3
|
+
status: "aborted",
|
|
4
|
+
});
|
|
5
|
+
function $constructor(name, initializer, params) {
|
|
6
|
+
function init(inst, def) {
|
|
7
|
+
if (!inst._zod) {
|
|
8
|
+
Object.defineProperty(inst, "_zod", {
|
|
9
|
+
value: {
|
|
10
|
+
def,
|
|
11
|
+
constr: _,
|
|
12
|
+
traits: new Set(),
|
|
13
|
+
},
|
|
14
|
+
enumerable: false,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
if (inst._zod.traits.has(name)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
inst._zod.traits.add(name);
|
|
21
|
+
initializer(inst, def);
|
|
22
|
+
// support prototype modifications
|
|
23
|
+
const proto = _.prototype;
|
|
24
|
+
const keys = Object.keys(proto);
|
|
25
|
+
for (let i = 0; i < keys.length; i++) {
|
|
26
|
+
const k = keys[i];
|
|
27
|
+
if (!(k in inst)) {
|
|
28
|
+
inst[k] = proto[k].bind(inst);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
// doesn't work if Parent has a constructor with arguments
|
|
33
|
+
const Parent = params?.Parent ?? Object;
|
|
34
|
+
class Definition extends Parent {
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
37
|
+
function _(def) {
|
|
38
|
+
var _a;
|
|
39
|
+
const inst = params?.Parent ? new Definition() : this;
|
|
40
|
+
init(inst, def);
|
|
41
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
42
|
+
for (const fn of inst._zod.deferred) {
|
|
43
|
+
fn();
|
|
44
|
+
}
|
|
45
|
+
return inst;
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(_, "init", { value: init });
|
|
48
|
+
Object.defineProperty(_, Symbol.hasInstance, {
|
|
49
|
+
value: (inst) => {
|
|
50
|
+
if (params?.Parent && inst instanceof params.Parent)
|
|
51
|
+
return true;
|
|
52
|
+
return inst?._zod?.traits?.has(name);
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(_, "name", { value: name });
|
|
56
|
+
return _;
|
|
57
|
+
}
|
|
58
|
+
////////////////////////////// UTILITIES ///////////////////////////////////////
|
|
59
|
+
const $brand = Symbol("zod_brand");
|
|
60
|
+
class $ZodAsyncError extends Error {
|
|
61
|
+
constructor() {
|
|
62
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
class $ZodEncodeError extends Error {
|
|
66
|
+
constructor(name) {
|
|
67
|
+
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
68
|
+
this.name = "ZodEncodeError";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const globalConfig = {};
|
|
72
|
+
function config(newConfig) {
|
|
73
|
+
if (newConfig)
|
|
74
|
+
Object.assign(globalConfig, newConfig);
|
|
75
|
+
return globalConfig;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// functions
|
|
79
|
+
function assertEqual(val) {
|
|
80
|
+
return val;
|
|
81
|
+
}
|
|
82
|
+
function assertNotEqual(val) {
|
|
83
|
+
return val;
|
|
84
|
+
}
|
|
85
|
+
function assertIs(_arg) { }
|
|
86
|
+
function assertNever(_x) {
|
|
87
|
+
throw new Error("Unexpected value in exhaustive check");
|
|
88
|
+
}
|
|
89
|
+
function assert(_) { }
|
|
90
|
+
function getEnumValues(entries) {
|
|
91
|
+
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
92
|
+
const values = Object.entries(entries)
|
|
93
|
+
.filter(([k, _]) => numericValues.indexOf(+k) === -1)
|
|
94
|
+
.map(([_, v]) => v);
|
|
95
|
+
return values;
|
|
96
|
+
}
|
|
97
|
+
function joinValues(array, separator = "|") {
|
|
98
|
+
return array.map((val) => stringifyPrimitive(val)).join(separator);
|
|
99
|
+
}
|
|
100
|
+
function jsonStringifyReplacer(_, value) {
|
|
101
|
+
if (typeof value === "bigint")
|
|
102
|
+
return value.toString();
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
function cached(getter) {
|
|
106
|
+
return {
|
|
107
|
+
get value() {
|
|
108
|
+
{
|
|
109
|
+
const value = getter();
|
|
110
|
+
Object.defineProperty(this, "value", { value });
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function nullish(input) {
|
|
117
|
+
return input === null || input === undefined;
|
|
118
|
+
}
|
|
119
|
+
function cleanRegex(source) {
|
|
120
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
121
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
122
|
+
return source.slice(start, end);
|
|
123
|
+
}
|
|
124
|
+
function floatSafeRemainder(val, step) {
|
|
125
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
126
|
+
const stepString = step.toString();
|
|
127
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
128
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
129
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
130
|
+
if (match?.[1]) {
|
|
131
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
135
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
136
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
137
|
+
return (valInt % stepInt) / 10 ** decCount;
|
|
138
|
+
}
|
|
139
|
+
const EVALUATING = Symbol("evaluating");
|
|
140
|
+
function defineLazy(object, key, getter) {
|
|
141
|
+
let value = undefined;
|
|
142
|
+
Object.defineProperty(object, key, {
|
|
143
|
+
get() {
|
|
144
|
+
if (value === EVALUATING) {
|
|
145
|
+
// Circular reference detected, return undefined to break the cycle
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
if (value === undefined) {
|
|
149
|
+
value = EVALUATING;
|
|
150
|
+
value = getter();
|
|
151
|
+
}
|
|
152
|
+
return value;
|
|
153
|
+
},
|
|
154
|
+
set(v) {
|
|
155
|
+
Object.defineProperty(object, key, {
|
|
156
|
+
value: v,
|
|
157
|
+
// configurable: true,
|
|
158
|
+
});
|
|
159
|
+
// object[key] = v;
|
|
160
|
+
},
|
|
161
|
+
configurable: true,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function objectClone(obj) {
|
|
165
|
+
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
166
|
+
}
|
|
167
|
+
function assignProp(target, prop, value) {
|
|
168
|
+
Object.defineProperty(target, prop, {
|
|
169
|
+
value,
|
|
170
|
+
writable: true,
|
|
171
|
+
enumerable: true,
|
|
172
|
+
configurable: true,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function mergeDefs(...defs) {
|
|
176
|
+
const mergedDescriptors = {};
|
|
177
|
+
for (const def of defs) {
|
|
178
|
+
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
179
|
+
Object.assign(mergedDescriptors, descriptors);
|
|
180
|
+
}
|
|
181
|
+
return Object.defineProperties({}, mergedDescriptors);
|
|
182
|
+
}
|
|
183
|
+
function cloneDef(schema) {
|
|
184
|
+
return mergeDefs(schema._zod.def);
|
|
185
|
+
}
|
|
186
|
+
function getElementAtPath(obj, path) {
|
|
187
|
+
if (!path)
|
|
188
|
+
return obj;
|
|
189
|
+
return path.reduce((acc, key) => acc?.[key], obj);
|
|
190
|
+
}
|
|
191
|
+
function promiseAllObject(promisesObj) {
|
|
192
|
+
const keys = Object.keys(promisesObj);
|
|
193
|
+
const promises = keys.map((key) => promisesObj[key]);
|
|
194
|
+
return Promise.all(promises).then((results) => {
|
|
195
|
+
const resolvedObj = {};
|
|
196
|
+
for (let i = 0; i < keys.length; i++) {
|
|
197
|
+
resolvedObj[keys[i]] = results[i];
|
|
198
|
+
}
|
|
199
|
+
return resolvedObj;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function randomString(length = 10) {
|
|
203
|
+
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
204
|
+
let str = "";
|
|
205
|
+
for (let i = 0; i < length; i++) {
|
|
206
|
+
str += chars[Math.floor(Math.random() * chars.length)];
|
|
207
|
+
}
|
|
208
|
+
return str;
|
|
209
|
+
}
|
|
210
|
+
function esc(str) {
|
|
211
|
+
return JSON.stringify(str);
|
|
212
|
+
}
|
|
213
|
+
function slugify(input) {
|
|
214
|
+
return input
|
|
215
|
+
.toLowerCase()
|
|
216
|
+
.trim()
|
|
217
|
+
.replace(/[^\w\s-]/g, "")
|
|
218
|
+
.replace(/[\s_-]+/g, "-")
|
|
219
|
+
.replace(/^-+|-+$/g, "");
|
|
220
|
+
}
|
|
221
|
+
const captureStackTrace = ("captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => { });
|
|
222
|
+
function isObject(data) {
|
|
223
|
+
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
224
|
+
}
|
|
225
|
+
const allowsEval = cached(() => {
|
|
226
|
+
// @ts-ignore
|
|
227
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
try {
|
|
231
|
+
const F = Function;
|
|
232
|
+
new F("");
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
catch (_) {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
function isPlainObject(o) {
|
|
240
|
+
if (isObject(o) === false)
|
|
241
|
+
return false;
|
|
242
|
+
// modified constructor
|
|
243
|
+
const ctor = o.constructor;
|
|
244
|
+
if (ctor === undefined)
|
|
245
|
+
return true;
|
|
246
|
+
if (typeof ctor !== "function")
|
|
247
|
+
return true;
|
|
248
|
+
// modified prototype
|
|
249
|
+
const prot = ctor.prototype;
|
|
250
|
+
if (isObject(prot) === false)
|
|
251
|
+
return false;
|
|
252
|
+
// ctor doesn't have static `isPrototypeOf`
|
|
253
|
+
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
function shallowClone(o) {
|
|
259
|
+
if (isPlainObject(o))
|
|
260
|
+
return { ...o };
|
|
261
|
+
if (Array.isArray(o))
|
|
262
|
+
return [...o];
|
|
263
|
+
return o;
|
|
264
|
+
}
|
|
265
|
+
function numKeys(data) {
|
|
266
|
+
let keyCount = 0;
|
|
267
|
+
for (const key in data) {
|
|
268
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
269
|
+
keyCount++;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return keyCount;
|
|
273
|
+
}
|
|
274
|
+
const getParsedType = (data) => {
|
|
275
|
+
const t = typeof data;
|
|
276
|
+
switch (t) {
|
|
277
|
+
case "undefined":
|
|
278
|
+
return "undefined";
|
|
279
|
+
case "string":
|
|
280
|
+
return "string";
|
|
281
|
+
case "number":
|
|
282
|
+
return Number.isNaN(data) ? "nan" : "number";
|
|
283
|
+
case "boolean":
|
|
284
|
+
return "boolean";
|
|
285
|
+
case "function":
|
|
286
|
+
return "function";
|
|
287
|
+
case "bigint":
|
|
288
|
+
return "bigint";
|
|
289
|
+
case "symbol":
|
|
290
|
+
return "symbol";
|
|
291
|
+
case "object":
|
|
292
|
+
if (Array.isArray(data)) {
|
|
293
|
+
return "array";
|
|
294
|
+
}
|
|
295
|
+
if (data === null) {
|
|
296
|
+
return "null";
|
|
297
|
+
}
|
|
298
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
299
|
+
return "promise";
|
|
300
|
+
}
|
|
301
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
302
|
+
return "map";
|
|
303
|
+
}
|
|
304
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
305
|
+
return "set";
|
|
306
|
+
}
|
|
307
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
308
|
+
return "date";
|
|
309
|
+
}
|
|
310
|
+
// @ts-ignore
|
|
311
|
+
if (typeof File !== "undefined" && data instanceof File) {
|
|
312
|
+
return "file";
|
|
313
|
+
}
|
|
314
|
+
return "object";
|
|
315
|
+
default:
|
|
316
|
+
throw new Error(`Unknown data type: ${t}`);
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
const propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
320
|
+
const primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
321
|
+
function escapeRegex(str) {
|
|
322
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
323
|
+
}
|
|
324
|
+
// zod-specific utils
|
|
325
|
+
function clone(inst, def, params) {
|
|
326
|
+
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
327
|
+
if (!def || params?.parent)
|
|
328
|
+
cl._zod.parent = inst;
|
|
329
|
+
return cl;
|
|
330
|
+
}
|
|
331
|
+
function normalizeParams(_params) {
|
|
332
|
+
const params = _params;
|
|
333
|
+
if (!params)
|
|
334
|
+
return {};
|
|
335
|
+
if (typeof params === "string")
|
|
336
|
+
return { error: () => params };
|
|
337
|
+
if (params?.message !== undefined) {
|
|
338
|
+
if (params?.error !== undefined)
|
|
339
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
340
|
+
params.error = params.message;
|
|
341
|
+
}
|
|
342
|
+
delete params.message;
|
|
343
|
+
if (typeof params.error === "string")
|
|
344
|
+
return { ...params, error: () => params.error };
|
|
345
|
+
return params;
|
|
346
|
+
}
|
|
347
|
+
function createTransparentProxy(getter) {
|
|
348
|
+
let target;
|
|
349
|
+
return new Proxy({}, {
|
|
350
|
+
get(_, prop, receiver) {
|
|
351
|
+
target ?? (target = getter());
|
|
352
|
+
return Reflect.get(target, prop, receiver);
|
|
353
|
+
},
|
|
354
|
+
set(_, prop, value, receiver) {
|
|
355
|
+
target ?? (target = getter());
|
|
356
|
+
return Reflect.set(target, prop, value, receiver);
|
|
357
|
+
},
|
|
358
|
+
has(_, prop) {
|
|
359
|
+
target ?? (target = getter());
|
|
360
|
+
return Reflect.has(target, prop);
|
|
361
|
+
},
|
|
362
|
+
deleteProperty(_, prop) {
|
|
363
|
+
target ?? (target = getter());
|
|
364
|
+
return Reflect.deleteProperty(target, prop);
|
|
365
|
+
},
|
|
366
|
+
ownKeys(_) {
|
|
367
|
+
target ?? (target = getter());
|
|
368
|
+
return Reflect.ownKeys(target);
|
|
369
|
+
},
|
|
370
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
371
|
+
target ?? (target = getter());
|
|
372
|
+
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
373
|
+
},
|
|
374
|
+
defineProperty(_, prop, descriptor) {
|
|
375
|
+
target ?? (target = getter());
|
|
376
|
+
return Reflect.defineProperty(target, prop, descriptor);
|
|
377
|
+
},
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
function stringifyPrimitive(value) {
|
|
381
|
+
if (typeof value === "bigint")
|
|
382
|
+
return value.toString() + "n";
|
|
383
|
+
if (typeof value === "string")
|
|
384
|
+
return `"${value}"`;
|
|
385
|
+
return `${value}`;
|
|
386
|
+
}
|
|
387
|
+
function optionalKeys(shape) {
|
|
388
|
+
return Object.keys(shape).filter((k) => {
|
|
389
|
+
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
const NUMBER_FORMAT_RANGES = {
|
|
393
|
+
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
394
|
+
int32: [-2147483648, 2147483647],
|
|
395
|
+
uint32: [0, 4294967295],
|
|
396
|
+
float32: [-34028234663852886e22, 3.4028234663852886e38],
|
|
397
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE],
|
|
398
|
+
};
|
|
399
|
+
const BIGINT_FORMAT_RANGES = {
|
|
400
|
+
int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
|
|
401
|
+
uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")],
|
|
402
|
+
};
|
|
403
|
+
function pick(schema, mask) {
|
|
404
|
+
const currDef = schema._zod.def;
|
|
405
|
+
const checks = currDef.checks;
|
|
406
|
+
const hasChecks = checks && checks.length > 0;
|
|
407
|
+
if (hasChecks) {
|
|
408
|
+
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
409
|
+
}
|
|
410
|
+
const def = mergeDefs(schema._zod.def, {
|
|
411
|
+
get shape() {
|
|
412
|
+
const newShape = {};
|
|
413
|
+
for (const key in mask) {
|
|
414
|
+
if (!(key in currDef.shape)) {
|
|
415
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
416
|
+
}
|
|
417
|
+
if (!mask[key])
|
|
418
|
+
continue;
|
|
419
|
+
newShape[key] = currDef.shape[key];
|
|
420
|
+
}
|
|
421
|
+
assignProp(this, "shape", newShape); // self-caching
|
|
422
|
+
return newShape;
|
|
423
|
+
},
|
|
424
|
+
checks: [],
|
|
425
|
+
});
|
|
426
|
+
return clone(schema, def);
|
|
427
|
+
}
|
|
428
|
+
function omit(schema, mask) {
|
|
429
|
+
const currDef = schema._zod.def;
|
|
430
|
+
const checks = currDef.checks;
|
|
431
|
+
const hasChecks = checks && checks.length > 0;
|
|
432
|
+
if (hasChecks) {
|
|
433
|
+
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
434
|
+
}
|
|
435
|
+
const def = mergeDefs(schema._zod.def, {
|
|
436
|
+
get shape() {
|
|
437
|
+
const newShape = { ...schema._zod.def.shape };
|
|
438
|
+
for (const key in mask) {
|
|
439
|
+
if (!(key in currDef.shape)) {
|
|
440
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
441
|
+
}
|
|
442
|
+
if (!mask[key])
|
|
443
|
+
continue;
|
|
444
|
+
delete newShape[key];
|
|
445
|
+
}
|
|
446
|
+
assignProp(this, "shape", newShape); // self-caching
|
|
447
|
+
return newShape;
|
|
448
|
+
},
|
|
449
|
+
checks: [],
|
|
450
|
+
});
|
|
451
|
+
return clone(schema, def);
|
|
452
|
+
}
|
|
453
|
+
function extend(schema, shape) {
|
|
454
|
+
if (!isPlainObject(shape)) {
|
|
455
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
456
|
+
}
|
|
457
|
+
const checks = schema._zod.def.checks;
|
|
458
|
+
const hasChecks = checks && checks.length > 0;
|
|
459
|
+
if (hasChecks) {
|
|
460
|
+
// Only throw if new shape overlaps with existing shape
|
|
461
|
+
// Use getOwnPropertyDescriptor to check key existence without accessing values
|
|
462
|
+
const existingShape = schema._zod.def.shape;
|
|
463
|
+
for (const key in shape) {
|
|
464
|
+
if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
|
|
465
|
+
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
const def = mergeDefs(schema._zod.def, {
|
|
470
|
+
get shape() {
|
|
471
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
472
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
473
|
+
return _shape;
|
|
474
|
+
},
|
|
475
|
+
});
|
|
476
|
+
return clone(schema, def);
|
|
477
|
+
}
|
|
478
|
+
function safeExtend(schema, shape) {
|
|
479
|
+
if (!isPlainObject(shape)) {
|
|
480
|
+
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
481
|
+
}
|
|
482
|
+
const def = mergeDefs(schema._zod.def, {
|
|
483
|
+
get shape() {
|
|
484
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
485
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
486
|
+
return _shape;
|
|
487
|
+
},
|
|
488
|
+
});
|
|
489
|
+
return clone(schema, def);
|
|
490
|
+
}
|
|
491
|
+
function merge(a, b) {
|
|
492
|
+
const def = mergeDefs(a._zod.def, {
|
|
493
|
+
get shape() {
|
|
494
|
+
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
495
|
+
assignProp(this, "shape", _shape); // self-caching
|
|
496
|
+
return _shape;
|
|
497
|
+
},
|
|
498
|
+
get catchall() {
|
|
499
|
+
return b._zod.def.catchall;
|
|
500
|
+
},
|
|
501
|
+
checks: [], // delete existing checks
|
|
502
|
+
});
|
|
503
|
+
return clone(a, def);
|
|
504
|
+
}
|
|
505
|
+
function partial(Class, schema, mask) {
|
|
506
|
+
const currDef = schema._zod.def;
|
|
507
|
+
const checks = currDef.checks;
|
|
508
|
+
const hasChecks = checks && checks.length > 0;
|
|
509
|
+
if (hasChecks) {
|
|
510
|
+
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
511
|
+
}
|
|
512
|
+
const def = mergeDefs(schema._zod.def, {
|
|
513
|
+
get shape() {
|
|
514
|
+
const oldShape = schema._zod.def.shape;
|
|
515
|
+
const shape = { ...oldShape };
|
|
516
|
+
if (mask) {
|
|
517
|
+
for (const key in mask) {
|
|
518
|
+
if (!(key in oldShape)) {
|
|
519
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
520
|
+
}
|
|
521
|
+
if (!mask[key])
|
|
522
|
+
continue;
|
|
523
|
+
// if (oldShape[key]!._zod.optin === "optional") continue;
|
|
524
|
+
shape[key] = Class
|
|
525
|
+
? new Class({
|
|
526
|
+
type: "optional",
|
|
527
|
+
innerType: oldShape[key],
|
|
528
|
+
})
|
|
529
|
+
: oldShape[key];
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
for (const key in oldShape) {
|
|
534
|
+
// if (oldShape[key]!._zod.optin === "optional") continue;
|
|
535
|
+
shape[key] = Class
|
|
536
|
+
? new Class({
|
|
537
|
+
type: "optional",
|
|
538
|
+
innerType: oldShape[key],
|
|
539
|
+
})
|
|
540
|
+
: oldShape[key];
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
assignProp(this, "shape", shape); // self-caching
|
|
544
|
+
return shape;
|
|
545
|
+
},
|
|
546
|
+
checks: [],
|
|
547
|
+
});
|
|
548
|
+
return clone(schema, def);
|
|
549
|
+
}
|
|
550
|
+
function required(Class, schema, mask) {
|
|
551
|
+
const def = mergeDefs(schema._zod.def, {
|
|
552
|
+
get shape() {
|
|
553
|
+
const oldShape = schema._zod.def.shape;
|
|
554
|
+
const shape = { ...oldShape };
|
|
555
|
+
if (mask) {
|
|
556
|
+
for (const key in mask) {
|
|
557
|
+
if (!(key in shape)) {
|
|
558
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
559
|
+
}
|
|
560
|
+
if (!mask[key])
|
|
561
|
+
continue;
|
|
562
|
+
// overwrite with non-optional
|
|
563
|
+
shape[key] = new Class({
|
|
564
|
+
type: "nonoptional",
|
|
565
|
+
innerType: oldShape[key],
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
for (const key in oldShape) {
|
|
571
|
+
// overwrite with non-optional
|
|
572
|
+
shape[key] = new Class({
|
|
573
|
+
type: "nonoptional",
|
|
574
|
+
innerType: oldShape[key],
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
assignProp(this, "shape", shape); // self-caching
|
|
579
|
+
return shape;
|
|
580
|
+
},
|
|
581
|
+
});
|
|
582
|
+
return clone(schema, def);
|
|
583
|
+
}
|
|
584
|
+
// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom
|
|
585
|
+
function aborted(x, startIndex = 0) {
|
|
586
|
+
if (x.aborted === true)
|
|
587
|
+
return true;
|
|
588
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
589
|
+
if (x.issues[i]?.continue !== true) {
|
|
590
|
+
return true;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return false;
|
|
594
|
+
}
|
|
595
|
+
function prefixIssues(path, issues) {
|
|
596
|
+
return issues.map((iss) => {
|
|
597
|
+
var _a;
|
|
598
|
+
(_a = iss).path ?? (_a.path = []);
|
|
599
|
+
iss.path.unshift(path);
|
|
600
|
+
return iss;
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
function unwrapMessage(message) {
|
|
604
|
+
return typeof message === "string" ? message : message?.message;
|
|
605
|
+
}
|
|
606
|
+
function finalizeIssue(iss, ctx, config) {
|
|
607
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
608
|
+
// for backwards compatibility
|
|
609
|
+
if (!iss.message) {
|
|
610
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??
|
|
611
|
+
unwrapMessage(ctx?.error?.(iss)) ??
|
|
612
|
+
unwrapMessage(config.customError?.(iss)) ??
|
|
613
|
+
unwrapMessage(config.localeError?.(iss)) ??
|
|
614
|
+
"Invalid input";
|
|
615
|
+
full.message = message;
|
|
616
|
+
}
|
|
617
|
+
// delete (full as any).def;
|
|
618
|
+
delete full.inst;
|
|
619
|
+
delete full.continue;
|
|
620
|
+
if (!ctx?.reportInput) {
|
|
621
|
+
delete full.input;
|
|
622
|
+
}
|
|
623
|
+
return full;
|
|
624
|
+
}
|
|
625
|
+
function getSizableOrigin(input) {
|
|
626
|
+
if (input instanceof Set)
|
|
627
|
+
return "set";
|
|
628
|
+
if (input instanceof Map)
|
|
629
|
+
return "map";
|
|
630
|
+
// @ts-ignore
|
|
631
|
+
if (input instanceof File)
|
|
632
|
+
return "file";
|
|
633
|
+
return "unknown";
|
|
634
|
+
}
|
|
635
|
+
function getLengthableOrigin(input) {
|
|
636
|
+
if (Array.isArray(input))
|
|
637
|
+
return "array";
|
|
638
|
+
if (typeof input === "string")
|
|
639
|
+
return "string";
|
|
640
|
+
return "unknown";
|
|
641
|
+
}
|
|
642
|
+
function parsedType(data) {
|
|
643
|
+
const t = typeof data;
|
|
644
|
+
switch (t) {
|
|
645
|
+
case "number": {
|
|
646
|
+
return Number.isNaN(data) ? "nan" : "number";
|
|
647
|
+
}
|
|
648
|
+
case "object": {
|
|
649
|
+
if (data === null) {
|
|
650
|
+
return "null";
|
|
651
|
+
}
|
|
652
|
+
if (Array.isArray(data)) {
|
|
653
|
+
return "array";
|
|
654
|
+
}
|
|
655
|
+
const obj = data;
|
|
656
|
+
if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) {
|
|
657
|
+
return obj.constructor.name;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return t;
|
|
662
|
+
}
|
|
663
|
+
function issue(...args) {
|
|
664
|
+
const [iss, input, inst] = args;
|
|
665
|
+
if (typeof iss === "string") {
|
|
666
|
+
return {
|
|
667
|
+
message: iss,
|
|
668
|
+
code: "custom",
|
|
669
|
+
input,
|
|
670
|
+
inst,
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
return { ...iss };
|
|
674
|
+
}
|
|
675
|
+
function cleanEnum(obj) {
|
|
676
|
+
return Object.entries(obj)
|
|
677
|
+
.filter(([k, _]) => {
|
|
678
|
+
// return true if NaN, meaning it's not a number, thus a string key
|
|
679
|
+
return Number.isNaN(Number.parseInt(k, 10));
|
|
680
|
+
})
|
|
681
|
+
.map((el) => el[1]);
|
|
682
|
+
}
|
|
683
|
+
// Codec utility functions
|
|
684
|
+
function base64ToUint8Array(base64) {
|
|
685
|
+
const binaryString = atob(base64);
|
|
686
|
+
const bytes = new Uint8Array(binaryString.length);
|
|
687
|
+
for (let i = 0; i < binaryString.length; i++) {
|
|
688
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
689
|
+
}
|
|
690
|
+
return bytes;
|
|
691
|
+
}
|
|
692
|
+
function uint8ArrayToBase64(bytes) {
|
|
693
|
+
let binaryString = "";
|
|
694
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
695
|
+
binaryString += String.fromCharCode(bytes[i]);
|
|
696
|
+
}
|
|
697
|
+
return btoa(binaryString);
|
|
698
|
+
}
|
|
699
|
+
function base64urlToUint8Array(base64url) {
|
|
700
|
+
const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
|
|
701
|
+
const padding = "=".repeat((4 - (base64.length % 4)) % 4);
|
|
702
|
+
return base64ToUint8Array(base64 + padding);
|
|
703
|
+
}
|
|
704
|
+
function uint8ArrayToBase64url(bytes) {
|
|
705
|
+
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
706
|
+
}
|
|
707
|
+
function hexToUint8Array(hex) {
|
|
708
|
+
const cleanHex = hex.replace(/^0x/, "");
|
|
709
|
+
if (cleanHex.length % 2 !== 0) {
|
|
710
|
+
throw new Error("Invalid hex string length");
|
|
711
|
+
}
|
|
712
|
+
const bytes = new Uint8Array(cleanHex.length / 2);
|
|
713
|
+
for (let i = 0; i < cleanHex.length; i += 2) {
|
|
714
|
+
bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
|
|
715
|
+
}
|
|
716
|
+
return bytes;
|
|
717
|
+
}
|
|
718
|
+
function uint8ArrayToHex(bytes) {
|
|
719
|
+
return Array.from(bytes)
|
|
720
|
+
.map((b) => b.toString(16).padStart(2, "0"))
|
|
721
|
+
.join("");
|
|
722
|
+
}
|
|
723
|
+
// instanceof
|
|
724
|
+
class Class {
|
|
725
|
+
constructor(..._args) { }
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
const util = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
729
|
+
__proto__: null,
|
|
730
|
+
BIGINT_FORMAT_RANGES,
|
|
731
|
+
Class,
|
|
732
|
+
NUMBER_FORMAT_RANGES,
|
|
733
|
+
aborted,
|
|
734
|
+
allowsEval,
|
|
735
|
+
assert,
|
|
736
|
+
assertEqual,
|
|
737
|
+
assertIs,
|
|
738
|
+
assertNever,
|
|
739
|
+
assertNotEqual,
|
|
740
|
+
assignProp,
|
|
741
|
+
base64ToUint8Array,
|
|
742
|
+
base64urlToUint8Array,
|
|
743
|
+
cached,
|
|
744
|
+
captureStackTrace,
|
|
745
|
+
cleanEnum,
|
|
746
|
+
cleanRegex,
|
|
747
|
+
clone,
|
|
748
|
+
cloneDef,
|
|
749
|
+
createTransparentProxy,
|
|
750
|
+
defineLazy,
|
|
751
|
+
esc,
|
|
752
|
+
escapeRegex,
|
|
753
|
+
extend,
|
|
754
|
+
finalizeIssue,
|
|
755
|
+
floatSafeRemainder,
|
|
756
|
+
getElementAtPath,
|
|
757
|
+
getEnumValues,
|
|
758
|
+
getLengthableOrigin,
|
|
759
|
+
getParsedType,
|
|
760
|
+
getSizableOrigin,
|
|
761
|
+
hexToUint8Array,
|
|
762
|
+
isObject,
|
|
763
|
+
isPlainObject,
|
|
764
|
+
issue,
|
|
765
|
+
joinValues,
|
|
766
|
+
jsonStringifyReplacer,
|
|
767
|
+
merge,
|
|
768
|
+
mergeDefs,
|
|
769
|
+
normalizeParams,
|
|
770
|
+
nullish,
|
|
771
|
+
numKeys,
|
|
772
|
+
objectClone,
|
|
773
|
+
omit,
|
|
774
|
+
optionalKeys,
|
|
775
|
+
parsedType,
|
|
776
|
+
partial,
|
|
777
|
+
pick,
|
|
778
|
+
prefixIssues,
|
|
779
|
+
primitiveTypes,
|
|
780
|
+
promiseAllObject,
|
|
781
|
+
propertyKeyTypes,
|
|
782
|
+
randomString,
|
|
783
|
+
required,
|
|
784
|
+
safeExtend,
|
|
785
|
+
shallowClone,
|
|
786
|
+
slugify,
|
|
787
|
+
stringifyPrimitive,
|
|
788
|
+
uint8ArrayToBase64,
|
|
789
|
+
uint8ArrayToBase64url,
|
|
790
|
+
uint8ArrayToHex,
|
|
791
|
+
unwrapMessage
|
|
792
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
793
|
+
|
|
794
|
+
const initializer = (inst, def) => {
|
|
795
|
+
inst.name = "$ZodError";
|
|
796
|
+
Object.defineProperty(inst, "_zod", {
|
|
797
|
+
value: inst._zod,
|
|
798
|
+
enumerable: false,
|
|
799
|
+
});
|
|
800
|
+
Object.defineProperty(inst, "issues", {
|
|
801
|
+
value: def,
|
|
802
|
+
enumerable: false,
|
|
803
|
+
});
|
|
804
|
+
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
805
|
+
Object.defineProperty(inst, "toString", {
|
|
806
|
+
value: () => inst.message,
|
|
807
|
+
enumerable: false,
|
|
808
|
+
});
|
|
809
|
+
};
|
|
810
|
+
const $ZodError = $constructor("$ZodError", initializer);
|
|
811
|
+
const $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
812
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
813
|
+
const fieldErrors = {};
|
|
814
|
+
const formErrors = [];
|
|
815
|
+
for (const sub of error.issues) {
|
|
816
|
+
if (sub.path.length > 0) {
|
|
817
|
+
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
818
|
+
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
formErrors.push(mapper(sub));
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
return { formErrors, fieldErrors };
|
|
825
|
+
}
|
|
826
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
827
|
+
const fieldErrors = { _errors: [] };
|
|
828
|
+
const processError = (error) => {
|
|
829
|
+
for (const issue of error.issues) {
|
|
830
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
831
|
+
issue.errors.map((issues) => processError({ issues }));
|
|
832
|
+
}
|
|
833
|
+
else if (issue.code === "invalid_key") {
|
|
834
|
+
processError({ issues: issue.issues });
|
|
835
|
+
}
|
|
836
|
+
else if (issue.code === "invalid_element") {
|
|
837
|
+
processError({ issues: issue.issues });
|
|
838
|
+
}
|
|
839
|
+
else if (issue.path.length === 0) {
|
|
840
|
+
fieldErrors._errors.push(mapper(issue));
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
let curr = fieldErrors;
|
|
844
|
+
let i = 0;
|
|
845
|
+
while (i < issue.path.length) {
|
|
846
|
+
const el = issue.path[i];
|
|
847
|
+
const terminal = i === issue.path.length - 1;
|
|
848
|
+
if (!terminal) {
|
|
849
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
850
|
+
}
|
|
851
|
+
else {
|
|
852
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
853
|
+
curr[el]._errors.push(mapper(issue));
|
|
854
|
+
}
|
|
855
|
+
curr = curr[el];
|
|
856
|
+
i++;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
processError(error);
|
|
862
|
+
return fieldErrors;
|
|
863
|
+
}
|
|
864
|
+
function treeifyError(error, mapper = (issue) => issue.message) {
|
|
865
|
+
const result = { errors: [] };
|
|
866
|
+
const processError = (error, path = []) => {
|
|
867
|
+
var _a, _b;
|
|
868
|
+
for (const issue of error.issues) {
|
|
869
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
870
|
+
// regular union error
|
|
871
|
+
issue.errors.map((issues) => processError({ issues }, issue.path));
|
|
872
|
+
}
|
|
873
|
+
else if (issue.code === "invalid_key") {
|
|
874
|
+
processError({ issues: issue.issues }, issue.path);
|
|
875
|
+
}
|
|
876
|
+
else if (issue.code === "invalid_element") {
|
|
877
|
+
processError({ issues: issue.issues }, issue.path);
|
|
878
|
+
}
|
|
879
|
+
else {
|
|
880
|
+
const fullpath = [...path, ...issue.path];
|
|
881
|
+
if (fullpath.length === 0) {
|
|
882
|
+
result.errors.push(mapper(issue));
|
|
883
|
+
continue;
|
|
884
|
+
}
|
|
885
|
+
let curr = result;
|
|
886
|
+
let i = 0;
|
|
887
|
+
while (i < fullpath.length) {
|
|
888
|
+
const el = fullpath[i];
|
|
889
|
+
const terminal = i === fullpath.length - 1;
|
|
890
|
+
if (typeof el === "string") {
|
|
891
|
+
curr.properties ?? (curr.properties = {});
|
|
892
|
+
(_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
|
|
893
|
+
curr = curr.properties[el];
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
curr.items ?? (curr.items = []);
|
|
897
|
+
(_b = curr.items)[el] ?? (_b[el] = { errors: [] });
|
|
898
|
+
curr = curr.items[el];
|
|
899
|
+
}
|
|
900
|
+
if (terminal) {
|
|
901
|
+
curr.errors.push(mapper(issue));
|
|
902
|
+
}
|
|
903
|
+
i++;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
processError(error);
|
|
909
|
+
return result;
|
|
910
|
+
}
|
|
911
|
+
/** Format a ZodError as a human-readable string in the following form.
|
|
912
|
+
*
|
|
913
|
+
* From
|
|
914
|
+
*
|
|
915
|
+
* ```ts
|
|
916
|
+
* ZodError {
|
|
917
|
+
* issues: [
|
|
918
|
+
* {
|
|
919
|
+
* expected: 'string',
|
|
920
|
+
* code: 'invalid_type',
|
|
921
|
+
* path: [ 'username' ],
|
|
922
|
+
* message: 'Invalid input: expected string'
|
|
923
|
+
* },
|
|
924
|
+
* {
|
|
925
|
+
* expected: 'number',
|
|
926
|
+
* code: 'invalid_type',
|
|
927
|
+
* path: [ 'favoriteNumbers', 1 ],
|
|
928
|
+
* message: 'Invalid input: expected number'
|
|
929
|
+
* }
|
|
930
|
+
* ];
|
|
931
|
+
* }
|
|
932
|
+
* ```
|
|
933
|
+
*
|
|
934
|
+
* to
|
|
935
|
+
*
|
|
936
|
+
* ```
|
|
937
|
+
* username
|
|
938
|
+
* ✖ Expected number, received string at "username
|
|
939
|
+
* favoriteNumbers[0]
|
|
940
|
+
* ✖ Invalid input: expected number
|
|
941
|
+
* ```
|
|
942
|
+
*/
|
|
943
|
+
function toDotPath(_path) {
|
|
944
|
+
const segs = [];
|
|
945
|
+
const path = _path.map((seg) => (typeof seg === "object" ? seg.key : seg));
|
|
946
|
+
for (const seg of path) {
|
|
947
|
+
if (typeof seg === "number")
|
|
948
|
+
segs.push(`[${seg}]`);
|
|
949
|
+
else if (typeof seg === "symbol")
|
|
950
|
+
segs.push(`[${JSON.stringify(String(seg))}]`);
|
|
951
|
+
else if (/[^\w$]/.test(seg))
|
|
952
|
+
segs.push(`[${JSON.stringify(seg)}]`);
|
|
953
|
+
else {
|
|
954
|
+
if (segs.length)
|
|
955
|
+
segs.push(".");
|
|
956
|
+
segs.push(seg);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
return segs.join("");
|
|
960
|
+
}
|
|
961
|
+
function prettifyError(error) {
|
|
962
|
+
const lines = [];
|
|
963
|
+
// sort by path length
|
|
964
|
+
const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
965
|
+
// Process each issue
|
|
966
|
+
for (const issue of issues) {
|
|
967
|
+
lines.push(`✖ ${issue.message}`);
|
|
968
|
+
if (issue.path?.length)
|
|
969
|
+
lines.push(` → at ${toDotPath(issue.path)}`);
|
|
970
|
+
}
|
|
971
|
+
// Convert Map to formatted string
|
|
972
|
+
return lines.join("\n");
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
976
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
977
|
+
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
978
|
+
if (result instanceof Promise) {
|
|
979
|
+
throw new $ZodAsyncError();
|
|
980
|
+
}
|
|
981
|
+
if (result.issues.length) {
|
|
982
|
+
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
983
|
+
captureStackTrace(e, _params?.callee);
|
|
984
|
+
throw e;
|
|
985
|
+
}
|
|
986
|
+
return result.value;
|
|
987
|
+
};
|
|
988
|
+
const parse = /* @__PURE__*/ _parse($ZodRealError);
|
|
989
|
+
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
990
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
991
|
+
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
992
|
+
if (result instanceof Promise)
|
|
993
|
+
result = await result;
|
|
994
|
+
if (result.issues.length) {
|
|
995
|
+
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
996
|
+
captureStackTrace(e, params?.callee);
|
|
997
|
+
throw e;
|
|
998
|
+
}
|
|
999
|
+
return result.value;
|
|
1000
|
+
};
|
|
1001
|
+
const parseAsync = /* @__PURE__*/ _parseAsync($ZodRealError);
|
|
1002
|
+
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
1003
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1004
|
+
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1005
|
+
if (result instanceof Promise) {
|
|
1006
|
+
throw new $ZodAsyncError();
|
|
1007
|
+
}
|
|
1008
|
+
return result.issues.length
|
|
1009
|
+
? {
|
|
1010
|
+
success: false,
|
|
1011
|
+
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))),
|
|
1012
|
+
}
|
|
1013
|
+
: { success: true, data: result.value };
|
|
1014
|
+
};
|
|
1015
|
+
const safeParse = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
1016
|
+
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1017
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
1018
|
+
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1019
|
+
if (result instanceof Promise)
|
|
1020
|
+
result = await result;
|
|
1021
|
+
return result.issues.length
|
|
1022
|
+
? {
|
|
1023
|
+
success: false,
|
|
1024
|
+
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))),
|
|
1025
|
+
}
|
|
1026
|
+
: { success: true, data: result.value };
|
|
1027
|
+
};
|
|
1028
|
+
const safeParseAsync = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
1029
|
+
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
1030
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1031
|
+
return _parse(_Err)(schema, value, ctx);
|
|
1032
|
+
};
|
|
1033
|
+
const encode = /* @__PURE__*/ _encode($ZodRealError);
|
|
1034
|
+
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
1035
|
+
return _parse(_Err)(schema, value, _ctx);
|
|
1036
|
+
};
|
|
1037
|
+
const decode = /* @__PURE__*/ _decode($ZodRealError);
|
|
1038
|
+
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1039
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1040
|
+
return _parseAsync(_Err)(schema, value, ctx);
|
|
1041
|
+
};
|
|
1042
|
+
const encodeAsync = /* @__PURE__*/ _encodeAsync($ZodRealError);
|
|
1043
|
+
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1044
|
+
return _parseAsync(_Err)(schema, value, _ctx);
|
|
1045
|
+
};
|
|
1046
|
+
const decodeAsync = /* @__PURE__*/ _decodeAsync($ZodRealError);
|
|
1047
|
+
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1048
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1049
|
+
return _safeParse(_Err)(schema, value, ctx);
|
|
1050
|
+
};
|
|
1051
|
+
const safeEncode = /* @__PURE__*/ _safeEncode($ZodRealError);
|
|
1052
|
+
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
1053
|
+
return _safeParse(_Err)(schema, value, _ctx);
|
|
1054
|
+
};
|
|
1055
|
+
const safeDecode = /* @__PURE__*/ _safeDecode($ZodRealError);
|
|
1056
|
+
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1057
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1058
|
+
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1059
|
+
};
|
|
1060
|
+
const safeEncodeAsync = /* @__PURE__*/ _safeEncodeAsync($ZodRealError);
|
|
1061
|
+
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1062
|
+
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1063
|
+
};
|
|
1064
|
+
const safeDecodeAsync = /* @__PURE__*/ _safeDecodeAsync($ZodRealError);
|
|
1065
|
+
|
|
1066
|
+
var _a;
|
|
1067
|
+
const $output = Symbol("ZodOutput");
|
|
1068
|
+
const $input = Symbol("ZodInput");
|
|
1069
|
+
class $ZodRegistry {
|
|
1070
|
+
constructor() {
|
|
1071
|
+
this._map = new WeakMap();
|
|
1072
|
+
this._idmap = new Map();
|
|
1073
|
+
}
|
|
1074
|
+
add(schema, ..._meta) {
|
|
1075
|
+
const meta = _meta[0];
|
|
1076
|
+
this._map.set(schema, meta);
|
|
1077
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
1078
|
+
this._idmap.set(meta.id, schema);
|
|
1079
|
+
}
|
|
1080
|
+
return this;
|
|
1081
|
+
}
|
|
1082
|
+
clear() {
|
|
1083
|
+
this._map = new WeakMap();
|
|
1084
|
+
this._idmap = new Map();
|
|
1085
|
+
return this;
|
|
1086
|
+
}
|
|
1087
|
+
remove(schema) {
|
|
1088
|
+
const meta = this._map.get(schema);
|
|
1089
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
1090
|
+
this._idmap.delete(meta.id);
|
|
1091
|
+
}
|
|
1092
|
+
this._map.delete(schema);
|
|
1093
|
+
return this;
|
|
1094
|
+
}
|
|
1095
|
+
get(schema) {
|
|
1096
|
+
// return this._map.get(schema) as any;
|
|
1097
|
+
// inherit metadata
|
|
1098
|
+
const p = schema._zod.parent;
|
|
1099
|
+
if (p) {
|
|
1100
|
+
const pm = { ...(this.get(p) ?? {}) };
|
|
1101
|
+
delete pm.id; // do not inherit id
|
|
1102
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
1103
|
+
return Object.keys(f).length ? f : undefined;
|
|
1104
|
+
}
|
|
1105
|
+
return this._map.get(schema);
|
|
1106
|
+
}
|
|
1107
|
+
has(schema) {
|
|
1108
|
+
return this._map.has(schema);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
// registries
|
|
1112
|
+
function registry() {
|
|
1113
|
+
return new $ZodRegistry();
|
|
1114
|
+
}
|
|
1115
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
1116
|
+
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
1117
|
+
|
|
1118
|
+
export { $constructor as $, safeParseAsync as A, BIGINT_FORMAT_RANGES as B, cleanRegex as C, joinValues as D, stringifyPrimitive as E, parsedType as F, normalizeParams as G, shallowClone as H, slugify as I, globalRegistry as J, $ZodError as K, $ZodRealError as L, $ZodRegistry as M, NUMBER_FORMAT_RANGES as N, $brand as O, $input as P, $output as Q, NEVER as R, _decodeAsync as S, _encode as T, _encodeAsync as U, _parse as V, _parseAsync as W, _safeDecode as X, _safeDecodeAsync as Y, _safeEncode as Z, _decode as _, getSizableOrigin as a, _safeEncodeAsync as a0, _safeParse as a1, _safeParseAsync as a2, clone as a3, decode as a4, decodeAsync as a5, encode as a6, encodeAsync as a7, flattenError as a8, formatError as a9, prettifyError as aa, registry as ab, safeDecode as ac, safeDecodeAsync as ad, safeEncode as ae, safeEncodeAsync as af, toDotPath as ag, treeifyError as ah, util as ai, jsonStringifyReplacer as aj, extend as ak, safeExtend as al, merge as am, pick as an, omit as ao, partial as ap, required as aq, mergeDefs as ar, finalizeIssue as b, config as c, defineLazy as d, escapeRegex as e, floatSafeRemainder as f, getLengthableOrigin as g, cached as h, isObject as i, getEnumValues as j, propertyKeyTypes as k, parse as l, parseAsync as m, nullish as n, globalConfig as o, prefixIssues as p, allowsEval as q, esc as r, isPlainObject as s, $ZodEncodeError as t, primitiveTypes as u, $ZodAsyncError as v, aborted as w, issue as x, optionalKeys as y, safeParse as z };
|
|
1119
|
+
//# sourceMappingURL=registries-Tz_dluz3.js.map
|