@tulip-systems/core 0.2.0 → 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/content.client.d.ts.map +1 -1
- package/dist/components/editor/components/fixed-menu.client.d.ts +2 -2
- package/dist/components/editor/components/fixed-menu.client.d.ts.map +1 -1
- 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/index.client.d.ts.map +1 -1
- package/dist/components/editor/preview.client.d.ts +2 -2
- package/dist/components/editor/preview.client.d.ts.map +1 -1
- package/dist/components/header/back-button.client.d.ts +2 -2
- package/dist/components/header/back-button.client.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/header/breadcrumbs.client.js +1 -1
- package/dist/components/header/header.client.d.ts +2 -2
- package/dist/components/header/header.client.d.ts.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.ts.map +1 -1
- package/dist/components/header/top-bar.client.d.ts +4 -4
- package/dist/components/header/top-bar.client.d.ts.map +1 -1
- 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/providers.client.d.ts.map +1 -1
- 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/avatar.client.d.ts.map +1 -1
- 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/chart.client.d.ts.map +1 -1
- 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/collapsible.client.d.ts.map +1 -1
- package/dist/components/ui/color-picker.client.d.ts +2 -2
- package/dist/components/ui/color-picker.client.d.ts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.ts.map +1 -1
- package/dist/components/ui/combobox.client.d.ts +2 -2
- package/dist/components/ui/combobox.client.d.ts.map +1 -1
- 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/dialog.client.d.ts.map +1 -1
- package/dist/components/ui/drawer.client.d.ts +11 -11
- package/dist/components/ui/drawer.client.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/form.client.d.ts +8 -8
- package/dist/components/ui/form.client.d.ts.map +1 -1
- package/dist/components/ui/hover-card.client.d.ts +4 -4
- package/dist/components/ui/hover-card.client.d.ts.map +1 -1
- 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/progress.client.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/resizable.client.d.ts +4 -4
- package/dist/components/ui/resizable.client.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +3 -3
- package/dist/components/ui/select.client.d.ts +11 -11
- package/dist/components/ui/select.client.d.ts.map +1 -1
- 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/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 +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.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.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 +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.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 +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/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 +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/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/data-table/components/table.d.ts.map +1 -1
- 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/combobox.client.d.ts.map +1 -1
- 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/input.client.d.ts.map +1 -1
- 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/read-only.d.ts.map +1 -1
- 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/inputs/select.client.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/preview-dialog.client.d.ts +2 -2
- package/dist/modules/uploads/components/zone.client.d.ts +2 -2
- 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 +933 -933
- 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 +51 -51
- 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,15 +1,14 @@
|
|
|
1
1
|
import { Permission } from "../../auth/lib/permissions.js";
|
|
2
2
|
import { TDatabaseSchema } from "../db/types.js";
|
|
3
|
-
import { PathConfig } from "../paths/types.js";
|
|
4
3
|
import { ProtectedRPCContext, RPCContext } from "./context.server.js";
|
|
4
|
+
import * as zod0 from "zod";
|
|
5
5
|
import "server-cli-only";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as better_auth_plugins51 from "better-auth/plugins";
|
|
10
|
-
import * as drizzle_orm_postgres_js1 from "drizzle-orm/postgres-js";
|
|
6
|
+
import * as better_auth52 from "better-auth";
|
|
7
|
+
import * as better_auth_plugins5 from "better-auth/plugins";
|
|
8
|
+
import * as drizzle_orm_postgres_js0 from "drizzle-orm/postgres-js";
|
|
11
9
|
import * as _aws_sdk_client_s30 from "@aws-sdk/client-s3";
|
|
12
10
|
import * as resend0 from "resend";
|
|
11
|
+
import * as _orpc_server26 from "@orpc/server";
|
|
13
12
|
import * as next_dist_server_web_spec_extension_adapters_headers0 from "next/dist/server/web/spec-extension/adapters/headers";
|
|
14
13
|
import * as _orpc_contract2 from "@orpc/contract";
|
|
15
14
|
|
|
@@ -18,10 +17,10 @@ import * as _orpc_contract2 from "@orpc/contract";
|
|
|
18
17
|
* Initialize TRPC
|
|
19
18
|
*/
|
|
20
19
|
declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
21
|
-
publicProcedure:
|
|
22
|
-
protectedProcedure:
|
|
23
|
-
authMiddleware:
|
|
24
|
-
permissionMiddleware: (permission: Permission) =>
|
|
20
|
+
publicProcedure: _orpc_server26.Builder<RPCContext<TSchema> & Record<never, never>, RPCContext<TSchema>, _orpc_contract2.Schema<unknown, unknown>, _orpc_contract2.Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
|
|
21
|
+
protectedProcedure: _orpc_server26.BuilderWithMiddlewares<_orpc_server26.MergedInitialContext<RPCContext<TSchema> & Record<never, never>, RPCContext<TSchema> & Record<never, never>, RPCContext<TSchema>>, _orpc_server26.MergedCurrentContext<RPCContext<TSchema>, ProtectedRPCContext<TSchema>>, _orpc_contract2.Schema<unknown, unknown>, _orpc_contract2.Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
|
|
22
|
+
authMiddleware: _orpc_server26.DecoratedMiddleware<RPCContext<TSchema> & Record<never, never>, ProtectedRPCContext<TSchema>, unknown, any, any, Record<never, never>>;
|
|
23
|
+
permissionMiddleware: (permission: Permission) => _orpc_server26.DecoratedMiddleware<{
|
|
25
24
|
session: {
|
|
26
25
|
session: {
|
|
27
26
|
id: string;
|
|
@@ -55,11 +54,11 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
55
54
|
name: string;
|
|
56
55
|
shortName: string;
|
|
57
56
|
};
|
|
58
|
-
paths:
|
|
57
|
+
paths: any;
|
|
59
58
|
schema: TSchema;
|
|
60
|
-
db:
|
|
61
|
-
auth:
|
|
62
|
-
database: (options:
|
|
59
|
+
db: drizzle_orm_postgres_js0.PostgresJsDatabase<TSchema>;
|
|
60
|
+
auth: better_auth52.Auth<{
|
|
61
|
+
database: (options: better_auth52.BetterAuthOptions) => better_auth52.Adapter;
|
|
63
62
|
emailAndPassword: {
|
|
64
63
|
enabled: true;
|
|
65
64
|
};
|
|
@@ -84,8 +83,8 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
84
83
|
id: "next-cookies";
|
|
85
84
|
hooks: {
|
|
86
85
|
after: {
|
|
87
|
-
matcher(ctx:
|
|
88
|
-
handler: (inputContext:
|
|
86
|
+
matcher(ctx: better_auth52.HookEndpointContext): true;
|
|
87
|
+
handler: (inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<void>;
|
|
89
88
|
}[];
|
|
90
89
|
};
|
|
91
90
|
}, {
|
|
@@ -128,7 +127,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
128
127
|
token: string;
|
|
129
128
|
ipAddress?: string | null | undefined;
|
|
130
129
|
userAgent?: string | null | undefined;
|
|
131
|
-
} & Record<string, unknown>, ctx:
|
|
130
|
+
} & Record<string, unknown>, ctx: better_auth52.GenericEndpointContext | undefined): Promise<void>;
|
|
132
131
|
};
|
|
133
132
|
};
|
|
134
133
|
};
|
|
@@ -136,8 +135,8 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
136
135
|
};
|
|
137
136
|
hooks: {
|
|
138
137
|
after: {
|
|
139
|
-
matcher(context:
|
|
140
|
-
handler: (inputContext:
|
|
138
|
+
matcher(context: better_auth52.HookEndpointContext): boolean;
|
|
139
|
+
handler: (inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<better_auth_plugins5.SessionWithImpersonatedBy[] | undefined>;
|
|
141
140
|
}[];
|
|
142
141
|
};
|
|
143
142
|
endpoints: {
|
|
@@ -160,7 +159,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
160
159
|
} & {
|
|
161
160
|
asResponse?: boolean;
|
|
162
161
|
returnHeaders?: boolean;
|
|
163
|
-
use?:
|
|
162
|
+
use?: better_auth52.Middleware[];
|
|
164
163
|
path?: string;
|
|
165
164
|
} & {
|
|
166
165
|
asResponse?: AsResponse | undefined;
|
|
@@ -168,22 +167,22 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
168
167
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
169
168
|
headers: Headers;
|
|
170
169
|
response: {
|
|
171
|
-
user:
|
|
170
|
+
user: better_auth_plugins5.UserWithRole;
|
|
172
171
|
};
|
|
173
172
|
} : {
|
|
174
|
-
user:
|
|
173
|
+
user: better_auth_plugins5.UserWithRole;
|
|
175
174
|
}>;
|
|
176
175
|
options: {
|
|
177
176
|
method: "POST";
|
|
178
|
-
body:
|
|
179
|
-
userId:
|
|
180
|
-
role:
|
|
181
|
-
},
|
|
177
|
+
body: zod0.ZodObject<{
|
|
178
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
179
|
+
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
180
|
+
}, better_auth52.$strip>;
|
|
182
181
|
requireHeaders: true;
|
|
183
|
-
use: ((inputContext:
|
|
182
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
184
183
|
session: {
|
|
185
|
-
user:
|
|
186
|
-
session:
|
|
184
|
+
user: better_auth_plugins5.UserWithRole;
|
|
185
|
+
session: better_auth52.Session;
|
|
187
186
|
};
|
|
188
187
|
}>)[];
|
|
189
188
|
metadata: {
|
|
@@ -239,7 +238,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
239
238
|
} & {
|
|
240
239
|
asResponse?: boolean;
|
|
241
240
|
returnHeaders?: boolean;
|
|
242
|
-
use?:
|
|
241
|
+
use?: better_auth52.Middleware[];
|
|
243
242
|
path?: string;
|
|
244
243
|
} & {
|
|
245
244
|
asResponse?: AsResponse | undefined;
|
|
@@ -266,13 +265,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
266
265
|
}>;
|
|
267
266
|
options: {
|
|
268
267
|
method: "GET";
|
|
269
|
-
query:
|
|
270
|
-
id:
|
|
271
|
-
},
|
|
272
|
-
use: ((inputContext:
|
|
268
|
+
query: zod0.ZodObject<{
|
|
269
|
+
id: zod0.ZodString;
|
|
270
|
+
}, better_auth52.$strip>;
|
|
271
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
273
272
|
session: {
|
|
274
|
-
user:
|
|
275
|
-
session:
|
|
273
|
+
user: better_auth_plugins5.UserWithRole;
|
|
274
|
+
session: better_auth52.Session;
|
|
276
275
|
};
|
|
277
276
|
}>)[];
|
|
278
277
|
metadata: {
|
|
@@ -326,7 +325,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
326
325
|
} & {
|
|
327
326
|
asResponse?: boolean;
|
|
328
327
|
returnHeaders?: boolean;
|
|
329
|
-
use?:
|
|
328
|
+
use?: better_auth52.Middleware[];
|
|
330
329
|
path?: string;
|
|
331
330
|
} & {
|
|
332
331
|
asResponse?: AsResponse | undefined;
|
|
@@ -334,20 +333,20 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
334
333
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
335
334
|
headers: Headers;
|
|
336
335
|
response: {
|
|
337
|
-
user:
|
|
336
|
+
user: better_auth_plugins5.UserWithRole;
|
|
338
337
|
};
|
|
339
338
|
} : {
|
|
340
|
-
user:
|
|
339
|
+
user: better_auth_plugins5.UserWithRole;
|
|
341
340
|
}>;
|
|
342
341
|
options: {
|
|
343
342
|
method: "POST";
|
|
344
|
-
body:
|
|
345
|
-
email:
|
|
346
|
-
password:
|
|
347
|
-
name:
|
|
348
|
-
role:
|
|
349
|
-
data:
|
|
350
|
-
},
|
|
343
|
+
body: zod0.ZodObject<{
|
|
344
|
+
email: zod0.ZodString;
|
|
345
|
+
password: zod0.ZodString;
|
|
346
|
+
name: zod0.ZodString;
|
|
347
|
+
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
348
|
+
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
349
|
+
}, better_auth52.$strip>;
|
|
351
350
|
metadata: {
|
|
352
351
|
openapi: {
|
|
353
352
|
operationId: string;
|
|
@@ -405,25 +404,25 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
405
404
|
} & {
|
|
406
405
|
asResponse?: boolean;
|
|
407
406
|
returnHeaders?: boolean;
|
|
408
|
-
use?:
|
|
407
|
+
use?: better_auth52.Middleware[];
|
|
409
408
|
path?: string;
|
|
410
409
|
} & {
|
|
411
410
|
asResponse?: AsResponse | undefined;
|
|
412
411
|
returnHeaders?: ReturnHeaders | undefined;
|
|
413
412
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
414
413
|
headers: Headers;
|
|
415
|
-
response:
|
|
416
|
-
} :
|
|
414
|
+
response: better_auth_plugins5.UserWithRole;
|
|
415
|
+
} : better_auth_plugins5.UserWithRole>;
|
|
417
416
|
options: {
|
|
418
417
|
method: "POST";
|
|
419
|
-
body:
|
|
420
|
-
userId:
|
|
421
|
-
data:
|
|
422
|
-
},
|
|
423
|
-
use: ((inputContext:
|
|
418
|
+
body: zod0.ZodObject<{
|
|
419
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
420
|
+
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
421
|
+
}, better_auth52.$strip>;
|
|
422
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
424
423
|
session: {
|
|
425
|
-
user:
|
|
426
|
-
session:
|
|
424
|
+
user: better_auth_plugins5.UserWithRole;
|
|
425
|
+
session: better_auth52.Session;
|
|
427
426
|
};
|
|
428
427
|
}>)[];
|
|
429
428
|
metadata: {
|
|
@@ -482,7 +481,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
482
481
|
} & {
|
|
483
482
|
asResponse?: boolean;
|
|
484
483
|
returnHeaders?: boolean;
|
|
485
|
-
use?:
|
|
484
|
+
use?: better_auth52.Middleware[];
|
|
486
485
|
path?: string;
|
|
487
486
|
} & {
|
|
488
487
|
asResponse?: AsResponse | undefined;
|
|
@@ -490,7 +489,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
490
489
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
491
490
|
headers: Headers;
|
|
492
491
|
response: {
|
|
493
|
-
users:
|
|
492
|
+
users: better_auth_plugins5.UserWithRole[];
|
|
494
493
|
total: number;
|
|
495
494
|
limit: number | undefined;
|
|
496
495
|
offset: number | undefined;
|
|
@@ -499,7 +498,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
499
498
|
total: number;
|
|
500
499
|
};
|
|
501
500
|
} : {
|
|
502
|
-
users:
|
|
501
|
+
users: better_auth_plugins5.UserWithRole[];
|
|
503
502
|
total: number;
|
|
504
503
|
limit: number | undefined;
|
|
505
504
|
offset: number | undefined;
|
|
@@ -509,33 +508,33 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
509
508
|
}>;
|
|
510
509
|
options: {
|
|
511
510
|
method: "GET";
|
|
512
|
-
use: ((inputContext:
|
|
511
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
513
512
|
session: {
|
|
514
|
-
user:
|
|
515
|
-
session:
|
|
513
|
+
user: better_auth_plugins5.UserWithRole;
|
|
514
|
+
session: better_auth52.Session;
|
|
516
515
|
};
|
|
517
516
|
}>)[];
|
|
518
|
-
query:
|
|
519
|
-
searchValue:
|
|
520
|
-
searchField:
|
|
517
|
+
query: zod0.ZodObject<{
|
|
518
|
+
searchValue: zod0.ZodOptional<zod0.ZodString>;
|
|
519
|
+
searchField: zod0.ZodOptional<zod0.ZodEnum<{
|
|
521
520
|
name: "name";
|
|
522
521
|
email: "email";
|
|
523
522
|
}>>;
|
|
524
|
-
searchOperator:
|
|
523
|
+
searchOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
525
524
|
contains: "contains";
|
|
526
525
|
starts_with: "starts_with";
|
|
527
526
|
ends_with: "ends_with";
|
|
528
527
|
}>>;
|
|
529
|
-
limit:
|
|
530
|
-
offset:
|
|
531
|
-
sortBy:
|
|
532
|
-
sortDirection:
|
|
528
|
+
limit: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
529
|
+
offset: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
530
|
+
sortBy: zod0.ZodOptional<zod0.ZodString>;
|
|
531
|
+
sortDirection: zod0.ZodOptional<zod0.ZodEnum<{
|
|
533
532
|
asc: "asc";
|
|
534
533
|
desc: "desc";
|
|
535
534
|
}>>;
|
|
536
|
-
filterField:
|
|
537
|
-
filterValue:
|
|
538
|
-
filterOperator:
|
|
535
|
+
filterField: zod0.ZodOptional<zod0.ZodString>;
|
|
536
|
+
filterValue: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>, zod0.ZodBoolean]>>;
|
|
537
|
+
filterOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
539
538
|
eq: "eq";
|
|
540
539
|
ne: "ne";
|
|
541
540
|
lt: "lt";
|
|
@@ -544,7 +543,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
544
543
|
gte: "gte";
|
|
545
544
|
contains: "contains";
|
|
546
545
|
}>>;
|
|
547
|
-
},
|
|
546
|
+
}, better_auth52.$strip>;
|
|
548
547
|
metadata: {
|
|
549
548
|
openapi: {
|
|
550
549
|
operationId: string;
|
|
@@ -605,7 +604,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
605
604
|
} & {
|
|
606
605
|
asResponse?: boolean;
|
|
607
606
|
returnHeaders?: boolean;
|
|
608
|
-
use?:
|
|
607
|
+
use?: better_auth52.Middleware[];
|
|
609
608
|
path?: string;
|
|
610
609
|
} & {
|
|
611
610
|
asResponse?: AsResponse | undefined;
|
|
@@ -613,22 +612,22 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
613
612
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
614
613
|
headers: Headers;
|
|
615
614
|
response: {
|
|
616
|
-
sessions:
|
|
615
|
+
sessions: better_auth_plugins5.SessionWithImpersonatedBy[];
|
|
617
616
|
};
|
|
618
617
|
} : {
|
|
619
|
-
sessions:
|
|
618
|
+
sessions: better_auth_plugins5.SessionWithImpersonatedBy[];
|
|
620
619
|
}>;
|
|
621
620
|
options: {
|
|
622
621
|
method: "POST";
|
|
623
|
-
use: ((inputContext:
|
|
622
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
624
623
|
session: {
|
|
625
|
-
user:
|
|
626
|
-
session:
|
|
624
|
+
user: better_auth_plugins5.UserWithRole;
|
|
625
|
+
session: better_auth52.Session;
|
|
627
626
|
};
|
|
628
627
|
}>)[];
|
|
629
|
-
body:
|
|
630
|
-
userId:
|
|
631
|
-
},
|
|
628
|
+
body: zod0.ZodObject<{
|
|
629
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
630
|
+
}, better_auth52.$strip>;
|
|
632
631
|
metadata: {
|
|
633
632
|
openapi: {
|
|
634
633
|
operationId: string;
|
|
@@ -679,7 +678,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
679
678
|
} & {
|
|
680
679
|
asResponse?: boolean;
|
|
681
680
|
returnHeaders?: boolean;
|
|
682
|
-
use?:
|
|
681
|
+
use?: better_auth52.Middleware[];
|
|
683
682
|
path?: string;
|
|
684
683
|
} & {
|
|
685
684
|
asResponse?: AsResponse | undefined;
|
|
@@ -694,13 +693,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
694
693
|
}>;
|
|
695
694
|
options: {
|
|
696
695
|
method: "POST";
|
|
697
|
-
body:
|
|
698
|
-
userId:
|
|
699
|
-
},
|
|
700
|
-
use: ((inputContext:
|
|
696
|
+
body: zod0.ZodObject<{
|
|
697
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
698
|
+
}, better_auth52.$strip>;
|
|
699
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
701
700
|
session: {
|
|
702
|
-
user:
|
|
703
|
-
session:
|
|
701
|
+
user: better_auth_plugins5.UserWithRole;
|
|
702
|
+
session: better_auth52.Session;
|
|
704
703
|
};
|
|
705
704
|
}>)[];
|
|
706
705
|
metadata: {
|
|
@@ -752,7 +751,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
752
751
|
} & {
|
|
753
752
|
asResponse?: boolean;
|
|
754
753
|
returnHeaders?: boolean;
|
|
755
|
-
use?:
|
|
754
|
+
use?: better_auth52.Middleware[];
|
|
756
755
|
path?: string;
|
|
757
756
|
} & {
|
|
758
757
|
asResponse?: AsResponse | undefined;
|
|
@@ -767,15 +766,15 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
767
766
|
}>;
|
|
768
767
|
options: {
|
|
769
768
|
method: "POST";
|
|
770
|
-
body:
|
|
771
|
-
userId:
|
|
772
|
-
banReason:
|
|
773
|
-
banExpiresIn:
|
|
774
|
-
},
|
|
775
|
-
use: ((inputContext:
|
|
769
|
+
body: zod0.ZodObject<{
|
|
770
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
771
|
+
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
772
|
+
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
773
|
+
}, better_auth52.$strip>;
|
|
774
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
776
775
|
session: {
|
|
777
|
-
user:
|
|
778
|
-
session:
|
|
776
|
+
user: better_auth_plugins5.UserWithRole;
|
|
777
|
+
session: better_auth52.Session;
|
|
779
778
|
};
|
|
780
779
|
}>)[];
|
|
781
780
|
metadata: {
|
|
@@ -825,7 +824,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
825
824
|
} & {
|
|
826
825
|
asResponse?: boolean;
|
|
827
826
|
returnHeaders?: boolean;
|
|
828
|
-
use?:
|
|
827
|
+
use?: better_auth52.Middleware[];
|
|
829
828
|
path?: string;
|
|
830
829
|
} & {
|
|
831
830
|
asResponse?: AsResponse | undefined;
|
|
@@ -876,13 +875,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
876
875
|
}>;
|
|
877
876
|
options: {
|
|
878
877
|
method: "POST";
|
|
879
|
-
body:
|
|
880
|
-
userId:
|
|
881
|
-
},
|
|
882
|
-
use: ((inputContext:
|
|
878
|
+
body: zod0.ZodObject<{
|
|
879
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
880
|
+
}, better_auth52.$strip>;
|
|
881
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
883
882
|
session: {
|
|
884
|
-
user:
|
|
885
|
-
session:
|
|
883
|
+
user: better_auth_plugins5.UserWithRole;
|
|
884
|
+
session: better_auth52.Session;
|
|
886
885
|
};
|
|
887
886
|
}>)[];
|
|
888
887
|
metadata: {
|
|
@@ -933,7 +932,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
933
932
|
} & {
|
|
934
933
|
asResponse?: boolean;
|
|
935
934
|
returnHeaders?: boolean;
|
|
936
|
-
use?:
|
|
935
|
+
use?: better_auth52.Middleware[];
|
|
937
936
|
path?: string;
|
|
938
937
|
} & {
|
|
939
938
|
asResponse?: AsResponse | undefined;
|
|
@@ -941,11 +940,11 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
941
940
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
942
941
|
headers: Headers;
|
|
943
942
|
response: {
|
|
944
|
-
session:
|
|
943
|
+
session: better_auth52.Session & Record<string, any>;
|
|
945
944
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
946
945
|
};
|
|
947
946
|
} : {
|
|
948
|
-
session:
|
|
947
|
+
session: better_auth52.Session & Record<string, any>;
|
|
949
948
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
950
949
|
}>;
|
|
951
950
|
options: {
|
|
@@ -974,7 +973,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
974
973
|
} & {
|
|
975
974
|
asResponse?: boolean;
|
|
976
975
|
returnHeaders?: boolean;
|
|
977
|
-
use?:
|
|
976
|
+
use?: better_auth52.Middleware[];
|
|
978
977
|
path?: string;
|
|
979
978
|
} & {
|
|
980
979
|
asResponse?: AsResponse | undefined;
|
|
@@ -989,13 +988,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
989
988
|
}>;
|
|
990
989
|
options: {
|
|
991
990
|
method: "POST";
|
|
992
|
-
body:
|
|
993
|
-
sessionToken:
|
|
994
|
-
},
|
|
995
|
-
use: ((inputContext:
|
|
991
|
+
body: zod0.ZodObject<{
|
|
992
|
+
sessionToken: zod0.ZodString;
|
|
993
|
+
}, better_auth52.$strip>;
|
|
994
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
996
995
|
session: {
|
|
997
|
-
user:
|
|
998
|
-
session:
|
|
996
|
+
user: better_auth_plugins5.UserWithRole;
|
|
997
|
+
session: better_auth52.Session;
|
|
999
998
|
};
|
|
1000
999
|
}>)[];
|
|
1001
1000
|
metadata: {
|
|
@@ -1045,7 +1044,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1045
1044
|
} & {
|
|
1046
1045
|
asResponse?: boolean;
|
|
1047
1046
|
returnHeaders?: boolean;
|
|
1048
|
-
use?:
|
|
1047
|
+
use?: better_auth52.Middleware[];
|
|
1049
1048
|
path?: string;
|
|
1050
1049
|
} & {
|
|
1051
1050
|
asResponse?: AsResponse | undefined;
|
|
@@ -1060,13 +1059,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1060
1059
|
}>;
|
|
1061
1060
|
options: {
|
|
1062
1061
|
method: "POST";
|
|
1063
|
-
body:
|
|
1064
|
-
userId:
|
|
1065
|
-
},
|
|
1066
|
-
use: ((inputContext:
|
|
1062
|
+
body: zod0.ZodObject<{
|
|
1063
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1064
|
+
}, better_auth52.$strip>;
|
|
1065
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
1067
1066
|
session: {
|
|
1068
|
-
user:
|
|
1069
|
-
session:
|
|
1067
|
+
user: better_auth_plugins5.UserWithRole;
|
|
1068
|
+
session: better_auth52.Session;
|
|
1070
1069
|
};
|
|
1071
1070
|
}>)[];
|
|
1072
1071
|
metadata: {
|
|
@@ -1116,7 +1115,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1116
1115
|
} & {
|
|
1117
1116
|
asResponse?: boolean;
|
|
1118
1117
|
returnHeaders?: boolean;
|
|
1119
|
-
use?:
|
|
1118
|
+
use?: better_auth52.Middleware[];
|
|
1120
1119
|
path?: string;
|
|
1121
1120
|
} & {
|
|
1122
1121
|
asResponse?: AsResponse | undefined;
|
|
@@ -1131,13 +1130,13 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1131
1130
|
}>;
|
|
1132
1131
|
options: {
|
|
1133
1132
|
method: "POST";
|
|
1134
|
-
body:
|
|
1135
|
-
userId:
|
|
1136
|
-
},
|
|
1137
|
-
use: ((inputContext:
|
|
1133
|
+
body: zod0.ZodObject<{
|
|
1134
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1135
|
+
}, better_auth52.$strip>;
|
|
1136
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
1138
1137
|
session: {
|
|
1139
|
-
user:
|
|
1140
|
-
session:
|
|
1138
|
+
user: better_auth_plugins5.UserWithRole;
|
|
1139
|
+
session: better_auth52.Session;
|
|
1141
1140
|
};
|
|
1142
1141
|
}>)[];
|
|
1143
1142
|
metadata: {
|
|
@@ -1188,7 +1187,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1188
1187
|
} & {
|
|
1189
1188
|
asResponse?: boolean;
|
|
1190
1189
|
returnHeaders?: boolean;
|
|
1191
|
-
use?:
|
|
1190
|
+
use?: better_auth52.Middleware[];
|
|
1192
1191
|
path?: string;
|
|
1193
1192
|
} & {
|
|
1194
1193
|
asResponse?: AsResponse | undefined;
|
|
@@ -1203,14 +1202,14 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1203
1202
|
}>;
|
|
1204
1203
|
options: {
|
|
1205
1204
|
method: "POST";
|
|
1206
|
-
body:
|
|
1207
|
-
newPassword:
|
|
1208
|
-
userId:
|
|
1209
|
-
},
|
|
1210
|
-
use: ((inputContext:
|
|
1205
|
+
body: zod0.ZodObject<{
|
|
1206
|
+
newPassword: zod0.ZodString;
|
|
1207
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1208
|
+
}, better_auth52.$strip>;
|
|
1209
|
+
use: ((inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<{
|
|
1211
1210
|
session: {
|
|
1212
|
-
user:
|
|
1213
|
-
session:
|
|
1211
|
+
user: better_auth_plugins5.UserWithRole;
|
|
1212
|
+
session: better_auth52.Session;
|
|
1214
1213
|
};
|
|
1215
1214
|
}>)[];
|
|
1216
1215
|
metadata: {
|
|
@@ -1246,12 +1245,12 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1246
1245
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
1247
1246
|
body: ({
|
|
1248
1247
|
permission: {
|
|
1249
|
-
readonly [x: string]:
|
|
1248
|
+
readonly [x: string]: better_auth52.LiteralString[] | undefined;
|
|
1250
1249
|
};
|
|
1251
1250
|
permissions?: never;
|
|
1252
1251
|
} | {
|
|
1253
1252
|
permissions: {
|
|
1254
|
-
readonly [x: string]:
|
|
1253
|
+
readonly [x: string]: better_auth52.LiteralString[] | undefined;
|
|
1255
1254
|
};
|
|
1256
1255
|
permission?: never;
|
|
1257
1256
|
}) & {
|
|
@@ -1271,7 +1270,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1271
1270
|
} & {
|
|
1272
1271
|
asResponse?: boolean;
|
|
1273
1272
|
returnHeaders?: boolean;
|
|
1274
|
-
use?:
|
|
1273
|
+
use?: better_auth52.Middleware[];
|
|
1275
1274
|
path?: string;
|
|
1276
1275
|
} & {
|
|
1277
1276
|
asResponse?: AsResponse | undefined;
|
|
@@ -1288,16 +1287,16 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1288
1287
|
}>;
|
|
1289
1288
|
options: {
|
|
1290
1289
|
method: "POST";
|
|
1291
|
-
body:
|
|
1292
|
-
userId:
|
|
1293
|
-
role:
|
|
1294
|
-
},
|
|
1295
|
-
permission:
|
|
1296
|
-
permissions:
|
|
1297
|
-
},
|
|
1298
|
-
permission:
|
|
1299
|
-
permissions:
|
|
1300
|
-
},
|
|
1290
|
+
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
1291
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
1292
|
+
role: zod0.ZodOptional<zod0.ZodString>;
|
|
1293
|
+
}, better_auth52.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
|
|
1294
|
+
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
1295
|
+
permissions: zod0.ZodUndefined;
|
|
1296
|
+
}, better_auth52.$strip>, zod0.ZodObject<{
|
|
1297
|
+
permission: zod0.ZodUndefined;
|
|
1298
|
+
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
1299
|
+
}, better_auth52.$strip>]>>;
|
|
1301
1300
|
metadata: {
|
|
1302
1301
|
openapi: {
|
|
1303
1302
|
description: string;
|
|
@@ -1347,12 +1346,12 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1347
1346
|
$Infer: {
|
|
1348
1347
|
body: ({
|
|
1349
1348
|
permission: {
|
|
1350
|
-
readonly [x: string]:
|
|
1349
|
+
readonly [x: string]: better_auth52.LiteralString[] | undefined;
|
|
1351
1350
|
};
|
|
1352
1351
|
permissions?: never;
|
|
1353
1352
|
} | {
|
|
1354
1353
|
permissions: {
|
|
1355
|
-
readonly [x: string]:
|
|
1354
|
+
readonly [x: string]: better_auth52.LiteralString[] | undefined;
|
|
1356
1355
|
};
|
|
1357
1356
|
permission?: never;
|
|
1358
1357
|
}) & {
|
|
@@ -1425,7 +1424,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1425
1424
|
options: any;
|
|
1426
1425
|
}, {
|
|
1427
1426
|
id: "email-otp";
|
|
1428
|
-
init(ctx:
|
|
1427
|
+
init(ctx: better_auth52.AuthContext): {
|
|
1429
1428
|
options: {
|
|
1430
1429
|
emailVerification: {
|
|
1431
1430
|
sendVerificationEmail(data: {
|
|
@@ -1456,7 +1455,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1456
1455
|
} & {
|
|
1457
1456
|
asResponse?: boolean;
|
|
1458
1457
|
returnHeaders?: boolean;
|
|
1459
|
-
use?:
|
|
1458
|
+
use?: better_auth52.Middleware[];
|
|
1460
1459
|
path?: string;
|
|
1461
1460
|
} & {
|
|
1462
1461
|
asResponse?: AsResponse | undefined;
|
|
@@ -1467,14 +1466,14 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1467
1466
|
} : string>;
|
|
1468
1467
|
options: {
|
|
1469
1468
|
method: "POST";
|
|
1470
|
-
body:
|
|
1471
|
-
email:
|
|
1472
|
-
type:
|
|
1469
|
+
body: zod0.ZodObject<{
|
|
1470
|
+
email: zod0.ZodString;
|
|
1471
|
+
type: zod0.ZodEnum<{
|
|
1473
1472
|
"sign-in": "sign-in";
|
|
1474
1473
|
"forget-password": "forget-password";
|
|
1475
1474
|
"email-verification": "email-verification";
|
|
1476
1475
|
}>;
|
|
1477
|
-
},
|
|
1476
|
+
}, better_auth52.$strip>;
|
|
1478
1477
|
metadata: {
|
|
1479
1478
|
SERVER_ONLY: true;
|
|
1480
1479
|
openapi: {
|
|
@@ -1517,7 +1516,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1517
1516
|
} & {
|
|
1518
1517
|
asResponse?: boolean;
|
|
1519
1518
|
returnHeaders?: boolean;
|
|
1520
|
-
use?:
|
|
1519
|
+
use?: better_auth52.Middleware[];
|
|
1521
1520
|
path?: string;
|
|
1522
1521
|
} & {
|
|
1523
1522
|
asResponse?: AsResponse | undefined;
|
|
@@ -1536,14 +1535,14 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1536
1535
|
}>;
|
|
1537
1536
|
options: {
|
|
1538
1537
|
method: "GET";
|
|
1539
|
-
query:
|
|
1540
|
-
email:
|
|
1541
|
-
type:
|
|
1538
|
+
query: zod0.ZodObject<{
|
|
1539
|
+
email: zod0.ZodString;
|
|
1540
|
+
type: zod0.ZodEnum<{
|
|
1542
1541
|
"sign-in": "sign-in";
|
|
1543
1542
|
"forget-password": "forget-password";
|
|
1544
1543
|
"email-verification": "email-verification";
|
|
1545
1544
|
}>;
|
|
1546
|
-
},
|
|
1545
|
+
}, better_auth52.$strip>;
|
|
1547
1546
|
metadata: {
|
|
1548
1547
|
SERVER_ONLY: true;
|
|
1549
1548
|
openapi: {
|
|
@@ -1595,7 +1594,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1595
1594
|
} & {
|
|
1596
1595
|
asResponse?: boolean;
|
|
1597
1596
|
returnHeaders?: boolean;
|
|
1598
|
-
use?:
|
|
1597
|
+
use?: better_auth52.Middleware[];
|
|
1599
1598
|
path?: string;
|
|
1600
1599
|
} & {
|
|
1601
1600
|
asResponse?: AsResponse | undefined;
|
|
@@ -1610,15 +1609,15 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1610
1609
|
}>;
|
|
1611
1610
|
options: {
|
|
1612
1611
|
method: "POST";
|
|
1613
|
-
body:
|
|
1614
|
-
email:
|
|
1615
|
-
type:
|
|
1612
|
+
body: zod0.ZodObject<{
|
|
1613
|
+
email: zod0.ZodString;
|
|
1614
|
+
type: zod0.ZodEnum<{
|
|
1616
1615
|
"sign-in": "sign-in";
|
|
1617
1616
|
"forget-password": "forget-password";
|
|
1618
1617
|
"email-verification": "email-verification";
|
|
1619
1618
|
}>;
|
|
1620
|
-
otp:
|
|
1621
|
-
},
|
|
1619
|
+
otp: zod0.ZodString;
|
|
1620
|
+
}, better_auth52.$strip>;
|
|
1622
1621
|
metadata: {
|
|
1623
1622
|
openapi: {
|
|
1624
1623
|
description: string;
|
|
@@ -1665,7 +1664,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1665
1664
|
} & {
|
|
1666
1665
|
asResponse?: boolean;
|
|
1667
1666
|
returnHeaders?: boolean;
|
|
1668
|
-
use?:
|
|
1667
|
+
use?: better_auth52.Middleware[];
|
|
1669
1668
|
path?: string;
|
|
1670
1669
|
} & {
|
|
1671
1670
|
asResponse?: AsResponse | undefined;
|
|
@@ -1724,10 +1723,10 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1724
1723
|
}>;
|
|
1725
1724
|
options: {
|
|
1726
1725
|
method: "POST";
|
|
1727
|
-
body:
|
|
1728
|
-
email:
|
|
1729
|
-
otp:
|
|
1730
|
-
},
|
|
1726
|
+
body: zod0.ZodObject<{
|
|
1727
|
+
email: zod0.ZodString;
|
|
1728
|
+
otp: zod0.ZodString;
|
|
1729
|
+
}, better_auth52.$strip>;
|
|
1731
1730
|
metadata: {
|
|
1732
1731
|
openapi: {
|
|
1733
1732
|
description: string;
|
|
@@ -1785,7 +1784,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1785
1784
|
} & {
|
|
1786
1785
|
asResponse?: boolean;
|
|
1787
1786
|
returnHeaders?: boolean;
|
|
1788
|
-
use?:
|
|
1787
|
+
use?: better_auth52.Middleware[];
|
|
1789
1788
|
path?: string;
|
|
1790
1789
|
} & {
|
|
1791
1790
|
asResponse?: AsResponse | undefined;
|
|
@@ -1818,10 +1817,10 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1818
1817
|
}>;
|
|
1819
1818
|
options: {
|
|
1820
1819
|
method: "POST";
|
|
1821
|
-
body:
|
|
1822
|
-
email:
|
|
1823
|
-
otp:
|
|
1824
|
-
},
|
|
1820
|
+
body: zod0.ZodObject<{
|
|
1821
|
+
email: zod0.ZodString;
|
|
1822
|
+
otp: zod0.ZodString;
|
|
1823
|
+
}, better_auth52.$strip>;
|
|
1825
1824
|
metadata: {
|
|
1826
1825
|
openapi: {
|
|
1827
1826
|
description: string;
|
|
@@ -1872,7 +1871,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1872
1871
|
} & {
|
|
1873
1872
|
asResponse?: boolean;
|
|
1874
1873
|
returnHeaders?: boolean;
|
|
1875
|
-
use?:
|
|
1874
|
+
use?: better_auth52.Middleware[];
|
|
1876
1875
|
path?: string;
|
|
1877
1876
|
} & {
|
|
1878
1877
|
asResponse?: AsResponse | undefined;
|
|
@@ -1887,9 +1886,9 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1887
1886
|
}>;
|
|
1888
1887
|
options: {
|
|
1889
1888
|
method: "POST";
|
|
1890
|
-
body:
|
|
1891
|
-
email:
|
|
1892
|
-
},
|
|
1889
|
+
body: zod0.ZodObject<{
|
|
1890
|
+
email: zod0.ZodString;
|
|
1891
|
+
}, better_auth52.$strip>;
|
|
1893
1892
|
metadata: {
|
|
1894
1893
|
openapi: {
|
|
1895
1894
|
description: string;
|
|
@@ -1938,7 +1937,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1938
1937
|
} & {
|
|
1939
1938
|
asResponse?: boolean;
|
|
1940
1939
|
returnHeaders?: boolean;
|
|
1941
|
-
use?:
|
|
1940
|
+
use?: better_auth52.Middleware[];
|
|
1942
1941
|
path?: string;
|
|
1943
1942
|
} & {
|
|
1944
1943
|
asResponse?: AsResponse | undefined;
|
|
@@ -1953,11 +1952,11 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
1953
1952
|
}>;
|
|
1954
1953
|
options: {
|
|
1955
1954
|
method: "POST";
|
|
1956
|
-
body:
|
|
1957
|
-
email:
|
|
1958
|
-
otp:
|
|
1959
|
-
password:
|
|
1960
|
-
},
|
|
1955
|
+
body: zod0.ZodObject<{
|
|
1956
|
+
email: zod0.ZodString;
|
|
1957
|
+
otp: zod0.ZodString;
|
|
1958
|
+
password: zod0.ZodString;
|
|
1959
|
+
}, better_auth52.$strip>;
|
|
1961
1960
|
metadata: {
|
|
1962
1961
|
openapi: {
|
|
1963
1962
|
description: string;
|
|
@@ -2004,7 +2003,7 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
2004
2003
|
} & {
|
|
2005
2004
|
asResponse?: boolean;
|
|
2006
2005
|
returnHeaders?: boolean;
|
|
2007
|
-
use?:
|
|
2006
|
+
use?: better_auth52.Middleware[];
|
|
2008
2007
|
path?: string;
|
|
2009
2008
|
} & {
|
|
2010
2009
|
asResponse?: AsResponse | undefined;
|
|
@@ -2019,14 +2018,14 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
2019
2018
|
}>;
|
|
2020
2019
|
options: {
|
|
2021
2020
|
method: "POST";
|
|
2022
|
-
body:
|
|
2023
|
-
email:
|
|
2024
|
-
type:
|
|
2021
|
+
body: zod0.ZodObject<{
|
|
2022
|
+
email: zod0.ZodString;
|
|
2023
|
+
type: zod0.ZodEnum<{
|
|
2025
2024
|
"sign-in": "sign-in";
|
|
2026
2025
|
"forget-password": "forget-password";
|
|
2027
2026
|
"email-verification": "email-verification";
|
|
2028
2027
|
}>;
|
|
2029
|
-
},
|
|
2028
|
+
}, better_auth52.$strip>;
|
|
2030
2029
|
metadata: {
|
|
2031
2030
|
openapi: {
|
|
2032
2031
|
description: string;
|
|
@@ -2057,8 +2056,8 @@ declare function initRPC<TSchema extends TDatabaseSchema>(): {
|
|
|
2057
2056
|
};
|
|
2058
2057
|
hooks: {
|
|
2059
2058
|
after: {
|
|
2060
|
-
matcher(context:
|
|
2061
|
-
handler: (inputContext:
|
|
2059
|
+
matcher(context: better_auth52.HookEndpointContext): boolean;
|
|
2060
|
+
handler: (inputContext: better_auth52.MiddlewareInputContext<better_auth52.MiddlewareOptions>) => Promise<void>;
|
|
2062
2061
|
}[];
|
|
2063
2062
|
};
|
|
2064
2063
|
$ERROR_CODES: {
|