@tulip-systems/core 0.2.1 → 0.4.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/server.d.ts +2 -2
- package/dist/auth/server.js +3 -3
- 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 +5 -2
- 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/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 +2 -2
- 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/list-layout.d.ts +2 -2
- package/dist/components/layouts/not-found-page.d.ts +4 -3
- package/dist/components/layouts/not-found-page.d.ts.map +1 -1
- package/dist/components/layouts/not-found-page.js +8 -2
- package/dist/components/layouts/not-found-page.js.map +1 -1
- package/dist/components/layouts/not-found-section.js +1 -1
- package/dist/components/layouts/not-found-section.js.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/lists/data-list.d.ts +5 -5
- package/dist/components/lists/data-stack.d.ts +8 -8
- 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/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert.d.ts +6 -6
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/avatar.client.d.ts +4 -4
- package/dist/components/ui/badge.d.ts +4 -4
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts +6 -6
- package/dist/components/ui/chart.client.d.ts +5 -5
- package/dist/components/ui/checkbox.d.ts +2 -2
- 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/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/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 +24 -24
- 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 +4 -4
- package/dist/components/ui/tooltip.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts.map +1 -1
- package/dist/components.d.ts +6 -5
- package/dist/components.js +8 -7
- 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/modules/auth/components/allowed.client.js +1 -1
- package/dist/modules/auth/components/allowed.client.js.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.ts +3 -4
- 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.js +2 -2
- package/dist/modules/auth/components/guard.client.js +16 -0
- package/dist/modules/auth/components/guard.client.js.map +1 -0
- package/dist/modules/auth/components/login-page.client.d.ts +1 -5
- package/dist/modules/auth/components/login-page.client.d.ts.map +1 -1
- package/dist/modules/auth/components/login-page.client.js +41 -31
- package/dist/modules/auth/components/login-page.client.js.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.js +3 -3
- package/dist/modules/auth/components/update-password-command.d.ts +1 -1
- 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/handler/proxy.server.d.ts +13 -0
- package/dist/modules/auth/handler/proxy.server.d.ts.map +1 -0
- package/dist/modules/auth/handler/proxy.server.js +22 -0
- package/dist/modules/auth/handler/proxy.server.js.map +1 -0
- package/dist/modules/auth/handler/server.server.js +3 -1
- package/dist/modules/auth/handler/server.server.js.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 +2 -2
- package/dist/modules/auth/lib/helpers.server.d.ts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.js +3 -6
- package/dist/modules/auth/lib/helpers.server.js.map +1 -1
- package/dist/modules/auth/lib/validators.d.ts +4 -4
- 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.js +1 -1
- package/dist/modules/commands/components/click-command.client.d.ts +2 -2
- package/dist/modules/commands/components/command-trigger.client.d.ts +4 -4
- 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.js +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
- package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
- package/dist/modules/commands/components/form-dialog-command.client.d.ts +12 -12
- 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/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 +2 -1
- 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/delete-command.client.d.ts +2 -2
- 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 +192 -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 +194 -192
- package/dist/modules/config/router/context.server.d.ts.map +1 -1
- package/dist/modules/config/router/init.server.d.ts +200 -198
- 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/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/layout.d.ts +2 -2
- 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/table.d.ts +7 -7
- package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
- 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.js +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
- package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
- package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
- 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 +4 -4
- package/dist/modules/uploads/lib/route.server.d.ts +1 -1
- package/dist/modules/uploads/lib/route.server.js +2 -2
- package/dist/modules/uploads/lib/router.server.d.ts +965 -965
- package/dist/modules/uploads/lib/router.server.d.ts.map +1 -1
- package/dist/modules/uploads/lib/router.server.js +2 -2
- 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 +5 -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/not-found-page.tsx +9 -1
- package/src/components/layouts/not-found-section.tsx +10 -5
- 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.client.tsx +12 -0
- package/src/modules/auth/components/login-page.client.tsx +45 -37
- package/src/modules/auth/entry.client.ts +2 -0
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/entry.ts +1 -0
- package/src/modules/auth/handler/proxy.server.ts +28 -0
- package/src/modules/auth/handler/server.server.ts +5 -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/helpers.server.ts +1 -5
- 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/components/allowed.server.d.ts +0 -23
- package/dist/modules/auth/components/allowed.server.d.ts.map +0 -1
- package/dist/modules/auth/components/allowed.server.js +0 -24
- package/dist/modules/auth/components/allowed.server.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/auth/components/allowed.server.tsx +0 -41
- 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,14 @@ 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
|
-
|
|
30
|
+
auth: better_auth155.Auth<{
|
|
31
|
+
advanced: {
|
|
32
|
+
cookiePrefix: string;
|
|
33
|
+
};
|
|
34
|
+
database: (options: better_auth155.BetterAuthOptions) => better_auth155.Adapter;
|
|
33
35
|
emailAndPassword: {
|
|
34
36
|
enabled: true;
|
|
35
37
|
};
|
|
@@ -54,8 +56,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
54
56
|
id: "next-cookies";
|
|
55
57
|
hooks: {
|
|
56
58
|
after: {
|
|
57
|
-
matcher(ctx:
|
|
58
|
-
handler: (inputContext:
|
|
59
|
+
matcher(ctx: better_auth155.HookEndpointContext): true;
|
|
60
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<void>;
|
|
59
61
|
}[];
|
|
60
62
|
};
|
|
61
63
|
}, {
|
|
@@ -98,7 +100,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
98
100
|
token: string;
|
|
99
101
|
ipAddress?: string | null | undefined;
|
|
100
102
|
userAgent?: string | null | undefined;
|
|
101
|
-
} & Record<string, unknown>, ctx:
|
|
103
|
+
} & Record<string, unknown>, ctx: better_auth155.GenericEndpointContext | undefined): Promise<void>;
|
|
102
104
|
};
|
|
103
105
|
};
|
|
104
106
|
};
|
|
@@ -106,8 +108,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
106
108
|
};
|
|
107
109
|
hooks: {
|
|
108
110
|
after: {
|
|
109
|
-
matcher(context:
|
|
110
|
-
handler: (inputContext:
|
|
111
|
+
matcher(context: better_auth155.HookEndpointContext): boolean;
|
|
112
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<better_auth_plugins28.SessionWithImpersonatedBy[] | undefined>;
|
|
111
113
|
}[];
|
|
112
114
|
};
|
|
113
115
|
endpoints: {
|
|
@@ -130,7 +132,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
130
132
|
} & {
|
|
131
133
|
asResponse?: boolean;
|
|
132
134
|
returnHeaders?: boolean;
|
|
133
|
-
use?:
|
|
135
|
+
use?: better_auth155.Middleware[];
|
|
134
136
|
path?: string;
|
|
135
137
|
} & {
|
|
136
138
|
asResponse?: AsResponse | undefined;
|
|
@@ -138,22 +140,22 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
138
140
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
139
141
|
headers: Headers;
|
|
140
142
|
response: {
|
|
141
|
-
user:
|
|
143
|
+
user: better_auth_plugins28.UserWithRole;
|
|
142
144
|
};
|
|
143
145
|
} : {
|
|
144
|
-
user:
|
|
146
|
+
user: better_auth_plugins28.UserWithRole;
|
|
145
147
|
}>;
|
|
146
148
|
options: {
|
|
147
149
|
method: "POST";
|
|
148
|
-
body:
|
|
149
|
-
userId:
|
|
150
|
-
role:
|
|
151
|
-
},
|
|
150
|
+
body: zod119.ZodObject<{
|
|
151
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
152
|
+
role: zod119.ZodUnion<readonly [zod119.ZodString, zod119.ZodArray<zod119.ZodString>]>;
|
|
153
|
+
}, better_auth155.$strip>;
|
|
152
154
|
requireHeaders: true;
|
|
153
|
-
use: ((inputContext:
|
|
155
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
154
156
|
session: {
|
|
155
|
-
user:
|
|
156
|
-
session:
|
|
157
|
+
user: better_auth_plugins28.UserWithRole;
|
|
158
|
+
session: better_auth155.Session;
|
|
157
159
|
};
|
|
158
160
|
}>)[];
|
|
159
161
|
metadata: {
|
|
@@ -209,7 +211,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
209
211
|
} & {
|
|
210
212
|
asResponse?: boolean;
|
|
211
213
|
returnHeaders?: boolean;
|
|
212
|
-
use?:
|
|
214
|
+
use?: better_auth155.Middleware[];
|
|
213
215
|
path?: string;
|
|
214
216
|
} & {
|
|
215
217
|
asResponse?: AsResponse | undefined;
|
|
@@ -236,13 +238,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
236
238
|
}>;
|
|
237
239
|
options: {
|
|
238
240
|
method: "GET";
|
|
239
|
-
query:
|
|
240
|
-
id:
|
|
241
|
-
},
|
|
242
|
-
use: ((inputContext:
|
|
241
|
+
query: zod119.ZodObject<{
|
|
242
|
+
id: zod119.ZodString;
|
|
243
|
+
}, better_auth155.$strip>;
|
|
244
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
243
245
|
session: {
|
|
244
|
-
user:
|
|
245
|
-
session:
|
|
246
|
+
user: better_auth_plugins28.UserWithRole;
|
|
247
|
+
session: better_auth155.Session;
|
|
246
248
|
};
|
|
247
249
|
}>)[];
|
|
248
250
|
metadata: {
|
|
@@ -296,7 +298,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
296
298
|
} & {
|
|
297
299
|
asResponse?: boolean;
|
|
298
300
|
returnHeaders?: boolean;
|
|
299
|
-
use?:
|
|
301
|
+
use?: better_auth155.Middleware[];
|
|
300
302
|
path?: string;
|
|
301
303
|
} & {
|
|
302
304
|
asResponse?: AsResponse | undefined;
|
|
@@ -304,20 +306,20 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
304
306
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_2] extends [true] ? {
|
|
305
307
|
headers: Headers;
|
|
306
308
|
response: {
|
|
307
|
-
user:
|
|
309
|
+
user: better_auth_plugins28.UserWithRole;
|
|
308
310
|
};
|
|
309
311
|
} : {
|
|
310
|
-
user:
|
|
312
|
+
user: better_auth_plugins28.UserWithRole;
|
|
311
313
|
}>;
|
|
312
314
|
options: {
|
|
313
315
|
method: "POST";
|
|
314
|
-
body:
|
|
315
|
-
email:
|
|
316
|
-
password:
|
|
317
|
-
name:
|
|
318
|
-
role:
|
|
319
|
-
data:
|
|
320
|
-
},
|
|
316
|
+
body: zod119.ZodObject<{
|
|
317
|
+
email: zod119.ZodString;
|
|
318
|
+
password: zod119.ZodString;
|
|
319
|
+
name: zod119.ZodString;
|
|
320
|
+
role: zod119.ZodOptional<zod119.ZodUnion<readonly [zod119.ZodString, zod119.ZodArray<zod119.ZodString>]>>;
|
|
321
|
+
data: zod119.ZodOptional<zod119.ZodRecord<zod119.ZodString, zod119.ZodAny>>;
|
|
322
|
+
}, better_auth155.$strip>;
|
|
321
323
|
metadata: {
|
|
322
324
|
openapi: {
|
|
323
325
|
operationId: string;
|
|
@@ -375,25 +377,25 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
375
377
|
} & {
|
|
376
378
|
asResponse?: boolean;
|
|
377
379
|
returnHeaders?: boolean;
|
|
378
|
-
use?:
|
|
380
|
+
use?: better_auth155.Middleware[];
|
|
379
381
|
path?: string;
|
|
380
382
|
} & {
|
|
381
383
|
asResponse?: AsResponse | undefined;
|
|
382
384
|
returnHeaders?: ReturnHeaders_3 | undefined;
|
|
383
385
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_3] extends [true] ? {
|
|
384
386
|
headers: Headers;
|
|
385
|
-
response:
|
|
386
|
-
} :
|
|
387
|
+
response: better_auth_plugins28.UserWithRole;
|
|
388
|
+
} : better_auth_plugins28.UserWithRole>;
|
|
387
389
|
options: {
|
|
388
390
|
method: "POST";
|
|
389
|
-
body:
|
|
390
|
-
userId:
|
|
391
|
-
data:
|
|
392
|
-
},
|
|
393
|
-
use: ((inputContext:
|
|
391
|
+
body: zod119.ZodObject<{
|
|
392
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
393
|
+
data: zod119.ZodRecord<zod119.ZodAny, zod119.ZodAny>;
|
|
394
|
+
}, better_auth155.$strip>;
|
|
395
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
394
396
|
session: {
|
|
395
|
-
user:
|
|
396
|
-
session:
|
|
397
|
+
user: better_auth_plugins28.UserWithRole;
|
|
398
|
+
session: better_auth155.Session;
|
|
397
399
|
};
|
|
398
400
|
}>)[];
|
|
399
401
|
metadata: {
|
|
@@ -452,7 +454,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
452
454
|
} & {
|
|
453
455
|
asResponse?: boolean;
|
|
454
456
|
returnHeaders?: boolean;
|
|
455
|
-
use?:
|
|
457
|
+
use?: better_auth155.Middleware[];
|
|
456
458
|
path?: string;
|
|
457
459
|
} & {
|
|
458
460
|
asResponse?: AsResponse | undefined;
|
|
@@ -460,7 +462,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
460
462
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_4] extends [true] ? {
|
|
461
463
|
headers: Headers;
|
|
462
464
|
response: {
|
|
463
|
-
users:
|
|
465
|
+
users: better_auth_plugins28.UserWithRole[];
|
|
464
466
|
total: number;
|
|
465
467
|
limit: number | undefined;
|
|
466
468
|
offset: number | undefined;
|
|
@@ -469,7 +471,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
469
471
|
total: number;
|
|
470
472
|
};
|
|
471
473
|
} : {
|
|
472
|
-
users:
|
|
474
|
+
users: better_auth_plugins28.UserWithRole[];
|
|
473
475
|
total: number;
|
|
474
476
|
limit: number | undefined;
|
|
475
477
|
offset: number | undefined;
|
|
@@ -479,33 +481,33 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
479
481
|
}>;
|
|
480
482
|
options: {
|
|
481
483
|
method: "GET";
|
|
482
|
-
use: ((inputContext:
|
|
484
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
483
485
|
session: {
|
|
484
|
-
user:
|
|
485
|
-
session:
|
|
486
|
+
user: better_auth_plugins28.UserWithRole;
|
|
487
|
+
session: better_auth155.Session;
|
|
486
488
|
};
|
|
487
489
|
}>)[];
|
|
488
|
-
query:
|
|
489
|
-
searchValue:
|
|
490
|
-
searchField:
|
|
490
|
+
query: zod119.ZodObject<{
|
|
491
|
+
searchValue: zod119.ZodOptional<zod119.ZodString>;
|
|
492
|
+
searchField: zod119.ZodOptional<zod119.ZodEnum<{
|
|
491
493
|
name: "name";
|
|
492
494
|
email: "email";
|
|
493
495
|
}>>;
|
|
494
|
-
searchOperator:
|
|
496
|
+
searchOperator: zod119.ZodOptional<zod119.ZodEnum<{
|
|
495
497
|
contains: "contains";
|
|
496
498
|
starts_with: "starts_with";
|
|
497
499
|
ends_with: "ends_with";
|
|
498
500
|
}>>;
|
|
499
|
-
limit:
|
|
500
|
-
offset:
|
|
501
|
-
sortBy:
|
|
502
|
-
sortDirection:
|
|
501
|
+
limit: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>>;
|
|
502
|
+
offset: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>>;
|
|
503
|
+
sortBy: zod119.ZodOptional<zod119.ZodString>;
|
|
504
|
+
sortDirection: zod119.ZodOptional<zod119.ZodEnum<{
|
|
503
505
|
asc: "asc";
|
|
504
506
|
desc: "desc";
|
|
505
507
|
}>>;
|
|
506
|
-
filterField:
|
|
507
|
-
filterValue:
|
|
508
|
-
filterOperator:
|
|
508
|
+
filterField: zod119.ZodOptional<zod119.ZodString>;
|
|
509
|
+
filterValue: zod119.ZodOptional<zod119.ZodUnion<[zod119.ZodUnion<[zod119.ZodString, zod119.ZodNumber]>, zod119.ZodBoolean]>>;
|
|
510
|
+
filterOperator: zod119.ZodOptional<zod119.ZodEnum<{
|
|
509
511
|
eq: "eq";
|
|
510
512
|
ne: "ne";
|
|
511
513
|
lt: "lt";
|
|
@@ -514,7 +516,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
514
516
|
gte: "gte";
|
|
515
517
|
contains: "contains";
|
|
516
518
|
}>>;
|
|
517
|
-
},
|
|
519
|
+
}, better_auth155.$strip>;
|
|
518
520
|
metadata: {
|
|
519
521
|
openapi: {
|
|
520
522
|
operationId: string;
|
|
@@ -575,7 +577,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
575
577
|
} & {
|
|
576
578
|
asResponse?: boolean;
|
|
577
579
|
returnHeaders?: boolean;
|
|
578
|
-
use?:
|
|
580
|
+
use?: better_auth155.Middleware[];
|
|
579
581
|
path?: string;
|
|
580
582
|
} & {
|
|
581
583
|
asResponse?: AsResponse | undefined;
|
|
@@ -583,22 +585,22 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
583
585
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_5] extends [true] ? {
|
|
584
586
|
headers: Headers;
|
|
585
587
|
response: {
|
|
586
|
-
sessions:
|
|
588
|
+
sessions: better_auth_plugins28.SessionWithImpersonatedBy[];
|
|
587
589
|
};
|
|
588
590
|
} : {
|
|
589
|
-
sessions:
|
|
591
|
+
sessions: better_auth_plugins28.SessionWithImpersonatedBy[];
|
|
590
592
|
}>;
|
|
591
593
|
options: {
|
|
592
594
|
method: "POST";
|
|
593
|
-
use: ((inputContext:
|
|
595
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
594
596
|
session: {
|
|
595
|
-
user:
|
|
596
|
-
session:
|
|
597
|
+
user: better_auth_plugins28.UserWithRole;
|
|
598
|
+
session: better_auth155.Session;
|
|
597
599
|
};
|
|
598
600
|
}>)[];
|
|
599
|
-
body:
|
|
600
|
-
userId:
|
|
601
|
-
},
|
|
601
|
+
body: zod119.ZodObject<{
|
|
602
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
603
|
+
}, better_auth155.$strip>;
|
|
602
604
|
metadata: {
|
|
603
605
|
openapi: {
|
|
604
606
|
operationId: string;
|
|
@@ -649,7 +651,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
649
651
|
} & {
|
|
650
652
|
asResponse?: boolean;
|
|
651
653
|
returnHeaders?: boolean;
|
|
652
|
-
use?:
|
|
654
|
+
use?: better_auth155.Middleware[];
|
|
653
655
|
path?: string;
|
|
654
656
|
} & {
|
|
655
657
|
asResponse?: AsResponse | undefined;
|
|
@@ -664,13 +666,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
664
666
|
}>;
|
|
665
667
|
options: {
|
|
666
668
|
method: "POST";
|
|
667
|
-
body:
|
|
668
|
-
userId:
|
|
669
|
-
},
|
|
670
|
-
use: ((inputContext:
|
|
669
|
+
body: zod119.ZodObject<{
|
|
670
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
671
|
+
}, better_auth155.$strip>;
|
|
672
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
671
673
|
session: {
|
|
672
|
-
user:
|
|
673
|
-
session:
|
|
674
|
+
user: better_auth_plugins28.UserWithRole;
|
|
675
|
+
session: better_auth155.Session;
|
|
674
676
|
};
|
|
675
677
|
}>)[];
|
|
676
678
|
metadata: {
|
|
@@ -722,7 +724,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
722
724
|
} & {
|
|
723
725
|
asResponse?: boolean;
|
|
724
726
|
returnHeaders?: boolean;
|
|
725
|
-
use?:
|
|
727
|
+
use?: better_auth155.Middleware[];
|
|
726
728
|
path?: string;
|
|
727
729
|
} & {
|
|
728
730
|
asResponse?: AsResponse | undefined;
|
|
@@ -737,15 +739,15 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
737
739
|
}>;
|
|
738
740
|
options: {
|
|
739
741
|
method: "POST";
|
|
740
|
-
body:
|
|
741
|
-
userId:
|
|
742
|
-
banReason:
|
|
743
|
-
banExpiresIn:
|
|
744
|
-
},
|
|
745
|
-
use: ((inputContext:
|
|
742
|
+
body: zod119.ZodObject<{
|
|
743
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
744
|
+
banReason: zod119.ZodOptional<zod119.ZodString>;
|
|
745
|
+
banExpiresIn: zod119.ZodOptional<zod119.ZodNumber>;
|
|
746
|
+
}, better_auth155.$strip>;
|
|
747
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
746
748
|
session: {
|
|
747
|
-
user:
|
|
748
|
-
session:
|
|
749
|
+
user: better_auth_plugins28.UserWithRole;
|
|
750
|
+
session: better_auth155.Session;
|
|
749
751
|
};
|
|
750
752
|
}>)[];
|
|
751
753
|
metadata: {
|
|
@@ -795,7 +797,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
795
797
|
} & {
|
|
796
798
|
asResponse?: boolean;
|
|
797
799
|
returnHeaders?: boolean;
|
|
798
|
-
use?:
|
|
800
|
+
use?: better_auth155.Middleware[];
|
|
799
801
|
path?: string;
|
|
800
802
|
} & {
|
|
801
803
|
asResponse?: AsResponse | undefined;
|
|
@@ -846,13 +848,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
846
848
|
}>;
|
|
847
849
|
options: {
|
|
848
850
|
method: "POST";
|
|
849
|
-
body:
|
|
850
|
-
userId:
|
|
851
|
-
},
|
|
852
|
-
use: ((inputContext:
|
|
851
|
+
body: zod119.ZodObject<{
|
|
852
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
853
|
+
}, better_auth155.$strip>;
|
|
854
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
853
855
|
session: {
|
|
854
|
-
user:
|
|
855
|
-
session:
|
|
856
|
+
user: better_auth_plugins28.UserWithRole;
|
|
857
|
+
session: better_auth155.Session;
|
|
856
858
|
};
|
|
857
859
|
}>)[];
|
|
858
860
|
metadata: {
|
|
@@ -903,7 +905,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
903
905
|
} & {
|
|
904
906
|
asResponse?: boolean;
|
|
905
907
|
returnHeaders?: boolean;
|
|
906
|
-
use?:
|
|
908
|
+
use?: better_auth155.Middleware[];
|
|
907
909
|
path?: string;
|
|
908
910
|
} & {
|
|
909
911
|
asResponse?: AsResponse | undefined;
|
|
@@ -911,11 +913,11 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
911
913
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_9] extends [true] ? {
|
|
912
914
|
headers: Headers;
|
|
913
915
|
response: {
|
|
914
|
-
session:
|
|
916
|
+
session: better_auth155.Session & Record<string, any>;
|
|
915
917
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
916
918
|
};
|
|
917
919
|
} : {
|
|
918
|
-
session:
|
|
920
|
+
session: better_auth155.Session & Record<string, any>;
|
|
919
921
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
920
922
|
}>;
|
|
921
923
|
options: {
|
|
@@ -944,7 +946,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
944
946
|
} & {
|
|
945
947
|
asResponse?: boolean;
|
|
946
948
|
returnHeaders?: boolean;
|
|
947
|
-
use?:
|
|
949
|
+
use?: better_auth155.Middleware[];
|
|
948
950
|
path?: string;
|
|
949
951
|
} & {
|
|
950
952
|
asResponse?: AsResponse | undefined;
|
|
@@ -959,13 +961,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
959
961
|
}>;
|
|
960
962
|
options: {
|
|
961
963
|
method: "POST";
|
|
962
|
-
body:
|
|
963
|
-
sessionToken:
|
|
964
|
-
},
|
|
965
|
-
use: ((inputContext:
|
|
964
|
+
body: zod119.ZodObject<{
|
|
965
|
+
sessionToken: zod119.ZodString;
|
|
966
|
+
}, better_auth155.$strip>;
|
|
967
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
966
968
|
session: {
|
|
967
|
-
user:
|
|
968
|
-
session:
|
|
969
|
+
user: better_auth_plugins28.UserWithRole;
|
|
970
|
+
session: better_auth155.Session;
|
|
969
971
|
};
|
|
970
972
|
}>)[];
|
|
971
973
|
metadata: {
|
|
@@ -1015,7 +1017,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1015
1017
|
} & {
|
|
1016
1018
|
asResponse?: boolean;
|
|
1017
1019
|
returnHeaders?: boolean;
|
|
1018
|
-
use?:
|
|
1020
|
+
use?: better_auth155.Middleware[];
|
|
1019
1021
|
path?: string;
|
|
1020
1022
|
} & {
|
|
1021
1023
|
asResponse?: AsResponse | undefined;
|
|
@@ -1030,13 +1032,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1030
1032
|
}>;
|
|
1031
1033
|
options: {
|
|
1032
1034
|
method: "POST";
|
|
1033
|
-
body:
|
|
1034
|
-
userId:
|
|
1035
|
-
},
|
|
1036
|
-
use: ((inputContext:
|
|
1035
|
+
body: zod119.ZodObject<{
|
|
1036
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1037
|
+
}, better_auth155.$strip>;
|
|
1038
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1037
1039
|
session: {
|
|
1038
|
-
user:
|
|
1039
|
-
session:
|
|
1040
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1041
|
+
session: better_auth155.Session;
|
|
1040
1042
|
};
|
|
1041
1043
|
}>)[];
|
|
1042
1044
|
metadata: {
|
|
@@ -1086,7 +1088,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1086
1088
|
} & {
|
|
1087
1089
|
asResponse?: boolean;
|
|
1088
1090
|
returnHeaders?: boolean;
|
|
1089
|
-
use?:
|
|
1091
|
+
use?: better_auth155.Middleware[];
|
|
1090
1092
|
path?: string;
|
|
1091
1093
|
} & {
|
|
1092
1094
|
asResponse?: AsResponse | undefined;
|
|
@@ -1101,13 +1103,13 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1101
1103
|
}>;
|
|
1102
1104
|
options: {
|
|
1103
1105
|
method: "POST";
|
|
1104
|
-
body:
|
|
1105
|
-
userId:
|
|
1106
|
-
},
|
|
1107
|
-
use: ((inputContext:
|
|
1106
|
+
body: zod119.ZodObject<{
|
|
1107
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1108
|
+
}, better_auth155.$strip>;
|
|
1109
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1108
1110
|
session: {
|
|
1109
|
-
user:
|
|
1110
|
-
session:
|
|
1111
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1112
|
+
session: better_auth155.Session;
|
|
1111
1113
|
};
|
|
1112
1114
|
}>)[];
|
|
1113
1115
|
metadata: {
|
|
@@ -1158,7 +1160,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1158
1160
|
} & {
|
|
1159
1161
|
asResponse?: boolean;
|
|
1160
1162
|
returnHeaders?: boolean;
|
|
1161
|
-
use?:
|
|
1163
|
+
use?: better_auth155.Middleware[];
|
|
1162
1164
|
path?: string;
|
|
1163
1165
|
} & {
|
|
1164
1166
|
asResponse?: AsResponse | undefined;
|
|
@@ -1173,14 +1175,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1173
1175
|
}>;
|
|
1174
1176
|
options: {
|
|
1175
1177
|
method: "POST";
|
|
1176
|
-
body:
|
|
1177
|
-
newPassword:
|
|
1178
|
-
userId:
|
|
1179
|
-
},
|
|
1180
|
-
use: ((inputContext:
|
|
1178
|
+
body: zod119.ZodObject<{
|
|
1179
|
+
newPassword: zod119.ZodString;
|
|
1180
|
+
userId: zod119.ZodCoercedString<unknown>;
|
|
1181
|
+
}, better_auth155.$strip>;
|
|
1182
|
+
use: ((inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<{
|
|
1181
1183
|
session: {
|
|
1182
|
-
user:
|
|
1183
|
-
session:
|
|
1184
|
+
user: better_auth_plugins28.UserWithRole;
|
|
1185
|
+
session: better_auth155.Session;
|
|
1184
1186
|
};
|
|
1185
1187
|
}>)[];
|
|
1186
1188
|
metadata: {
|
|
@@ -1216,12 +1218,12 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1216
1218
|
<AsResponse extends boolean = false, ReturnHeaders_14 extends boolean = false>(inputCtx_0: {
|
|
1217
1219
|
body: ({
|
|
1218
1220
|
permission: {
|
|
1219
|
-
readonly [x: string]:
|
|
1221
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1220
1222
|
};
|
|
1221
1223
|
permissions?: never;
|
|
1222
1224
|
} | {
|
|
1223
1225
|
permissions: {
|
|
1224
|
-
readonly [x: string]:
|
|
1226
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1225
1227
|
};
|
|
1226
1228
|
permission?: never;
|
|
1227
1229
|
}) & {
|
|
@@ -1241,7 +1243,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1241
1243
|
} & {
|
|
1242
1244
|
asResponse?: boolean;
|
|
1243
1245
|
returnHeaders?: boolean;
|
|
1244
|
-
use?:
|
|
1246
|
+
use?: better_auth155.Middleware[];
|
|
1245
1247
|
path?: string;
|
|
1246
1248
|
} & {
|
|
1247
1249
|
asResponse?: AsResponse | undefined;
|
|
@@ -1258,16 +1260,16 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1258
1260
|
}>;
|
|
1259
1261
|
options: {
|
|
1260
1262
|
method: "POST";
|
|
1261
|
-
body:
|
|
1262
|
-
userId:
|
|
1263
|
-
role:
|
|
1264
|
-
},
|
|
1265
|
-
permission:
|
|
1266
|
-
permissions:
|
|
1267
|
-
},
|
|
1268
|
-
permission:
|
|
1269
|
-
permissions:
|
|
1270
|
-
},
|
|
1263
|
+
body: zod119.ZodIntersection<zod119.ZodObject<{
|
|
1264
|
+
userId: zod119.ZodOptional<zod119.ZodCoercedString<unknown>>;
|
|
1265
|
+
role: zod119.ZodOptional<zod119.ZodString>;
|
|
1266
|
+
}, better_auth155.$strip>, zod119.ZodUnion<readonly [zod119.ZodObject<{
|
|
1267
|
+
permission: zod119.ZodRecord<zod119.ZodString, zod119.ZodArray<zod119.ZodString>>;
|
|
1268
|
+
permissions: zod119.ZodUndefined;
|
|
1269
|
+
}, better_auth155.$strip>, zod119.ZodObject<{
|
|
1270
|
+
permission: zod119.ZodUndefined;
|
|
1271
|
+
permissions: zod119.ZodRecord<zod119.ZodString, zod119.ZodArray<zod119.ZodString>>;
|
|
1272
|
+
}, better_auth155.$strip>]>>;
|
|
1271
1273
|
metadata: {
|
|
1272
1274
|
openapi: {
|
|
1273
1275
|
description: string;
|
|
@@ -1317,12 +1319,12 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1317
1319
|
$Infer: {
|
|
1318
1320
|
body: ({
|
|
1319
1321
|
permission: {
|
|
1320
|
-
readonly [x: string]:
|
|
1322
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1321
1323
|
};
|
|
1322
1324
|
permissions?: never;
|
|
1323
1325
|
} | {
|
|
1324
1326
|
permissions: {
|
|
1325
|
-
readonly [x: string]:
|
|
1327
|
+
readonly [x: string]: better_auth155.LiteralString[] | undefined;
|
|
1326
1328
|
};
|
|
1327
1329
|
permission?: never;
|
|
1328
1330
|
}) & {
|
|
@@ -1395,7 +1397,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1395
1397
|
options: any;
|
|
1396
1398
|
}, {
|
|
1397
1399
|
id: "email-otp";
|
|
1398
|
-
init(ctx:
|
|
1400
|
+
init(ctx: better_auth155.AuthContext): {
|
|
1399
1401
|
options: {
|
|
1400
1402
|
emailVerification: {
|
|
1401
1403
|
sendVerificationEmail(data: {
|
|
@@ -1426,7 +1428,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1426
1428
|
} & {
|
|
1427
1429
|
asResponse?: boolean;
|
|
1428
1430
|
returnHeaders?: boolean;
|
|
1429
|
-
use?:
|
|
1431
|
+
use?: better_auth155.Middleware[];
|
|
1430
1432
|
path?: string;
|
|
1431
1433
|
} & {
|
|
1432
1434
|
asResponse?: AsResponse | undefined;
|
|
@@ -1437,14 +1439,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1437
1439
|
} : string>;
|
|
1438
1440
|
options: {
|
|
1439
1441
|
method: "POST";
|
|
1440
|
-
body:
|
|
1441
|
-
email:
|
|
1442
|
-
type:
|
|
1442
|
+
body: zod119.ZodObject<{
|
|
1443
|
+
email: zod119.ZodString;
|
|
1444
|
+
type: zod119.ZodEnum<{
|
|
1443
1445
|
"sign-in": "sign-in";
|
|
1444
1446
|
"forget-password": "forget-password";
|
|
1445
1447
|
"email-verification": "email-verification";
|
|
1446
1448
|
}>;
|
|
1447
|
-
},
|
|
1449
|
+
}, better_auth155.$strip>;
|
|
1448
1450
|
metadata: {
|
|
1449
1451
|
SERVER_ONLY: true;
|
|
1450
1452
|
openapi: {
|
|
@@ -1487,7 +1489,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1487
1489
|
} & {
|
|
1488
1490
|
asResponse?: boolean;
|
|
1489
1491
|
returnHeaders?: boolean;
|
|
1490
|
-
use?:
|
|
1492
|
+
use?: better_auth155.Middleware[];
|
|
1491
1493
|
path?: string;
|
|
1492
1494
|
} & {
|
|
1493
1495
|
asResponse?: AsResponse | undefined;
|
|
@@ -1506,14 +1508,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1506
1508
|
}>;
|
|
1507
1509
|
options: {
|
|
1508
1510
|
method: "GET";
|
|
1509
|
-
query:
|
|
1510
|
-
email:
|
|
1511
|
-
type:
|
|
1511
|
+
query: zod119.ZodObject<{
|
|
1512
|
+
email: zod119.ZodString;
|
|
1513
|
+
type: zod119.ZodEnum<{
|
|
1512
1514
|
"sign-in": "sign-in";
|
|
1513
1515
|
"forget-password": "forget-password";
|
|
1514
1516
|
"email-verification": "email-verification";
|
|
1515
1517
|
}>;
|
|
1516
|
-
},
|
|
1518
|
+
}, better_auth155.$strip>;
|
|
1517
1519
|
metadata: {
|
|
1518
1520
|
SERVER_ONLY: true;
|
|
1519
1521
|
openapi: {
|
|
@@ -1565,7 +1567,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1565
1567
|
} & {
|
|
1566
1568
|
asResponse?: boolean;
|
|
1567
1569
|
returnHeaders?: boolean;
|
|
1568
|
-
use?:
|
|
1570
|
+
use?: better_auth155.Middleware[];
|
|
1569
1571
|
path?: string;
|
|
1570
1572
|
} & {
|
|
1571
1573
|
asResponse?: AsResponse | undefined;
|
|
@@ -1580,15 +1582,15 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1580
1582
|
}>;
|
|
1581
1583
|
options: {
|
|
1582
1584
|
method: "POST";
|
|
1583
|
-
body:
|
|
1584
|
-
email:
|
|
1585
|
-
type:
|
|
1585
|
+
body: zod119.ZodObject<{
|
|
1586
|
+
email: zod119.ZodString;
|
|
1587
|
+
type: zod119.ZodEnum<{
|
|
1586
1588
|
"sign-in": "sign-in";
|
|
1587
1589
|
"forget-password": "forget-password";
|
|
1588
1590
|
"email-verification": "email-verification";
|
|
1589
1591
|
}>;
|
|
1590
|
-
otp:
|
|
1591
|
-
},
|
|
1592
|
+
otp: zod119.ZodString;
|
|
1593
|
+
}, better_auth155.$strip>;
|
|
1592
1594
|
metadata: {
|
|
1593
1595
|
openapi: {
|
|
1594
1596
|
description: string;
|
|
@@ -1635,7 +1637,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1635
1637
|
} & {
|
|
1636
1638
|
asResponse?: boolean;
|
|
1637
1639
|
returnHeaders?: boolean;
|
|
1638
|
-
use?:
|
|
1640
|
+
use?: better_auth155.Middleware[];
|
|
1639
1641
|
path?: string;
|
|
1640
1642
|
} & {
|
|
1641
1643
|
asResponse?: AsResponse | undefined;
|
|
@@ -1694,10 +1696,10 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1694
1696
|
}>;
|
|
1695
1697
|
options: {
|
|
1696
1698
|
method: "POST";
|
|
1697
|
-
body:
|
|
1698
|
-
email:
|
|
1699
|
-
otp:
|
|
1700
|
-
},
|
|
1699
|
+
body: zod119.ZodObject<{
|
|
1700
|
+
email: zod119.ZodString;
|
|
1701
|
+
otp: zod119.ZodString;
|
|
1702
|
+
}, better_auth155.$strip>;
|
|
1701
1703
|
metadata: {
|
|
1702
1704
|
openapi: {
|
|
1703
1705
|
description: string;
|
|
@@ -1755,7 +1757,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1755
1757
|
} & {
|
|
1756
1758
|
asResponse?: boolean;
|
|
1757
1759
|
returnHeaders?: boolean;
|
|
1758
|
-
use?:
|
|
1760
|
+
use?: better_auth155.Middleware[];
|
|
1759
1761
|
path?: string;
|
|
1760
1762
|
} & {
|
|
1761
1763
|
asResponse?: AsResponse | undefined;
|
|
@@ -1788,10 +1790,10 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1788
1790
|
}>;
|
|
1789
1791
|
options: {
|
|
1790
1792
|
method: "POST";
|
|
1791
|
-
body:
|
|
1792
|
-
email:
|
|
1793
|
-
otp:
|
|
1794
|
-
},
|
|
1793
|
+
body: zod119.ZodObject<{
|
|
1794
|
+
email: zod119.ZodString;
|
|
1795
|
+
otp: zod119.ZodString;
|
|
1796
|
+
}, better_auth155.$strip>;
|
|
1795
1797
|
metadata: {
|
|
1796
1798
|
openapi: {
|
|
1797
1799
|
description: string;
|
|
@@ -1842,7 +1844,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1842
1844
|
} & {
|
|
1843
1845
|
asResponse?: boolean;
|
|
1844
1846
|
returnHeaders?: boolean;
|
|
1845
|
-
use?:
|
|
1847
|
+
use?: better_auth155.Middleware[];
|
|
1846
1848
|
path?: string;
|
|
1847
1849
|
} & {
|
|
1848
1850
|
asResponse?: AsResponse | undefined;
|
|
@@ -1857,9 +1859,9 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1857
1859
|
}>;
|
|
1858
1860
|
options: {
|
|
1859
1861
|
method: "POST";
|
|
1860
|
-
body:
|
|
1861
|
-
email:
|
|
1862
|
-
},
|
|
1862
|
+
body: zod119.ZodObject<{
|
|
1863
|
+
email: zod119.ZodString;
|
|
1864
|
+
}, better_auth155.$strip>;
|
|
1863
1865
|
metadata: {
|
|
1864
1866
|
openapi: {
|
|
1865
1867
|
description: string;
|
|
@@ -1908,7 +1910,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1908
1910
|
} & {
|
|
1909
1911
|
asResponse?: boolean;
|
|
1910
1912
|
returnHeaders?: boolean;
|
|
1911
|
-
use?:
|
|
1913
|
+
use?: better_auth155.Middleware[];
|
|
1912
1914
|
path?: string;
|
|
1913
1915
|
} & {
|
|
1914
1916
|
asResponse?: AsResponse | undefined;
|
|
@@ -1923,11 +1925,11 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1923
1925
|
}>;
|
|
1924
1926
|
options: {
|
|
1925
1927
|
method: "POST";
|
|
1926
|
-
body:
|
|
1927
|
-
email:
|
|
1928
|
-
otp:
|
|
1929
|
-
password:
|
|
1930
|
-
},
|
|
1928
|
+
body: zod119.ZodObject<{
|
|
1929
|
+
email: zod119.ZodString;
|
|
1930
|
+
otp: zod119.ZodString;
|
|
1931
|
+
password: zod119.ZodString;
|
|
1932
|
+
}, better_auth155.$strip>;
|
|
1931
1933
|
metadata: {
|
|
1932
1934
|
openapi: {
|
|
1933
1935
|
description: string;
|
|
@@ -1974,7 +1976,7 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1974
1976
|
} & {
|
|
1975
1977
|
asResponse?: boolean;
|
|
1976
1978
|
returnHeaders?: boolean;
|
|
1977
|
-
use?:
|
|
1979
|
+
use?: better_auth155.Middleware[];
|
|
1978
1980
|
path?: string;
|
|
1979
1981
|
} & {
|
|
1980
1982
|
asResponse?: AsResponse | undefined;
|
|
@@ -1989,14 +1991,14 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
1989
1991
|
}>;
|
|
1990
1992
|
options: {
|
|
1991
1993
|
method: "POST";
|
|
1992
|
-
body:
|
|
1993
|
-
email:
|
|
1994
|
-
type:
|
|
1994
|
+
body: zod119.ZodObject<{
|
|
1995
|
+
email: zod119.ZodString;
|
|
1996
|
+
type: zod119.ZodEnum<{
|
|
1995
1997
|
"sign-in": "sign-in";
|
|
1996
1998
|
"forget-password": "forget-password";
|
|
1997
1999
|
"email-verification": "email-verification";
|
|
1998
2000
|
}>;
|
|
1999
|
-
},
|
|
2001
|
+
}, better_auth155.$strip>;
|
|
2000
2002
|
metadata: {
|
|
2001
2003
|
openapi: {
|
|
2002
2004
|
description: string;
|
|
@@ -2027,8 +2029,8 @@ declare const getTulip: <TSchema extends TDatabaseSchema>(params: GetTulipParams
|
|
|
2027
2029
|
};
|
|
2028
2030
|
hooks: {
|
|
2029
2031
|
after: {
|
|
2030
|
-
matcher(context:
|
|
2031
|
-
handler: (inputContext:
|
|
2032
|
+
matcher(context: better_auth155.HookEndpointContext): boolean;
|
|
2033
|
+
handler: (inputContext: better_auth155.MiddlewareInputContext<better_auth155.MiddlewareOptions>) => Promise<void>;
|
|
2032
2034
|
}[];
|
|
2033
2035
|
};
|
|
2034
2036
|
$ERROR_CODES: {
|