@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,11 +1,10 @@
|
|
|
1
1
|
import { TDatabaseSchema } from "../db/types.js";
|
|
2
|
-
import { PathConfig } from "../paths/types.js";
|
|
3
2
|
import { GetTulipParams } from "../lib/resolve.server.js";
|
|
3
|
+
import * as zod239 from "zod";
|
|
4
4
|
import "server-cli-only";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as drizzle_orm_postgres_js0 from "drizzle-orm/postgres-js";
|
|
5
|
+
import * as better_auth258 from "better-auth";
|
|
6
|
+
import * as better_auth_plugins51 from "better-auth/plugins";
|
|
7
|
+
import * as drizzle_orm_postgres_js1 from "drizzle-orm/postgres-js";
|
|
9
8
|
import * as _aws_sdk_client_s30 from "@aws-sdk/client-s3";
|
|
10
9
|
import * as resend0 from "resend";
|
|
11
10
|
import * as next_dist_server_web_spec_extension_adapters_headers0 from "next/dist/server/web/spec-extension/adapters/headers";
|
|
@@ -48,11 +47,11 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
48
47
|
name: string;
|
|
49
48
|
shortName: string;
|
|
50
49
|
};
|
|
51
|
-
paths:
|
|
50
|
+
paths: any;
|
|
52
51
|
schema: TSchema;
|
|
53
|
-
db:
|
|
54
|
-
auth:
|
|
55
|
-
database: (options:
|
|
52
|
+
db: drizzle_orm_postgres_js1.PostgresJsDatabase<TSchema>;
|
|
53
|
+
auth: better_auth258.Auth<{
|
|
54
|
+
database: (options: better_auth258.BetterAuthOptions) => better_auth258.Adapter;
|
|
56
55
|
emailAndPassword: {
|
|
57
56
|
enabled: true;
|
|
58
57
|
};
|
|
@@ -77,8 +76,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
77
76
|
id: "next-cookies";
|
|
78
77
|
hooks: {
|
|
79
78
|
after: {
|
|
80
|
-
matcher(ctx:
|
|
81
|
-
handler: (inputContext:
|
|
79
|
+
matcher(ctx: better_auth258.HookEndpointContext): true;
|
|
80
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<void>;
|
|
82
81
|
}[];
|
|
83
82
|
};
|
|
84
83
|
}, {
|
|
@@ -121,7 +120,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
121
120
|
token: string;
|
|
122
121
|
ipAddress?: string | null | undefined;
|
|
123
122
|
userAgent?: string | null | undefined;
|
|
124
|
-
} & Record<string, unknown>, ctx:
|
|
123
|
+
} & Record<string, unknown>, ctx: better_auth258.GenericEndpointContext | undefined): Promise<void>;
|
|
125
124
|
};
|
|
126
125
|
};
|
|
127
126
|
};
|
|
@@ -129,8 +128,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
129
128
|
};
|
|
130
129
|
hooks: {
|
|
131
130
|
after: {
|
|
132
|
-
matcher(context:
|
|
133
|
-
handler: (inputContext:
|
|
131
|
+
matcher(context: better_auth258.HookEndpointContext): boolean;
|
|
132
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<better_auth_plugins51.SessionWithImpersonatedBy[] | undefined>;
|
|
134
133
|
}[];
|
|
135
134
|
};
|
|
136
135
|
endpoints: {
|
|
@@ -153,7 +152,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
153
152
|
} & {
|
|
154
153
|
asResponse?: boolean;
|
|
155
154
|
returnHeaders?: boolean;
|
|
156
|
-
use?:
|
|
155
|
+
use?: better_auth258.Middleware[];
|
|
157
156
|
path?: string;
|
|
158
157
|
} & {
|
|
159
158
|
asResponse?: AsResponse | undefined;
|
|
@@ -161,22 +160,22 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
161
160
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
162
161
|
headers: Headers;
|
|
163
162
|
response: {
|
|
164
|
-
user:
|
|
163
|
+
user: better_auth_plugins51.UserWithRole;
|
|
165
164
|
};
|
|
166
165
|
} : {
|
|
167
|
-
user:
|
|
166
|
+
user: better_auth_plugins51.UserWithRole;
|
|
168
167
|
}>;
|
|
169
168
|
options: {
|
|
170
169
|
method: "POST";
|
|
171
|
-
body:
|
|
172
|
-
userId:
|
|
173
|
-
role:
|
|
174
|
-
},
|
|
170
|
+
body: zod239.ZodObject<{
|
|
171
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
172
|
+
role: zod239.ZodUnion<readonly [zod239.ZodString, zod239.ZodArray<zod239.ZodString>]>;
|
|
173
|
+
}, better_auth258.$strip>;
|
|
175
174
|
requireHeaders: true;
|
|
176
|
-
use: ((inputContext:
|
|
175
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
177
176
|
session: {
|
|
178
|
-
user:
|
|
179
|
-
session:
|
|
177
|
+
user: better_auth_plugins51.UserWithRole;
|
|
178
|
+
session: better_auth258.Session;
|
|
180
179
|
};
|
|
181
180
|
}>)[];
|
|
182
181
|
metadata: {
|
|
@@ -232,7 +231,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
232
231
|
} & {
|
|
233
232
|
asResponse?: boolean;
|
|
234
233
|
returnHeaders?: boolean;
|
|
235
|
-
use?:
|
|
234
|
+
use?: better_auth258.Middleware[];
|
|
236
235
|
path?: string;
|
|
237
236
|
} & {
|
|
238
237
|
asResponse?: AsResponse | undefined;
|
|
@@ -259,13 +258,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
259
258
|
}>;
|
|
260
259
|
options: {
|
|
261
260
|
method: "GET";
|
|
262
|
-
query:
|
|
263
|
-
id:
|
|
264
|
-
},
|
|
265
|
-
use: ((inputContext:
|
|
261
|
+
query: zod239.ZodObject<{
|
|
262
|
+
id: zod239.ZodString;
|
|
263
|
+
}, better_auth258.$strip>;
|
|
264
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
266
265
|
session: {
|
|
267
|
-
user:
|
|
268
|
-
session:
|
|
266
|
+
user: better_auth_plugins51.UserWithRole;
|
|
267
|
+
session: better_auth258.Session;
|
|
269
268
|
};
|
|
270
269
|
}>)[];
|
|
271
270
|
metadata: {
|
|
@@ -319,7 +318,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
319
318
|
} & {
|
|
320
319
|
asResponse?: boolean;
|
|
321
320
|
returnHeaders?: boolean;
|
|
322
|
-
use?:
|
|
321
|
+
use?: better_auth258.Middleware[];
|
|
323
322
|
path?: string;
|
|
324
323
|
} & {
|
|
325
324
|
asResponse?: AsResponse | undefined;
|
|
@@ -327,20 +326,20 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
327
326
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_2] extends [true] ? {
|
|
328
327
|
headers: Headers;
|
|
329
328
|
response: {
|
|
330
|
-
user:
|
|
329
|
+
user: better_auth_plugins51.UserWithRole;
|
|
331
330
|
};
|
|
332
331
|
} : {
|
|
333
|
-
user:
|
|
332
|
+
user: better_auth_plugins51.UserWithRole;
|
|
334
333
|
}>;
|
|
335
334
|
options: {
|
|
336
335
|
method: "POST";
|
|
337
|
-
body:
|
|
338
|
-
email:
|
|
339
|
-
password:
|
|
340
|
-
name:
|
|
341
|
-
role:
|
|
342
|
-
data:
|
|
343
|
-
},
|
|
336
|
+
body: zod239.ZodObject<{
|
|
337
|
+
email: zod239.ZodString;
|
|
338
|
+
password: zod239.ZodString;
|
|
339
|
+
name: zod239.ZodString;
|
|
340
|
+
role: zod239.ZodOptional<zod239.ZodUnion<readonly [zod239.ZodString, zod239.ZodArray<zod239.ZodString>]>>;
|
|
341
|
+
data: zod239.ZodOptional<zod239.ZodRecord<zod239.ZodString, zod239.ZodAny>>;
|
|
342
|
+
}, better_auth258.$strip>;
|
|
344
343
|
metadata: {
|
|
345
344
|
openapi: {
|
|
346
345
|
operationId: string;
|
|
@@ -398,25 +397,25 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
398
397
|
} & {
|
|
399
398
|
asResponse?: boolean;
|
|
400
399
|
returnHeaders?: boolean;
|
|
401
|
-
use?:
|
|
400
|
+
use?: better_auth258.Middleware[];
|
|
402
401
|
path?: string;
|
|
403
402
|
} & {
|
|
404
403
|
asResponse?: AsResponse | undefined;
|
|
405
404
|
returnHeaders?: ReturnHeaders_3 | undefined;
|
|
406
405
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_3] extends [true] ? {
|
|
407
406
|
headers: Headers;
|
|
408
|
-
response:
|
|
409
|
-
} :
|
|
407
|
+
response: better_auth_plugins51.UserWithRole;
|
|
408
|
+
} : better_auth_plugins51.UserWithRole>;
|
|
410
409
|
options: {
|
|
411
410
|
method: "POST";
|
|
412
|
-
body:
|
|
413
|
-
userId:
|
|
414
|
-
data:
|
|
415
|
-
},
|
|
416
|
-
use: ((inputContext:
|
|
411
|
+
body: zod239.ZodObject<{
|
|
412
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
413
|
+
data: zod239.ZodRecord<zod239.ZodAny, zod239.ZodAny>;
|
|
414
|
+
}, better_auth258.$strip>;
|
|
415
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
417
416
|
session: {
|
|
418
|
-
user:
|
|
419
|
-
session:
|
|
417
|
+
user: better_auth_plugins51.UserWithRole;
|
|
418
|
+
session: better_auth258.Session;
|
|
420
419
|
};
|
|
421
420
|
}>)[];
|
|
422
421
|
metadata: {
|
|
@@ -475,7 +474,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
475
474
|
} & {
|
|
476
475
|
asResponse?: boolean;
|
|
477
476
|
returnHeaders?: boolean;
|
|
478
|
-
use?:
|
|
477
|
+
use?: better_auth258.Middleware[];
|
|
479
478
|
path?: string;
|
|
480
479
|
} & {
|
|
481
480
|
asResponse?: AsResponse | undefined;
|
|
@@ -483,7 +482,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
483
482
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_4] extends [true] ? {
|
|
484
483
|
headers: Headers;
|
|
485
484
|
response: {
|
|
486
|
-
users:
|
|
485
|
+
users: better_auth_plugins51.UserWithRole[];
|
|
487
486
|
total: number;
|
|
488
487
|
limit: number | undefined;
|
|
489
488
|
offset: number | undefined;
|
|
@@ -492,7 +491,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
492
491
|
total: number;
|
|
493
492
|
};
|
|
494
493
|
} : {
|
|
495
|
-
users:
|
|
494
|
+
users: better_auth_plugins51.UserWithRole[];
|
|
496
495
|
total: number;
|
|
497
496
|
limit: number | undefined;
|
|
498
497
|
offset: number | undefined;
|
|
@@ -502,33 +501,33 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
502
501
|
}>;
|
|
503
502
|
options: {
|
|
504
503
|
method: "GET";
|
|
505
|
-
use: ((inputContext:
|
|
504
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
506
505
|
session: {
|
|
507
|
-
user:
|
|
508
|
-
session:
|
|
506
|
+
user: better_auth_plugins51.UserWithRole;
|
|
507
|
+
session: better_auth258.Session;
|
|
509
508
|
};
|
|
510
509
|
}>)[];
|
|
511
|
-
query:
|
|
512
|
-
searchValue:
|
|
513
|
-
searchField:
|
|
510
|
+
query: zod239.ZodObject<{
|
|
511
|
+
searchValue: zod239.ZodOptional<zod239.ZodString>;
|
|
512
|
+
searchField: zod239.ZodOptional<zod239.ZodEnum<{
|
|
514
513
|
name: "name";
|
|
515
514
|
email: "email";
|
|
516
515
|
}>>;
|
|
517
|
-
searchOperator:
|
|
516
|
+
searchOperator: zod239.ZodOptional<zod239.ZodEnum<{
|
|
518
517
|
contains: "contains";
|
|
519
518
|
starts_with: "starts_with";
|
|
520
519
|
ends_with: "ends_with";
|
|
521
520
|
}>>;
|
|
522
|
-
limit:
|
|
523
|
-
offset:
|
|
524
|
-
sortBy:
|
|
525
|
-
sortDirection:
|
|
521
|
+
limit: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>>;
|
|
522
|
+
offset: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>>;
|
|
523
|
+
sortBy: zod239.ZodOptional<zod239.ZodString>;
|
|
524
|
+
sortDirection: zod239.ZodOptional<zod239.ZodEnum<{
|
|
526
525
|
asc: "asc";
|
|
527
526
|
desc: "desc";
|
|
528
527
|
}>>;
|
|
529
|
-
filterField:
|
|
530
|
-
filterValue:
|
|
531
|
-
filterOperator:
|
|
528
|
+
filterField: zod239.ZodOptional<zod239.ZodString>;
|
|
529
|
+
filterValue: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>, zod239.ZodBoolean]>>;
|
|
530
|
+
filterOperator: zod239.ZodOptional<zod239.ZodEnum<{
|
|
532
531
|
eq: "eq";
|
|
533
532
|
ne: "ne";
|
|
534
533
|
lt: "lt";
|
|
@@ -537,7 +536,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
537
536
|
gte: "gte";
|
|
538
537
|
contains: "contains";
|
|
539
538
|
}>>;
|
|
540
|
-
},
|
|
539
|
+
}, better_auth258.$strip>;
|
|
541
540
|
metadata: {
|
|
542
541
|
openapi: {
|
|
543
542
|
operationId: string;
|
|
@@ -598,7 +597,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
598
597
|
} & {
|
|
599
598
|
asResponse?: boolean;
|
|
600
599
|
returnHeaders?: boolean;
|
|
601
|
-
use?:
|
|
600
|
+
use?: better_auth258.Middleware[];
|
|
602
601
|
path?: string;
|
|
603
602
|
} & {
|
|
604
603
|
asResponse?: AsResponse | undefined;
|
|
@@ -606,22 +605,22 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
606
605
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_5] extends [true] ? {
|
|
607
606
|
headers: Headers;
|
|
608
607
|
response: {
|
|
609
|
-
sessions:
|
|
608
|
+
sessions: better_auth_plugins51.SessionWithImpersonatedBy[];
|
|
610
609
|
};
|
|
611
610
|
} : {
|
|
612
|
-
sessions:
|
|
611
|
+
sessions: better_auth_plugins51.SessionWithImpersonatedBy[];
|
|
613
612
|
}>;
|
|
614
613
|
options: {
|
|
615
614
|
method: "POST";
|
|
616
|
-
use: ((inputContext:
|
|
615
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
617
616
|
session: {
|
|
618
|
-
user:
|
|
619
|
-
session:
|
|
617
|
+
user: better_auth_plugins51.UserWithRole;
|
|
618
|
+
session: better_auth258.Session;
|
|
620
619
|
};
|
|
621
620
|
}>)[];
|
|
622
|
-
body:
|
|
623
|
-
userId:
|
|
624
|
-
},
|
|
621
|
+
body: zod239.ZodObject<{
|
|
622
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
623
|
+
}, better_auth258.$strip>;
|
|
625
624
|
metadata: {
|
|
626
625
|
openapi: {
|
|
627
626
|
operationId: string;
|
|
@@ -672,7 +671,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
672
671
|
} & {
|
|
673
672
|
asResponse?: boolean;
|
|
674
673
|
returnHeaders?: boolean;
|
|
675
|
-
use?:
|
|
674
|
+
use?: better_auth258.Middleware[];
|
|
676
675
|
path?: string;
|
|
677
676
|
} & {
|
|
678
677
|
asResponse?: AsResponse | undefined;
|
|
@@ -687,13 +686,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
687
686
|
}>;
|
|
688
687
|
options: {
|
|
689
688
|
method: "POST";
|
|
690
|
-
body:
|
|
691
|
-
userId:
|
|
692
|
-
},
|
|
693
|
-
use: ((inputContext:
|
|
689
|
+
body: zod239.ZodObject<{
|
|
690
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
691
|
+
}, better_auth258.$strip>;
|
|
692
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
694
693
|
session: {
|
|
695
|
-
user:
|
|
696
|
-
session:
|
|
694
|
+
user: better_auth_plugins51.UserWithRole;
|
|
695
|
+
session: better_auth258.Session;
|
|
697
696
|
};
|
|
698
697
|
}>)[];
|
|
699
698
|
metadata: {
|
|
@@ -745,7 +744,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
745
744
|
} & {
|
|
746
745
|
asResponse?: boolean;
|
|
747
746
|
returnHeaders?: boolean;
|
|
748
|
-
use?:
|
|
747
|
+
use?: better_auth258.Middleware[];
|
|
749
748
|
path?: string;
|
|
750
749
|
} & {
|
|
751
750
|
asResponse?: AsResponse | undefined;
|
|
@@ -760,15 +759,15 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
760
759
|
}>;
|
|
761
760
|
options: {
|
|
762
761
|
method: "POST";
|
|
763
|
-
body:
|
|
764
|
-
userId:
|
|
765
|
-
banReason:
|
|
766
|
-
banExpiresIn:
|
|
767
|
-
},
|
|
768
|
-
use: ((inputContext:
|
|
762
|
+
body: zod239.ZodObject<{
|
|
763
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
764
|
+
banReason: zod239.ZodOptional<zod239.ZodString>;
|
|
765
|
+
banExpiresIn: zod239.ZodOptional<zod239.ZodNumber>;
|
|
766
|
+
}, better_auth258.$strip>;
|
|
767
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
769
768
|
session: {
|
|
770
|
-
user:
|
|
771
|
-
session:
|
|
769
|
+
user: better_auth_plugins51.UserWithRole;
|
|
770
|
+
session: better_auth258.Session;
|
|
772
771
|
};
|
|
773
772
|
}>)[];
|
|
774
773
|
metadata: {
|
|
@@ -818,7 +817,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
818
817
|
} & {
|
|
819
818
|
asResponse?: boolean;
|
|
820
819
|
returnHeaders?: boolean;
|
|
821
|
-
use?:
|
|
820
|
+
use?: better_auth258.Middleware[];
|
|
822
821
|
path?: string;
|
|
823
822
|
} & {
|
|
824
823
|
asResponse?: AsResponse | undefined;
|
|
@@ -869,13 +868,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
869
868
|
}>;
|
|
870
869
|
options: {
|
|
871
870
|
method: "POST";
|
|
872
|
-
body:
|
|
873
|
-
userId:
|
|
874
|
-
},
|
|
875
|
-
use: ((inputContext:
|
|
871
|
+
body: zod239.ZodObject<{
|
|
872
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
873
|
+
}, better_auth258.$strip>;
|
|
874
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
876
875
|
session: {
|
|
877
|
-
user:
|
|
878
|
-
session:
|
|
876
|
+
user: better_auth_plugins51.UserWithRole;
|
|
877
|
+
session: better_auth258.Session;
|
|
879
878
|
};
|
|
880
879
|
}>)[];
|
|
881
880
|
metadata: {
|
|
@@ -926,7 +925,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
926
925
|
} & {
|
|
927
926
|
asResponse?: boolean;
|
|
928
927
|
returnHeaders?: boolean;
|
|
929
|
-
use?:
|
|
928
|
+
use?: better_auth258.Middleware[];
|
|
930
929
|
path?: string;
|
|
931
930
|
} & {
|
|
932
931
|
asResponse?: AsResponse | undefined;
|
|
@@ -934,11 +933,11 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
934
933
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_9] extends [true] ? {
|
|
935
934
|
headers: Headers;
|
|
936
935
|
response: {
|
|
937
|
-
session:
|
|
936
|
+
session: better_auth258.Session & Record<string, any>;
|
|
938
937
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
939
938
|
};
|
|
940
939
|
} : {
|
|
941
|
-
session:
|
|
940
|
+
session: better_auth258.Session & Record<string, any>;
|
|
942
941
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
943
942
|
}>;
|
|
944
943
|
options: {
|
|
@@ -967,7 +966,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
967
966
|
} & {
|
|
968
967
|
asResponse?: boolean;
|
|
969
968
|
returnHeaders?: boolean;
|
|
970
|
-
use?:
|
|
969
|
+
use?: better_auth258.Middleware[];
|
|
971
970
|
path?: string;
|
|
972
971
|
} & {
|
|
973
972
|
asResponse?: AsResponse | undefined;
|
|
@@ -982,13 +981,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
982
981
|
}>;
|
|
983
982
|
options: {
|
|
984
983
|
method: "POST";
|
|
985
|
-
body:
|
|
986
|
-
sessionToken:
|
|
987
|
-
},
|
|
988
|
-
use: ((inputContext:
|
|
984
|
+
body: zod239.ZodObject<{
|
|
985
|
+
sessionToken: zod239.ZodString;
|
|
986
|
+
}, better_auth258.$strip>;
|
|
987
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
989
988
|
session: {
|
|
990
|
-
user:
|
|
991
|
-
session:
|
|
989
|
+
user: better_auth_plugins51.UserWithRole;
|
|
990
|
+
session: better_auth258.Session;
|
|
992
991
|
};
|
|
993
992
|
}>)[];
|
|
994
993
|
metadata: {
|
|
@@ -1038,7 +1037,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1038
1037
|
} & {
|
|
1039
1038
|
asResponse?: boolean;
|
|
1040
1039
|
returnHeaders?: boolean;
|
|
1041
|
-
use?:
|
|
1040
|
+
use?: better_auth258.Middleware[];
|
|
1042
1041
|
path?: string;
|
|
1043
1042
|
} & {
|
|
1044
1043
|
asResponse?: AsResponse | undefined;
|
|
@@ -1053,13 +1052,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1053
1052
|
}>;
|
|
1054
1053
|
options: {
|
|
1055
1054
|
method: "POST";
|
|
1056
|
-
body:
|
|
1057
|
-
userId:
|
|
1058
|
-
},
|
|
1059
|
-
use: ((inputContext:
|
|
1055
|
+
body: zod239.ZodObject<{
|
|
1056
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1057
|
+
}, better_auth258.$strip>;
|
|
1058
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1060
1059
|
session: {
|
|
1061
|
-
user:
|
|
1062
|
-
session:
|
|
1060
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1061
|
+
session: better_auth258.Session;
|
|
1063
1062
|
};
|
|
1064
1063
|
}>)[];
|
|
1065
1064
|
metadata: {
|
|
@@ -1109,7 +1108,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1109
1108
|
} & {
|
|
1110
1109
|
asResponse?: boolean;
|
|
1111
1110
|
returnHeaders?: boolean;
|
|
1112
|
-
use?:
|
|
1111
|
+
use?: better_auth258.Middleware[];
|
|
1113
1112
|
path?: string;
|
|
1114
1113
|
} & {
|
|
1115
1114
|
asResponse?: AsResponse | undefined;
|
|
@@ -1124,13 +1123,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1124
1123
|
}>;
|
|
1125
1124
|
options: {
|
|
1126
1125
|
method: "POST";
|
|
1127
|
-
body:
|
|
1128
|
-
userId:
|
|
1129
|
-
},
|
|
1130
|
-
use: ((inputContext:
|
|
1126
|
+
body: zod239.ZodObject<{
|
|
1127
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1128
|
+
}, better_auth258.$strip>;
|
|
1129
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1131
1130
|
session: {
|
|
1132
|
-
user:
|
|
1133
|
-
session:
|
|
1131
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1132
|
+
session: better_auth258.Session;
|
|
1134
1133
|
};
|
|
1135
1134
|
}>)[];
|
|
1136
1135
|
metadata: {
|
|
@@ -1181,7 +1180,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1181
1180
|
} & {
|
|
1182
1181
|
asResponse?: boolean;
|
|
1183
1182
|
returnHeaders?: boolean;
|
|
1184
|
-
use?:
|
|
1183
|
+
use?: better_auth258.Middleware[];
|
|
1185
1184
|
path?: string;
|
|
1186
1185
|
} & {
|
|
1187
1186
|
asResponse?: AsResponse | undefined;
|
|
@@ -1196,14 +1195,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1196
1195
|
}>;
|
|
1197
1196
|
options: {
|
|
1198
1197
|
method: "POST";
|
|
1199
|
-
body:
|
|
1200
|
-
newPassword:
|
|
1201
|
-
userId:
|
|
1202
|
-
},
|
|
1203
|
-
use: ((inputContext:
|
|
1198
|
+
body: zod239.ZodObject<{
|
|
1199
|
+
newPassword: zod239.ZodString;
|
|
1200
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1201
|
+
}, better_auth258.$strip>;
|
|
1202
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1204
1203
|
session: {
|
|
1205
|
-
user:
|
|
1206
|
-
session:
|
|
1204
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1205
|
+
session: better_auth258.Session;
|
|
1207
1206
|
};
|
|
1208
1207
|
}>)[];
|
|
1209
1208
|
metadata: {
|
|
@@ -1239,12 +1238,12 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1239
1238
|
<AsResponse extends boolean = false, ReturnHeaders_14 extends boolean = false>(inputCtx_0: {
|
|
1240
1239
|
body: ({
|
|
1241
1240
|
permission: {
|
|
1242
|
-
readonly [x: string]:
|
|
1241
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1243
1242
|
};
|
|
1244
1243
|
permissions?: never;
|
|
1245
1244
|
} | {
|
|
1246
1245
|
permissions: {
|
|
1247
|
-
readonly [x: string]:
|
|
1246
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1248
1247
|
};
|
|
1249
1248
|
permission?: never;
|
|
1250
1249
|
}) & {
|
|
@@ -1264,7 +1263,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1264
1263
|
} & {
|
|
1265
1264
|
asResponse?: boolean;
|
|
1266
1265
|
returnHeaders?: boolean;
|
|
1267
|
-
use?:
|
|
1266
|
+
use?: better_auth258.Middleware[];
|
|
1268
1267
|
path?: string;
|
|
1269
1268
|
} & {
|
|
1270
1269
|
asResponse?: AsResponse | undefined;
|
|
@@ -1281,16 +1280,16 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1281
1280
|
}>;
|
|
1282
1281
|
options: {
|
|
1283
1282
|
method: "POST";
|
|
1284
|
-
body:
|
|
1285
|
-
userId:
|
|
1286
|
-
role:
|
|
1287
|
-
},
|
|
1288
|
-
permission:
|
|
1289
|
-
permissions:
|
|
1290
|
-
},
|
|
1291
|
-
permission:
|
|
1292
|
-
permissions:
|
|
1293
|
-
},
|
|
1283
|
+
body: zod239.ZodIntersection<zod239.ZodObject<{
|
|
1284
|
+
userId: zod239.ZodOptional<zod239.ZodCoercedString<unknown>>;
|
|
1285
|
+
role: zod239.ZodOptional<zod239.ZodString>;
|
|
1286
|
+
}, better_auth258.$strip>, zod239.ZodUnion<readonly [zod239.ZodObject<{
|
|
1287
|
+
permission: zod239.ZodRecord<zod239.ZodString, zod239.ZodArray<zod239.ZodString>>;
|
|
1288
|
+
permissions: zod239.ZodUndefined;
|
|
1289
|
+
}, better_auth258.$strip>, zod239.ZodObject<{
|
|
1290
|
+
permission: zod239.ZodUndefined;
|
|
1291
|
+
permissions: zod239.ZodRecord<zod239.ZodString, zod239.ZodArray<zod239.ZodString>>;
|
|
1292
|
+
}, better_auth258.$strip>]>>;
|
|
1294
1293
|
metadata: {
|
|
1295
1294
|
openapi: {
|
|
1296
1295
|
description: string;
|
|
@@ -1340,12 +1339,12 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1340
1339
|
$Infer: {
|
|
1341
1340
|
body: ({
|
|
1342
1341
|
permission: {
|
|
1343
|
-
readonly [x: string]:
|
|
1342
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1344
1343
|
};
|
|
1345
1344
|
permissions?: never;
|
|
1346
1345
|
} | {
|
|
1347
1346
|
permissions: {
|
|
1348
|
-
readonly [x: string]:
|
|
1347
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1349
1348
|
};
|
|
1350
1349
|
permission?: never;
|
|
1351
1350
|
}) & {
|
|
@@ -1418,7 +1417,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1418
1417
|
options: any;
|
|
1419
1418
|
}, {
|
|
1420
1419
|
id: "email-otp";
|
|
1421
|
-
init(ctx:
|
|
1420
|
+
init(ctx: better_auth258.AuthContext): {
|
|
1422
1421
|
options: {
|
|
1423
1422
|
emailVerification: {
|
|
1424
1423
|
sendVerificationEmail(data: {
|
|
@@ -1449,7 +1448,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1449
1448
|
} & {
|
|
1450
1449
|
asResponse?: boolean;
|
|
1451
1450
|
returnHeaders?: boolean;
|
|
1452
|
-
use?:
|
|
1451
|
+
use?: better_auth258.Middleware[];
|
|
1453
1452
|
path?: string;
|
|
1454
1453
|
} & {
|
|
1455
1454
|
asResponse?: AsResponse | undefined;
|
|
@@ -1460,14 +1459,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1460
1459
|
} : string>;
|
|
1461
1460
|
options: {
|
|
1462
1461
|
method: "POST";
|
|
1463
|
-
body:
|
|
1464
|
-
email:
|
|
1465
|
-
type:
|
|
1462
|
+
body: zod239.ZodObject<{
|
|
1463
|
+
email: zod239.ZodString;
|
|
1464
|
+
type: zod239.ZodEnum<{
|
|
1466
1465
|
"sign-in": "sign-in";
|
|
1467
1466
|
"forget-password": "forget-password";
|
|
1468
1467
|
"email-verification": "email-verification";
|
|
1469
1468
|
}>;
|
|
1470
|
-
},
|
|
1469
|
+
}, better_auth258.$strip>;
|
|
1471
1470
|
metadata: {
|
|
1472
1471
|
SERVER_ONLY: true;
|
|
1473
1472
|
openapi: {
|
|
@@ -1510,7 +1509,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1510
1509
|
} & {
|
|
1511
1510
|
asResponse?: boolean;
|
|
1512
1511
|
returnHeaders?: boolean;
|
|
1513
|
-
use?:
|
|
1512
|
+
use?: better_auth258.Middleware[];
|
|
1514
1513
|
path?: string;
|
|
1515
1514
|
} & {
|
|
1516
1515
|
asResponse?: AsResponse | undefined;
|
|
@@ -1529,14 +1528,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1529
1528
|
}>;
|
|
1530
1529
|
options: {
|
|
1531
1530
|
method: "GET";
|
|
1532
|
-
query:
|
|
1533
|
-
email:
|
|
1534
|
-
type:
|
|
1531
|
+
query: zod239.ZodObject<{
|
|
1532
|
+
email: zod239.ZodString;
|
|
1533
|
+
type: zod239.ZodEnum<{
|
|
1535
1534
|
"sign-in": "sign-in";
|
|
1536
1535
|
"forget-password": "forget-password";
|
|
1537
1536
|
"email-verification": "email-verification";
|
|
1538
1537
|
}>;
|
|
1539
|
-
},
|
|
1538
|
+
}, better_auth258.$strip>;
|
|
1540
1539
|
metadata: {
|
|
1541
1540
|
SERVER_ONLY: true;
|
|
1542
1541
|
openapi: {
|
|
@@ -1588,7 +1587,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1588
1587
|
} & {
|
|
1589
1588
|
asResponse?: boolean;
|
|
1590
1589
|
returnHeaders?: boolean;
|
|
1591
|
-
use?:
|
|
1590
|
+
use?: better_auth258.Middleware[];
|
|
1592
1591
|
path?: string;
|
|
1593
1592
|
} & {
|
|
1594
1593
|
asResponse?: AsResponse | undefined;
|
|
@@ -1603,15 +1602,15 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1603
1602
|
}>;
|
|
1604
1603
|
options: {
|
|
1605
1604
|
method: "POST";
|
|
1606
|
-
body:
|
|
1607
|
-
email:
|
|
1608
|
-
type:
|
|
1605
|
+
body: zod239.ZodObject<{
|
|
1606
|
+
email: zod239.ZodString;
|
|
1607
|
+
type: zod239.ZodEnum<{
|
|
1609
1608
|
"sign-in": "sign-in";
|
|
1610
1609
|
"forget-password": "forget-password";
|
|
1611
1610
|
"email-verification": "email-verification";
|
|
1612
1611
|
}>;
|
|
1613
|
-
otp:
|
|
1614
|
-
},
|
|
1612
|
+
otp: zod239.ZodString;
|
|
1613
|
+
}, better_auth258.$strip>;
|
|
1615
1614
|
metadata: {
|
|
1616
1615
|
openapi: {
|
|
1617
1616
|
description: string;
|
|
@@ -1658,7 +1657,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1658
1657
|
} & {
|
|
1659
1658
|
asResponse?: boolean;
|
|
1660
1659
|
returnHeaders?: boolean;
|
|
1661
|
-
use?:
|
|
1660
|
+
use?: better_auth258.Middleware[];
|
|
1662
1661
|
path?: string;
|
|
1663
1662
|
} & {
|
|
1664
1663
|
asResponse?: AsResponse | undefined;
|
|
@@ -1717,10 +1716,10 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1717
1716
|
}>;
|
|
1718
1717
|
options: {
|
|
1719
1718
|
method: "POST";
|
|
1720
|
-
body:
|
|
1721
|
-
email:
|
|
1722
|
-
otp:
|
|
1723
|
-
},
|
|
1719
|
+
body: zod239.ZodObject<{
|
|
1720
|
+
email: zod239.ZodString;
|
|
1721
|
+
otp: zod239.ZodString;
|
|
1722
|
+
}, better_auth258.$strip>;
|
|
1724
1723
|
metadata: {
|
|
1725
1724
|
openapi: {
|
|
1726
1725
|
description: string;
|
|
@@ -1778,7 +1777,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1778
1777
|
} & {
|
|
1779
1778
|
asResponse?: boolean;
|
|
1780
1779
|
returnHeaders?: boolean;
|
|
1781
|
-
use?:
|
|
1780
|
+
use?: better_auth258.Middleware[];
|
|
1782
1781
|
path?: string;
|
|
1783
1782
|
} & {
|
|
1784
1783
|
asResponse?: AsResponse | undefined;
|
|
@@ -1811,10 +1810,10 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1811
1810
|
}>;
|
|
1812
1811
|
options: {
|
|
1813
1812
|
method: "POST";
|
|
1814
|
-
body:
|
|
1815
|
-
email:
|
|
1816
|
-
otp:
|
|
1817
|
-
},
|
|
1813
|
+
body: zod239.ZodObject<{
|
|
1814
|
+
email: zod239.ZodString;
|
|
1815
|
+
otp: zod239.ZodString;
|
|
1816
|
+
}, better_auth258.$strip>;
|
|
1818
1817
|
metadata: {
|
|
1819
1818
|
openapi: {
|
|
1820
1819
|
description: string;
|
|
@@ -1865,7 +1864,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1865
1864
|
} & {
|
|
1866
1865
|
asResponse?: boolean;
|
|
1867
1866
|
returnHeaders?: boolean;
|
|
1868
|
-
use?:
|
|
1867
|
+
use?: better_auth258.Middleware[];
|
|
1869
1868
|
path?: string;
|
|
1870
1869
|
} & {
|
|
1871
1870
|
asResponse?: AsResponse | undefined;
|
|
@@ -1880,9 +1879,9 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1880
1879
|
}>;
|
|
1881
1880
|
options: {
|
|
1882
1881
|
method: "POST";
|
|
1883
|
-
body:
|
|
1884
|
-
email:
|
|
1885
|
-
},
|
|
1882
|
+
body: zod239.ZodObject<{
|
|
1883
|
+
email: zod239.ZodString;
|
|
1884
|
+
}, better_auth258.$strip>;
|
|
1886
1885
|
metadata: {
|
|
1887
1886
|
openapi: {
|
|
1888
1887
|
description: string;
|
|
@@ -1931,7 +1930,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1931
1930
|
} & {
|
|
1932
1931
|
asResponse?: boolean;
|
|
1933
1932
|
returnHeaders?: boolean;
|
|
1934
|
-
use?:
|
|
1933
|
+
use?: better_auth258.Middleware[];
|
|
1935
1934
|
path?: string;
|
|
1936
1935
|
} & {
|
|
1937
1936
|
asResponse?: AsResponse | undefined;
|
|
@@ -1946,11 +1945,11 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1946
1945
|
}>;
|
|
1947
1946
|
options: {
|
|
1948
1947
|
method: "POST";
|
|
1949
|
-
body:
|
|
1950
|
-
email:
|
|
1951
|
-
otp:
|
|
1952
|
-
password:
|
|
1953
|
-
},
|
|
1948
|
+
body: zod239.ZodObject<{
|
|
1949
|
+
email: zod239.ZodString;
|
|
1950
|
+
otp: zod239.ZodString;
|
|
1951
|
+
password: zod239.ZodString;
|
|
1952
|
+
}, better_auth258.$strip>;
|
|
1954
1953
|
metadata: {
|
|
1955
1954
|
openapi: {
|
|
1956
1955
|
description: string;
|
|
@@ -1997,7 +1996,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1997
1996
|
} & {
|
|
1998
1997
|
asResponse?: boolean;
|
|
1999
1998
|
returnHeaders?: boolean;
|
|
2000
|
-
use?:
|
|
1999
|
+
use?: better_auth258.Middleware[];
|
|
2001
2000
|
path?: string;
|
|
2002
2001
|
} & {
|
|
2003
2002
|
asResponse?: AsResponse | undefined;
|
|
@@ -2012,14 +2011,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
2012
2011
|
}>;
|
|
2013
2012
|
options: {
|
|
2014
2013
|
method: "POST";
|
|
2015
|
-
body:
|
|
2016
|
-
email:
|
|
2017
|
-
type:
|
|
2014
|
+
body: zod239.ZodObject<{
|
|
2015
|
+
email: zod239.ZodString;
|
|
2016
|
+
type: zod239.ZodEnum<{
|
|
2018
2017
|
"sign-in": "sign-in";
|
|
2019
2018
|
"forget-password": "forget-password";
|
|
2020
2019
|
"email-verification": "email-verification";
|
|
2021
2020
|
}>;
|
|
2022
|
-
},
|
|
2021
|
+
}, better_auth258.$strip>;
|
|
2023
2022
|
metadata: {
|
|
2024
2023
|
openapi: {
|
|
2025
2024
|
description: string;
|
|
@@ -2050,8 +2049,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
2050
2049
|
};
|
|
2051
2050
|
hooks: {
|
|
2052
2051
|
after: {
|
|
2053
|
-
matcher(context:
|
|
2054
|
-
handler: (inputContext:
|
|
2052
|
+
matcher(context: better_auth258.HookEndpointContext): boolean;
|
|
2053
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<void>;
|
|
2055
2054
|
}[];
|
|
2056
2055
|
};
|
|
2057
2056
|
$ERROR_CODES: {
|