@tulip-systems/core 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/client.d.ts +3 -1
- package/dist/auth/client.js +4 -2
- package/dist/auth/server.d.ts +2 -2
- package/dist/auth/server.js +3 -3
- package/dist/auth.d.ts +2 -1
- package/dist/auth.js +3 -2
- package/dist/commands/client.d.ts +4 -4
- package/dist/commands/client.js +4 -4
- package/dist/components/client.d.ts +5 -3
- package/dist/components/client.js +6 -4
- package/dist/components/common/icons.d.ts +5 -2
- package/dist/components/common/icons.d.ts.map +1 -1
- package/dist/components/common/icons.js +4 -1
- package/dist/components/common/icons.js.map +1 -1
- package/dist/components/common/status.d.ts +3 -3
- package/dist/components/editor/components/content.client.d.ts +2 -2
- package/dist/components/editor/components/fixed-menu.client.d.ts +2 -2
- package/dist/components/editor/context.client.d.ts +2 -2
- package/dist/components/editor/index.client.d.ts +2 -2
- package/dist/components/editor/preview.client.d.ts +2 -2
- package/dist/components/header/back-button.client.d.ts +2 -2
- package/dist/components/header/bottom-bar.client.d.ts +5 -5
- package/dist/components/header/bottom-bar.client.d.ts.map +1 -1
- package/dist/components/header/bottom-bar.client.js.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.ts +7 -7
- package/dist/components/header/breadcrumbs.client.js +1 -1
- package/dist/components/header/header.client.d.ts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
- package/dist/components/header/top-bar.client.d.ts +4 -4
- package/dist/components/layouts/admin-content.client.d.ts +13 -0
- package/dist/components/layouts/admin-content.client.d.ts.map +1 -0
- package/dist/components/layouts/admin-layout.d.ts +8 -0
- package/dist/components/layouts/admin-layout.d.ts.map +1 -0
- package/dist/components/layouts/admin-layout.js +15 -0
- package/dist/components/layouts/admin-layout.js.map +1 -0
- package/dist/components/layouts/admin-loading.d.ts +3 -3
- package/dist/components/layouts/admin-loading.d.ts.map +1 -1
- package/dist/components/layouts/admin-loading.js +2 -2
- package/dist/components/layouts/admin-loading.js.map +1 -1
- package/dist/components/layouts/empty-page.d.ts +4 -4
- package/dist/components/layouts/list-layout.d.ts +2 -2
- package/dist/components/layouts/not-found-page.d.ts +4 -3
- package/dist/components/layouts/not-found-page.d.ts.map +1 -1
- package/dist/components/layouts/not-found-page.js +8 -2
- package/dist/components/layouts/not-found-page.js.map +1 -1
- package/dist/components/layouts/not-found-section.js +1 -1
- package/dist/components/layouts/not-found-section.js.map +1 -1
- package/dist/components/layouts/providers.client.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts.map +1 -1
- package/dist/components/layouts/root-loading.d.ts +7 -0
- package/dist/components/layouts/root-loading.d.ts.map +1 -0
- package/dist/components/layouts/root-loading.js +14 -0
- package/dist/components/layouts/root-loading.js.map +1 -0
- package/dist/components/layouts/tab-layout.d.ts +2 -2
- package/dist/components/lists/data-list.d.ts +5 -5
- package/dist/components/lists/data-stack.d.ts +8 -8
- package/dist/components/{layouts → navigation}/admin-sidebar-header.client.js +8 -9
- package/dist/components/navigation/admin-sidebar-header.client.js.map +1 -0
- package/dist/components/navigation/admin-sidebar-paths.client.d.ts +81 -0
- package/dist/components/navigation/admin-sidebar-paths.client.d.ts.map +1 -0
- package/dist/components/navigation/admin-sidebar-paths.client.js +143 -0
- package/dist/components/navigation/admin-sidebar-paths.client.js.map +1 -0
- package/dist/components/navigation/admin-sidebar-skeleton.js +31 -0
- package/dist/components/navigation/admin-sidebar-skeleton.js.map +1 -0
- package/dist/components/server.d.ts +1 -1
- package/dist/components/server.js +1 -1
- package/dist/components/ui/accordion.d.ts +5 -5
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert.d.ts +6 -6
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/avatar.client.d.ts +4 -4
- package/dist/components/ui/badge.d.ts +4 -4
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts +6 -6
- package/dist/components/ui/chart.client.d.ts +5 -5
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/collapsible.client.d.ts +4 -4
- package/dist/components/ui/color-picker.client.d.ts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
- package/dist/components/ui/combobox.client.d.ts +2 -2
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/dialog.client.d.ts +11 -11
- package/dist/components/ui/drawer.client.d.ts +11 -11
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/form.client.d.ts +8 -8
- package/dist/components/ui/hover-card.client.d.ts +4 -4
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/navigation-menu.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/progress.client.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/resizable.client.d.ts +4 -4
- package/dist/components/ui/scroll-area.d.ts +3 -3
- package/dist/components/ui/select.client.d.ts +11 -11
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/sheet.client.d.ts +9 -9
- package/dist/components/ui/sidebar.client.d.ts +24 -24
- package/dist/components/ui/sidebar.client.js +1 -1
- package/dist/components/ui/skeleton.d.ts +2 -2
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/sonner.client.d.ts +2 -2
- package/dist/components/ui/sonner.client.js +1 -1
- package/dist/components/ui/spinner.js +63 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +5 -5
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/time-input.client.d.ts +2 -2
- package/dist/components/ui/toggle-group.client.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +4 -4
- package/dist/components/ui/tooltip.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts.map +1 -1
- package/dist/components.d.ts +6 -5
- package/dist/components.js +8 -7
- package/dist/config/server.d.ts +2 -3
- package/dist/config/server.js +3 -4
- package/dist/config.d.ts +3 -2
- package/dist/config.js +2 -1
- package/dist/lib/client.js +1 -1
- package/dist/lib/hooks/use-action.d.ts +2 -2
- package/dist/modules/auth/components/allowed.client.js +1 -1
- package/dist/modules/auth/components/allowed.client.js.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.ts +3 -4
- package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.js +1 -4
- package/dist/modules/auth/components/auth-layout.server.js.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.ts +7 -0
- package/dist/modules/auth/components/auth-loading.d.ts.map +1 -0
- package/dist/modules/auth/components/auth-loading.js +18 -0
- package/dist/modules/auth/components/auth-loading.js.map +1 -0
- package/dist/modules/auth/components/forget-password-page.client.js +2 -2
- package/dist/modules/auth/components/guard.client.js +16 -0
- package/dist/modules/auth/components/guard.client.js.map +1 -0
- package/dist/modules/auth/components/login-page.client.d.ts +1 -5
- package/dist/modules/auth/components/login-page.client.d.ts.map +1 -1
- package/dist/modules/auth/components/login-page.client.js +41 -31
- package/dist/modules/auth/components/login-page.client.js.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.js +3 -3
- package/dist/modules/auth/components/update-password-command.d.ts +1 -1
- package/dist/modules/auth/components/update-password-command.js +1 -1
- package/dist/modules/auth/handler/client.client.d.ts +48 -48
- package/dist/modules/auth/handler/client.client.d.ts.map +1 -1
- package/dist/modules/auth/handler/proxy.server.d.ts +13 -0
- package/dist/modules/auth/handler/proxy.server.d.ts.map +1 -0
- package/dist/modules/auth/handler/proxy.server.js +22 -0
- package/dist/modules/auth/handler/proxy.server.js.map +1 -0
- package/dist/modules/auth/handler/server.server.js +3 -1
- package/dist/modules/auth/handler/server.server.js.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.ts +26 -0
- package/dist/modules/auth/hooks/use-permission.d.ts.map +1 -0
- package/dist/modules/auth/hooks/{use-permission.client.js → use-permission.js} +5 -3
- package/dist/modules/auth/hooks/use-permission.js.map +1 -0
- package/dist/modules/auth/hooks/use-session.d.ts +34 -0
- package/dist/modules/auth/hooks/use-session.d.ts.map +1 -0
- package/dist/modules/auth/hooks/use-session.js +21 -0
- package/dist/modules/auth/hooks/use-session.js.map +1 -0
- package/dist/modules/auth/lib/helpers.server.d.ts +2 -2
- package/dist/modules/auth/lib/helpers.server.d.ts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.js +3 -6
- package/dist/modules/auth/lib/helpers.server.js.map +1 -1
- package/dist/modules/auth/lib/validators.d.ts +4 -4
- package/dist/modules/auth/lib/validators.d.ts.map +1 -1
- package/dist/modules/auth/lib/validators.js +1 -1
- package/dist/modules/auth/lib/validators.js.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts +11 -11
- package/dist/modules/commands/components/alert-dialog-command.client.js +1 -1
- package/dist/modules/commands/components/click-command.client.d.ts +2 -2
- package/dist/modules/commands/components/command-trigger.client.d.ts +4 -4
- package/dist/modules/commands/components/command-trigger.client.js +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.ts +8 -8
- package/dist/modules/commands/components/dialog-command.client.js +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
- package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
- package/dist/modules/commands/components/form-dialog-command.client.d.ts +12 -12
- package/dist/modules/commands/components/form-dialog-command.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-action.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.js +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.ts +2 -2
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts +8 -4
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.js +9 -1
- package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.ts +8 -4
- package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.js +12 -1
- package/dist/modules/commands/menus/inline-menu.client.js.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.ts +2 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.js +6 -3
- package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.ts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/send-mail-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/send-mail-command.client.js +3 -3
- package/dist/modules/config/db/helpers.d.ts +5 -5
- package/dist/modules/config/db/helpers.d.ts.map +1 -1
- package/dist/modules/config/lib/config.server.d.ts +0 -2
- package/dist/modules/config/lib/config.server.d.ts.map +1 -1
- package/dist/modules/config/lib/config.server.js.map +1 -1
- package/dist/modules/config/lib/resolve.server.d.ts +192 -190
- package/dist/modules/config/lib/resolve.server.d.ts.map +1 -1
- package/dist/modules/config/paths/helpers.d.ts +11 -0
- package/dist/modules/config/paths/helpers.d.ts.map +1 -0
- package/dist/modules/config/paths/helpers.js +9 -0
- package/dist/modules/config/paths/helpers.js.map +1 -0
- package/dist/modules/config/paths/types.d.ts +8 -37
- package/dist/modules/config/paths/types.d.ts.map +1 -1
- package/dist/modules/config/router/client.server.d.ts +4 -4
- package/dist/modules/config/router/client.server.d.ts.map +1 -1
- package/dist/modules/config/router/context.server.d.ts +194 -192
- package/dist/modules/config/router/context.server.d.ts.map +1 -1
- package/dist/modules/config/router/init.server.d.ts +200 -198
- package/dist/modules/config/router/init.server.d.ts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.ts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.ts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.js +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.ts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/header.d.ts +4 -4
- package/dist/modules/data-tables/components/layout.d.ts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.ts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.ts +2 -2
- package/dist/modules/data-tables/components/table.d.ts +7 -7
- package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
- package/dist/modules/data-tables/hooks/use-context.client.d.ts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/search-params.d.ts +5 -5
- package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -1
- package/dist/modules/data-tables/lib/types.d.ts +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +3 -3
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.js +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
- package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
- package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
- package/dist/modules/inline-edit/hooks/use-inline.client.js +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -1
- package/dist/modules/uploads/components/button.client.d.ts +2 -2
- package/dist/modules/uploads/components/button.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/grid.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/grid.client.js +1 -1
- package/dist/modules/uploads/components/images/input.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/preview-dialog.client.d.ts +2 -2
- package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/zone.client.d.ts +2 -2
- package/dist/modules/uploads/components/zone.client.d.ts.map +1 -1
- package/dist/modules/uploads/hooks/use-upload-image.client.js +1 -1
- package/dist/modules/uploads/lib/proxy.server.d.ts +1 -1
- package/dist/modules/uploads/lib/proxy.server.js +4 -4
- package/dist/modules/uploads/lib/route.server.d.ts +1 -1
- package/dist/modules/uploads/lib/route.server.js +2 -2
- package/dist/modules/uploads/lib/router.server.d.ts +965 -965
- package/dist/modules/uploads/lib/router.server.d.ts.map +1 -1
- package/dist/modules/uploads/lib/router.server.js +2 -2
- package/dist/modules/uploads/lib/schema.d.ts +61 -61
- package/dist/modules/uploads/lib/validators.d.ts +56 -56
- package/dist/modules/uploads/lib/validators.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/components/common/icons.tsx +6 -0
- package/src/components/entry.client.ts +6 -0
- package/src/components/entry.server.ts +1 -1
- package/src/components/entry.ts +1 -0
- package/src/components/header/bottom-bar.client.tsx +2 -2
- package/src/components/layouts/admin-layout.tsx +13 -0
- package/src/components/layouts/admin-loading.tsx +1 -1
- package/src/components/layouts/not-found-page.tsx +9 -1
- package/src/components/layouts/not-found-section.tsx +10 -5
- package/src/components/layouts/root-loading.tsx +9 -0
- package/src/components/{layouts → navigation}/admin-sidebar-header.client.tsx +11 -6
- package/src/components/navigation/admin-sidebar-paths.client.tsx +190 -0
- package/src/components/navigation/admin-sidebar-skeleton.tsx +44 -0
- package/src/components/navigation/admin-sidebar.client.tsx +123 -0
- package/src/components/ui/spinner.tsx +51 -0
- package/src/modules/auth/components/allowed.client.tsx +1 -1
- package/src/modules/auth/components/auth-layout.server.tsx +2 -10
- package/src/modules/auth/components/auth-loading.tsx +11 -0
- package/src/modules/auth/components/guard.client.tsx +12 -0
- package/src/modules/auth/components/login-page.client.tsx +45 -37
- package/src/modules/auth/entry.client.ts +2 -0
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/entry.ts +1 -0
- package/src/modules/auth/handler/proxy.server.ts +28 -0
- package/src/modules/auth/handler/server.server.ts +5 -0
- package/src/modules/auth/hooks/{use-permission.client.ts → use-permission.ts} +4 -2
- package/src/modules/auth/hooks/use-session.ts +18 -0
- package/src/modules/auth/lib/helpers.server.ts +1 -5
- package/src/modules/auth/lib/validators.ts +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -7
- package/src/modules/commands/menus/dropdown-menu.client.tsx +11 -2
- package/src/modules/commands/menus/inline-menu.client.tsx +14 -1
- package/src/modules/commands/menus/responsive-menu.client.tsx +11 -2
- package/src/modules/config/entry.server.ts +1 -2
- package/src/modules/config/entry.ts +3 -0
- package/src/modules/config/lib/config.server.ts +1 -2
- package/src/modules/config/lib/router.server.ts +64 -0
- package/src/modules/config/paths/helpers.ts +6 -0
- package/src/modules/config/paths/types.ts +26 -38
- package/src/modules/data-tables/components/filters/combobox.client.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +1 -1
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +1 -1
- package/dist/components/layouts/admin-layout.server.d.ts +0 -14
- package/dist/components/layouts/admin-layout.server.d.ts.map +0 -1
- package/dist/components/layouts/admin-layout.server.js +0 -26
- package/dist/components/layouts/admin-layout.server.js.map +0 -1
- package/dist/components/layouts/admin-sidebar-context.client.js +0 -28
- package/dist/components/layouts/admin-sidebar-context.client.js.map +0 -1
- package/dist/components/layouts/admin-sidebar-header.client.js.map +0 -1
- package/dist/components/layouts/admin-sidebar.client.js +0 -51
- package/dist/components/layouts/admin-sidebar.client.js.map +0 -1
- package/dist/modules/auth/components/allowed.server.d.ts +0 -23
- package/dist/modules/auth/components/allowed.server.d.ts.map +0 -1
- package/dist/modules/auth/components/allowed.server.js +0 -24
- package/dist/modules/auth/components/allowed.server.js.map +0 -1
- package/dist/modules/auth/hooks/use-permission.client.js.map +0 -1
- package/dist/modules/config/paths/create.server.d.ts +0 -14
- package/dist/modules/config/paths/create.server.d.ts.map +0 -1
- package/dist/modules/config/paths/create.server.js +0 -12
- package/dist/modules/config/paths/create.server.js.map +0 -1
- package/dist/modules/config/paths/get.server.js +0 -47
- package/dist/modules/config/paths/get.server.js.map +0 -1
- package/src/components/layouts/admin-layout.server.tsx +0 -31
- package/src/components/layouts/admin-sidebar-context.client.tsx +0 -34
- package/src/components/layouts/admin-sidebar.client.tsx +0 -88
- package/src/modules/auth/components/allowed.server.tsx +0 -41
- package/src/modules/config/paths/create.server.ts +0 -10
- package/src/modules/config/paths/get.server.ts +0 -69
|
@@ -1,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,14 @@ 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
|
-
|
|
52
|
+
db: drizzle_orm_postgres_js1.PostgresJsDatabase<TSchema>;
|
|
53
|
+
auth: better_auth258.Auth<{
|
|
54
|
+
advanced: {
|
|
55
|
+
cookiePrefix: string;
|
|
56
|
+
};
|
|
57
|
+
database: (options: better_auth258.BetterAuthOptions) => better_auth258.Adapter;
|
|
56
58
|
emailAndPassword: {
|
|
57
59
|
enabled: true;
|
|
58
60
|
};
|
|
@@ -77,8 +79,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
77
79
|
id: "next-cookies";
|
|
78
80
|
hooks: {
|
|
79
81
|
after: {
|
|
80
|
-
matcher(ctx:
|
|
81
|
-
handler: (inputContext:
|
|
82
|
+
matcher(ctx: better_auth258.HookEndpointContext): true;
|
|
83
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<void>;
|
|
82
84
|
}[];
|
|
83
85
|
};
|
|
84
86
|
}, {
|
|
@@ -121,7 +123,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
121
123
|
token: string;
|
|
122
124
|
ipAddress?: string | null | undefined;
|
|
123
125
|
userAgent?: string | null | undefined;
|
|
124
|
-
} & Record<string, unknown>, ctx:
|
|
126
|
+
} & Record<string, unknown>, ctx: better_auth258.GenericEndpointContext | undefined): Promise<void>;
|
|
125
127
|
};
|
|
126
128
|
};
|
|
127
129
|
};
|
|
@@ -129,8 +131,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
129
131
|
};
|
|
130
132
|
hooks: {
|
|
131
133
|
after: {
|
|
132
|
-
matcher(context:
|
|
133
|
-
handler: (inputContext:
|
|
134
|
+
matcher(context: better_auth258.HookEndpointContext): boolean;
|
|
135
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<better_auth_plugins51.SessionWithImpersonatedBy[] | undefined>;
|
|
134
136
|
}[];
|
|
135
137
|
};
|
|
136
138
|
endpoints: {
|
|
@@ -153,7 +155,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
153
155
|
} & {
|
|
154
156
|
asResponse?: boolean;
|
|
155
157
|
returnHeaders?: boolean;
|
|
156
|
-
use?:
|
|
158
|
+
use?: better_auth258.Middleware[];
|
|
157
159
|
path?: string;
|
|
158
160
|
} & {
|
|
159
161
|
asResponse?: AsResponse | undefined;
|
|
@@ -161,22 +163,22 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
161
163
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
162
164
|
headers: Headers;
|
|
163
165
|
response: {
|
|
164
|
-
user:
|
|
166
|
+
user: better_auth_plugins51.UserWithRole;
|
|
165
167
|
};
|
|
166
168
|
} : {
|
|
167
|
-
user:
|
|
169
|
+
user: better_auth_plugins51.UserWithRole;
|
|
168
170
|
}>;
|
|
169
171
|
options: {
|
|
170
172
|
method: "POST";
|
|
171
|
-
body:
|
|
172
|
-
userId:
|
|
173
|
-
role:
|
|
174
|
-
},
|
|
173
|
+
body: zod239.ZodObject<{
|
|
174
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
175
|
+
role: zod239.ZodUnion<readonly [zod239.ZodString, zod239.ZodArray<zod239.ZodString>]>;
|
|
176
|
+
}, better_auth258.$strip>;
|
|
175
177
|
requireHeaders: true;
|
|
176
|
-
use: ((inputContext:
|
|
178
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
177
179
|
session: {
|
|
178
|
-
user:
|
|
179
|
-
session:
|
|
180
|
+
user: better_auth_plugins51.UserWithRole;
|
|
181
|
+
session: better_auth258.Session;
|
|
180
182
|
};
|
|
181
183
|
}>)[];
|
|
182
184
|
metadata: {
|
|
@@ -232,7 +234,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
232
234
|
} & {
|
|
233
235
|
asResponse?: boolean;
|
|
234
236
|
returnHeaders?: boolean;
|
|
235
|
-
use?:
|
|
237
|
+
use?: better_auth258.Middleware[];
|
|
236
238
|
path?: string;
|
|
237
239
|
} & {
|
|
238
240
|
asResponse?: AsResponse | undefined;
|
|
@@ -259,13 +261,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
259
261
|
}>;
|
|
260
262
|
options: {
|
|
261
263
|
method: "GET";
|
|
262
|
-
query:
|
|
263
|
-
id:
|
|
264
|
-
},
|
|
265
|
-
use: ((inputContext:
|
|
264
|
+
query: zod239.ZodObject<{
|
|
265
|
+
id: zod239.ZodString;
|
|
266
|
+
}, better_auth258.$strip>;
|
|
267
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
266
268
|
session: {
|
|
267
|
-
user:
|
|
268
|
-
session:
|
|
269
|
+
user: better_auth_plugins51.UserWithRole;
|
|
270
|
+
session: better_auth258.Session;
|
|
269
271
|
};
|
|
270
272
|
}>)[];
|
|
271
273
|
metadata: {
|
|
@@ -319,7 +321,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
319
321
|
} & {
|
|
320
322
|
asResponse?: boolean;
|
|
321
323
|
returnHeaders?: boolean;
|
|
322
|
-
use?:
|
|
324
|
+
use?: better_auth258.Middleware[];
|
|
323
325
|
path?: string;
|
|
324
326
|
} & {
|
|
325
327
|
asResponse?: AsResponse | undefined;
|
|
@@ -327,20 +329,20 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
327
329
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_2] extends [true] ? {
|
|
328
330
|
headers: Headers;
|
|
329
331
|
response: {
|
|
330
|
-
user:
|
|
332
|
+
user: better_auth_plugins51.UserWithRole;
|
|
331
333
|
};
|
|
332
334
|
} : {
|
|
333
|
-
user:
|
|
335
|
+
user: better_auth_plugins51.UserWithRole;
|
|
334
336
|
}>;
|
|
335
337
|
options: {
|
|
336
338
|
method: "POST";
|
|
337
|
-
body:
|
|
338
|
-
email:
|
|
339
|
-
password:
|
|
340
|
-
name:
|
|
341
|
-
role:
|
|
342
|
-
data:
|
|
343
|
-
},
|
|
339
|
+
body: zod239.ZodObject<{
|
|
340
|
+
email: zod239.ZodString;
|
|
341
|
+
password: zod239.ZodString;
|
|
342
|
+
name: zod239.ZodString;
|
|
343
|
+
role: zod239.ZodOptional<zod239.ZodUnion<readonly [zod239.ZodString, zod239.ZodArray<zod239.ZodString>]>>;
|
|
344
|
+
data: zod239.ZodOptional<zod239.ZodRecord<zod239.ZodString, zod239.ZodAny>>;
|
|
345
|
+
}, better_auth258.$strip>;
|
|
344
346
|
metadata: {
|
|
345
347
|
openapi: {
|
|
346
348
|
operationId: string;
|
|
@@ -398,25 +400,25 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
398
400
|
} & {
|
|
399
401
|
asResponse?: boolean;
|
|
400
402
|
returnHeaders?: boolean;
|
|
401
|
-
use?:
|
|
403
|
+
use?: better_auth258.Middleware[];
|
|
402
404
|
path?: string;
|
|
403
405
|
} & {
|
|
404
406
|
asResponse?: AsResponse | undefined;
|
|
405
407
|
returnHeaders?: ReturnHeaders_3 | undefined;
|
|
406
408
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_3] extends [true] ? {
|
|
407
409
|
headers: Headers;
|
|
408
|
-
response:
|
|
409
|
-
} :
|
|
410
|
+
response: better_auth_plugins51.UserWithRole;
|
|
411
|
+
} : better_auth_plugins51.UserWithRole>;
|
|
410
412
|
options: {
|
|
411
413
|
method: "POST";
|
|
412
|
-
body:
|
|
413
|
-
userId:
|
|
414
|
-
data:
|
|
415
|
-
},
|
|
416
|
-
use: ((inputContext:
|
|
414
|
+
body: zod239.ZodObject<{
|
|
415
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
416
|
+
data: zod239.ZodRecord<zod239.ZodAny, zod239.ZodAny>;
|
|
417
|
+
}, better_auth258.$strip>;
|
|
418
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
417
419
|
session: {
|
|
418
|
-
user:
|
|
419
|
-
session:
|
|
420
|
+
user: better_auth_plugins51.UserWithRole;
|
|
421
|
+
session: better_auth258.Session;
|
|
420
422
|
};
|
|
421
423
|
}>)[];
|
|
422
424
|
metadata: {
|
|
@@ -475,7 +477,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
475
477
|
} & {
|
|
476
478
|
asResponse?: boolean;
|
|
477
479
|
returnHeaders?: boolean;
|
|
478
|
-
use?:
|
|
480
|
+
use?: better_auth258.Middleware[];
|
|
479
481
|
path?: string;
|
|
480
482
|
} & {
|
|
481
483
|
asResponse?: AsResponse | undefined;
|
|
@@ -483,7 +485,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
483
485
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_4] extends [true] ? {
|
|
484
486
|
headers: Headers;
|
|
485
487
|
response: {
|
|
486
|
-
users:
|
|
488
|
+
users: better_auth_plugins51.UserWithRole[];
|
|
487
489
|
total: number;
|
|
488
490
|
limit: number | undefined;
|
|
489
491
|
offset: number | undefined;
|
|
@@ -492,7 +494,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
492
494
|
total: number;
|
|
493
495
|
};
|
|
494
496
|
} : {
|
|
495
|
-
users:
|
|
497
|
+
users: better_auth_plugins51.UserWithRole[];
|
|
496
498
|
total: number;
|
|
497
499
|
limit: number | undefined;
|
|
498
500
|
offset: number | undefined;
|
|
@@ -502,33 +504,33 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
502
504
|
}>;
|
|
503
505
|
options: {
|
|
504
506
|
method: "GET";
|
|
505
|
-
use: ((inputContext:
|
|
507
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
506
508
|
session: {
|
|
507
|
-
user:
|
|
508
|
-
session:
|
|
509
|
+
user: better_auth_plugins51.UserWithRole;
|
|
510
|
+
session: better_auth258.Session;
|
|
509
511
|
};
|
|
510
512
|
}>)[];
|
|
511
|
-
query:
|
|
512
|
-
searchValue:
|
|
513
|
-
searchField:
|
|
513
|
+
query: zod239.ZodObject<{
|
|
514
|
+
searchValue: zod239.ZodOptional<zod239.ZodString>;
|
|
515
|
+
searchField: zod239.ZodOptional<zod239.ZodEnum<{
|
|
514
516
|
name: "name";
|
|
515
517
|
email: "email";
|
|
516
518
|
}>>;
|
|
517
|
-
searchOperator:
|
|
519
|
+
searchOperator: zod239.ZodOptional<zod239.ZodEnum<{
|
|
518
520
|
contains: "contains";
|
|
519
521
|
starts_with: "starts_with";
|
|
520
522
|
ends_with: "ends_with";
|
|
521
523
|
}>>;
|
|
522
|
-
limit:
|
|
523
|
-
offset:
|
|
524
|
-
sortBy:
|
|
525
|
-
sortDirection:
|
|
524
|
+
limit: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>>;
|
|
525
|
+
offset: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>>;
|
|
526
|
+
sortBy: zod239.ZodOptional<zod239.ZodString>;
|
|
527
|
+
sortDirection: zod239.ZodOptional<zod239.ZodEnum<{
|
|
526
528
|
asc: "asc";
|
|
527
529
|
desc: "desc";
|
|
528
530
|
}>>;
|
|
529
|
-
filterField:
|
|
530
|
-
filterValue:
|
|
531
|
-
filterOperator:
|
|
531
|
+
filterField: zod239.ZodOptional<zod239.ZodString>;
|
|
532
|
+
filterValue: zod239.ZodOptional<zod239.ZodUnion<[zod239.ZodUnion<[zod239.ZodString, zod239.ZodNumber]>, zod239.ZodBoolean]>>;
|
|
533
|
+
filterOperator: zod239.ZodOptional<zod239.ZodEnum<{
|
|
532
534
|
eq: "eq";
|
|
533
535
|
ne: "ne";
|
|
534
536
|
lt: "lt";
|
|
@@ -537,7 +539,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
537
539
|
gte: "gte";
|
|
538
540
|
contains: "contains";
|
|
539
541
|
}>>;
|
|
540
|
-
},
|
|
542
|
+
}, better_auth258.$strip>;
|
|
541
543
|
metadata: {
|
|
542
544
|
openapi: {
|
|
543
545
|
operationId: string;
|
|
@@ -598,7 +600,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
598
600
|
} & {
|
|
599
601
|
asResponse?: boolean;
|
|
600
602
|
returnHeaders?: boolean;
|
|
601
|
-
use?:
|
|
603
|
+
use?: better_auth258.Middleware[];
|
|
602
604
|
path?: string;
|
|
603
605
|
} & {
|
|
604
606
|
asResponse?: AsResponse | undefined;
|
|
@@ -606,22 +608,22 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
606
608
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_5] extends [true] ? {
|
|
607
609
|
headers: Headers;
|
|
608
610
|
response: {
|
|
609
|
-
sessions:
|
|
611
|
+
sessions: better_auth_plugins51.SessionWithImpersonatedBy[];
|
|
610
612
|
};
|
|
611
613
|
} : {
|
|
612
|
-
sessions:
|
|
614
|
+
sessions: better_auth_plugins51.SessionWithImpersonatedBy[];
|
|
613
615
|
}>;
|
|
614
616
|
options: {
|
|
615
617
|
method: "POST";
|
|
616
|
-
use: ((inputContext:
|
|
618
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
617
619
|
session: {
|
|
618
|
-
user:
|
|
619
|
-
session:
|
|
620
|
+
user: better_auth_plugins51.UserWithRole;
|
|
621
|
+
session: better_auth258.Session;
|
|
620
622
|
};
|
|
621
623
|
}>)[];
|
|
622
|
-
body:
|
|
623
|
-
userId:
|
|
624
|
-
},
|
|
624
|
+
body: zod239.ZodObject<{
|
|
625
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
626
|
+
}, better_auth258.$strip>;
|
|
625
627
|
metadata: {
|
|
626
628
|
openapi: {
|
|
627
629
|
operationId: string;
|
|
@@ -672,7 +674,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
672
674
|
} & {
|
|
673
675
|
asResponse?: boolean;
|
|
674
676
|
returnHeaders?: boolean;
|
|
675
|
-
use?:
|
|
677
|
+
use?: better_auth258.Middleware[];
|
|
676
678
|
path?: string;
|
|
677
679
|
} & {
|
|
678
680
|
asResponse?: AsResponse | undefined;
|
|
@@ -687,13 +689,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
687
689
|
}>;
|
|
688
690
|
options: {
|
|
689
691
|
method: "POST";
|
|
690
|
-
body:
|
|
691
|
-
userId:
|
|
692
|
-
},
|
|
693
|
-
use: ((inputContext:
|
|
692
|
+
body: zod239.ZodObject<{
|
|
693
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
694
|
+
}, better_auth258.$strip>;
|
|
695
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
694
696
|
session: {
|
|
695
|
-
user:
|
|
696
|
-
session:
|
|
697
|
+
user: better_auth_plugins51.UserWithRole;
|
|
698
|
+
session: better_auth258.Session;
|
|
697
699
|
};
|
|
698
700
|
}>)[];
|
|
699
701
|
metadata: {
|
|
@@ -745,7 +747,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
745
747
|
} & {
|
|
746
748
|
asResponse?: boolean;
|
|
747
749
|
returnHeaders?: boolean;
|
|
748
|
-
use?:
|
|
750
|
+
use?: better_auth258.Middleware[];
|
|
749
751
|
path?: string;
|
|
750
752
|
} & {
|
|
751
753
|
asResponse?: AsResponse | undefined;
|
|
@@ -760,15 +762,15 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
760
762
|
}>;
|
|
761
763
|
options: {
|
|
762
764
|
method: "POST";
|
|
763
|
-
body:
|
|
764
|
-
userId:
|
|
765
|
-
banReason:
|
|
766
|
-
banExpiresIn:
|
|
767
|
-
},
|
|
768
|
-
use: ((inputContext:
|
|
765
|
+
body: zod239.ZodObject<{
|
|
766
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
767
|
+
banReason: zod239.ZodOptional<zod239.ZodString>;
|
|
768
|
+
banExpiresIn: zod239.ZodOptional<zod239.ZodNumber>;
|
|
769
|
+
}, better_auth258.$strip>;
|
|
770
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
769
771
|
session: {
|
|
770
|
-
user:
|
|
771
|
-
session:
|
|
772
|
+
user: better_auth_plugins51.UserWithRole;
|
|
773
|
+
session: better_auth258.Session;
|
|
772
774
|
};
|
|
773
775
|
}>)[];
|
|
774
776
|
metadata: {
|
|
@@ -818,7 +820,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
818
820
|
} & {
|
|
819
821
|
asResponse?: boolean;
|
|
820
822
|
returnHeaders?: boolean;
|
|
821
|
-
use?:
|
|
823
|
+
use?: better_auth258.Middleware[];
|
|
822
824
|
path?: string;
|
|
823
825
|
} & {
|
|
824
826
|
asResponse?: AsResponse | undefined;
|
|
@@ -869,13 +871,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
869
871
|
}>;
|
|
870
872
|
options: {
|
|
871
873
|
method: "POST";
|
|
872
|
-
body:
|
|
873
|
-
userId:
|
|
874
|
-
},
|
|
875
|
-
use: ((inputContext:
|
|
874
|
+
body: zod239.ZodObject<{
|
|
875
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
876
|
+
}, better_auth258.$strip>;
|
|
877
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
876
878
|
session: {
|
|
877
|
-
user:
|
|
878
|
-
session:
|
|
879
|
+
user: better_auth_plugins51.UserWithRole;
|
|
880
|
+
session: better_auth258.Session;
|
|
879
881
|
};
|
|
880
882
|
}>)[];
|
|
881
883
|
metadata: {
|
|
@@ -926,7 +928,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
926
928
|
} & {
|
|
927
929
|
asResponse?: boolean;
|
|
928
930
|
returnHeaders?: boolean;
|
|
929
|
-
use?:
|
|
931
|
+
use?: better_auth258.Middleware[];
|
|
930
932
|
path?: string;
|
|
931
933
|
} & {
|
|
932
934
|
asResponse?: AsResponse | undefined;
|
|
@@ -934,11 +936,11 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
934
936
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders_9] extends [true] ? {
|
|
935
937
|
headers: Headers;
|
|
936
938
|
response: {
|
|
937
|
-
session:
|
|
939
|
+
session: better_auth258.Session & Record<string, any>;
|
|
938
940
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
939
941
|
};
|
|
940
942
|
} : {
|
|
941
|
-
session:
|
|
943
|
+
session: better_auth258.Session & Record<string, any>;
|
|
942
944
|
user: packages_core_dist_db.User & Record<string, any>;
|
|
943
945
|
}>;
|
|
944
946
|
options: {
|
|
@@ -967,7 +969,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
967
969
|
} & {
|
|
968
970
|
asResponse?: boolean;
|
|
969
971
|
returnHeaders?: boolean;
|
|
970
|
-
use?:
|
|
972
|
+
use?: better_auth258.Middleware[];
|
|
971
973
|
path?: string;
|
|
972
974
|
} & {
|
|
973
975
|
asResponse?: AsResponse | undefined;
|
|
@@ -982,13 +984,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
982
984
|
}>;
|
|
983
985
|
options: {
|
|
984
986
|
method: "POST";
|
|
985
|
-
body:
|
|
986
|
-
sessionToken:
|
|
987
|
-
},
|
|
988
|
-
use: ((inputContext:
|
|
987
|
+
body: zod239.ZodObject<{
|
|
988
|
+
sessionToken: zod239.ZodString;
|
|
989
|
+
}, better_auth258.$strip>;
|
|
990
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
989
991
|
session: {
|
|
990
|
-
user:
|
|
991
|
-
session:
|
|
992
|
+
user: better_auth_plugins51.UserWithRole;
|
|
993
|
+
session: better_auth258.Session;
|
|
992
994
|
};
|
|
993
995
|
}>)[];
|
|
994
996
|
metadata: {
|
|
@@ -1038,7 +1040,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1038
1040
|
} & {
|
|
1039
1041
|
asResponse?: boolean;
|
|
1040
1042
|
returnHeaders?: boolean;
|
|
1041
|
-
use?:
|
|
1043
|
+
use?: better_auth258.Middleware[];
|
|
1042
1044
|
path?: string;
|
|
1043
1045
|
} & {
|
|
1044
1046
|
asResponse?: AsResponse | undefined;
|
|
@@ -1053,13 +1055,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1053
1055
|
}>;
|
|
1054
1056
|
options: {
|
|
1055
1057
|
method: "POST";
|
|
1056
|
-
body:
|
|
1057
|
-
userId:
|
|
1058
|
-
},
|
|
1059
|
-
use: ((inputContext:
|
|
1058
|
+
body: zod239.ZodObject<{
|
|
1059
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1060
|
+
}, better_auth258.$strip>;
|
|
1061
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1060
1062
|
session: {
|
|
1061
|
-
user:
|
|
1062
|
-
session:
|
|
1063
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1064
|
+
session: better_auth258.Session;
|
|
1063
1065
|
};
|
|
1064
1066
|
}>)[];
|
|
1065
1067
|
metadata: {
|
|
@@ -1109,7 +1111,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1109
1111
|
} & {
|
|
1110
1112
|
asResponse?: boolean;
|
|
1111
1113
|
returnHeaders?: boolean;
|
|
1112
|
-
use?:
|
|
1114
|
+
use?: better_auth258.Middleware[];
|
|
1113
1115
|
path?: string;
|
|
1114
1116
|
} & {
|
|
1115
1117
|
asResponse?: AsResponse | undefined;
|
|
@@ -1124,13 +1126,13 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1124
1126
|
}>;
|
|
1125
1127
|
options: {
|
|
1126
1128
|
method: "POST";
|
|
1127
|
-
body:
|
|
1128
|
-
userId:
|
|
1129
|
-
},
|
|
1130
|
-
use: ((inputContext:
|
|
1129
|
+
body: zod239.ZodObject<{
|
|
1130
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1131
|
+
}, better_auth258.$strip>;
|
|
1132
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1131
1133
|
session: {
|
|
1132
|
-
user:
|
|
1133
|
-
session:
|
|
1134
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1135
|
+
session: better_auth258.Session;
|
|
1134
1136
|
};
|
|
1135
1137
|
}>)[];
|
|
1136
1138
|
metadata: {
|
|
@@ -1181,7 +1183,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1181
1183
|
} & {
|
|
1182
1184
|
asResponse?: boolean;
|
|
1183
1185
|
returnHeaders?: boolean;
|
|
1184
|
-
use?:
|
|
1186
|
+
use?: better_auth258.Middleware[];
|
|
1185
1187
|
path?: string;
|
|
1186
1188
|
} & {
|
|
1187
1189
|
asResponse?: AsResponse | undefined;
|
|
@@ -1196,14 +1198,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1196
1198
|
}>;
|
|
1197
1199
|
options: {
|
|
1198
1200
|
method: "POST";
|
|
1199
|
-
body:
|
|
1200
|
-
newPassword:
|
|
1201
|
-
userId:
|
|
1202
|
-
},
|
|
1203
|
-
use: ((inputContext:
|
|
1201
|
+
body: zod239.ZodObject<{
|
|
1202
|
+
newPassword: zod239.ZodString;
|
|
1203
|
+
userId: zod239.ZodCoercedString<unknown>;
|
|
1204
|
+
}, better_auth258.$strip>;
|
|
1205
|
+
use: ((inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<{
|
|
1204
1206
|
session: {
|
|
1205
|
-
user:
|
|
1206
|
-
session:
|
|
1207
|
+
user: better_auth_plugins51.UserWithRole;
|
|
1208
|
+
session: better_auth258.Session;
|
|
1207
1209
|
};
|
|
1208
1210
|
}>)[];
|
|
1209
1211
|
metadata: {
|
|
@@ -1239,12 +1241,12 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1239
1241
|
<AsResponse extends boolean = false, ReturnHeaders_14 extends boolean = false>(inputCtx_0: {
|
|
1240
1242
|
body: ({
|
|
1241
1243
|
permission: {
|
|
1242
|
-
readonly [x: string]:
|
|
1244
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1243
1245
|
};
|
|
1244
1246
|
permissions?: never;
|
|
1245
1247
|
} | {
|
|
1246
1248
|
permissions: {
|
|
1247
|
-
readonly [x: string]:
|
|
1249
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1248
1250
|
};
|
|
1249
1251
|
permission?: never;
|
|
1250
1252
|
}) & {
|
|
@@ -1264,7 +1266,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1264
1266
|
} & {
|
|
1265
1267
|
asResponse?: boolean;
|
|
1266
1268
|
returnHeaders?: boolean;
|
|
1267
|
-
use?:
|
|
1269
|
+
use?: better_auth258.Middleware[];
|
|
1268
1270
|
path?: string;
|
|
1269
1271
|
} & {
|
|
1270
1272
|
asResponse?: AsResponse | undefined;
|
|
@@ -1281,16 +1283,16 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1281
1283
|
}>;
|
|
1282
1284
|
options: {
|
|
1283
1285
|
method: "POST";
|
|
1284
|
-
body:
|
|
1285
|
-
userId:
|
|
1286
|
-
role:
|
|
1287
|
-
},
|
|
1288
|
-
permission:
|
|
1289
|
-
permissions:
|
|
1290
|
-
},
|
|
1291
|
-
permission:
|
|
1292
|
-
permissions:
|
|
1293
|
-
},
|
|
1286
|
+
body: zod239.ZodIntersection<zod239.ZodObject<{
|
|
1287
|
+
userId: zod239.ZodOptional<zod239.ZodCoercedString<unknown>>;
|
|
1288
|
+
role: zod239.ZodOptional<zod239.ZodString>;
|
|
1289
|
+
}, better_auth258.$strip>, zod239.ZodUnion<readonly [zod239.ZodObject<{
|
|
1290
|
+
permission: zod239.ZodRecord<zod239.ZodString, zod239.ZodArray<zod239.ZodString>>;
|
|
1291
|
+
permissions: zod239.ZodUndefined;
|
|
1292
|
+
}, better_auth258.$strip>, zod239.ZodObject<{
|
|
1293
|
+
permission: zod239.ZodUndefined;
|
|
1294
|
+
permissions: zod239.ZodRecord<zod239.ZodString, zod239.ZodArray<zod239.ZodString>>;
|
|
1295
|
+
}, better_auth258.$strip>]>>;
|
|
1294
1296
|
metadata: {
|
|
1295
1297
|
openapi: {
|
|
1296
1298
|
description: string;
|
|
@@ -1340,12 +1342,12 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1340
1342
|
$Infer: {
|
|
1341
1343
|
body: ({
|
|
1342
1344
|
permission: {
|
|
1343
|
-
readonly [x: string]:
|
|
1345
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1344
1346
|
};
|
|
1345
1347
|
permissions?: never;
|
|
1346
1348
|
} | {
|
|
1347
1349
|
permissions: {
|
|
1348
|
-
readonly [x: string]:
|
|
1350
|
+
readonly [x: string]: better_auth258.LiteralString[] | undefined;
|
|
1349
1351
|
};
|
|
1350
1352
|
permission?: never;
|
|
1351
1353
|
}) & {
|
|
@@ -1418,7 +1420,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1418
1420
|
options: any;
|
|
1419
1421
|
}, {
|
|
1420
1422
|
id: "email-otp";
|
|
1421
|
-
init(ctx:
|
|
1423
|
+
init(ctx: better_auth258.AuthContext): {
|
|
1422
1424
|
options: {
|
|
1423
1425
|
emailVerification: {
|
|
1424
1426
|
sendVerificationEmail(data: {
|
|
@@ -1449,7 +1451,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1449
1451
|
} & {
|
|
1450
1452
|
asResponse?: boolean;
|
|
1451
1453
|
returnHeaders?: boolean;
|
|
1452
|
-
use?:
|
|
1454
|
+
use?: better_auth258.Middleware[];
|
|
1453
1455
|
path?: string;
|
|
1454
1456
|
} & {
|
|
1455
1457
|
asResponse?: AsResponse | undefined;
|
|
@@ -1460,14 +1462,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1460
1462
|
} : string>;
|
|
1461
1463
|
options: {
|
|
1462
1464
|
method: "POST";
|
|
1463
|
-
body:
|
|
1464
|
-
email:
|
|
1465
|
-
type:
|
|
1465
|
+
body: zod239.ZodObject<{
|
|
1466
|
+
email: zod239.ZodString;
|
|
1467
|
+
type: zod239.ZodEnum<{
|
|
1466
1468
|
"sign-in": "sign-in";
|
|
1467
1469
|
"forget-password": "forget-password";
|
|
1468
1470
|
"email-verification": "email-verification";
|
|
1469
1471
|
}>;
|
|
1470
|
-
},
|
|
1472
|
+
}, better_auth258.$strip>;
|
|
1471
1473
|
metadata: {
|
|
1472
1474
|
SERVER_ONLY: true;
|
|
1473
1475
|
openapi: {
|
|
@@ -1510,7 +1512,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1510
1512
|
} & {
|
|
1511
1513
|
asResponse?: boolean;
|
|
1512
1514
|
returnHeaders?: boolean;
|
|
1513
|
-
use?:
|
|
1515
|
+
use?: better_auth258.Middleware[];
|
|
1514
1516
|
path?: string;
|
|
1515
1517
|
} & {
|
|
1516
1518
|
asResponse?: AsResponse | undefined;
|
|
@@ -1529,14 +1531,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1529
1531
|
}>;
|
|
1530
1532
|
options: {
|
|
1531
1533
|
method: "GET";
|
|
1532
|
-
query:
|
|
1533
|
-
email:
|
|
1534
|
-
type:
|
|
1534
|
+
query: zod239.ZodObject<{
|
|
1535
|
+
email: zod239.ZodString;
|
|
1536
|
+
type: zod239.ZodEnum<{
|
|
1535
1537
|
"sign-in": "sign-in";
|
|
1536
1538
|
"forget-password": "forget-password";
|
|
1537
1539
|
"email-verification": "email-verification";
|
|
1538
1540
|
}>;
|
|
1539
|
-
},
|
|
1541
|
+
}, better_auth258.$strip>;
|
|
1540
1542
|
metadata: {
|
|
1541
1543
|
SERVER_ONLY: true;
|
|
1542
1544
|
openapi: {
|
|
@@ -1588,7 +1590,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1588
1590
|
} & {
|
|
1589
1591
|
asResponse?: boolean;
|
|
1590
1592
|
returnHeaders?: boolean;
|
|
1591
|
-
use?:
|
|
1593
|
+
use?: better_auth258.Middleware[];
|
|
1592
1594
|
path?: string;
|
|
1593
1595
|
} & {
|
|
1594
1596
|
asResponse?: AsResponse | undefined;
|
|
@@ -1603,15 +1605,15 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1603
1605
|
}>;
|
|
1604
1606
|
options: {
|
|
1605
1607
|
method: "POST";
|
|
1606
|
-
body:
|
|
1607
|
-
email:
|
|
1608
|
-
type:
|
|
1608
|
+
body: zod239.ZodObject<{
|
|
1609
|
+
email: zod239.ZodString;
|
|
1610
|
+
type: zod239.ZodEnum<{
|
|
1609
1611
|
"sign-in": "sign-in";
|
|
1610
1612
|
"forget-password": "forget-password";
|
|
1611
1613
|
"email-verification": "email-verification";
|
|
1612
1614
|
}>;
|
|
1613
|
-
otp:
|
|
1614
|
-
},
|
|
1615
|
+
otp: zod239.ZodString;
|
|
1616
|
+
}, better_auth258.$strip>;
|
|
1615
1617
|
metadata: {
|
|
1616
1618
|
openapi: {
|
|
1617
1619
|
description: string;
|
|
@@ -1658,7 +1660,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1658
1660
|
} & {
|
|
1659
1661
|
asResponse?: boolean;
|
|
1660
1662
|
returnHeaders?: boolean;
|
|
1661
|
-
use?:
|
|
1663
|
+
use?: better_auth258.Middleware[];
|
|
1662
1664
|
path?: string;
|
|
1663
1665
|
} & {
|
|
1664
1666
|
asResponse?: AsResponse | undefined;
|
|
@@ -1717,10 +1719,10 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1717
1719
|
}>;
|
|
1718
1720
|
options: {
|
|
1719
1721
|
method: "POST";
|
|
1720
|
-
body:
|
|
1721
|
-
email:
|
|
1722
|
-
otp:
|
|
1723
|
-
},
|
|
1722
|
+
body: zod239.ZodObject<{
|
|
1723
|
+
email: zod239.ZodString;
|
|
1724
|
+
otp: zod239.ZodString;
|
|
1725
|
+
}, better_auth258.$strip>;
|
|
1724
1726
|
metadata: {
|
|
1725
1727
|
openapi: {
|
|
1726
1728
|
description: string;
|
|
@@ -1778,7 +1780,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1778
1780
|
} & {
|
|
1779
1781
|
asResponse?: boolean;
|
|
1780
1782
|
returnHeaders?: boolean;
|
|
1781
|
-
use?:
|
|
1783
|
+
use?: better_auth258.Middleware[];
|
|
1782
1784
|
path?: string;
|
|
1783
1785
|
} & {
|
|
1784
1786
|
asResponse?: AsResponse | undefined;
|
|
@@ -1811,10 +1813,10 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1811
1813
|
}>;
|
|
1812
1814
|
options: {
|
|
1813
1815
|
method: "POST";
|
|
1814
|
-
body:
|
|
1815
|
-
email:
|
|
1816
|
-
otp:
|
|
1817
|
-
},
|
|
1816
|
+
body: zod239.ZodObject<{
|
|
1817
|
+
email: zod239.ZodString;
|
|
1818
|
+
otp: zod239.ZodString;
|
|
1819
|
+
}, better_auth258.$strip>;
|
|
1818
1820
|
metadata: {
|
|
1819
1821
|
openapi: {
|
|
1820
1822
|
description: string;
|
|
@@ -1865,7 +1867,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1865
1867
|
} & {
|
|
1866
1868
|
asResponse?: boolean;
|
|
1867
1869
|
returnHeaders?: boolean;
|
|
1868
|
-
use?:
|
|
1870
|
+
use?: better_auth258.Middleware[];
|
|
1869
1871
|
path?: string;
|
|
1870
1872
|
} & {
|
|
1871
1873
|
asResponse?: AsResponse | undefined;
|
|
@@ -1880,9 +1882,9 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1880
1882
|
}>;
|
|
1881
1883
|
options: {
|
|
1882
1884
|
method: "POST";
|
|
1883
|
-
body:
|
|
1884
|
-
email:
|
|
1885
|
-
},
|
|
1885
|
+
body: zod239.ZodObject<{
|
|
1886
|
+
email: zod239.ZodString;
|
|
1887
|
+
}, better_auth258.$strip>;
|
|
1886
1888
|
metadata: {
|
|
1887
1889
|
openapi: {
|
|
1888
1890
|
description: string;
|
|
@@ -1931,7 +1933,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1931
1933
|
} & {
|
|
1932
1934
|
asResponse?: boolean;
|
|
1933
1935
|
returnHeaders?: boolean;
|
|
1934
|
-
use?:
|
|
1936
|
+
use?: better_auth258.Middleware[];
|
|
1935
1937
|
path?: string;
|
|
1936
1938
|
} & {
|
|
1937
1939
|
asResponse?: AsResponse | undefined;
|
|
@@ -1946,11 +1948,11 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1946
1948
|
}>;
|
|
1947
1949
|
options: {
|
|
1948
1950
|
method: "POST";
|
|
1949
|
-
body:
|
|
1950
|
-
email:
|
|
1951
|
-
otp:
|
|
1952
|
-
password:
|
|
1953
|
-
},
|
|
1951
|
+
body: zod239.ZodObject<{
|
|
1952
|
+
email: zod239.ZodString;
|
|
1953
|
+
otp: zod239.ZodString;
|
|
1954
|
+
password: zod239.ZodString;
|
|
1955
|
+
}, better_auth258.$strip>;
|
|
1954
1956
|
metadata: {
|
|
1955
1957
|
openapi: {
|
|
1956
1958
|
description: string;
|
|
@@ -1997,7 +1999,7 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
1997
1999
|
} & {
|
|
1998
2000
|
asResponse?: boolean;
|
|
1999
2001
|
returnHeaders?: boolean;
|
|
2000
|
-
use?:
|
|
2002
|
+
use?: better_auth258.Middleware[];
|
|
2001
2003
|
path?: string;
|
|
2002
2004
|
} & {
|
|
2003
2005
|
asResponse?: AsResponse | undefined;
|
|
@@ -2012,14 +2014,14 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
2012
2014
|
}>;
|
|
2013
2015
|
options: {
|
|
2014
2016
|
method: "POST";
|
|
2015
|
-
body:
|
|
2016
|
-
email:
|
|
2017
|
-
type:
|
|
2017
|
+
body: zod239.ZodObject<{
|
|
2018
|
+
email: zod239.ZodString;
|
|
2019
|
+
type: zod239.ZodEnum<{
|
|
2018
2020
|
"sign-in": "sign-in";
|
|
2019
2021
|
"forget-password": "forget-password";
|
|
2020
2022
|
"email-verification": "email-verification";
|
|
2021
2023
|
}>;
|
|
2022
|
-
},
|
|
2024
|
+
}, better_auth258.$strip>;
|
|
2023
2025
|
metadata: {
|
|
2024
2026
|
openapi: {
|
|
2025
2027
|
description: string;
|
|
@@ -2050,8 +2052,8 @@ declare const createRPCContext: <TSchema extends TDatabaseSchema>(params: GetTul
|
|
|
2050
2052
|
};
|
|
2051
2053
|
hooks: {
|
|
2052
2054
|
after: {
|
|
2053
|
-
matcher(context:
|
|
2054
|
-
handler: (inputContext:
|
|
2055
|
+
matcher(context: better_auth258.HookEndpointContext): boolean;
|
|
2056
|
+
handler: (inputContext: better_auth258.MiddlewareInputContext<better_auth258.MiddlewareOptions>) => Promise<void>;
|
|
2055
2057
|
}[];
|
|
2056
2058
|
};
|
|
2057
2059
|
$ERROR_CODES: {
|