@tulip-systems/core 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/client.d.ts +3 -1
- package/dist/auth/client.js +4 -2
- package/dist/auth.d.ts +2 -1
- package/dist/auth.js +3 -2
- package/dist/commands/client.d.ts +4 -4
- package/dist/commands/client.js +4 -4
- package/dist/components/client.d.ts +5 -3
- package/dist/components/client.js +6 -4
- package/dist/components/common/icons.d.ts +51 -48
- package/dist/components/common/icons.d.ts.map +1 -1
- package/dist/components/common/icons.js +4 -1
- package/dist/components/common/icons.js.map +1 -1
- package/dist/components/common/status.d.ts +3 -3
- package/dist/components/common/status.d.ts.map +1 -1
- package/dist/components/editor/components/content.client.d.ts +2 -2
- package/dist/components/editor/components/fixed-menu.client.d.ts +2 -2
- package/dist/components/editor/context.client.d.ts +4 -4
- package/dist/components/editor/context.client.d.ts.map +1 -1
- package/dist/components/editor/index.client.d.ts +2 -2
- package/dist/components/editor/preview.client.d.ts +2 -2
- package/dist/components/header/back-button.client.d.ts +2 -2
- package/dist/components/header/bottom-bar.client.d.ts +5 -5
- package/dist/components/header/bottom-bar.client.d.ts.map +1 -1
- package/dist/components/header/bottom-bar.client.js.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.ts +7 -7
- package/dist/components/header/breadcrumbs.client.js +1 -1
- package/dist/components/header/header.client.d.ts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
- package/dist/components/header/top-bar.client.d.ts +4 -4
- package/dist/components/layouts/admin-content.client.d.ts +13 -0
- package/dist/components/layouts/admin-content.client.d.ts.map +1 -0
- package/dist/components/layouts/admin-layout.d.ts +8 -0
- package/dist/components/layouts/admin-layout.d.ts.map +1 -0
- package/dist/components/layouts/admin-layout.js +15 -0
- package/dist/components/layouts/admin-layout.js.map +1 -0
- package/dist/components/layouts/admin-loading.d.ts +3 -3
- package/dist/components/layouts/admin-loading.d.ts.map +1 -1
- package/dist/components/layouts/admin-loading.js +2 -2
- package/dist/components/layouts/admin-loading.js.map +1 -1
- package/dist/components/layouts/empty-page.d.ts +4 -4
- package/dist/components/layouts/empty-page.d.ts.map +1 -1
- package/dist/components/layouts/list-layout.d.ts +2 -2
- package/dist/components/layouts/list-layout.d.ts.map +1 -1
- package/dist/components/layouts/not-found-page.d.ts +2 -2
- package/dist/components/layouts/not-found-page.d.ts.map +1 -1
- package/dist/components/layouts/providers.client.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts.map +1 -1
- package/dist/components/layouts/root-loading.d.ts +7 -0
- package/dist/components/layouts/root-loading.d.ts.map +1 -0
- package/dist/components/layouts/root-loading.js +14 -0
- package/dist/components/layouts/root-loading.js.map +1 -0
- package/dist/components/layouts/tab-layout.d.ts +2 -2
- package/dist/components/layouts/tab-layout.d.ts.map +1 -1
- package/dist/components/lists/data-list.d.ts +5 -5
- package/dist/components/lists/data-list.d.ts.map +1 -1
- package/dist/components/lists/data-stack.d.ts +8 -8
- package/dist/components/lists/data-stack.d.ts.map +1 -1
- package/dist/components/{layouts → navigation}/admin-sidebar-header.client.js +8 -9
- package/dist/components/navigation/admin-sidebar-header.client.js.map +1 -0
- package/dist/components/navigation/admin-sidebar-paths.client.d.ts +81 -0
- package/dist/components/navigation/admin-sidebar-paths.client.d.ts.map +1 -0
- package/dist/components/navigation/admin-sidebar-paths.client.js +143 -0
- package/dist/components/navigation/admin-sidebar-paths.client.js.map +1 -0
- package/dist/components/navigation/admin-sidebar-skeleton.js +31 -0
- package/dist/components/navigation/admin-sidebar-skeleton.js.map +1 -0
- package/dist/components/server.d.ts +1 -1
- package/dist/components/server.js +1 -1
- package/dist/components/ui/accordion.d.ts +5 -5
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +6 -6
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/avatar.client.d.ts +4 -4
- package/dist/components/ui/badge.d.ts +4 -4
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +5 -5
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +6 -6
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/chart.client.d.ts +5 -5
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.client.d.ts +4 -4
- package/dist/components/ui/color-picker.client.d.ts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
- package/dist/components/ui/combobox.client.d.ts +2 -2
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/dialog.client.d.ts +11 -11
- package/dist/components/ui/drawer.client.d.ts +11 -11
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/form.client.d.ts +8 -8
- package/dist/components/ui/hover-card.client.d.ts +4 -4
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/navigation-menu.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/progress.client.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/resizable.client.d.ts +4 -4
- package/dist/components/ui/scroll-area.d.ts +3 -3
- package/dist/components/ui/select.client.d.ts +11 -11
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/sheet.client.d.ts +9 -9
- package/dist/components/ui/sidebar.client.d.ts +26 -26
- package/dist/components/ui/sidebar.client.js +1 -1
- package/dist/components/ui/skeleton.d.ts +2 -2
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/sonner.client.d.ts +2 -2
- package/dist/components/ui/sonner.client.js +1 -1
- package/dist/components/ui/spinner.js +63 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +5 -5
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/time-input.client.d.ts +2 -2
- package/dist/components/ui/toggle-group.client.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts +5 -5
- package/dist/components.d.ts +5 -4
- package/dist/components.js +7 -6
- package/dist/config/server.d.ts +2 -3
- package/dist/config/server.js +3 -4
- package/dist/config.d.ts +3 -2
- package/dist/config.js +2 -1
- package/dist/lib/client.js +1 -1
- package/dist/lib/hooks/use-action.d.ts +2 -2
- package/dist/lib/hooks/use-indicator.d.ts +2 -2
- package/dist/modules/auth/components/allowed.client.d.ts +2 -2
- package/dist/modules/auth/components/allowed.client.js +1 -1
- package/dist/modules/auth/components/allowed.client.js.map +1 -1
- package/dist/modules/auth/components/allowed.server.d.ts +2 -2
- package/dist/modules/auth/components/allowed.server.d.ts.map +1 -1
- package/dist/modules/auth/components/allowed.server.js +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.ts +4 -5
- package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.js +1 -4
- package/dist/modules/auth/components/auth-layout.server.js.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.ts +7 -0
- package/dist/modules/auth/components/auth-loading.d.ts.map +1 -0
- package/dist/modules/auth/components/auth-loading.js +18 -0
- package/dist/modules/auth/components/auth-loading.js.map +1 -0
- package/dist/modules/auth/components/forget-password-page.client.d.ts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.js +2 -2
- package/dist/modules/auth/components/guard.js +16 -0
- package/dist/modules/auth/components/guard.js.map +1 -0
- package/dist/modules/auth/components/login-page.client.d.ts +2 -6
- package/dist/modules/auth/components/login-page.client.d.ts.map +1 -1
- package/dist/modules/auth/components/login-page.client.js +7 -6
- package/dist/modules/auth/components/login-page.client.js.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.ts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.js +3 -3
- package/dist/modules/auth/components/update-password-command.d.ts +3 -3
- package/dist/modules/auth/components/update-password-command.js +1 -1
- package/dist/modules/auth/handler/client.client.d.ts +48 -48
- package/dist/modules/auth/handler/client.client.d.ts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.ts +26 -0
- package/dist/modules/auth/hooks/use-permission.d.ts.map +1 -0
- package/dist/modules/auth/hooks/{use-permission.client.js → use-permission.js} +5 -3
- package/dist/modules/auth/hooks/use-permission.js.map +1 -0
- package/dist/modules/auth/hooks/use-session.d.ts +34 -0
- package/dist/modules/auth/hooks/use-session.d.ts.map +1 -0
- package/dist/modules/auth/hooks/use-session.js +21 -0
- package/dist/modules/auth/hooks/use-session.js.map +1 -0
- package/dist/modules/auth/lib/helpers.server.d.ts +1 -1
- package/dist/modules/auth/lib/helpers.server.js +2 -2
- package/dist/modules/auth/lib/validators.d.ts +1 -1
- package/dist/modules/auth/lib/validators.d.ts.map +1 -1
- package/dist/modules/auth/lib/validators.js +1 -1
- package/dist/modules/auth/lib/validators.js.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts +11 -11
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.js +1 -1
- package/dist/modules/commands/components/click-command.client.d.ts +2 -2
- package/dist/modules/commands/components/click-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.ts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.js +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.ts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.js +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.ts +12 -12
- package/dist/modules/commands/components/form-dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-action.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.ts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts +8 -4
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.js +9 -1
- package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.ts +8 -4
- package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.js +12 -1
- package/dist/modules/commands/menus/inline-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.ts +4 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.js +6 -3
- package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.ts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/delete-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/send-mail-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/send-mail-command.client.js +3 -3
- package/dist/modules/config/db/helpers.d.ts +5 -5
- package/dist/modules/config/db/helpers.d.ts.map +1 -1
- package/dist/modules/config/lib/config.server.d.ts +0 -2
- package/dist/modules/config/lib/config.server.d.ts.map +1 -1
- package/dist/modules/config/lib/config.server.js.map +1 -1
- package/dist/modules/config/lib/resolve.server.d.ts +189 -190
- package/dist/modules/config/lib/resolve.server.d.ts.map +1 -1
- package/dist/modules/config/paths/helpers.d.ts +11 -0
- package/dist/modules/config/paths/helpers.d.ts.map +1 -0
- package/dist/modules/config/paths/helpers.js +9 -0
- package/dist/modules/config/paths/helpers.js.map +1 -0
- package/dist/modules/config/paths/types.d.ts +8 -37
- package/dist/modules/config/paths/types.d.ts.map +1 -1
- package/dist/modules/config/router/client.server.d.ts +4 -4
- package/dist/modules/config/router/client.server.d.ts.map +1 -1
- package/dist/modules/config/router/context.server.d.ts +191 -192
- package/dist/modules/config/router/context.server.d.ts.map +1 -1
- package/dist/modules/config/router/init.server.d.ts +196 -197
- package/dist/modules/config/router/init.server.d.ts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.ts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.ts +2 -2
- package/dist/modules/data-tables/components/column-header.d.ts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.js +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.ts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/header.d.ts +4 -4
- package/dist/modules/data-tables/components/header.d.ts.map +1 -1
- package/dist/modules/data-tables/components/layout.d.ts +2 -2
- package/dist/modules/data-tables/components/layout.d.ts.map +1 -1
- package/dist/modules/data-tables/components/search-input.client.d.ts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.ts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.ts.map +1 -1
- package/dist/modules/data-tables/components/table.d.ts +7 -7
- package/dist/modules/data-tables/components/table.d.ts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.ts.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.ts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/search-params.d.ts +5 -5
- package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/types.d.ts +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +3 -3
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.js +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
- package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
- package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.js +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -1
- package/dist/modules/uploads/components/button.client.d.ts +2 -2
- package/dist/modules/uploads/components/button.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/grid.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/grid.client.js +1 -1
- package/dist/modules/uploads/components/images/input.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/preview-dialog.client.d.ts +2 -2
- package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/zone.client.d.ts +2 -2
- package/dist/modules/uploads/components/zone.client.d.ts.map +1 -1
- package/dist/modules/uploads/hooks/use-upload-image.client.js +1 -1
- package/dist/modules/uploads/lib/proxy.server.d.ts +1 -1
- package/dist/modules/uploads/lib/proxy.server.js +3 -3
- package/dist/modules/uploads/lib/route.server.d.ts +1 -1
- package/dist/modules/uploads/lib/route.server.js +1 -1
- package/dist/modules/uploads/lib/router.server.d.ts +938 -938
- package/dist/modules/uploads/lib/router.server.d.ts.map +1 -1
- package/dist/modules/uploads/lib/router.server.js +1 -1
- package/dist/modules/uploads/lib/schema.d.ts +61 -61
- package/dist/modules/uploads/lib/validators.d.ts +56 -56
- package/dist/modules/uploads/lib/validators.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/common/icons.tsx +6 -0
- package/src/components/entry.client.ts +6 -0
- package/src/components/entry.server.ts +1 -1
- package/src/components/entry.ts +1 -0
- package/src/components/header/bottom-bar.client.tsx +2 -2
- package/src/components/layouts/admin-layout.tsx +13 -0
- package/src/components/layouts/admin-loading.tsx +1 -1
- package/src/components/layouts/root-loading.tsx +9 -0
- package/src/components/{layouts → navigation}/admin-sidebar-header.client.tsx +11 -6
- package/src/components/navigation/admin-sidebar-paths.client.tsx +190 -0
- package/src/components/navigation/admin-sidebar-skeleton.tsx +44 -0
- package/src/components/navigation/admin-sidebar.client.tsx +123 -0
- package/src/components/ui/spinner.tsx +51 -0
- package/src/modules/auth/components/allowed.client.tsx +1 -1
- package/src/modules/auth/components/auth-layout.server.tsx +2 -10
- package/src/modules/auth/components/auth-loading.tsx +11 -0
- package/src/modules/auth/components/guard.tsx +12 -0
- package/src/modules/auth/components/login-page.client.tsx +4 -3
- package/src/modules/auth/entry.client.ts +2 -0
- package/src/modules/auth/entry.ts +1 -0
- package/src/modules/auth/hooks/{use-permission.client.ts → use-permission.ts} +4 -2
- package/src/modules/auth/hooks/use-session.ts +18 -0
- package/src/modules/auth/lib/validators.ts +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -7
- package/src/modules/commands/menus/dropdown-menu.client.tsx +11 -2
- package/src/modules/commands/menus/inline-menu.client.tsx +14 -1
- package/src/modules/commands/menus/responsive-menu.client.tsx +11 -2
- package/src/modules/config/entry.server.ts +1 -2
- package/src/modules/config/entry.ts +3 -0
- package/src/modules/config/lib/config.server.ts +1 -2
- package/src/modules/config/lib/router.server.ts +64 -0
- package/src/modules/config/paths/helpers.ts +6 -0
- package/src/modules/config/paths/types.ts +26 -38
- package/src/modules/data-tables/components/filters/combobox.client.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +1 -1
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +1 -1
- package/dist/components/layouts/admin-layout.server.d.ts +0 -14
- package/dist/components/layouts/admin-layout.server.d.ts.map +0 -1
- package/dist/components/layouts/admin-layout.server.js +0 -26
- package/dist/components/layouts/admin-layout.server.js.map +0 -1
- package/dist/components/layouts/admin-sidebar-context.client.js +0 -28
- package/dist/components/layouts/admin-sidebar-context.client.js.map +0 -1
- package/dist/components/layouts/admin-sidebar-header.client.js.map +0 -1
- package/dist/components/layouts/admin-sidebar.client.js +0 -51
- package/dist/components/layouts/admin-sidebar.client.js.map +0 -1
- package/dist/modules/auth/hooks/use-permission.client.js.map +0 -1
- package/dist/modules/config/paths/create.server.d.ts +0 -14
- package/dist/modules/config/paths/create.server.d.ts.map +0 -1
- package/dist/modules/config/paths/create.server.js +0 -12
- package/dist/modules/config/paths/create.server.js.map +0 -1
- package/dist/modules/config/paths/get.server.js +0 -47
- package/dist/modules/config/paths/get.server.js.map +0 -1
- package/src/components/layouts/admin-layout.server.tsx +0 -31
- package/src/components/layouts/admin-sidebar-context.client.tsx +0 -34
- package/src/components/layouts/admin-sidebar.client.tsx +0 -88
- package/src/modules/config/paths/create.server.ts +0 -10
- package/src/modules/config/paths/get.server.ts +0 -69
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { TDatabaseSchema } from "../db/types.js";
|
|
2
|
-
import { PathConfig } from "../paths/types.js";
|
|
3
2
|
import { TulipConfig } from "./config.server.js";
|
|
3
|
+
import * as zod119 from "zod";
|
|
4
4
|
import "server-cli-only";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as better_auth_plugins5 from "better-auth/plugins";
|
|
5
|
+
import * as better_auth155 from "better-auth";
|
|
6
|
+
import * as better_auth_plugins28 from "better-auth/plugins";
|
|
8
7
|
import * as drizzle_orm_postgres_js0 from "drizzle-orm/postgres-js";
|
|
9
8
|
import { S3Client } from "@aws-sdk/client-s3";
|
|
10
9
|
import { Resend } from "resend";
|
|
@@ -25,11 +24,11 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
25
24
|
name: string;
|
|
26
25
|
shortName: string;
|
|
27
26
|
};
|
|
28
|
-
paths:
|
|
27
|
+
paths: any;
|
|
29
28
|
schema: TSchema;
|
|
30
29
|
db: drizzle_orm_postgres_js0.PostgresJsDatabase<TSchema>;
|
|
31
|
-
auth:
|
|
32
|
-
database: (options:
|
|
30
|
+
auth: better_auth155.Auth<{
|
|
31
|
+
database: (options: better_auth155.BetterAuthOptions) => better_auth155.Adapter;
|
|
33
32
|
emailAndPassword: {
|
|
34
33
|
enabled: true;
|
|
35
34
|
};
|
|
@@ -54,8 +53,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
54
53
|
id: "next-cookies";
|
|
55
54
|
hooks: {
|
|
56
55
|
after: {
|
|
57
|
-
matcher(ctx:
|
|
58
|
-
handler: (inputContext:
|
|
56
|
+
matcher(ctx: better_auth155.HookEndpointContext): true;
|
|
57
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<void>;
|
|
59
58
|
}[];
|
|
60
59
|
};
|
|
61
60
|
}, {
|
|
@@ -98,7 +97,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
98
97
|
token: string;
|
|
99
98
|
ipAddress?: string | null | undefined;
|
|
100
99
|
userAgent?: string | null | undefined;
|
|
101
|
-
} & Record<string, unknown>, ctx:
|
|
100
|
+
} & Record<string, unknown>, ctx: better_auth155.GenericEndpointContext | undefined): Promise<void>;
|
|
102
101
|
};
|
|
103
102
|
};
|
|
104
103
|
};
|
|
@@ -106,8 +105,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
106
105
|
};
|
|
107
106
|
hooks: {
|
|
108
107
|
after: {
|
|
109
|
-
matcher(context:
|
|
110
|
-
handler: (inputContext:
|
|
108
|
+
matcher(context: better_auth155.HookEndpointContext): boolean;
|
|
109
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<better_auth_plugins28.SessionWithImpersonatedBy[] | undefined>;
|
|
111
110
|
}[];
|
|
112
111
|
};
|
|
113
112
|
endpoints: {
|
|
@@ -130,7 +129,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
130
129
|
} & {
|
|
131
130
|
asResponse?: boolean;
|
|
132
131
|
returnHeaders?: boolean;
|
|
133
|
-
use?:
|
|
132
|
+
use?: better_auth155.Middleware[];
|
|
134
133
|
path?: string;
|
|
135
134
|
} & {
|
|
136
135
|
asResponse?: AsResponse | undefined;
|
|
@@ -138,22 +137,22 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
138
137
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
139
138
|
headers: Headers;
|
|
140
139
|
response: {
|
|
141
|
-
user:
|
|
140
|
+
user: better_auth_plugins28.UserWithRole;
|
|
142
141
|
};
|
|
143
142
|
} : {
|
|
144
|
-
user:
|
|
143
|
+
user: better_auth_plugins28.UserWithRole;
|
|
145
144
|
}>;
|
|
146
145
|
options: {
|
|
147
146
|
method: "POST";
|
|
148
|
-
body:
|
|
149
|
-
userId:
|
|
150
|
-
role:
|
|
151
|
-
},
|
|
147
|
+
body: zod119.ZodObject<{
|
|
148
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
149
|
+
role: zod119.ZodUnion<readonly [zod119.ZodString, zod119.ZodArray<zod119.ZodString>]>;
|
|
150
|
+
}, better_auth155.$strip>;
|
|
152
151
|
requireHeaders: true;
|
|
153
|
-
use: ((inputContext:
|
|
152
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
154
153
|
session: {
|
|
155
|
-
user:
|
|
156
|
-
session:
|
|
154
|
+
user: better_auth_plugins28.UserWithRole;
|
|
155
|
+
session: better_auth155.Session;
|
|
157
156
|
};
|
|
158
157
|
}>)[];
|
|
159
158
|
metadata: {
|
|
@@ -209,7 +208,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
209
208
|
} & {
|
|
210
209
|
asResponse?: boolean;
|
|
211
210
|
returnHeaders?: boolean;
|
|
212
|
-
use?:
|
|
211
|
+
use?: better_auth155.Middleware[];
|
|
213
212
|
path?: string;
|
|
214
213
|
} & {
|
|
215
214
|
asResponse?: AsResponse | undefined;
|
|
@@ -236,13 +235,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
236
235
|
}>;
|
|
237
236
|
options: {
|
|
238
237
|
method: "GET";
|
|
239
|
-
query:
|
|
240
|
-
id:
|
|
241
|
-
},
|
|
242
|
-
use: ((inputContext:
|
|
238
|
+
query: zod119.ZodObject<{
|
|
239
|
+
id: zod119.ZodString;
|
|
240
|
+
}, better_auth155.$strip>;
|
|
241
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
243
242
|
session: {
|
|
244
|
-
user:
|
|
245
|
-
session:
|
|
243
|
+
user: better_auth_plugins28.UserWithRole;
|
|
244
|
+
session: better_auth155.Session;
|
|
246
245
|
};
|
|
247
246
|
}>)[];
|
|
248
247
|
metadata: {
|
|
@@ -296,7 +295,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
296
295
|
} & {
|
|
297
296
|
asResponse?: boolean;
|
|
298
297
|
returnHeaders?: boolean;
|
|
299
|
-
use?:
|
|
298
|
+
use?: better_auth155.Middleware[];
|
|
300
299
|
path?: string;
|
|
301
300
|
} & {
|
|
302
301
|
asResponse?: AsResponse | undefined;
|
|
@@ -304,20 +303,20 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
304
303
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_2] extends [true] ? {
|
|
305
304
|
headers: Headers;
|
|
306
305
|
response: {
|
|
307
|
-
user:
|
|
306
|
+
user: better_auth_plugins28.UserWithRole;
|
|
308
307
|
};
|
|
309
308
|
} : {
|
|
310
|
-
user:
|
|
309
|
+
user: better_auth_plugins28.UserWithRole;
|
|
311
310
|
}>;
|
|
312
311
|
options: {
|
|
313
312
|
method: "POST";
|
|
314
|
-
body:
|
|
315
|
-
email:
|
|
316
|
-
password:
|
|
317
|
-
name:
|
|
318
|
-
role:
|
|
319
|
-
data:
|
|
320
|
-
},
|
|
313
|
+
body: zod119.ZodObject<{
|
|
314
|
+
email: zod119.ZodString;
|
|
315
|
+
password: zod119.ZodString;
|
|
316
|
+
name: zod119.ZodString;
|
|
317
|
+
role: zod119.ZodOptional<zod119.ZodUnion<readonly [zod119.ZodString, zod119.ZodArray<zod119.ZodString>]>>;
|
|
318
|
+
data: zod119.ZodOptional<zod119.ZodRecord<zod119.ZodString, zod119.ZodAny>>;
|
|
319
|
+
}, better_auth155.$strip>;
|
|
321
320
|
metadata: {
|
|
322
321
|
openapi: {
|
|
323
322
|
operationId: string;
|
|
@@ -375,25 +374,25 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
375
374
|
} & {
|
|
376
375
|
asResponse?: boolean;
|
|
377
376
|
returnHeaders?: boolean;
|
|
378
|
-
use?:
|
|
377
|
+
use?: better_auth155.Middleware[];
|
|
379
378
|
path?: string;
|
|
380
379
|
} & {
|
|
381
380
|
asResponse?: AsResponse | undefined;
|
|
382
381
|
returnHeaders?: ReturnHeaders_3 | undefined;
|
|
383
382
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_3] extends [true] ? {
|
|
384
383
|
headers: Headers;
|
|
385
|
-
response:
|
|
386
|
-
} :
|
|
384
|
+
response: better_auth_plugins28.UserWithRole;
|
|
385
|
+
} : better_auth_plugins28.UserWithRole>;
|
|
387
386
|
options: {
|
|
388
387
|
method: "POST";
|
|
389
|
-
body:
|
|
390
|
-
userId:
|
|
391
|
-
data:
|
|
392
|
-
},
|
|
393
|
-
use: ((inputContext:
|
|
388
|
+
body: zod119.ZodObject<{
|
|
389
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
390
|
+
data: zod119.ZodRecord<zod119.ZodAny, zod119.ZodAny>;
|
|
391
|
+
}, better_auth155.$strip>;
|
|
392
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
394
393
|
session: {
|
|
395
|
-
user:
|
|
396
|
-
session:
|
|
394
|
+
user: better_auth_plugins28.UserWithRole;
|
|
395
|
+
session: better_auth155.Session;
|
|
397
396
|
};
|
|
398
397
|
}>)[];
|
|
399
398
|
metadata: {
|
|
@@ -452,7 +451,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
452
451
|
} & {
|
|
453
452
|
asResponse?: boolean;
|
|
454
453
|
returnHeaders?: boolean;
|
|
455
|
-
use?:
|
|
454
|
+
use?: better_auth155.Middleware[];
|
|
456
455
|
path?: string;
|
|
457
456
|
} & {
|
|
458
457
|
asResponse?: AsResponse | undefined;
|
|
@@ -460,7 +459,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
460
459
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_4] extends [true] ? {
|
|
461
460
|
headers: Headers;
|
|
462
461
|
response: {
|
|
463
|
-
users:
|
|
462
|
+
users: better_auth_plugins28.UserWithRole[];
|
|
464
463
|
total: number;
|
|
465
464
|
limit: number | undefined;
|
|
466
465
|
offset: number | undefined;
|
|
@@ -469,7 +468,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
469
468
|
total: number;
|
|
470
469
|
};
|
|
471
470
|
} : {
|
|
472
|
-
users:
|
|
471
|
+
users: better_auth_plugins28.UserWithRole[];
|
|
473
472
|
total: number;
|
|
474
473
|
limit: number | undefined;
|
|
475
474
|
offset: number | undefined;
|
|
@@ -479,33 +478,33 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
479
478
|
}>;
|
|
480
479
|
options: {
|
|
481
480
|
method: "GET";
|
|
482
|
-
use: ((inputContext:
|
|
481
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
483
482
|
session: {
|
|
484
|
-
user:
|
|
485
|
-
session:
|
|
483
|
+
user: better_auth_plugins28.UserWithRole;
|
|
484
|
+
session: better_auth155.Session;
|
|
486
485
|
};
|
|
487
486
|
}>)[];
|
|
488
|
-
query:
|
|
489
|
-
searchValue:
|
|
490
|
-
searchField:
|
|
487
|
+
query: zod119.ZodObject<{
|
|
488
|
+
searchValue: zod119.ZodOptional<zod119.ZodString>;
|
|
489
|
+
searchField: zod119.ZodOptional<zod119.ZodEnum<{
|
|
491
490
|
name: "name";
|
|
492
491
|
email: "email";
|
|
493
492
|
}>>;
|
|
494
|
-
searchOperator:
|
|
493
|
+
searchOperator: zod119.ZodOptional<zod119.ZodEnum<{
|
|
495
494
|
contains: "contains";
|
|
496
495
|
starts_with: "starts_with";
|
|
497
496
|
ends_with: "ends_with";
|
|
498
497
|
}>>;
|
|
499
|
-
limit:
|
|
500
|
-
offset:
|
|
501
|
-
sortBy:
|
|
502
|
-
sortDirection:
|
|
498
|
+
limit: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>>;
|
|
499
|
+
offset: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>>;
|
|
500
|
+
sortBy: zod119.ZodOptional<zod119.ZodString>;
|
|
501
|
+
sortDirection: zod119.ZodOptional<zod119.ZodEnum<{
|
|
503
502
|
asc: "asc";
|
|
504
503
|
desc: "desc";
|
|
505
504
|
}>>;
|
|
506
|
-
filterField:
|
|
507
|
-
filterValue:
|
|
508
|
-
filterOperator:
|
|
505
|
+
filterField: zod119.ZodOptional<zod119.ZodString>;
|
|
506
|
+
filterValue: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>, zod119.ZodBoolean]>>;
|
|
507
|
+
filterOperator: zod119.ZodOptional<zod119.ZodEnum<{
|
|
509
508
|
eq: "eq";
|
|
510
509
|
ne: "ne";
|
|
511
510
|
lt: "lt";
|
|
@@ -514,7 +513,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
514
513
|
gte: "gte";
|
|
515
514
|
contains: "contains";
|
|
516
515
|
}>>;
|
|
517
|
-
},
|
|
516
|
+
}, better_auth155.$strip>;
|
|
518
517
|
metadata: {
|
|
519
518
|
openapi: {
|
|
520
519
|
operationId: string;
|
|
@@ -575,7 +574,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
575
574
|
} & {
|
|
576
575
|
asResponse?: boolean;
|
|
577
576
|
returnHeaders?: boolean;
|
|
578
|
-
use?:
|
|
577
|
+
use?: better_auth155.Middleware[];
|
|
579
578
|
path?: string;
|
|
580
579
|
} & {
|
|
581
580
|
asResponse?: AsResponse | undefined;
|
|
@@ -583,22 +582,22 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
583
582
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_5] extends [true] ? {
|
|
584
583
|
headers: Headers;
|
|
585
584
|
response: {
|
|
586
|
-
sessions:
|
|
585
|
+
sessions: better_auth_plugins28.SessionWithImpersonatedBy[];
|
|
587
586
|
};
|
|
588
587
|
} : {
|
|
589
|
-
sessions:
|
|
588
|
+
sessions: better_auth_plugins28.SessionWithImpersonatedBy[];
|
|
590
589
|
}>;
|
|
591
590
|
options: {
|
|
592
591
|
method: "POST";
|
|
593
|
-
use: ((inputContext:
|
|
592
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
594
593
|
session: {
|
|
595
|
-
user:
|
|
596
|
-
session:
|
|
594
|
+
user: better_auth_plugins28.UserWithRole;
|
|
595
|
+
session: better_auth155.Session;
|
|
597
596
|
};
|
|
598
597
|
}>)[];
|
|
599
|
-
body:
|
|
600
|
-
userId:
|
|
601
|
-
},
|
|
598
|
+
body: zod119.ZodObject<{
|
|
599
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
600
|
+
}, better_auth155.$strip>;
|
|
602
601
|
metadata: {
|
|
603
602
|
openapi: {
|
|
604
603
|
operationId: string;
|
|
@@ -649,7 +648,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
649
648
|
} & {
|
|
650
649
|
asResponse?: boolean;
|
|
651
650
|
returnHeaders?: boolean;
|
|
652
|
-
use?:
|
|
651
|
+
use?: better_auth155.Middleware[];
|
|
653
652
|
path?: string;
|
|
654
653
|
} & {
|
|
655
654
|
asResponse?: AsResponse | undefined;
|
|
@@ -664,13 +663,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
664
663
|
}>;
|
|
665
664
|
options: {
|
|
666
665
|
method: "POST";
|
|
667
|
-
body:
|
|
668
|
-
userId:
|
|
669
|
-
},
|
|
670
|
-
use: ((inputContext:
|
|
666
|
+
body: zod119.ZodObject<{
|
|
667
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
668
|
+
}, better_auth155.$strip>;
|
|
669
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
671
670
|
session: {
|
|
672
|
-
user:
|
|
673
|
-
session:
|
|
671
|
+
user: better_auth_plugins28.UserWithRole;
|
|
672
|
+
session: better_auth155.Session;
|
|
674
673
|
};
|
|
675
674
|
}>)[];
|
|
676
675
|
metadata: {
|
|
@@ -722,7 +721,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
722
721
|
} & {
|
|
723
722
|
asResponse?: boolean;
|
|
724
723
|
returnHeaders?: boolean;
|
|
725
|
-
use?:
|
|
724
|
+
use?: better_auth155.Middleware[];
|
|
726
725
|
path?: string;
|
|
727
726
|
} & {
|
|
728
727
|
asResponse?: AsResponse | undefined;
|
|
@@ -737,15 +736,15 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
737
736
|
}>;
|
|
738
737
|
options: {
|
|
739
738
|
method: "POST";
|
|
740
|
-
body:
|
|
741
|
-
userId:
|
|
742
|
-
banReason:
|
|
743
|
-
banExpiresIn:
|
|
744
|
-
},
|
|
745
|
-
use: ((inputContext:
|
|
739
|
+
body: zod119.ZodObject<{
|
|
740
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
741
|
+
banReason: zod119.ZodOptional<zod119.ZodString>;
|
|
742
|
+
banExpiresIn: zod119.ZodOptional<zod119.ZodNumber>;
|
|
743
|
+
}, better_auth155.$strip>;
|
|
744
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
746
745
|
session: {
|
|
747
|
-
user:
|
|
748
|
-
session:
|
|
746
|
+
user: better_auth_plugins28.UserWithRole;
|
|
747
|
+
session: better_auth155.Session;
|
|
749
748
|
};
|
|
750
749
|
}>)[];
|
|
751
750
|
metadata: {
|
|
@@ -795,7 +794,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
795
794
|
} & {
|
|
796
795
|
asResponse?: boolean;
|
|
797
796
|
returnHeaders?: boolean;
|
|
798
|
-
use?:
|
|
797
|
+
use?: better_auth155.Middleware[];
|
|
799
798
|
path?: string;
|
|
800
799
|
} & {
|
|
801
800
|
asResponse?: AsResponse | undefined;
|
|
@@ -846,13 +845,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
846
845
|
}>;
|
|
847
846
|
options: {
|
|
848
847
|
method: "POST";
|
|
849
|
-
body:
|
|
850
|
-
userId:
|
|
851
|
-
},
|
|
852
|
-
use: ((inputContext:
|
|
848
|
+
body: zod119.ZodObject<{
|
|
849
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
850
|
+
}, better_auth155.$strip>;
|
|
851
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
853
852
|
session: {
|
|
854
|
-
user:
|
|
855
|
-
session:
|
|
853
|
+
user: better_auth_plugins28.UserWithRole;
|
|
854
|
+
session: better_auth155.Session;
|
|
856
855
|
};
|
|
857
856
|
}>)[];
|
|
858
857
|
metadata: {
|
|
@@ -903,7 +902,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
903
902
|
} & {
|
|
904
903
|
asResponse?: boolean;
|
|
905
904
|
returnHeaders?: boolean;
|
|
906
|
-
use?:
|
|
905
|
+
use?: better_auth155.Middleware[];
|
|
907
906
|
path?: string;
|
|
908
907
|
} & {
|
|
909
908
|
asResponse?: AsResponse | undefined;
|
|
@@ -911,11 +910,11 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
911
910
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_9] extends [true] ? {
|
|
912
911
|
headers: Headers;
|
|
913
912
|
response: {
|
|
914
|
-
session:
|
|
913
|
+
session: better_auth155.Session & Record<string, any>;
|
|
915
914
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
916
915
|
};
|
|
917
916
|
} : {
|
|
918
|
-
session:
|
|
917
|
+
session: better_auth155.Session & Record<string, any>;
|
|
919
918
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
920
919
|
}>;
|
|
921
920
|
options: {
|
|
@@ -944,7 +943,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
944
943
|
} & {
|
|
945
944
|
asResponse?: boolean;
|
|
946
945
|
returnHeaders?: boolean;
|
|
947
|
-
use?:
|
|
946
|
+
use?: better_auth155.Middleware[];
|
|
948
947
|
path?: string;
|
|
949
948
|
} & {
|
|
950
949
|
asResponse?: AsResponse | undefined;
|
|
@@ -959,13 +958,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
959
958
|
}>;
|
|
960
959
|
options: {
|
|
961
960
|
method: "POST";
|
|
962
|
-
body:
|
|
963
|
-
sessionToken:
|
|
964
|
-
},
|
|
965
|
-
use: ((inputContext:
|
|
961
|
+
body: zod119.ZodObject<{
|
|
962
|
+
sessionToken: zod119.ZodString;
|
|
963
|
+
}, better_auth155.$strip>;
|
|
964
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
966
965
|
session: {
|
|
967
|
-
user:
|
|
968
|
-
session:
|
|
966
|
+
user: better_auth_plugins28.UserWithRole;
|
|
967
|
+
session: better_auth155.Session;
|
|
969
968
|
};
|
|
970
969
|
}>)[];
|
|
971
970
|
metadata: {
|
|
@@ -1015,7 +1014,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1015
1014
|
} & {
|
|
1016
1015
|
asResponse?: boolean;
|
|
1017
1016
|
returnHeaders?: boolean;
|
|
1018
|
-
use?:
|
|
1017
|
+
use?: better_auth155.Middleware[];
|
|
1019
1018
|
path?: string;
|
|
1020
1019
|
} & {
|
|
1021
1020
|
asResponse?: AsResponse | undefined;
|
|
@@ -1030,13 +1029,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1030
1029
|
}>;
|
|
1031
1030
|
options: {
|
|
1032
1031
|
method: "POST";
|
|
1033
|
-
body:
|
|
1034
|
-
userId:
|
|
1035
|
-
},
|
|
1036
|
-
use: ((inputContext:
|
|
1032
|
+
body: zod119.ZodObject<{
|
|
1033
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1034
|
+
}, better_auth155.$strip>;
|
|
1035
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1037
1036
|
session: {
|
|
1038
|
-
user:
|
|
1039
|
-
session:
|
|
1037
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1038
|
+
session: better_auth155.Session;
|
|
1040
1039
|
};
|
|
1041
1040
|
}>)[];
|
|
1042
1041
|
metadata: {
|
|
@@ -1086,7 +1085,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1086
1085
|
} & {
|
|
1087
1086
|
asResponse?: boolean;
|
|
1088
1087
|
returnHeaders?: boolean;
|
|
1089
|
-
use?:
|
|
1088
|
+
use?: better_auth155.Middleware[];
|
|
1090
1089
|
path?: string;
|
|
1091
1090
|
} & {
|
|
1092
1091
|
asResponse?: AsResponse | undefined;
|
|
@@ -1101,13 +1100,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1101
1100
|
}>;
|
|
1102
1101
|
options: {
|
|
1103
1102
|
method: "POST";
|
|
1104
|
-
body:
|
|
1105
|
-
userId:
|
|
1106
|
-
},
|
|
1107
|
-
use: ((inputContext:
|
|
1103
|
+
body: zod119.ZodObject<{
|
|
1104
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1105
|
+
}, better_auth155.$strip>;
|
|
1106
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1108
1107
|
session: {
|
|
1109
|
-
user:
|
|
1110
|
-
session:
|
|
1108
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1109
|
+
session: better_auth155.Session;
|
|
1111
1110
|
};
|
|
1112
1111
|
}>)[];
|
|
1113
1112
|
metadata: {
|
|
@@ -1158,7 +1157,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1158
1157
|
} & {
|
|
1159
1158
|
asResponse?: boolean;
|
|
1160
1159
|
returnHeaders?: boolean;
|
|
1161
|
-
use?:
|
|
1160
|
+
use?: better_auth155.Middleware[];
|
|
1162
1161
|
path?: string;
|
|
1163
1162
|
} & {
|
|
1164
1163
|
asResponse?: AsResponse | undefined;
|
|
@@ -1173,14 +1172,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1173
1172
|
}>;
|
|
1174
1173
|
options: {
|
|
1175
1174
|
method: "POST";
|
|
1176
|
-
body:
|
|
1177
|
-
newPassword:
|
|
1178
|
-
userId:
|
|
1179
|
-
},
|
|
1180
|
-
use: ((inputContext:
|
|
1175
|
+
body: zod119.ZodObject<{
|
|
1176
|
+
newPassword: zod119.ZodString;
|
|
1177
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1178
|
+
}, better_auth155.$strip>;
|
|
1179
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1181
1180
|
session: {
|
|
1182
|
-
user:
|
|
1183
|
-
session:
|
|
1181
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1182
|
+
session: better_auth155.Session;
|
|
1184
1183
|
};
|
|
1185
1184
|
}>)[];
|
|
1186
1185
|
metadata: {
|
|
@@ -1216,12 +1215,12 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1216
1215
|
<AsResponse extends boolean = false, ReturnHeaders_14 extends boolean = false>(inputCtx_0: {
|
|
1217
1216
|
body: ({
|
|
1218
1217
|
permission: {
|
|
1219
|
-
readonly [x: string]:
|
|
1218
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1220
1219
|
};
|
|
1221
1220
|
permissions?: never;
|
|
1222
1221
|
} | {
|
|
1223
1222
|
permissions: {
|
|
1224
|
-
readonly [x: string]:
|
|
1223
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1225
1224
|
};
|
|
1226
1225
|
permission?: never;
|
|
1227
1226
|
}) & {
|
|
@@ -1241,7 +1240,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1241
1240
|
} & {
|
|
1242
1241
|
asResponse?: boolean;
|
|
1243
1242
|
returnHeaders?: boolean;
|
|
1244
|
-
use?:
|
|
1243
|
+
use?: better_auth155.Middleware[];
|
|
1245
1244
|
path?: string;
|
|
1246
1245
|
} & {
|
|
1247
1246
|
asResponse?: AsResponse | undefined;
|
|
@@ -1258,16 +1257,16 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1258
1257
|
}>;
|
|
1259
1258
|
options: {
|
|
1260
1259
|
method: "POST";
|
|
1261
|
-
body:
|
|
1262
|
-
userId:
|
|
1263
|
-
role:
|
|
1264
|
-
},
|
|
1265
|
-
permission:
|
|
1266
|
-
permissions:
|
|
1267
|
-
},
|
|
1268
|
-
permission:
|
|
1269
|
-
permissions:
|
|
1270
|
-
},
|
|
1260
|
+
body: zod119.ZodIntersection<zod119.ZodObject<{
|
|
1261
|
+
userId: zod119.ZodOptional<zod119.ZodCoercedString<unknown>>;
|
|
1262
|
+
role: zod119.ZodOptional<zod119.ZodString>;
|
|
1263
|
+
}, better_auth155.$strip>, zod119.ZodUnion<readonly [zod119.ZodObject<{
|
|
1264
|
+
permission: zod119.ZodRecord<zod119.ZodString, zod119.ZodArray<zod119.ZodString>>;
|
|
1265
|
+
permissions: zod119.ZodUndefined;
|
|
1266
|
+
}, better_auth155.$strip>, zod119.ZodObject<{
|
|
1267
|
+
permission: zod119.ZodUndefined;
|
|
1268
|
+
permissions: zod119.ZodRecord<zod119.ZodString, zod119.ZodArray<zod119.ZodString>>;
|
|
1269
|
+
}, better_auth155.$strip>]>>;
|
|
1271
1270
|
metadata: {
|
|
1272
1271
|
openapi: {
|
|
1273
1272
|
description: string;
|
|
@@ -1317,12 +1316,12 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1317
1316
|
$Infer: {
|
|
1318
1317
|
body: ({
|
|
1319
1318
|
permission: {
|
|
1320
|
-
readonly [x: string]:
|
|
1319
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1321
1320
|
};
|
|
1322
1321
|
permissions?: never;
|
|
1323
1322
|
} | {
|
|
1324
1323
|
permissions: {
|
|
1325
|
-
readonly [x: string]:
|
|
1324
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1326
1325
|
};
|
|
1327
1326
|
permission?: never;
|
|
1328
1327
|
}) & {
|
|
@@ -1395,7 +1394,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1395
1394
|
options: any;
|
|
1396
1395
|
}, {
|
|
1397
1396
|
id: "email-otp";
|
|
1398
|
-
init(ctx:
|
|
1397
|
+
init(ctx: better_auth155.AuthContext): {
|
|
1399
1398
|
options: {
|
|
1400
1399
|
emailVerification: {
|
|
1401
1400
|
sendVerificationEmail(data: {
|
|
@@ -1426,7 +1425,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1426
1425
|
} & {
|
|
1427
1426
|
asResponse?: boolean;
|
|
1428
1427
|
returnHeaders?: boolean;
|
|
1429
|
-
use?:
|
|
1428
|
+
use?: better_auth155.Middleware[];
|
|
1430
1429
|
path?: string;
|
|
1431
1430
|
} & {
|
|
1432
1431
|
asResponse?: AsResponse | undefined;
|
|
@@ -1437,14 +1436,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1437
1436
|
} : string>;
|
|
1438
1437
|
options: {
|
|
1439
1438
|
method: "POST";
|
|
1440
|
-
body:
|
|
1441
|
-
email:
|
|
1442
|
-
type:
|
|
1439
|
+
body: zod119.ZodObject<{
|
|
1440
|
+
email: zod119.ZodString;
|
|
1441
|
+
type: zod119.ZodEnum<{
|
|
1443
1442
|
"sign-in": "sign-in";
|
|
1444
1443
|
"forget-password": "forget-password";
|
|
1445
1444
|
"email-verification": "email-verification";
|
|
1446
1445
|
}>;
|
|
1447
|
-
},
|
|
1446
|
+
}, better_auth155.$strip>;
|
|
1448
1447
|
metadata: {
|
|
1449
1448
|
SERVER_ONLY: true;
|
|
1450
1449
|
openapi: {
|
|
@@ -1487,7 +1486,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1487
1486
|
} & {
|
|
1488
1487
|
asResponse?: boolean;
|
|
1489
1488
|
returnHeaders?: boolean;
|
|
1490
|
-
use?:
|
|
1489
|
+
use?: better_auth155.Middleware[];
|
|
1491
1490
|
path?: string;
|
|
1492
1491
|
} & {
|
|
1493
1492
|
asResponse?: AsResponse | undefined;
|
|
@@ -1506,14 +1505,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1506
1505
|
}>;
|
|
1507
1506
|
options: {
|
|
1508
1507
|
method: "GET";
|
|
1509
|
-
query:
|
|
1510
|
-
email:
|
|
1511
|
-
type:
|
|
1508
|
+
query: zod119.ZodObject<{
|
|
1509
|
+
email: zod119.ZodString;
|
|
1510
|
+
type: zod119.ZodEnum<{
|
|
1512
1511
|
"sign-in": "sign-in";
|
|
1513
1512
|
"forget-password": "forget-password";
|
|
1514
1513
|
"email-verification": "email-verification";
|
|
1515
1514
|
}>;
|
|
1516
|
-
},
|
|
1515
|
+
}, better_auth155.$strip>;
|
|
1517
1516
|
metadata: {
|
|
1518
1517
|
SERVER_ONLY: true;
|
|
1519
1518
|
openapi: {
|
|
@@ -1565,7 +1564,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1565
1564
|
} & {
|
|
1566
1565
|
asResponse?: boolean;
|
|
1567
1566
|
returnHeaders?: boolean;
|
|
1568
|
-
use?:
|
|
1567
|
+
use?: better_auth155.Middleware[];
|
|
1569
1568
|
path?: string;
|
|
1570
1569
|
} & {
|
|
1571
1570
|
asResponse?: AsResponse | undefined;
|
|
@@ -1580,15 +1579,15 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1580
1579
|
}>;
|
|
1581
1580
|
options: {
|
|
1582
1581
|
method: "POST";
|
|
1583
|
-
body:
|
|
1584
|
-
email:
|
|
1585
|
-
type:
|
|
1582
|
+
body: zod119.ZodObject<{
|
|
1583
|
+
email: zod119.ZodString;
|
|
1584
|
+
type: zod119.ZodEnum<{
|
|
1586
1585
|
"sign-in": "sign-in";
|
|
1587
1586
|
"forget-password": "forget-password";
|
|
1588
1587
|
"email-verification": "email-verification";
|
|
1589
1588
|
}>;
|
|
1590
|
-
otp:
|
|
1591
|
-
},
|
|
1589
|
+
otp: zod119.ZodString;
|
|
1590
|
+
}, better_auth155.$strip>;
|
|
1592
1591
|
metadata: {
|
|
1593
1592
|
openapi: {
|
|
1594
1593
|
description: string;
|
|
@@ -1635,7 +1634,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1635
1634
|
} & {
|
|
1636
1635
|
asResponse?: boolean;
|
|
1637
1636
|
returnHeaders?: boolean;
|
|
1638
|
-
use?:
|
|
1637
|
+
use?: better_auth155.Middleware[];
|
|
1639
1638
|
path?: string;
|
|
1640
1639
|
} & {
|
|
1641
1640
|
asResponse?: AsResponse | undefined;
|
|
@@ -1694,10 +1693,10 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1694
1693
|
}>;
|
|
1695
1694
|
options: {
|
|
1696
1695
|
method: "POST";
|
|
1697
|
-
body:
|
|
1698
|
-
email:
|
|
1699
|
-
otp:
|
|
1700
|
-
},
|
|
1696
|
+
body: zod119.ZodObject<{
|
|
1697
|
+
email: zod119.ZodString;
|
|
1698
|
+
otp: zod119.ZodString;
|
|
1699
|
+
}, better_auth155.$strip>;
|
|
1701
1700
|
metadata: {
|
|
1702
1701
|
openapi: {
|
|
1703
1702
|
description: string;
|
|
@@ -1755,7 +1754,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1755
1754
|
} & {
|
|
1756
1755
|
asResponse?: boolean;
|
|
1757
1756
|
returnHeaders?: boolean;
|
|
1758
|
-
use?:
|
|
1757
|
+
use?: better_auth155.Middleware[];
|
|
1759
1758
|
path?: string;
|
|
1760
1759
|
} & {
|
|
1761
1760
|
asResponse?: AsResponse | undefined;
|
|
@@ -1788,10 +1787,10 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1788
1787
|
}>;
|
|
1789
1788
|
options: {
|
|
1790
1789
|
method: "POST";
|
|
1791
|
-
body:
|
|
1792
|
-
email:
|
|
1793
|
-
otp:
|
|
1794
|
-
},
|
|
1790
|
+
body: zod119.ZodObject<{
|
|
1791
|
+
email: zod119.ZodString;
|
|
1792
|
+
otp: zod119.ZodString;
|
|
1793
|
+
}, better_auth155.$strip>;
|
|
1795
1794
|
metadata: {
|
|
1796
1795
|
openapi: {
|
|
1797
1796
|
description: string;
|
|
@@ -1842,7 +1841,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1842
1841
|
} & {
|
|
1843
1842
|
asResponse?: boolean;
|
|
1844
1843
|
returnHeaders?: boolean;
|
|
1845
|
-
use?:
|
|
1844
|
+
use?: better_auth155.Middleware[];
|
|
1846
1845
|
path?: string;
|
|
1847
1846
|
} & {
|
|
1848
1847
|
asResponse?: AsResponse | undefined;
|
|
@@ -1857,9 +1856,9 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1857
1856
|
}>;
|
|
1858
1857
|
options: {
|
|
1859
1858
|
method: "POST";
|
|
1860
|
-
body:
|
|
1861
|
-
email:
|
|
1862
|
-
},
|
|
1859
|
+
body: zod119.ZodObject<{
|
|
1860
|
+
email: zod119.ZodString;
|
|
1861
|
+
}, better_auth155.$strip>;
|
|
1863
1862
|
metadata: {
|
|
1864
1863
|
openapi: {
|
|
1865
1864
|
description: string;
|
|
@@ -1908,7 +1907,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1908
1907
|
} & {
|
|
1909
1908
|
asResponse?: boolean;
|
|
1910
1909
|
returnHeaders?: boolean;
|
|
1911
|
-
use?:
|
|
1910
|
+
use?: better_auth155.Middleware[];
|
|
1912
1911
|
path?: string;
|
|
1913
1912
|
} & {
|
|
1914
1913
|
asResponse?: AsResponse | undefined;
|
|
@@ -1923,11 +1922,11 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1923
1922
|
}>;
|
|
1924
1923
|
options: {
|
|
1925
1924
|
method: "POST";
|
|
1926
|
-
body:
|
|
1927
|
-
email:
|
|
1928
|
-
otp:
|
|
1929
|
-
password:
|
|
1930
|
-
},
|
|
1925
|
+
body: zod119.ZodObject<{
|
|
1926
|
+
email: zod119.ZodString;
|
|
1927
|
+
otp: zod119.ZodString;
|
|
1928
|
+
password: zod119.ZodString;
|
|
1929
|
+
}, better_auth155.$strip>;
|
|
1931
1930
|
metadata: {
|
|
1932
1931
|
openapi: {
|
|
1933
1932
|
description: string;
|
|
@@ -1974,7 +1973,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1974
1973
|
} & {
|
|
1975
1974
|
asResponse?: boolean;
|
|
1976
1975
|
returnHeaders?: boolean;
|
|
1977
|
-
use?:
|
|
1976
|
+
use?: better_auth155.Middleware[];
|
|
1978
1977
|
path?: string;
|
|
1979
1978
|
} & {
|
|
1980
1979
|
asResponse?: AsResponse | undefined;
|
|
@@ -1989,14 +1988,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1989
1988
|
}>;
|
|
1990
1989
|
options: {
|
|
1991
1990
|
method: "POST";
|
|
1992
|
-
body:
|
|
1993
|
-
email:
|
|
1994
|
-
type:
|
|
1991
|
+
body: zod119.ZodObject<{
|
|
1992
|
+
email: zod119.ZodString;
|
|
1993
|
+
type: zod119.ZodEnum<{
|
|
1995
1994
|
"sign-in": "sign-in";
|
|
1996
1995
|
"forget-password": "forget-password";
|
|
1997
1996
|
"email-verification": "email-verification";
|
|
1998
1997
|
}>;
|
|
1999
|
-
},
|
|
1998
|
+
}, better_auth155.$strip>;
|
|
2000
1999
|
metadata: {
|
|
2001
2000
|
openapi: {
|
|
2002
2001
|
description: string;
|
|
@@ -2027,8 +2026,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
2027
2026
|
};
|
|
2028
2027
|
hooks: {
|
|
2029
2028
|
after: {
|
|
2030
|
-
matcher(context:
|
|
2031
|
-
handler: (inputContext:
|
|
2029
|
+
matcher(context: better_auth155.HookEndpointContext): boolean;
|
|
2030
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<void>;
|
|
2032
2031
|
}[];
|
|
2033
2032
|
};
|
|
2034
2033
|
$ERROR_CODES: {
|